SAP ENQUEUE_E_OIRBPBLB Function Module for Request lock for object E_OIRBPBLB









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

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



Function ENQUEUE_E_OIRBPBLB 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_E_OIRBPBLB'"Request lock for object E_OIRBPBLB
EXPORTING
* MODE_OIRBPBLB = 'E' "Lock mode for table OIRBPBLB
* MODE_OIRBOPROJ = 'E' "Lock mode for table OIRBOPROJ
* MODE_OIRBOT001L = 'E' "Lock mode for table OIRBOT001L
* MODE_OIRBOT001W = 'E' "Lock mode for table OIRBOT001W
* MANDT = SY-MANDT "01th enqueue argument
* PBLNR = "02th enqueue argument
* RNBT = "03th enqueue argument
* SEQNR = "04th enqueue argument
* COMP_PBLNR = "05th enqueue argument
* VALID_TO = "06th enqueue argument
* FTMSTM = "07th enqueue argument
* MODE_OIRBMATMET = 'E' "Lock mode for table OIRBMATMET
* OBJPOSANLA = "08th enqueue argument
* OBJPOSCOAS = "09th enqueue argument
* OBJPOSCSKS = "10th enqueue argument
* OBJPOSIFLO = "11th enqueue argument
* OBJPOSPROJ = "12th enqueue argument
* OBJPOST001L = "13th enqueue argument
* OBJPOST001W = "14th enqueue argument
* X_PBLNR = ' ' "Fill argument 02 with initial value?
* X_RNBT = ' ' "Fill argument 03 with initial value?
* X_SEQNR = ' ' "Fill argument 04 with initial value?
* MODE_OIRBPBLPBL = 'E' "Lock mode for table OIRBPBLPBL
* X_COMP_PBLNR = ' ' "Fill argument 05 with initial value?
* X_VALID_TO = ' ' "Fill argument 06 with initial value?
* X_FTMSTM = ' ' "Fill argument 07 with initial value?
* X_OBJPOSANLA = ' ' "Fill argument 08 with initial value?
* X_OBJPOSCOAS = ' ' "Fill argument 09 with initial value?
* X_OBJPOSCSKS = ' ' "Fill argument 10 with initial value?
* X_OBJPOSIFLO = ' ' "Fill argument 11 with initial value?
* X_OBJPOSPROJ = ' ' "Fill argument 12 with initial value?
* X_OBJPOST001L = ' ' "Fill argument 13 with initial value?
* X_OBJPOST001W = ' ' "Fill argument 14 with initial value?
* MODE_OIRBPBLSTAT = 'E' "Lock mode for table OIRBPBLSTAT
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_OIRBOANLA = 'E' "Lock mode for table OIRBOANLA
* MODE_OIRBOCEPC = 'E' "Lock mode for table OIRBOCEPC
* MODE_OIRBOCOAS = 'E' "Lock mode for table OIRBOCOAS
* MODE_OIRBOCSKS = 'E' "Lock mode for table OIRBOCSKS
* MODE_OIRBOIFLO = 'E' "Lock mode for table OIRBOIFLO

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_OIRBPBLB

MODE_OIRBPBLB - Lock mode for table OIRBPBLB

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

MODE_OIRBOPROJ - Lock mode for table OIRBOPROJ

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

MODE_OIRBOT001L - Lock mode for table OIRBOT001L

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

MODE_OIRBOT001W - Lock mode for table OIRBOT001W

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

MANDT - 01th enqueue argument

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

PBLNR - 02th enqueue argument

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

RNBT - 03th enqueue argument

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

SEQNR - 04th enqueue argument

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

COMP_PBLNR - 05th enqueue argument

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

VALID_TO - 06th enqueue argument

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

FTMSTM - 07th enqueue argument

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

MODE_OIRBMATMET - Lock mode for table OIRBMATMET

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

OBJPOSANLA - 08th enqueue argument

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

OBJPOSCOAS - 09th enqueue argument

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

OBJPOSCSKS - 10th enqueue argument

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

OBJPOSIFLO - 11th enqueue argument

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

OBJPOSPROJ - 12th enqueue argument

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

OBJPOST001L - 13th enqueue argument

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

OBJPOST001W - 14th enqueue argument

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

X_PBLNR - Fill argument 02 with initial value?

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

X_RNBT - Fill argument 03 with initial value?

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

X_SEQNR - Fill argument 04 with initial value?

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

MODE_OIRBPBLPBL - Lock mode for table OIRBPBLPBL

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

X_COMP_PBLNR - Fill argument 05 with initial value?

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

X_VALID_TO - Fill argument 06 with initial value?

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

X_FTMSTM - Fill argument 07 with initial value?

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

X_OBJPOSANLA - Fill argument 08 with initial value?

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

