SAP ENQUEUE_EFPB_EXP_STAT Function Module for Request lock for object EFPB_EXP_STAT









ENQUEUE_EFPB_EXP_STAT is a standard enqueue efpb exp stat SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request lock for object EFPB_EXP_STAT 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 enqueue efpb exp stat FM, simply by entering the name ENQUEUE_EFPB_EXP_STAT into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/FEN0010
Program Name: /1BCDWBEN/SAPLFEN0010
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ENQUEUE_EFPB_EXP_STAT 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 'ENQUEUE_EFPB_EXP_STAT'"Request lock for object EFPB_EXP_STAT
EXPORTING
* MODE_FPB_EXP_STAT = 'E' "Lock mode for table FPB_EXP_STAT
* X_SCENARIO = ' ' "Fill argument 02 with initial value?
* X_INSTANCE = ' ' "Fill argument 03 with initial value?
* X_UNAME = ' ' "Fill argument 04 with initial value?
* X_PHASE = ' ' "Fill argument 05 with initial value?
* X_STEPGROUP = ' ' "Fill argument 06 with initial value?
* X_STEP = ' ' "Fill argument 07 with initial value?
* X_OBJECT = ' ' "Fill argument 08 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MANDT = SY-MANDT "01th enqueue argument
* SCENARIO = "02th enqueue argument
* INSTANCE = "03th enqueue argument
* UNAME = "04th enqueue argument
* PHASE = "05th enqueue argument
* STEPGROUP = "06th enqueue argument
* STEP = "07th enqueue argument
* OBJECT = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EFPB_EXP_STAT

MODE_FPB_EXP_STAT - Lock mode for table FPB_EXP_STAT

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

X_SCENARIO - Fill argument 02 with initial value?

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

X_INSTANCE - Fill argument 03 with initial value?

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

X_UNAME - Fill argument 04 with initial value?

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

X_PHASE - Fill argument 05 with initial value?

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

X_STEPGROUP - Fill argument 06 with initial value?

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

X_STEP - Fill argument 07 with initial value?

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

X_OBJECT - Fill argument 08 with initial value?

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

_SCOPE -

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

_WAIT -

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

_COLLECT - Initially only collect lock

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

MANDT - 01th enqueue argument

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

SCENARIO - 02th enqueue argument

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

INSTANCE - 03th enqueue argument

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

UNAME - 04th enqueue argument

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

PHASE - 05th enqueue argument

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

STEPGROUP - 06th enqueue argument

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

STEP - 07th enqueue argument

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

OBJECT - 08th enqueue argument

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

EXCEPTIONS details

FOREIGN_LOCK - Object already locked

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

SYSTEM_FAILURE - Internal error from enqueue server

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

Copy and paste ABAP code example for ENQUEUE_EFPB_EXP_STAT 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_foreign_lock  TYPE STRING, "   
lv_mode_fpb_exp_stat  TYPE ENQMODE, "   'E'
lv_x_scenario  TYPE DDENQXPAR, "   SPACE
lv_x_instance  TYPE DDENQXPAR, "   SPACE
lv_x_uname  TYPE DDENQXPAR, "   SPACE
lv_x_phase  TYPE DDENQXPAR, "   SPACE
lv_x_stepgroup  TYPE DDENQXPAR, "   SPACE
lv_x_step  TYPE DDENQXPAR, "   SPACE
lv_x_object  TYPE DDENQXPAR, "   SPACE
lv__scope  TYPE DDENQSCOPE, "   '2'
lv__wait  TYPE DDENQWAIT, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mandt  TYPE FPB_EXP_STAT-MANDT, "   SY-MANDT
lv_system_failure  TYPE FPB_EXP_STAT, "   
lv_scenario  TYPE FPB_EXP_STAT-SCENARIO, "   
lv_instance  TYPE FPB_EXP_STAT-INSTANCE, "   
lv_uname  TYPE FPB_EXP_STAT-UNAME, "   
lv_phase  TYPE FPB_EXP_STAT-PHASE, "   
lv_stepgroup  TYPE FPB_EXP_STAT-STEPGROUP, "   
lv_step  TYPE FPB_EXP_STAT-STEP, "   
lv_object  TYPE FPB_EXP_STAT-OBJECT. "   

  CALL FUNCTION 'ENQUEUE_EFPB_EXP_STAT'  "Request lock for object EFPB_EXP_STAT
    EXPORTING
         MODE_FPB_EXP_STAT = lv_mode_fpb_exp_stat
         X_SCENARIO = lv_x_scenario
         X_INSTANCE = lv_x_instance
         X_UNAME = lv_x_uname
         X_PHASE = lv_x_phase
         X_STEPGROUP = lv_x_stepgroup
         X_STEP = lv_x_step
         X_OBJECT = lv_x_object
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MANDT = lv_mandt
         SCENARIO = lv_scenario
         INSTANCE = lv_instance
         UNAME = lv_uname
         PHASE = lv_phase
         STEPGROUP = lv_stepgroup
         STEP = lv_step
         OBJECT = lv_object
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EFPB_EXP_STAT




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EFPB_EXP_STAT

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.

 
DATA(ld_mode_fpb_exp_stat) = 'E'.
 
DATA(ld_x_scenario) = ' '.
 
DATA(ld_x_instance) = ' '.
 
DATA(ld_x_uname) = ' '.
 
DATA(ld_x_phase) = ' '.
 
DATA(ld_x_stepgroup) = ' '.
 
DATA(ld_x_step) = ' '.
 
DATA(ld_x_object) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single MANDT FROM FPB_EXP_STAT INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
"SELECT single SCENARIO FROM FPB_EXP_STAT INTO @DATA(ld_scenario).
 
"SELECT single INSTANCE FROM FPB_EXP_STAT INTO @DATA(ld_instance).
 
"SELECT single UNAME FROM FPB_EXP_STAT INTO @DATA(ld_uname).
 
"SELECT single PHASE FROM FPB_EXP_STAT INTO @DATA(ld_phase).
 
"SELECT single STEPGROUP FROM FPB_EXP_STAT INTO @DATA(ld_stepgroup).
 
"SELECT single STEP FROM FPB_EXP_STAT INTO @DATA(ld_step).
 
"SELECT single OBJECT FROM FPB_EXP_STAT INTO @DATA(ld_object).
 


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!