SAP EMUL_SAVE_LOAN_BODATA_E Function Module for Save Extracted Business Operation Records









EMUL_SAVE_LOAN_BODATA_E is a standard emul save loan bodata e SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save Extracted Business Operation Records 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 save loan bodata e FM, simply by entering the name EMUL_SAVE_LOAN_BODATA_E 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_SAVE_LOAN_BODATA_E 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_SAVE_LOAN_BODATA_E'"Save Extracted Business Operation Records
EXPORTING
SAVE_FLAG = "Speicherflag (I: Insert, U: Update)

IMPORTING
COUNT_BOHEADS = "Anzahl übergebener Geschäftsvorfallköpfe
COUNT_BOBEPPS = "Anzahl übergebener Geschäftsvorfallsätze
COUNT_UPDATED_BOHEADS = "Anzahl gespeicherter Geschäftsvorfallköpfe
COUNT_UPDATED_BOBEPPS = "Anzahl gespeicherter Geschäftsvorfallsätze

TABLES
IVDBOHEAD_EU = "Geschäftsvorfallköpfe (Währungsinfo)
IVDBOBEPP_EU = "Geschäftsvorfallsätze (Währungsinfo)

EXCEPTIONS
UPDATE_ERROR = 1
.



IMPORTING Parameters details for EMUL_SAVE_LOAN_BODATA_E

SAVE_FLAG - Speicherflag (I: Insert, U: Update)

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

EXPORTING Parameters details for EMUL_SAVE_LOAN_BODATA_E

COUNT_BOHEADS - Anzahl übergebener Geschäftsvorfallköpfe

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

COUNT_BOBEPPS - Anzahl übergebener Geschäftsvorfallsätze

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

COUNT_UPDATED_BOHEADS - Anzahl gespeicherter Geschäftsvorfallköpfe

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

COUNT_UPDATED_BOBEPPS - Anzahl gespeicherter Geschäftsvorfallsätze

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

TABLES Parameters details for EMUL_SAVE_LOAN_BODATA_E

IVDBOHEAD_EU - Geschäftsvorfallköpfe (Währungsinfo)

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

IVDBOBEPP_EU - Geschäftsvorfallsätze (Währungsinfo)

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

EXCEPTIONS details

UPDATE_ERROR - Error when Saving

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

Copy and paste ABAP code example for EMUL_SAVE_LOAN_BODATA_E 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_save_flag  TYPE STRING, "   
lt_ivdbohead_eu  TYPE STANDARD TABLE OF VDBOHEAD_EU, "   
lv_update_error  TYPE VDBOHEAD_EU, "   
lv_count_boheads  TYPE SY-TABIX, "   
lt_ivdbobepp_eu  TYPE STANDARD TABLE OF VDBOBEPP_EU, "   
lv_count_bobepps  TYPE SY-TABIX, "   
lv_count_updated_boheads  TYPE SY-DBCNT, "   
lv_count_updated_bobepps  TYPE SY-DBCNT. "   

  CALL FUNCTION 'EMUL_SAVE_LOAN_BODATA_E'  "Save Extracted Business Operation Records
    EXPORTING
         SAVE_FLAG = lv_save_flag
    IMPORTING
         COUNT_BOHEADS = lv_count_boheads
         COUNT_BOBEPPS = lv_count_bobepps
         COUNT_UPDATED_BOHEADS = lv_count_updated_boheads
         COUNT_UPDATED_BOBEPPS = lv_count_updated_bobepps
    TABLES
         IVDBOHEAD_EU = lt_ivdbohead_eu
         IVDBOBEPP_EU = lt_ivdbobepp_eu
    EXCEPTIONS
        UPDATE_ERROR = 1
. " EMUL_SAVE_LOAN_BODATA_E




ABAP code using 7.40 inline data declarations to call FM EMUL_SAVE_LOAN_BODATA_E

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 TABIX FROM SY INTO @DATA(ld_count_boheads).
 
 
"SELECT single TABIX FROM SY INTO @DATA(ld_count_bobepps).
 
"SELECT single DBCNT FROM SY INTO @DATA(ld_count_updated_boheads).
 
"SELECT single DBCNT FROM SY INTO @DATA(ld_count_updated_bobepps).
 


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!