SAP FMKU_COM_ITEM_READ_MULTIPLE Function Module for Read & check commitment item for budgeting
FMKU_COM_ITEM_READ_MULTIPLE is a standard fmku com item read multiple SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read & check commitment item for budgeting processing and below is the pattern details for this FM, 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 fmku com item read multiple FM, simply by entering the name FMKU_COM_ITEM_READ_MULTIPLE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMKU
Program Name: SAPLFMKU
Main Program: SAPLFMKU
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMKU_COM_ITEM_READ_MULTIPLE 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 'FMKU_COM_ITEM_READ_MULTIPLE'"Read & check commitment item for budgeting.
EXPORTING
I_FM_AREA = "Financial management area
I_FISCYEAR = "Fiscal year
* I_FLG_ONLY_POSTABLE = "'X' - Postable Cmmt item selected
* I_FLG_ONLY_NON_POSTABLE = "'X' - Non postable Cmmt item selected
* I_FLG_TEXT = ' ' "'X' - Text of commt item selected
* I_FLG_HIERARCHY = ' ' "'X' - Hierarchy selected
TABLES
* R_CMMTITEM = "Structure of a Range Table for a 24 Character Field
* E_T_FMCIT = "Cmmt item text
E_T_FMCI = "Commitment item
* E_T_FMHICI = "Commitment items hierarchy
EXCEPTIONS
MASTER_DATA_NOT_FOUND = 1 HIERARCHY_DATA_NOT_FOUND = 2 INPUT_ERROR = 3 BUDGETING_DATA_NOT_FOUND = 4
IMPORTING Parameters details for FMKU_COM_ITEM_READ_MULTIPLE
I_FM_AREA - Financial management area
Data type: FIKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_FISCYEAR - Fiscal year
Data type: GJAHROptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_ONLY_POSTABLE - 'X' - Postable Cmmt item selected
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_ONLY_NON_POSTABLE - 'X' - Non postable Cmmt item selected
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_TEXT - 'X' - Text of commt item selected
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_HIERARCHY - 'X' - Hierarchy selected
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FMKU_COM_ITEM_READ_MULTIPLE
R_CMMTITEM - Structure of a Range Table for a 24 Character Field
Data type: RANGE_C24Optional: Yes
Call by Reference: Yes
E_T_FMCIT - Cmmt item text
Data type: FMCITOptional: Yes
Call by Reference: Yes
E_T_FMCI - Commitment item
Data type: FMCIOptional: No
Call by Reference: Yes
E_T_FMHICI - Commitment items hierarchy
Data type: FMHICIOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
MASTER_DATA_NOT_FOUND - Master data not found
Data type:Optional: No
Call by Reference: Yes
HIERARCHY_DATA_NOT_FOUND - Hierarchy data not founr
Data type:Optional: No
Call by Reference: Yes
INPUT_ERROR - Error on input parameters
Data type:Optional: No
Call by Reference: Yes
BUDGETING_DATA_NOT_FOUND - Budgeting data not found
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMKU_COM_ITEM_READ_MULTIPLE 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_i_fm_area | TYPE FIKRS, " | |||
| lt_r_cmmtitem | TYPE STANDARD TABLE OF RANGE_C24, " | |||
| lv_master_data_not_found | TYPE RANGE_C24, " | |||
| lt_e_t_fmcit | TYPE STANDARD TABLE OF FMCIT, " | |||
| lv_i_fiscyear | TYPE GJAHR, " | |||
| lv_hierarchy_data_not_found | TYPE GJAHR, " | |||
| lt_e_t_fmci | TYPE STANDARD TABLE OF FMCI, " | |||
| lv_input_error | TYPE FMCI, " | |||
| lv_i_flg_only_postable | TYPE XFELD, " | |||
| lt_e_t_fmhici | TYPE STANDARD TABLE OF FMHICI, " | |||
| lv_i_flg_only_non_postable | TYPE XFELD, " | |||
| lv_budgeting_data_not_found | TYPE XFELD, " | |||
| lv_i_flg_text | TYPE XFELD, " SPACE | |||
| lv_i_flg_hierarchy | TYPE XFELD. " SPACE |
|   CALL FUNCTION 'FMKU_COM_ITEM_READ_MULTIPLE' "Read & check commitment item for budgeting |
| EXPORTING | ||
| I_FM_AREA | = lv_i_fm_area | |
| I_FISCYEAR | = lv_i_fiscyear | |
| I_FLG_ONLY_POSTABLE | = lv_i_flg_only_postable | |
| I_FLG_ONLY_NON_POSTABLE | = lv_i_flg_only_non_postable | |
| I_FLG_TEXT | = lv_i_flg_text | |
| I_FLG_HIERARCHY | = lv_i_flg_hierarchy | |
| TABLES | ||
| R_CMMTITEM | = lt_r_cmmtitem | |
| E_T_FMCIT | = lt_e_t_fmcit | |
| E_T_FMCI | = lt_e_t_fmci | |
| E_T_FMHICI | = lt_e_t_fmhici | |
| EXCEPTIONS | ||
| MASTER_DATA_NOT_FOUND = 1 | ||
| HIERARCHY_DATA_NOT_FOUND = 2 | ||
| INPUT_ERROR = 3 | ||
| BUDGETING_DATA_NOT_FOUND = 4 | ||
| . " FMKU_COM_ITEM_READ_MULTIPLE | ||
ABAP code using 7.40 inline data declarations to call FM FMKU_COM_ITEM_READ_MULTIPLE
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.| DATA(ld_i_flg_text) | = ' '. | |||
| DATA(ld_i_flg_hierarchy) | = ' '. | |||
Search for further information about these or an SAP related objects