SAP LOAN_CREATE_CLEAR_BEPP_GL Function Module for Create a Planning Record to Clear G/L Account Items









LOAN_CREATE_CLEAR_BEPP_GL is a standard loan create clear bepp gl 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 to Clear G/L Account 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 clear bepp gl FM, simply by entering the name LOAN_CREATE_CLEAR_BEPP_GL 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_CLEAR_BEPP_GL 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_CLEAR_BEPP_GL'"Create a Planning Record to Clear G/L Account Items
EXPORTING
I_SVORGANG = "
I_SBEATYP = "
I_HKONT = "
I_NVORGANG = "
* I_SGTXT = "
I_DVALUT = "
I_REHER = "
I_AMOUNT = "Amount in Document Currency
I_WAERS = "
I_SRANTYP = "
I_BUKRS = "

IMPORTING
ES_AUSGL_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_CLEAR_BEPP_GL

I_SVORGANG -

Data type: VDBEPP-SVORGANG
Optional: No
Call by Reference: No ( called with pass by value option)

I_SBEATYP -

Data type: TDB1-SBEATYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_HKONT -

Data type: BSEG-HKONT
Optional: No
Call by Reference: No ( called with pass by value option)

I_NVORGANG -

Data type: VDBEPP-NVORGANG
Optional: No
Call by Reference: No ( called with pass by value option)

I_SGTXT -

Data type: VDBEPP-SGTXT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DVALUT -

Data type: VDBEPP-DVALUT
Optional: No
Call by Reference: No ( called with pass by value option)

I_REHER -

Data type: VDBEPP-REHER
Optional: No
Call by Reference: No ( called with pass by value option)

I_AMOUNT - Amount in Document Currency

Data type: BSEG-WRBTR
Optional: No
Call by Reference: No ( called with pass by value option)

I_WAERS -

Data type: BKPF-WAERS
Optional: No
Call by Reference: No ( called with pass by value option)

I_SRANTYP -

Data type: TDB1-SRANTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_BUKRS -

Data type: TDB1-BUKRS
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for LOAN_CREATE_CLEAR_BEPP_GL

ES_AUSGL_BEPP -

Data type: VDBEPP
Optional: 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_CLEAR_BEPP_GL 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_svorgang  TYPE VDBEPP-SVORGANG, "   
lv_es_ausgl_bepp  TYPE VDBEPP, "   
lv_tzb0a_entry_missing  TYPE VDBEPP, "   
lv_i_sbeatyp  TYPE TDB1-SBEATYP, "   
lv_i_hkont  TYPE BSEG-HKONT, "   
lv_i_nvorgang  TYPE VDBEPP-NVORGANG, "   
lv_tdb1_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_srantyp  TYPE TDB1-SRANTYP, "   
lv_i_bukrs  TYPE TDB1-BUKRS. "   

  CALL FUNCTION 'LOAN_CREATE_CLEAR_BEPP_GL'  "Create a Planning Record to Clear G/L Account Items
    EXPORTING
         I_SVORGANG = lv_i_svorgang
         I_SBEATYP = lv_i_sbeatyp
         I_HKONT = lv_i_hkont
         I_NVORGANG = lv_i_nvorgang
         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_SRANTYP = lv_i_srantyp
         I_BUKRS = lv_i_bukrs
    IMPORTING
         ES_AUSGL_BEPP = lv_es_ausgl_bepp
    EXCEPTIONS
        TZB0A_ENTRY_MISSING = 1
        TDB1_ENTRY_MISSING = 2
. " LOAN_CREATE_CLEAR_BEPP_GL




ABAP code using 7.40 inline data declarations to call FM LOAN_CREATE_CLEAR_BEPP_GL

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 SVORGANG FROM VDBEPP INTO @DATA(ld_i_svorgang).
 
 
 
"SELECT single SBEATYP FROM TDB1 INTO @DATA(ld_i_sbeatyp).
 
"SELECT single HKONT FROM BSEG INTO @DATA(ld_i_hkont).
 
"SELECT single NVORGANG FROM VDBEPP INTO @DATA(ld_i_nvorgang).
 
 
"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 SRANTYP FROM TDB1 INTO @DATA(ld_i_srantyp).
 
"SELECT single BUKRS FROM TDB1 INTO @DATA(ld_i_bukrs).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!