SAP ENQUEUE_EWRFAPCIBID Function Module for Request lock for object EWRFAPCIBID









ENQUEUE_EWRFAPCIBID is a standard enqueue ewrfapcibid 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 EWRFAPCIBID 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 ewrfapcibid FM, simply by entering the name ENQUEUE_EWRFAPCIBID into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/WEN0002
Program Name: /1BCDWBEN/SAPLWEN0002
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_EWRFAPCIBID 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_EWRFAPCIBID'"Request lock for object EWRFAPCIBID
EXPORTING
* MODE_WRF_APC_IBID = 'E' "Lock mode for table WRF_APC_IBID
* KEYFIG = "09th enqueue argument
* ASORT = "10th enqueue argument
* X_HIER_ID = ' ' "Fill argument 02 with initial value?
* X_NODE = ' ' "Fill argument 03 with initial value?
* X_SAISO = ' ' "Fill argument 04 with initial value?
* X_SAISJ = ' ' "Fill argument 05 with initial value?
* X_ROLLOUT = ' ' "Fill argument 06 with initial value?
* X_ASRT_TYPE = ' ' "Fill argument 07 with initial value?
* X_SEQ_NO = ' ' "Fill argument 08 with initial value?
* X_KEYFIG = ' ' "Fill argument 09 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_ASORT = ' ' "Fill argument 10 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* HIER_ID = "02th enqueue argument
* NODE = "03th enqueue argument
* SAISO = "04th enqueue argument
* SAISJ = "05th enqueue argument
* ROLLOUT = "06th enqueue argument
* ASRT_TYPE = "07th enqueue argument
* SEQ_NO = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EWRFAPCIBID

MODE_WRF_APC_IBID - Lock mode for table WRF_APC_IBID

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

KEYFIG - 09th enqueue argument

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

ASORT - 10th enqueue argument

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

X_HIER_ID - Fill argument 02 with initial value?

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

X_NODE - Fill argument 03 with initial value?

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

X_SAISO - Fill argument 04 with initial value?

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

X_SAISJ - Fill argument 05 with initial value?

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

X_ROLLOUT - Fill argument 06 with initial value?

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

X_ASRT_TYPE - Fill argument 07 with initial value?

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

X_SEQ_NO - Fill argument 08 with initial value?

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

X_KEYFIG - Fill argument 09 with initial value?

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

MANDT - 01th enqueue argument

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

X_ASORT - Fill argument 10 with initial value?

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

_SCOPE -

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

_WAIT -

Data type:
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)

HIER_ID - 02th enqueue argument

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

NODE - 03th enqueue argument

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

SAISO - 04th enqueue argument

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

SAISJ - 05th enqueue argument

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

ROLLOUT - 06th enqueue argument

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

ASRT_TYPE - 07th enqueue argument

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

SEQ_NO - 08th enqueue argument

Data type: WRF_APC_IBID-SEQ_NO
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_EWRFAPCIBID 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_wrf_apc_ibid  TYPE ENQMODE, "   'E'
lv_keyfig  TYPE WRF_APC_IBID-KEYFIG, "   
lv_asort  TYPE WRF_APC_IBID-ASORT, "   
lv_x_hier_id  TYPE WRF_APC_IBID, "   SPACE
lv_x_node  TYPE WRF_APC_IBID, "   SPACE
lv_x_saiso  TYPE WRF_APC_IBID, "   SPACE
lv_x_saisj  TYPE WRF_APC_IBID, "   SPACE
lv_x_rollout  TYPE WRF_APC_IBID, "   SPACE
lv_x_asrt_type  TYPE WRF_APC_IBID, "   SPACE
lv_x_seq_no  TYPE WRF_APC_IBID, "   SPACE
lv_x_keyfig  TYPE WRF_APC_IBID, "   SPACE
lv_mandt  TYPE WRF_APC_IBID-MANDT, "   SY-MANDT
lv_system_failure  TYPE WRF_APC_IBID, "   
lv_x_asort  TYPE WRF_APC_IBID, "   SPACE
lv__scope  TYPE WRF_APC_IBID, "   '2'
lv__wait  TYPE WRF_APC_IBID, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_hier_id  TYPE WRF_APC_IBID-HIER_ID, "   
lv_node  TYPE WRF_APC_IBID-NODE, "   
lv_saiso  TYPE WRF_APC_IBID-SAISO, "   
lv_saisj  TYPE WRF_APC_IBID-SAISJ, "   
lv_rollout  TYPE WRF_APC_IBID-ROLLOUT, "   
lv_asrt_type  TYPE WRF_APC_IBID-ASRT_TYPE, "   
lv_seq_no  TYPE WRF_APC_IBID-SEQ_NO. "   

  CALL FUNCTION 'ENQUEUE_EWRFAPCIBID'  "Request lock for object EWRFAPCIBID
    EXPORTING
         MODE_WRF_APC_IBID = lv_mode_wrf_apc_ibid
         KEYFIG = lv_keyfig
         ASORT = lv_asort
         X_HIER_ID = lv_x_hier_id
         X_NODE = lv_x_node
         X_SAISO = lv_x_saiso
         X_SAISJ = lv_x_saisj
         X_ROLLOUT = lv_x_rollout
         X_ASRT_TYPE = lv_x_asrt_type
         X_SEQ_NO = lv_x_seq_no
         X_KEYFIG = lv_x_keyfig
         MANDT = lv_mandt
         X_ASORT = lv_x_asort
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         HIER_ID = lv_hier_id
         NODE = lv_node
         SAISO = lv_saiso
         SAISJ = lv_saisj
         ROLLOUT = lv_rollout
         ASRT_TYPE = lv_asrt_type
         SEQ_NO = lv_seq_no
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EWRFAPCIBID




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EWRFAPCIBID

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_wrf_apc_ibid) = 'E'.
 
"SELECT single KEYFIG FROM WRF_APC_IBID INTO @DATA(ld_keyfig).
 
"SELECT single ASORT FROM WRF_APC_IBID INTO @DATA(ld_asort).
 
DATA(ld_x_hier_id) = ' '.
 
DATA(ld_x_node) = ' '.
 
DATA(ld_x_saiso) = ' '.
 
DATA(ld_x_saisj) = ' '.
 
DATA(ld_x_rollout) = ' '.
 
DATA(ld_x_asrt_type) = ' '.
 
DATA(ld_x_seq_no) = ' '.
 
DATA(ld_x_keyfig) = ' '.
 
"SELECT single MANDT FROM WRF_APC_IBID INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_asort) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single HIER_ID FROM WRF_APC_IBID INTO @DATA(ld_hier_id).
 
"SELECT single NODE FROM WRF_APC_IBID INTO @DATA(ld_node).
 
"SELECT single SAISO FROM WRF_APC_IBID INTO @DATA(ld_saiso).
 
"SELECT single SAISJ FROM WRF_APC_IBID INTO @DATA(ld_saisj).
 
"SELECT single ROLLOUT FROM WRF_APC_IBID INTO @DATA(ld_rollout).
 
"SELECT single ASRT_TYPE FROM WRF_APC_IBID INTO @DATA(ld_asrt_type).
 
"SELECT single SEQ_NO FROM WRF_APC_IBID INTO @DATA(ld_seq_no).
 


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!