X_OBJPOSCOAS - Fill argument 09 with initial value?

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

X_OBJPOSCSKS - Fill argument 10 with initial value?

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

X_OBJPOSIFLO - Fill argument 11 with initial value?

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

X_OBJPOSPROJ - Fill argument 12 with initial value?

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

X_OBJPOST001L - Fill argument 13 with initial value?

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

X_OBJPOST001W - Fill argument 14 with initial value?

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

MODE_OIRBPBLSTAT - Lock mode for table OIRBPBLSTAT

Data type: ENQMODE
Default: 'E'
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)

MODE_OIRBOANLA - Lock mode for table OIRBOANLA

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

MODE_OIRBOCEPC - Lock mode for table OIRBOCEPC

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

MODE_OIRBOCOAS - Lock mode for table OIRBOCOAS

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

MODE_OIRBOCSKS - Lock mode for table OIRBOCSKS

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

MODE_OIRBOIFLO - Lock mode for table OIRBOIFLO

Data type: ENQMODE
Default: 'E'
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_E_OIRBPBLB 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_oirbpblb  TYPE ENQMODE, "   'E'
lv_mode_oirboproj  TYPE ENQMODE, "   'E'
lv_mode_oirbot001l  TYPE ENQMODE, "   'E'
lv_mode_oirbot001w  TYPE ENQMODE, "   'E'
lv_mandt  TYPE OIRBPBLB-MANDT, "   SY-MANDT
lv_pblnr  TYPE OIRBPBLB-PBLNR, "   
lv_rnbt  TYPE OIRBPBLB-RNBT, "   
lv_seqnr  TYPE OIRBMATMET-SEQNR, "   
lv_comp_pblnr  TYPE OIRBPBLPBL-PBLNR, "   
lv_valid_to  TYPE OIRBPBLPBL-VALID_TO, "   
lv_ftmstm  TYPE OIRBPBLSTAT-FTMSTM, "   
lv_system_failure  TYPE OIRBPBLSTAT, "   
lv_mode_oirbmatmet  TYPE ENQMODE, "   'E'
lv_objposanla  TYPE OIRBOANLA-OBJPOS, "   
lv_objposcoas  TYPE OIRBOCOAS-OBJPOS, "   
lv_objposcsks  TYPE OIRBOCSKS-OBJPOS, "   
lv_objposiflo  TYPE OIRBOIFLO-OBJPOS, "   
lv_objposproj  TYPE OIRBOPROJ-OBJPOS, "   
lv_objpost001l  TYPE OIRBOT001L-OBJPOS, "   
lv_objpost001w  TYPE OIRBOT001W-OBJPOS, "   
lv_x_pblnr  TYPE OIRBOT001W, "   SPACE
lv_x_rnbt  TYPE OIRBOT001W, "   SPACE
lv_x_seqnr  TYPE OIRBOT001W, "   SPACE
lv_mode_oirbpblpbl  TYPE ENQMODE, "   'E'
lv_x_comp_pblnr  TYPE ENQMODE, "   SPACE
lv_x_valid_to  TYPE ENQMODE, "   SPACE
lv_x_ftmstm  TYPE ENQMODE, "   SPACE
lv_x_objposanla  TYPE ENQMODE, "   SPACE
lv_x_objposcoas  TYPE ENQMODE, "   SPACE
lv_x_objposcsks  TYPE ENQMODE, "   SPACE
lv_x_objposiflo  TYPE ENQMODE, "   SPACE
lv_x_objposproj  TYPE ENQMODE, "   SPACE
lv_x_objpost001l  TYPE ENQMODE, "   SPACE
lv_x_objpost001w  TYPE ENQMODE, "   SPACE
lv_mode_oirbpblstat  TYPE ENQMODE, "   'E'
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mode_oirboanla  TYPE ENQMODE, "   'E'
lv_mode_oirbocepc  TYPE ENQMODE, "   'E'
lv_mode_oirbocoas  TYPE ENQMODE, "   'E'
lv_mode_oirbocsks  TYPE ENQMODE, "   'E'
lv_mode_oirboiflo  TYPE ENQMODE. "   'E'

  CALL FUNCTION 'ENQUEUE_E_OIRBPBLB'  "Request lock for object E_OIRBPBLB
    EXPORTING
         MODE_OIRBPBLB = lv_mode_oirbpblb
         MODE_OIRBOPROJ = lv_mode_oirboproj
         MODE_OIRBOT001L = lv_mode_oirbot001l
         MODE_OIRBOT001W = lv_mode_oirbot001w
         MANDT = lv_mandt
         PBLNR = lv_pblnr
         RNBT = lv_rnbt
         SEQNR = lv_seqnr
         COMP_PBLNR = lv_comp_pblnr
         VALID_TO = lv_valid_to
         FTMSTM = lv_ftmstm
         MODE_OIRBMATMET = lv_mode_oirbmatmet
         OBJPOSANLA = lv_objposanla
         OBJPOSCOAS = lv_objposcoas
         OBJPOSCSKS = lv_objposcsks
         OBJPOSIFLO = lv_objposiflo
         OBJPOSPROJ = lv_objposproj
         OBJPOST001L = lv_objpost001l
         OBJPOST001W = lv_objpost001w
         X_PBLNR = lv_x_pblnr
         X_RNBT = lv_x_rnbt
         X_SEQNR = lv_x_seqnr
         MODE_OIRBPBLPBL = lv_mode_oirbpblpbl
         X_COMP_PBLNR = lv_x_comp_pblnr
         X_VALID_TO = lv_x_valid_to
         X_FTMSTM = lv_x_ftmstm
         X_OBJPOSANLA = lv_x_objposanla
         X_OBJPOSCOAS = lv_x_objposcoas
         X_OBJPOSCSKS = lv_x_objposcsks
         X_OBJPOSIFLO = lv_x_objposiflo
         X_OBJPOSPROJ = lv_x_objposproj
         X_OBJPOST001L = lv_x_objpost001l
         X_OBJPOST001W = lv_x_objpost001w
         MODE_OIRBPBLSTAT = lv_mode_oirbpblstat
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MODE_OIRBOANLA = lv_mode_oirboanla
         MODE_OIRBOCEPC = lv_mode_oirbocepc
         MODE_OIRBOCOAS = lv_mode_oirbocoas
         MODE_OIRBOCSKS = lv_mode_oirbocsks
         MODE_OIRBOIFLO = lv_mode_oirboiflo
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_OIRBPBLB




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_OIRBPBLB

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_oirbpblb) = 'E'.
 
