SAP FMFR_READ_KBLP Function Module for
FMFR_READ_KBLP is a standard fmfr read kblp 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 fmfr read kblp FM, simply by entering the name FMFR_READ_KBLP into the relevant SAP transaction such as SE37 or SE38.
Function Group: FMFR
Program Name: SAPLFMFR
Main Program: SAPLFMFR
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FMFR_READ_KBLP 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 'FMFR_READ_KBLP'".
EXPORTING
* I_BELNR = "
* I_BLPOS = "
* I_VRGNG = "Business Transaction
* I_EF_GROUP_NUMBER = "Grouping Number for Earmarked Funds
* I_FLAG_BELNR_NOT_PROVIDED = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
* I_EXCLUDE_COMPLETE_LINES = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IMPORTING
E_KBLK = "Document header
TABLES
T_KBLP = "Line Item
EXCEPTIONS
NOT_FOUND = 1 ILLEGAL_CALL = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFMFR_001 Earmarked Funds: PBO Initial Screen
EXIT_SAPLFMFR_002 Earmarked Funds: PAI Initial Screen, All Data Read
EXIT_SAPLFMFR_003 Earmarked Funds: PAI, Checking of Item on Overview and Detail Screen
EXIT_SAPLFMFR_004 Earmarked Funds: PAI, Total Documents Check (Also Before Saving)
EXIT_SAPLFMFR_005 Earmarked Funds: PBO for Every Line, for Example, Field Control (2)
EXIT_SAPLFMFR_006 Earmarked Funds: PBO for Every Line, for example, Field Control (1)
EXIT_SAPLFMFR_007 Earmarked Funds: Conditions for Workflow Restart
EXIT_SAPLFMFR_008 Earmarked Funds: Function Code Processing in Overview Screen
EXIT_SAPLFMFR_009 Earmarked Fund: Function Code Processing in Detail Screen
EXIT_SAPLFMFR_010 Earmarked Fund: Update of Data in Database
IMPORTING Parameters details for FMFR_READ_KBLP
I_BELNR -
Data type: KBLP-BELNROptional: Yes
Call by Reference: No ( called with pass by value option)
I_BLPOS -
Data type: KBLP-BLPOSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VRGNG - Business Transaction
Data type: KBLP-VRGNGOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EF_GROUP_NUMBER - Grouping Number for Earmarked Funds
Data type: KBLP-EF_GROUP_NUMBEROptional: Yes
Call by Reference: No ( called with pass by value option)
I_FLAG_BELNR_NOT_PROVIDED - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_EXCLUDE_COMPLETE_LINES - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FMFR_READ_KBLP
E_KBLK - Document header
Data type: KBLKOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for FMFR_READ_KBLP
T_KBLP - Line Item
Data type: KBLPOptional: No
Call by Reference: Yes
EXCEPTIONS details
NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_CALL -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FMFR_READ_KBLP 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_kblk | TYPE KBLK, " | |||
| lt_t_kblp | TYPE STANDARD TABLE OF KBLP, " | |||
| lv_i_belnr | TYPE KBLP-BELNR, " | |||
| lv_not_found | TYPE KBLP, " | |||
| lv_i_blpos | TYPE KBLP-BLPOS, " | |||
| lv_illegal_call | TYPE KBLP, " | |||
| lv_i_vrgng | TYPE KBLP-VRGNG, " | |||
| lv_i_ef_group_number | TYPE KBLP-EF_GROUP_NUMBER, " | |||
| lv_i_flag_belnr_not_provided | TYPE BOOLE-BOOLE, " | |||
| lv_i_exclude_complete_lines | TYPE BOOLE-BOOLE. " |
|   CALL FUNCTION 'FMFR_READ_KBLP' " |
| EXPORTING | ||
| I_BELNR | = lv_i_belnr | |
| I_BLPOS | = lv_i_blpos | |
| I_VRGNG | = lv_i_vrgng | |
| I_EF_GROUP_NUMBER | = lv_i_ef_group_number | |
| I_FLAG_BELNR_NOT_PROVIDED | = lv_i_flag_belnr_not_provided | |
| I_EXCLUDE_COMPLETE_LINES | = lv_i_exclude_complete_lines | |
| IMPORTING | ||
| E_KBLK | = lv_e_kblk | |
| TABLES | ||
| T_KBLP | = lt_t_kblp | |
| EXCEPTIONS | ||
| NOT_FOUND = 1 | ||
| ILLEGAL_CALL = 2 | ||
| . " FMFR_READ_KBLP | ||
ABAP code using 7.40 inline data declarations to call FM FMFR_READ_KBLP
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 BELNR FROM KBLP INTO @DATA(ld_i_belnr). | ||||
| "SELECT single BLPOS FROM KBLP INTO @DATA(ld_i_blpos). | ||||
| "SELECT single VRGNG FROM KBLP INTO @DATA(ld_i_vrgng). | ||||
| "SELECT single EF_GROUP_NUMBER FROM KBLP INTO @DATA(ld_i_ef_group_number). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_flag_belnr_not_provided). | ||||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_exclude_complete_lines). | ||||
Search for further information about these or an SAP related objects