SAP LOAN_CONVERT_RESIDUAL_LC Function Module for Convert the Residual Items Amount Using the Historical Rate









LOAN_CONVERT_RESIDUAL_LC is a standard loan convert residual lc SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Convert the Residual Items Amount Using the Historical Rate 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 convert residual lc FM, simply by entering the name LOAN_CONVERT_RESIDUAL_LC into the relevant SAP transaction such as SE37 or SE38.

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



Function LOAN_CONVERT_RESIDUAL_LC 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_CONVERT_RESIDUAL_LC'"Convert the Residual Items Amount Using the Historical Rate
EXPORTING
I_BUKRS = "
* I_BLART = "
* IS_BSEG = "Accounting Document Segment
* I_FLG_NO_WAERS_CHECK = ' ' "'X' -> keine Wähbrungsverprobung
* I_CCC_CALC_DATE = "
I_BUKRS_WAERS = "
I_WAERS = "
I_WRBTR = "
* I_REBZJ = "
* I_REBZG = "
* I_REBZZ = "
I_BUDAT = "
* IS_VDBEPI_ORIG = "

IMPORTING
E_DMBTR = "

EXCEPTIONS
CURRENCY_KEY_INCONSISTENCY = 1 INVOICE_REF_INCONSISTENCY = 2 EXCHANGE_RATE_CALULATION_ERROR = 3 ORIGINAL_VDBEPI_NOT_FOUND = 4 CURRENCY_CONVERSION_ERROR = 5 ACTUAL_OP_NOT_FOUND = 6
.




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_CONVERT_RESIDUAL_LC

I_BUKRS -

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

I_BLART -

Data type: BSSKOFI-BLART
Optional: Yes
Call by Reference: Yes

IS_BSEG - Accounting Document Segment

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

I_FLG_NO_WAERS_CHECK - 'X' -> keine Wähbrungsverprobung

Data type: FLAG
Default: SPACE
Optional: Yes
Call by Reference: Yes

I_CCC_CALC_DATE -

Data type: VDBEPI-DDISPO
Optional: Yes
Call by Reference: Yes

I_BUKRS_WAERS -

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

I_WAERS -

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

I_WRBTR -

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

I_REBZJ -

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

I_REBZG -

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

I_REBZZ -

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

I_BUDAT -

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

IS_VDBEPI_ORIG -

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

EXPORTING Parameters details for LOAN_CONVERT_RESIDUAL_LC

E_DMBTR -

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

EXCEPTIONS details

CURRENCY_KEY_INCONSISTENCY -

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

INVOICE_REF_INCONSISTENCY -

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

EXCHANGE_RATE_CALULATION_ERROR -

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

ORIGINAL_VDBEPI_NOT_FOUND -

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

CURRENCY_CONVERSION_ERROR -

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

ACTUAL_OP_NOT_FOUND -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LOAN_CONVERT_RESIDUAL_LC 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_dmbtr  TYPE BSEG-DMBTR, "   
lv_i_bukrs  TYPE T001-BUKRS, "   
lv_currency_key_inconsistency  TYPE T001, "   
lv_i_blart  TYPE BSSKOFI-BLART, "   
lv_is_bseg  TYPE BSEG, "   
lv_i_flg_no_waers_check  TYPE FLAG, "   SPACE
lv_i_ccc_calc_date  TYPE VDBEPI-DDISPO, "   
lv_i_bukrs_waers  TYPE T001-WAERS, "   
lv_invoice_ref_inconsistency  TYPE T001, "   
lv_i_waers  TYPE T001-WAERS, "   
lv_exchange_rate_calulation_error  TYPE T001, "   
lv_i_wrbtr  TYPE BSEG-WRBTR, "   
lv_original_vdbepi_not_found  TYPE BSEG, "   
lv_i_rebzj  TYPE BSEG-REBZJ, "   
lv_currency_conversion_error  TYPE BSEG, "   
lv_i_rebzg  TYPE BSEG-REBZG, "   
lv_actual_op_not_found  TYPE BSEG, "   
lv_i_rebzz  TYPE BSEG-REBZZ, "   
lv_i_budat  TYPE BKPF-BUDAT, "   
lv_is_vdbepi_orig  TYPE VDBEPI. "   

  CALL FUNCTION 'LOAN_CONVERT_RESIDUAL_LC'  "Convert the Residual Items Amount Using the Historical Rate
    EXPORTING
         I_BUKRS = lv_i_bukrs
         I_BLART = lv_i_blart
         IS_BSEG = lv_is_bseg
         I_FLG_NO_WAERS_CHECK = lv_i_flg_no_waers_check
         I_CCC_CALC_DATE = lv_i_ccc_calc_date
         I_BUKRS_WAERS = lv_i_bukrs_waers
         I_WAERS = lv_i_waers
         I_WRBTR = lv_i_wrbtr
         I_REBZJ = lv_i_rebzj
         I_REBZG = lv_i_rebzg
         I_REBZZ = lv_i_rebzz
         I_BUDAT = lv_i_budat
         IS_VDBEPI_ORIG = lv_is_vdbepi_orig
    IMPORTING
         E_DMBTR = lv_e_dmbtr
    EXCEPTIONS
        CURRENCY_KEY_INCONSISTENCY = 1
        INVOICE_REF_INCONSISTENCY = 2
        EXCHANGE_RATE_CALULATION_ERROR = 3
        ORIGINAL_VDBEPI_NOT_FOUND = 4
        CURRENCY_CONVERSION_ERROR = 5
        ACTUAL_OP_NOT_FOUND = 6
. " LOAN_CONVERT_RESIDUAL_LC




ABAP code using 7.40 inline data declarations to call FM LOAN_CONVERT_RESIDUAL_LC

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 DMBTR FROM BSEG INTO @DATA(ld_e_dmbtr).
 
"SELECT single BUKRS FROM T001 INTO @DATA(ld_i_bukrs).
 
 
"SELECT single BLART FROM BSSKOFI INTO @DATA(ld_i_blart).
 
 
DATA(ld_i_flg_no_waers_check) = ' '.
 
"SELECT single DDISPO FROM VDBEPI INTO @DATA(ld_i_ccc_calc_date).
 
"SELECT single WAERS FROM T001 INTO @DATA(ld_i_bukrs_waers).
 
 
"SELECT single WAERS FROM T001 INTO @DATA(ld_i_waers).
 
 
"SELECT single WRBTR FROM BSEG INTO @DATA(ld_i_wrbtr).
 
 
"SELECT single REBZJ FROM BSEG INTO @DATA(ld_i_rebzj).
 
 
"SELECT single REBZG FROM BSEG INTO @DATA(ld_i_rebzg).
 
 
"SELECT single REBZZ FROM BSEG INTO @DATA(ld_i_rebzz).
 
"SELECT single BUDAT FROM BKPF INTO @DATA(ld_i_budat).
 
 


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!