SAP FVD_TRLE_TRLEDGER_GET_LOANDATA Function Module for Loan: Determine Loan Data for a Contract for the TR Ledger









FVD_TRLE_TRLEDGER_GET_LOANDATA is a standard fvd trle trledger get loandata SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Loan: Determine Loan Data for a Contract for the TR Ledger 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 fvd trle trledger get loandata FM, simply by entering the name FVD_TRLE_TRLEDGER_GET_LOANDATA into the relevant SAP transaction such as SE37 or SE38.

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



Function FVD_TRLE_TRLEDGER_GET_LOANDATA 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 'FVD_TRLE_TRLEDGER_GET_LOANDATA'"Loan: Determine Loan Data for a Contract for the TR Ledger
EXPORTING
I_BUKRS = "Company Code
I_RANL = "Contract Number
* I_DSETDATE = "Stichtag (inklusiv)

IMPORTING
E_DELFZ = "End of Loan Term
E_FLG_RATE_ANNUI = "Tilgungsart: 'X' = Annuität oder Rate
E_VDARL = "Loan
E_SKALIDWT = "Factory Calendar for Interest Calculation
E_DKUEND = "Kündigungsdatum des Darlehens
E_KELFZ = "Rückzahlungskurs zum Laufzeitende
E_KKUEND = "Kündigungskurs zum Kündigungsdatum
E_SANTWHR = "Contract Currency
E_DBLFZ = "Laufzeitbeginn des Darlehens
E_COM_VAL_CLASS = "General Valuation Class
E_SZBMETH = "Interest calculation method
E_STILGART = "Repayment Type Indicator

EXCEPTIONS
CONTRACT_NOT_FOUND = 1 COMPANY_CODE_NOT_FOUND = 2 KEYDATE_NOT_QUALIFIED = 3
.



IMPORTING Parameters details for FVD_TRLE_TRLEDGER_GET_LOANDATA

I_BUKRS - Company Code

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

I_RANL - Contract Number

Data type: RANL
Optional: No
Call by Reference: No ( called with pass by value option)

I_DSETDATE - Stichtag (inklusiv)

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

EXPORTING Parameters details for FVD_TRLE_TRLEDGER_GET_LOANDATA

E_DELFZ - End of Loan Term

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

E_FLG_RATE_ANNUI - Tilgungsart: 'X' = Annuität oder Rate

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

E_VDARL - Loan

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

E_SKALIDWT - Factory Calendar for Interest Calculation

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

E_DKUEND - Kündigungsdatum des Darlehens

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

E_KELFZ - Rückzahlungskurs zum Laufzeitende

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

E_KKUEND - Kündigungskurs zum Kündigungsdatum

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

E_SANTWHR - Contract Currency

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

E_DBLFZ - Laufzeitbeginn des Darlehens

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

E_COM_VAL_CLASS - General Valuation Class

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

E_SZBMETH - Interest calculation method

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

E_STILGART - Repayment Type Indicator

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

EXCEPTIONS details

CONTRACT_NOT_FOUND - Unable to find loan &1 in company code &2

Data type:
Optional: No
Call by Reference: Yes

COMPANY_CODE_NOT_FOUND - Company code & does not exist

Data type:
Optional: No
Call by Reference: Yes

KEYDATE_NOT_QUALIFIED - Key date missing

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FVD_TRLE_TRLEDGER_GET_LOANDATA 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_delfz  TYPE DENDLFZ, "   
lv_i_bukrs  TYPE BUKRS, "   
lv_contract_not_found  TYPE BUKRS, "   
lv_e_flg_rate_annui  TYPE CHAR1, "   
lv_e_vdarl  TYPE VDARL, "   
lv_e_skalidwt  TYPE TFMSKALIDWT, "   
lv_i_ranl  TYPE RANL, "   
lv_e_dkuend  TYPE DENDLFZ, "   
lv_company_code_not_found  TYPE DENDLFZ, "   
lv_e_kelfz  TYPE KZAHLUNG, "   
lv_i_dsetdate  TYPE DATS, "   
lv_keydate_not_qualified  TYPE DATS, "   
lv_e_kkuend  TYPE KZAHLUNG, "   
lv_e_santwhr  TYPE SWHR, "   
lv_e_dblfz  TYPE DENDLFZ, "   
lv_e_com_val_class  TYPE TPM_COM_VAL_CLASS, "   
lv_e_szbmeth  TYPE SZBMETH, "   
lv_e_stilgart  TYPE STILGART. "   

  CALL FUNCTION 'FVD_TRLE_TRLEDGER_GET_LOANDATA'  "Loan: Determine Loan Data for a Contract for the TR Ledger
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_RANL = lv_i_ranl
         I_DSETDATE = lv_i_dsetdate
    IMPORTING
         E_DELFZ = lv_e_delfz
         E_FLG_RATE_ANNUI = lv_e_flg_rate_annui
         E_VDARL = lv_e_vdarl
         E_SKALIDWT = lv_e_skalidwt
         E_DKUEND = lv_e_dkuend
         E_KELFZ = lv_e_kelfz
         E_KKUEND = lv_e_kkuend
         E_SANTWHR = lv_e_santwhr
         E_DBLFZ = lv_e_dblfz
         E_COM_VAL_CLASS = lv_e_com_val_class
         E_SZBMETH = lv_e_szbmeth
         E_STILGART = lv_e_stilgart
    EXCEPTIONS
        CONTRACT_NOT_FOUND = 1
        COMPANY_CODE_NOT_FOUND = 2
        KEYDATE_NOT_QUALIFIED = 3
. " FVD_TRLE_TRLEDGER_GET_LOANDATA




ABAP code using 7.40 inline data declarations to call FM FVD_TRLE_TRLEDGER_GET_LOANDATA

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!