SAP FMKL_GET_TABLES Function Module for Read classification search results
FMKL_GET_TABLES is a standard fmkl get tables 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 classification search results 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 fmkl get tables FM, simply by entering the name FMKL_GET_TABLES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMKL
Program Name: SAPLFMKL
Main Program:
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMKL_GET_TABLES 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 'FMKL_GET_TABLES'"Read classification search results.
EXPORTING
* I_FIKRS = "FM area
* I_GJAHR = '0000' "
* I_ALL_FIKRS = ' ' "Read non-FM area-dependent
* I_PPLAN = "
* I_ALL_PPLAN = ' ' "
IMPORTING
E_FIND_FMFCPO = "
E_FIND_FMFCTR = "
E_FIND_FMFINCODE = "
E_FIND_FMFPO = "
E_FIND_FMPP = "
E_FIND_FMCI = "
E_OK = "
TABLES
* T_FMFCTR = "
* T_FMFINCODE = "
* T_FMFPO = "
* T_FMPP = "
* T_FMCI = "
IMPORTING Parameters details for FMKL_GET_TABLES
I_FIKRS - FM area
Data type: FM01-FIKRSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_GJAHR -
Data type: FMPG-GJAHRDefault: '0000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_ALL_FIKRS - Read non-FM area-dependent
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PPLAN -
Data type: FMPP-PPLANOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ALL_PPLAN -
Data type: FMDY-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FMKL_GET_TABLES
E_FIND_FMFCPO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_FIND_FMFCTR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_FIND_FMFINCODE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_FIND_FMFPO -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_FIND_FMPP -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
E_FIND_FMCI -
Data type:Optional: No
Call by Reference: Yes
E_OK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FMKL_GET_TABLES
T_FMFCTR -
Data type: FMFCTROptional: Yes
Call by Reference: No ( called with pass by value option)
T_FMFINCODE -
Data type: FMFINCODEOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FMFPO -
Data type: FMFPOOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FMPP -
Data type: FMPPOptional: Yes
Call by Reference: No ( called with pass by value option)
T_FMCI -
Data type: FMCIOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for FMKL_GET_TABLES 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_fikrs | TYPE FM01-FIKRS, " | |||
| lt_t_fmfctr | TYPE STANDARD TABLE OF FMFCTR, " | |||
| lv_e_find_fmfcpo | TYPE FMFCTR, " | |||
| lv_i_gjahr | TYPE FMPG-GJAHR, " '0000' | |||
| lt_t_fmfincode | TYPE STANDARD TABLE OF FMFINCODE, " | |||
| lv_e_find_fmfctr | TYPE FMFINCODE, " | |||
| lt_t_fmfpo | TYPE STANDARD TABLE OF FMFPO, " | |||
| lv_i_all_fikrs | TYPE FMDY-XFELD, " SPACE | |||
| lv_e_find_fmfincode | TYPE FMDY, " | |||
| lt_t_fmpp | TYPE STANDARD TABLE OF FMPP, " | |||
| lv_i_pplan | TYPE FMPP-PPLAN, " | |||
| lv_e_find_fmfpo | TYPE FMPP, " | |||
| lt_t_fmci | TYPE STANDARD TABLE OF FMCI, " | |||
| lv_e_find_fmpp | TYPE FMCI, " | |||
| lv_i_all_pplan | TYPE FMDY-XFELD, " SPACE | |||
| lv_e_find_fmci | TYPE FMDY, " | |||
| lv_e_ok | TYPE FMDY. " |
|   CALL FUNCTION 'FMKL_GET_TABLES' "Read classification search results |
| EXPORTING | ||
| I_FIKRS | = lv_i_fikrs | |
| I_GJAHR | = lv_i_gjahr | |
| I_ALL_FIKRS | = lv_i_all_fikrs | |
| I_PPLAN | = lv_i_pplan | |
| I_ALL_PPLAN | = lv_i_all_pplan | |
| IMPORTING | ||
| E_FIND_FMFCPO | = lv_e_find_fmfcpo | |
| E_FIND_FMFCTR | = lv_e_find_fmfctr | |
| E_FIND_FMFINCODE | = lv_e_find_fmfincode | |
| E_FIND_FMFPO | = lv_e_find_fmfpo | |
| E_FIND_FMPP | = lv_e_find_fmpp | |
| E_FIND_FMCI | = lv_e_find_fmci | |
| E_OK | = lv_e_ok | |
| TABLES | ||
| T_FMFCTR | = lt_t_fmfctr | |
| T_FMFINCODE | = lt_t_fmfincode | |
| T_FMFPO | = lt_t_fmfpo | |
| T_FMPP | = lt_t_fmpp | |
| T_FMCI | = lt_t_fmci | |
| . " FMKL_GET_TABLES | ||
ABAP code using 7.40 inline data declarations to call FM FMKL_GET_TABLES
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 FIKRS FROM FM01 INTO @DATA(ld_i_fikrs). | ||||
| "SELECT single GJAHR FROM FMPG INTO @DATA(ld_i_gjahr). | ||||
| DATA(ld_i_gjahr) | = '0000'. | |||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_all_fikrs). | ||||
| DATA(ld_i_all_fikrs) | = ' '. | |||
| "SELECT single PPLAN FROM FMPP INTO @DATA(ld_i_pplan). | ||||
| "SELECT single XFELD FROM FMDY INTO @DATA(ld_i_all_pplan). | ||||
| DATA(ld_i_all_pplan) | = ' '. | |||
Search for further information about these or an SAP related objects