SAP LOAN_CREATE_BEPP Function Module for Create a Planning Record for the Allocation of Debit-Side Items
LOAN_CREATE_BEPP is a standard loan create bepp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create a Planning Record for the Allocation of Debit-Side Items 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 loan create bepp FM, simply by entering the name LOAN_CREATE_BEPP into the relevant SAP transaction such as SE37 or SE38.
Function Group: TRDB
Program Name: SAPLTRDB
Main Program: SAPLTRDB
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LOAN_CREATE_BEPP 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 'LOAN_CREATE_BEPP'"Create a Planning Record for the Allocation of Debit-Side Items.
EXPORTING
I_BUKRS = "
* I_SGTXT = "
I_DVALUT = "
I_REHER = "
I_AMOUNT = "
I_WAERS = "
* I_AMOUNT_LC = "
* I_VBEWA = "Flow Type
* I_VZFGD = "
I_VERTT = "
I_VERTN = "
I_SBEATYP = "
I_SVORGANG = "
* I_DTRANSREF = "
* I_TTRANSREF = "
* I_NTRANSREF = "
* I_NVORGANG = "
IMPORTING
ES_NEW_BEPP = "
EXCEPTIONS
TZB0A_ENTRY_MISSING = 1 TDB1_ENTRY_MISSING = 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_SAPLTRDB_001 User-Exit segement text for transfer in FI documents
IMPORTING Parameters details for LOAN_CREATE_BEPP
I_BUKRS -
Data type: T001-BUKRSOptional: No
Call by Reference: No ( called with pass by value option)
I_SGTXT -
Data type: VDBEPP-SGTXTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DVALUT -
Data type: VDBEPP-DVALUTOptional: No
Call by Reference: No ( called with pass by value option)
I_REHER -
Data type: VDBEPP-REHEROptional: No
Call by Reference: No ( called with pass by value option)
I_AMOUNT -
Data type: BSEG-WRBTROptional: No
Call by Reference: No ( called with pass by value option)
I_WAERS -
Data type: BKPF-WAERSOptional: No
Call by Reference: No ( called with pass by value option)
I_AMOUNT_LC -
Data type: BSEG-DMBTROptional: Yes
Call by Reference: No ( called with pass by value option)
I_VBEWA - Flow Type
Data type: BSEG-VBEWAOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VZFGD -
Data type: VZFGDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_VERTT -
Data type: BSEG-VERTTOptional: No
Call by Reference: No ( called with pass by value option)
I_VERTN -
Data type: BSEG-VERTNOptional: No
Call by Reference: No ( called with pass by value option)
I_SBEATYP -
Data type: TDB1-SBEATYPOptional: No
Call by Reference: No ( called with pass by value option)
I_SVORGANG -
Data type: VDBEPP-SVORGANGOptional: No
Call by Reference: No ( called with pass by value option)
I_DTRANSREF -
Data type: VDBEPP-DTRANSREFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_TTRANSREF -
Data type: VDBEPP-TTRANSREFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NTRANSREF -
Data type: VDBEPP-NTRANSREFOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NVORGANG -
Data type: VDBEPP-NVORGANGOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LOAN_CREATE_BEPP
ES_NEW_BEPP -
Data type: VDBEPPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
TZB0A_ENTRY_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TDB1_ENTRY_MISSING -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LOAN_CREATE_BEPP 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_bukrs | TYPE T001-BUKRS, " | |||
| lv_es_new_bepp | TYPE VDBEPP, " | |||
| lv_tzb0a_entry_missing | TYPE VDBEPP, " | |||
| lv_i_sgtxt | TYPE VDBEPP-SGTXT, " | |||
| lv_i_dvalut | TYPE VDBEPP-DVALUT, " | |||
| lv_i_reher | TYPE VDBEPP-REHER, " | |||
| lv_i_amount | TYPE BSEG-WRBTR, " | |||
| lv_i_waers | TYPE BKPF-WAERS, " | |||
| lv_i_amount_lc | TYPE BSEG-DMBTR, " | |||
| lv_i_vbewa | TYPE BSEG-VBEWA, " | |||
| lv_i_vzfgd | TYPE VZFGD, " | |||
| lv_i_vertt | TYPE BSEG-VERTT, " | |||
| lv_tdb1_entry_missing | TYPE BSEG, " | |||
| lv_i_vertn | TYPE BSEG-VERTN, " | |||
| lv_i_sbeatyp | TYPE TDB1-SBEATYP, " | |||
| lv_i_svorgang | TYPE VDBEPP-SVORGANG, " | |||
| lv_i_dtransref | TYPE VDBEPP-DTRANSREF, " | |||
| lv_i_ttransref | TYPE VDBEPP-TTRANSREF, " | |||
| lv_i_ntransref | TYPE VDBEPP-NTRANSREF, " | |||
| lv_i_nvorgang | TYPE VDBEPP-NVORGANG. " |
|   CALL FUNCTION 'LOAN_CREATE_BEPP' "Create a Planning Record for the Allocation of Debit-Side Items |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_SGTXT | = lv_i_sgtxt | |
| I_DVALUT | = lv_i_dvalut | |
| I_REHER | = lv_i_reher | |
| I_AMOUNT | = lv_i_amount | |
| I_WAERS | = lv_i_waers | |
| I_AMOUNT_LC | = lv_i_amount_lc | |
| I_VBEWA | = lv_i_vbewa | |
| I_VZFGD | = lv_i_vzfgd | |
| I_VERTT | = lv_i_vertt | |
| I_VERTN | = lv_i_vertn | |
| I_SBEATYP | = lv_i_sbeatyp | |
| I_SVORGANG | = lv_i_svorgang | |
| I_DTRANSREF | = lv_i_dtransref | |
| I_TTRANSREF | = lv_i_ttransref | |
| I_NTRANSREF | = lv_i_ntransref | |
| I_NVORGANG | = lv_i_nvorgang | |
| IMPORTING | ||
| ES_NEW_BEPP | = lv_es_new_bepp | |
| EXCEPTIONS | ||
| TZB0A_ENTRY_MISSING = 1 | ||
| TDB1_ENTRY_MISSING = 2 | ||
| . " LOAN_CREATE_BEPP | ||
ABAP code using 7.40 inline data declarations to call FM LOAN_CREATE_BEPP
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 BUKRS FROM T001 INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single SGTXT FROM VDBEPP INTO @DATA(ld_i_sgtxt). | ||||
| "SELECT single DVALUT FROM VDBEPP INTO @DATA(ld_i_dvalut). | ||||
| "SELECT single REHER FROM VDBEPP INTO @DATA(ld_i_reher). | ||||
| "SELECT single WRBTR FROM BSEG INTO @DATA(ld_i_amount). | ||||
| "SELECT single WAERS FROM BKPF INTO @DATA(ld_i_waers). | ||||
| "SELECT single DMBTR FROM BSEG INTO @DATA(ld_i_amount_lc). | ||||
| "SELECT single VBEWA FROM BSEG INTO @DATA(ld_i_vbewa). | ||||
| "SELECT single VERTT FROM BSEG INTO @DATA(ld_i_vertt). | ||||
| "SELECT single VERTN FROM BSEG INTO @DATA(ld_i_vertn). | ||||
| "SELECT single SBEATYP FROM TDB1 INTO @DATA(ld_i_sbeatyp). | ||||
| "SELECT single SVORGANG FROM VDBEPP INTO @DATA(ld_i_svorgang). | ||||
| "SELECT single DTRANSREF FROM VDBEPP INTO @DATA(ld_i_dtransref). | ||||
| "SELECT single TTRANSREF FROM VDBEPP INTO @DATA(ld_i_ttransref). | ||||
| "SELECT single NTRANSREF FROM VDBEPP INTO @DATA(ld_i_ntransref). | ||||
| "SELECT single NVORGANG FROM VDBEPP INTO @DATA(ld_i_nvorgang). | ||||
Search for further information about these or an SAP related objects