SAP TR_LOAN_CREATE_PAYMENT_USAGE Function Module for Wrapper for 'create_bepp_payment_usage'









TR_LOAN_CREATE_PAYMENT_USAGE is a standard tr loan create payment usage SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Wrapper for 'create_bepp_payment_usage' 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 tr loan create payment usage FM, simply by entering the name TR_LOAN_CREATE_PAYMENT_USAGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: TRDZ
Program Name: SAPLTRDZ
Main Program: SAPLTRDZ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function TR_LOAN_CREATE_PAYMENT_USAGE 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 'TR_LOAN_CREATE_PAYMENT_USAGE'"Wrapper for 'create_bepp_payment_usage'
EXPORTING
I_NVORGANG = "Transaction Number
I_AMOUNT_USED = "Amount in Position Currency
* I_ORG_AMOUNT = "Amount in Document Currency
* I_ORG_AMOUNT_LC = "Amount in Local Currency

CHANGING
C_TAB_POSTVDBEPP = "Table Type for Table VDBEPP
C_TAB_POSTADDBEPP = "Table Type for Table ADDBEPP
C_STR_OPZNB = "TR-LO: Open Items Payment Postprocessing
C_STR_VDZNV = "Payment Postprocessing Clearing Data: Module Pool TRDZ
C_HKONT = "G/L Account
* C_TAB_POSTADDBEPP_ADD = "Table Type for ADDBEPP_ADD

EXCEPTIONS
INCONSISTENCY_ERROR = 1
.



IMPORTING Parameters details for TR_LOAN_CREATE_PAYMENT_USAGE

I_NVORGANG - Transaction Number

Data type: VDBEPP-NVORGANG
Optional: No
Call by Reference: Yes

I_AMOUNT_USED - Amount in Position Currency

Data type: VDBEPP-BBWHR
Optional: No
Call by Reference: Yes

I_ORG_AMOUNT - Amount in Document Currency

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

I_ORG_AMOUNT_LC - Amount in Local Currency

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

CHANGING Parameters details for TR_LOAN_CREATE_PAYMENT_USAGE

C_TAB_POSTVDBEPP - Table Type for Table VDBEPP

Data type: TRTY_VDBEPP
Optional: No
Call by Reference: Yes

C_TAB_POSTADDBEPP - Table Type for Table ADDBEPP

Data type: TRTY_ADDBEPP
Optional: No
Call by Reference: Yes

C_STR_OPZNB - TR-LO: Open Items Payment Postprocessing

Data type: OPZNB
Optional: No
Call by Reference: Yes

C_STR_VDZNV - Payment Postprocessing Clearing Data: Module Pool TRDZ

Data type: VDZNV
Optional: No
Call by Reference: Yes

C_HKONT - G/L Account

Data type: BSID-HKONT
Optional: No
Call by Reference: Yes

C_TAB_POSTADDBEPP_ADD - Table Type for ADDBEPP_ADD

Data type: TRTY_ADDBEPP_ADD
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

INCONSISTENCY_ERROR - Inconsistent status

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for TR_LOAN_CREATE_PAYMENT_USAGE 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_nvorgang  TYPE VDBEPP-NVORGANG, "   
lv_c_tab_postvdbepp  TYPE TRTY_VDBEPP, "   
lv_inconsistency_error  TYPE TRTY_VDBEPP, "   
lv_i_amount_used  TYPE VDBEPP-BBWHR, "   
lv_c_tab_postaddbepp  TYPE TRTY_ADDBEPP, "   
lv_c_str_opznb  TYPE OPZNB, "   
lv_i_org_amount  TYPE BSEG-WRBTR, "   
lv_c_str_vdznv  TYPE VDZNV, "   
lv_i_org_amount_lc  TYPE BSEG-DMBTR, "   
lv_c_hkont  TYPE BSID-HKONT, "   
lv_c_tab_postaddbepp_add  TYPE TRTY_ADDBEPP_ADD. "   

  CALL FUNCTION 'TR_LOAN_CREATE_PAYMENT_USAGE'  "Wrapper for 'create_bepp_payment_usage'
    EXPORTING
         I_NVORGANG = lv_i_nvorgang
         I_AMOUNT_USED = lv_i_amount_used
         I_ORG_AMOUNT = lv_i_org_amount
         I_ORG_AMOUNT_LC = lv_i_org_amount_lc
    CHANGING
         C_TAB_POSTVDBEPP = lv_c_tab_postvdbepp
         C_TAB_POSTADDBEPP = lv_c_tab_postaddbepp
         C_STR_OPZNB = lv_c_str_opznb
         C_STR_VDZNV = lv_c_str_vdznv
         C_HKONT = lv_c_hkont
         C_TAB_POSTADDBEPP_ADD = lv_c_tab_postaddbepp_add
    EXCEPTIONS
        INCONSISTENCY_ERROR = 1
. " TR_LOAN_CREATE_PAYMENT_USAGE




ABAP code using 7.40 inline data declarations to call FM TR_LOAN_CREATE_PAYMENT_USAGE

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 NVORGANG FROM VDBEPP INTO @DATA(ld_i_nvorgang).
 
 
 
"SELECT single BBWHR FROM VDBEPP INTO @DATA(ld_i_amount_used).
 
 
 
"SELECT single WRBTR FROM BSEG INTO @DATA(ld_i_org_amount).
 
 
"SELECT single DMBTR FROM BSEG INTO @DATA(ld_i_org_amount_lc).
 
"SELECT single HKONT FROM BSID INTO @DATA(ld_c_hkont).
 
 


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!