SAP BDL_EXECUTE_FUNCTION Function Module for Execute Function from BDLFUVERS









BDL_EXECUTE_FUNCTION is a standard bdl execute function SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Execute Function from BDLFUVERS 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 bdl execute function FM, simply by entering the name BDL_EXECUTE_FUNCTION into the relevant SAP transaction such as SE37 or SE38.

Function Group: BDL3
Program Name: SAPLBDL3
Main Program: SAPLBDL3
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function BDL_EXECUTE_FUNCTION 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 'BDL_EXECUTE_FUNCTION'"Execute Function from BDLFUVERS
EXPORTING
TH_INSTANCE = "
TH_INSTNO = "
TH_SERVER = "
SY_DATUM = "Date and time, current (application server) date
REPNAME = "
SESSION = "
LOGFUNC = "
SERVICETYPE = "
ADDONKEY = "

TABLES
IMP_DEFAULT_TAB = "
.



IMPORTING Parameters details for BDL_EXECUTE_FUNCTION

TH_INSTANCE -

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

TH_INSTNO -

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

TH_SERVER -

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

SY_DATUM - Date and time, current (application server) date

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

REPNAME -

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

SESSION -

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

LOGFUNC -

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

SERVICETYPE -

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

ADDONKEY -

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

TABLES Parameters details for BDL_EXECUTE_FUNCTION

IMP_DEFAULT_TAB -

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

Copy and paste ABAP code example for BDL_EXECUTE_FUNCTION 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_th_instance  TYPE MSXXLIST-NAME, "   
lt_imp_default_tab  TYPE STANDARD TABLE OF BDLFUPIMP, "   
lv_th_instno  TYPE MSXXLIST-SERV, "   
lv_th_server  TYPE MSXXLIST-HOST, "   
lv_sy_datum  TYPE SY-DATUM, "   
lv_repname  TYPE TRDIR-NAME, "   
lv_session  TYPE BDLDATKEY, "   
lv_logfunc  TYPE BDLFUVERS-LOGFUNC, "   
lv_servicetype  TYPE BDLSERVICE-TYPE, "   
lv_addonkey  TYPE BDLADDON-ADDONKEY. "   

  CALL FUNCTION 'BDL_EXECUTE_FUNCTION'  "Execute Function from BDLFUVERS
    EXPORTING
         TH_INSTANCE = lv_th_instance
         TH_INSTNO = lv_th_instno
         TH_SERVER = lv_th_server
         SY_DATUM = lv_sy_datum
         REPNAME = lv_repname
         SESSION = lv_session
         LOGFUNC = lv_logfunc
         SERVICETYPE = lv_servicetype
         ADDONKEY = lv_addonkey
    TABLES
         IMP_DEFAULT_TAB = lt_imp_default_tab
. " BDL_EXECUTE_FUNCTION




ABAP code using 7.40 inline data declarations to call FM BDL_EXECUTE_FUNCTION

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 NAME FROM MSXXLIST INTO @DATA(ld_th_instance).
 
 
"SELECT single SERV FROM MSXXLIST INTO @DATA(ld_th_instno).
 
"SELECT single HOST FROM MSXXLIST INTO @DATA(ld_th_server).
 
"SELECT single DATUM FROM SY INTO @DATA(ld_sy_datum).
 
"SELECT single NAME FROM TRDIR INTO @DATA(ld_repname).
 
 
"SELECT single LOGFUNC FROM BDLFUVERS INTO @DATA(ld_logfunc).
 
"SELECT single TYPE FROM BDLSERVICE INTO @DATA(ld_servicetype).
 
"SELECT single ADDONKEY FROM BDLADDON INTO @DATA(ld_addonkey).
 


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!