DATA(ld_mode_oirboproj) = 'E'.
 
DATA(ld_mode_oirbot001l) = 'E'.
 
DATA(ld_mode_oirbot001w) = 'E'.
 
"SELECT single MANDT FROM OIRBPBLB INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single PBLNR FROM OIRBPBLB INTO @DATA(ld_pblnr).
 
"SELECT single RNBT FROM OIRBPBLB INTO @DATA(ld_rnbt).
 
"SELECT single SEQNR FROM OIRBMATMET INTO @DATA(ld_seqnr).
 
"SELECT single PBLNR FROM OIRBPBLPBL INTO @DATA(ld_comp_pblnr).
 
"SELECT single VALID_TO FROM OIRBPBLPBL INTO @DATA(ld_valid_to).
 
"SELECT single FTMSTM FROM OIRBPBLSTAT INTO @DATA(ld_ftmstm).
 
 
DATA(ld_mode_oirbmatmet) = 'E'.
 
"SELECT single OBJPOS FROM OIRBOANLA INTO @DATA(ld_objposanla).
 
"SELECT single OBJPOS FROM OIRBOCOAS INTO @DATA(ld_objposcoas).
 
"SELECT single OBJPOS FROM OIRBOCSKS INTO @DATA(ld_objposcsks).
 
"SELECT single OBJPOS FROM OIRBOIFLO INTO @DATA(ld_objposiflo).
 
"SELECT single OBJPOS FROM OIRBOPROJ INTO @DATA(ld_objposproj).
 
"SELECT single OBJPOS FROM OIRBOT001L INTO @DATA(ld_objpost001l).
 
"SELECT single OBJPOS FROM OIRBOT001W INTO @DATA(ld_objpost001w).
 
DATA(ld_x_pblnr) = ' '.
 
DATA(ld_x_rnbt) = ' '.
 
DATA(ld_x_seqnr) = ' '.
 
DATA(ld_mode_oirbpblpbl) = 'E'.
 
DATA(ld_x_comp_pblnr) = ' '.
 
DATA(ld_x_valid_to) = ' '.
 
DATA(ld_x_ftmstm) = ' '.
 
DATA(ld_x_objposanla) = ' '.
 
DATA(ld_x_objposcoas) = ' '.
 
DATA(ld_x_objposcsks) = ' '.
 
DATA(ld_x_objposiflo) = ' '.
 
DATA(ld_x_objposproj) = ' '.
 
DATA(ld_x_objpost001l) = ' '.
 
DATA(ld_x_objpost001w) = ' '.
 
DATA(ld_mode_oirbpblstat) = 'E'.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
DATA(ld_mode_oirboanla) = 'E'.
 
DATA(ld_mode_oirbocepc) = 'E'.
 
DATA(ld_mode_oirbocoas) = 'E'.
 
DATA(ld_mode_oirbocsks) = 'E'.
 
DATA(ld_mode_oirboiflo) = 'E'.
 


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!