SAP EMUL_CHANGE_LOAN_REFKONT Function Module for Changes the Account Reference or Writes Flag for Balance Sheet Transfer









EMUL_CHANGE_LOAN_REFKONT is a standard emul change loan refkont SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Changes the Account Reference or Writes Flag for Balance Sheet Transfer 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 emul change loan refkont FM, simply by entering the name EMUL_CHANGE_LOAN_REFKONT into the relevant SAP transaction such as SE37 or SE38.

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



Function EMUL_CHANGE_LOAN_REFKONT 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 'EMUL_CHANGE_LOAN_REFKONT'"Changes the Account Reference or Writes Flag for Balance Sheet Transfer
EXPORTING
* I_POST_DATE = SY-DATUM "
IVDARL_OLD = "
* I_REVERSION = ' ' "

CHANGING
IVDARL_NEW = "

EXCEPTIONS
ERROR = 1
.



IMPORTING Parameters details for EMUL_CHANGE_LOAN_REFKONT

I_POST_DATE -

Data type: SY-DATUM
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

IVDARL_OLD -

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

I_REVERSION -

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

CHANGING Parameters details for EMUL_CHANGE_LOAN_REFKONT

IVDARL_NEW -

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

EXCEPTIONS details

ERROR -

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

Copy and paste ABAP code example for EMUL_CHANGE_LOAN_REFKONT 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_error  TYPE STRING, "   
lv_ivdarl_new  TYPE VDARL, "   
lv_i_post_date  TYPE SY-DATUM, "   SY-DATUM
lv_ivdarl_old  TYPE VDARL, "   
lv_i_reversion  TYPE VDARL. "   SPACE

  CALL FUNCTION 'EMUL_CHANGE_LOAN_REFKONT'  "Changes the Account Reference or Writes Flag for Balance Sheet Transfer
    EXPORTING
         I_POST_DATE = lv_i_post_date
         IVDARL_OLD = lv_ivdarl_old
         I_REVERSION = lv_i_reversion
    CHANGING
         IVDARL_NEW = lv_ivdarl_new
    EXCEPTIONS
        ERROR = 1
. " EMUL_CHANGE_LOAN_REFKONT




ABAP code using 7.40 inline data declarations to call FM EMUL_CHANGE_LOAN_REFKONT

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 DATUM FROM SY INTO @DATA(ld_i_post_date).
DATA(ld_i_post_date) = SY-DATUM.
 
 
DATA(ld_i_reversion) = ' '.
 


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!