SAP EXIT_RFEBLB20_002 Function Module for Lockbox: Add prefix/suffix to document number or reference number
EXIT_RFEBLB20_002 is a standard exit rfeblb20 002 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Lockbox: Add prefix/suffix to document number or reference number 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 exit rfeblb20 002 FM, simply by entering the name EXIT_RFEBLB20_002 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XF01
Program Name: SAPLXF01
Main Program:
Appliation area: F
Release date: 07-Nov-1995
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_RFEBLB20_002 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 'EXIT_RFEBLB20_002'"Lockbox: Add prefix/suffix to document number or reference number.
EXPORTING
I_KUNNR = "Customer number
I_SFELD = "Field name (BELNR - Document number XBLNR- Reference document number)
I_SWERT = "Invoice number (document number, reference document number)
I_BUKRS = "
IMPORTING
E_KUNNR = "Customer number
E_SFELD = "Field name (BELNR - Document number XBLNR- Reference document number)
E_SWERT = "Invoice number (document number, reference document number)
E_BUKRS = "
IMPORTING Parameters details for EXIT_RFEBLB20_002
I_KUNNR - Customer number
Data type: FEBEP-AVKONOptional: No
Call by Reference: No ( called with pass by value option)
I_SFELD - Field name (BELNR - Document number XBLNR- Reference document number)
Data type: AVIP-SFELDOptional: No
Call by Reference: No ( called with pass by value option)
I_SWERT - Invoice number (document number, reference document number)
Data type: AVIP-SWERTOptional: No
Call by Reference: No ( called with pass by value option)
I_BUKRS -
Data type: AVIP-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for EXIT_RFEBLB20_002
E_KUNNR - Customer number
Data type: FEBEP-AVKONOptional: No
Call by Reference: No ( called with pass by value option)
E_SFELD - Field name (BELNR - Document number XBLNR- Reference document number)
Data type: AVIP-SFELDOptional: No
Call by Reference: No ( called with pass by value option)
E_SWERT - Invoice number (document number, reference document number)
Data type: AVIP-SWERTOptional: No
Call by Reference: No ( called with pass by value option)
E_BUKRS -
Data type: AVIP-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_RFEBLB20_002 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_kunnr | TYPE FEBEP-AVKON, " | |||
| lv_i_kunnr | TYPE FEBEP-AVKON, " | |||
| lv_e_sfeld | TYPE AVIP-SFELD, " | |||
| lv_i_sfeld | TYPE AVIP-SFELD, " | |||
| lv_e_swert | TYPE AVIP-SWERT, " | |||
| lv_i_swert | TYPE AVIP-SWERT, " | |||
| lv_e_bukrs | TYPE AVIP-BUKRS, " | |||
| lv_i_bukrs | TYPE AVIP-BUKRS. " |
|   CALL FUNCTION 'EXIT_RFEBLB20_002' "Lockbox: Add prefix/suffix to document number or reference number |
| EXPORTING | ||
| I_KUNNR | = lv_i_kunnr | |
| I_SFELD | = lv_i_sfeld | |
| I_SWERT | = lv_i_swert | |
| I_BUKRS | = lv_i_bukrs | |
| IMPORTING | ||
| E_KUNNR | = lv_e_kunnr | |
| E_SFELD | = lv_e_sfeld | |
| E_SWERT | = lv_e_swert | |
| E_BUKRS | = lv_e_bukrs | |
| . " EXIT_RFEBLB20_002 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_RFEBLB20_002
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 AVKON FROM FEBEP INTO @DATA(ld_e_kunnr). | ||||
| "SELECT single AVKON FROM FEBEP INTO @DATA(ld_i_kunnr). | ||||
| "SELECT single SFELD FROM AVIP INTO @DATA(ld_e_sfeld). | ||||
| "SELECT single SFELD FROM AVIP INTO @DATA(ld_i_sfeld). | ||||
| "SELECT single SWERT FROM AVIP INTO @DATA(ld_e_swert). | ||||
| "SELECT single SWERT FROM AVIP INTO @DATA(ld_i_swert). | ||||
| "SELECT single BUKRS FROM AVIP INTO @DATA(ld_e_bukrs). | ||||
| "SELECT single BUKRS FROM AVIP INTO @DATA(ld_i_bukrs). | ||||
Search for further information about these or an SAP related objects