SAP FKK_CREATE_DOC_MASS Function Module for
FKK_CREATE_DOC_MASS is a standard fkk create doc mass SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for fkk create doc mass FM, simply by entering the name FKK_CREATE_DOC_MASS into the relevant SAP transaction such as SE37 or SE38.
Function Group: FKB0
Program Name: SAPLFKB0
Main Program: SAPLFKB0
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FKK_CREATE_DOC_MASS pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'FKK_CREATE_DOC_MASS'".
EXPORTING
I_FKKKO = "Document Header
* I_NEW_FIKEY = ' ' "Indicator: Set New FIKEY
* I_ADD_DOC = ' ' "'X' Additional Document
* I_FKKOPL_CF = ' ' "'X' FKKOPL Only for Cash Forecast
* I_DIALOG = ' ' "'X' Dialog Boxes Permitted
* I_NO_4EYES = ' ' "
* I_RESTRICT_NEGPO = ' ' "'X' Negative Posting Only for Selected Items
* I_ORIG_BUDAT = ' ' "Comparison Date as Supplement to I_RESTRICT_NEGPO
IMPORTING
E_COMRQ = "Caller Should Trigger COMMIT WORK
E_OPBEL = "Assigned Document Number
E_FIKEY = "Financial Accounting Key Assigned
E_C4EYE = "Reason for Required Confirmation
E_BUDAT = "Posting Date Used
E_BLDAT = "
TABLES
* T_FKKOP = "Line Items (Open Items)
* T_USTIN = "Basic Data for Tax Calculation - Telco Tax (U.S.A.)
* T_USTOUT = "Tax Details - Telecommunications Tax (U.S.A.)
* T_FKKOPWH = "Withholding Tax Data for Business Partner Item
* T_FKKOPK = "Line Items (Offsetting Items)
* T_FKKOPW = "Line Items (Repetition Specifications)
* T_FKKOPL = "Locking of Business Partner Items
* T_FKKOPC = "Authorization for Payment Card
* T_FKKOPKC = "Authorization for Payment Card
* T_FKKOPREL = "Object Relations for DFKKKO and DFKKOP
* T_FKKOP_ESR = "
EXCEPTIONS
STOP_MASS_POSTING = 1
IMPORTING Parameters details for FKK_CREATE_DOC_MASS
I_FKKKO - Document Header
Data type: FKKKOOptional: No
Call by Reference: No ( called with pass by value option)
I_NEW_FIKEY - Indicator: Set New FIKEY
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ADD_DOC - 'X' Additional Document
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FKKOPL_CF - 'X' FKKOPL Only for Cash Forecast
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DIALOG - 'X' Dialog Boxes Permitted
Data type: BOOLE-BOOLEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_NO_4EYES -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_RESTRICT_NEGPO - 'X' Negative Posting Only for Selected Items
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ORIG_BUDAT - Comparison Date as Supplement to I_RESTRICT_NEGPO
Data type: DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FKK_CREATE_DOC_MASS
E_COMRQ - Caller Should Trigger COMMIT WORK
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
E_OPBEL - Assigned Document Number
Data type: FKKKO-OPBELOptional: No
Call by Reference: No ( called with pass by value option)
E_FIKEY - Financial Accounting Key Assigned
Data type: FKKKO-FIKEYOptional: No
Call by Reference: No ( called with pass by value option)
E_C4EYE - Reason for Required Confirmation
Data type: C4EYE_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_BUDAT - Posting Date Used
Data type: BUDAT_KKOptional: No
Call by Reference: No ( called with pass by value option)
E_BLDAT -
Data type: BLDATOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FKK_CREATE_DOC_MASS
T_FKKOP - Line Items (Open Items)
Data type: FKKOPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_USTIN - Basic Data for Tax Calculation - Telco Tax (U.S.A.)
Data type: DFKKOPUSTAXIN00Optional: Yes
Call by Reference: Yes
T_USTOUT - Tax Details - Telecommunications Tax (U.S.A.)
Data type: DFKKOPUSTAXOUT00Optional: Yes
Call by Reference: Yes
T_FKKOPWH - Withholding Tax Data for Business Partner Item
Data type: DFKKOPWHOptional: Yes
Call by Reference: Yes
T_FKKOPK - Line Items (Offsetting Items)
Data type: FKKOPKOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKOPW - Line Items (Repetition Specifications)
Data type: FKKOPWOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKOPL - Locking of Business Partner Items
Data type: FKKOPLOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FKKOPC - Authorization for Payment Card
Data type: DFKKOPCOptional: Yes
Call by Reference: Yes
T_FKKOPKC - Authorization for Payment Card
Data type: DFKKOPKCOptional: Yes
Call by Reference: Yes
T_FKKOPREL - Object Relations for DFKKKO and DFKKOP
Data type: FKKOPRELOptional: Yes
Call by Reference: Yes
T_FKKOP_ESR -
Data type: FKKOP_ESROptional: Yes
Call by Reference: Yes
EXCEPTIONS details
STOP_MASS_POSTING -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FKK_CREATE_DOC_MASS Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_e_comrq | TYPE BOOLE-BOOLE, " | |||
| lv_i_fkkko | TYPE FKKKO, " | |||
| lt_t_fkkop | TYPE STANDARD TABLE OF FKKOP, " | |||
| lv_stop_mass_posting | TYPE FKKOP, " | |||
| lt_t_ustin | TYPE STANDARD TABLE OF DFKKOPUSTAXIN00, " | |||
| lt_t_ustout | TYPE STANDARD TABLE OF DFKKOPUSTAXOUT00, " | |||
| lv_e_opbel | TYPE FKKKO-OPBEL, " | |||
| lt_t_fkkopwh | TYPE STANDARD TABLE OF DFKKOPWH, " | |||
| lv_i_new_fikey | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_e_fikey | TYPE FKKKO-FIKEY, " | |||
| lt_t_fkkopk | TYPE STANDARD TABLE OF FKKOPK, " | |||
| lv_i_add_doc | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_e_c4eye | TYPE C4EYE_KK, " | |||
| lt_t_fkkopw | TYPE STANDARD TABLE OF FKKOPW, " | |||
| lv_i_fkkopl_cf | TYPE BOOLE-BOOLE, " SPACE | |||
| lv_e_budat | TYPE BUDAT_KK, " | |||
| lv_i_dialog | TYPE BOOLE-BOOLE, " SPACE | |||
| lt_t_fkkopl | TYPE STANDARD TABLE OF FKKOPL, " | |||
| lv_e_bldat | TYPE BLDAT, " | |||
| lt_t_fkkopc | TYPE STANDARD TABLE OF DFKKOPC, " | |||
| lv_i_no_4eyes | TYPE XFELD, " SPACE | |||
| lt_t_fkkopkc | TYPE STANDARD TABLE OF DFKKOPKC, " | |||
| lv_i_restrict_negpo | TYPE XFELD, " SPACE | |||
| lt_t_fkkoprel | TYPE STANDARD TABLE OF FKKOPREL, " | |||
| lv_i_orig_budat | TYPE D, " SPACE | |||
| lt_t_fkkop_esr | TYPE STANDARD TABLE OF FKKOP_ESR. " |
|   CALL FUNCTION 'FKK_CREATE_DOC_MASS' " |
| EXPORTING | ||
| I_FKKKO | = lv_i_fkkko | |
| I_NEW_FIKEY | = lv_i_new_fikey | |
| I_ADD_DOC | = lv_i_add_doc | |
| I_FKKOPL_CF | = lv_i_fkkopl_cf | |
| I_DIALOG | = lv_i_dialog | |
| I_NO_4EYES | = lv_i_no_4eyes | |
| I_RESTRICT_NEGPO | = lv_i_restrict_negpo | |
| I_ORIG_BUDAT | = lv_i_orig_budat | |
| IMPORTING | ||
| E_COMRQ | = lv_e_comrq | |
| E_OPBEL | = lv_e_opbel | |
| E_FIKEY | = lv_e_fikey | |
| E_C4EYE | = lv_e_c4eye | |
| E_BUDAT | = lv_e_budat | |
| E_BLDAT | = lv_e_bldat | |
| TABLES | ||
| T_FKKOP | = lt_t_fkkop | |
| T_USTIN | = lt_t_ustin | |
| T_USTOUT | = lt_t_ustout | |
| T_FKKOPWH | = lt_t_fkkopwh | |
| T_FKKOPK | = lt_t_fkkopk | |
| T_FKKOPW | = lt_t_fkkopw | |
| T_FKKOPL | = lt_t_fkkopl | |
| T_FKKOPC | = lt_t_fkkopc | |
| T_FKKOPKC | = lt_t_fkkopkc | |
| T_FKKOPREL | = lt_t_fkkoprel | |
| T_FKKOP_ESR | = lt_t_fkkop_esr | |
| EXCEPTIONS | ||
| STOP_MASS_POSTING = 1 | ||
| . " FKK_CREATE_DOC_MASS | ||
ABAP code using 7.40 inline data declarations to call FM FKK_CREATE_DOC_MASS
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_comrq). | ||||
| "SELECT single OPBEL FROM FKKKO INTO @DATA(ld_e_opbel). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_new_fikey). | ||||
| DATA(ld_i_new_fikey) | = ' '. | |||
| "SELECT single FIKEY FROM FKKKO INTO @DATA(ld_e_fikey). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_add_doc). | ||||
| DATA(ld_i_add_doc) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_fkkopl_cf). | ||||
| DATA(ld_i_fkkopl_cf) | = ' '. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_dialog). | ||||
| DATA(ld_i_dialog) | = ' '. | |||
| DATA(ld_i_no_4eyes) | = ' '. | |||
| DATA(ld_i_restrict_negpo) | = ' '. | |||
| DATA(ld_i_orig_budat) | = ' '. | |||
Search for further information about these or an SAP related objects