DEQUEUE_E_OIJRRA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name DEQUEUE_E_OIJRRA into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
DWBEN/SAPLOEN0001
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'DEQUEUE_E_OIJRRA' "Release lock on object E_OIJRRA
* EXPORTING
* mode_oijrra = 'E' " enqmode Lock mode for table OIJRRA
* mandt = SY-MANDT " oijrra-mandt 01th enqueue argument
* kunnr = " oijrra-kunnr 02th enqueue argument
* lifnr = " oijrra-lifnr 03th enqueue argument
* werk = " oijrra-werk 04th enqueue argument
* lgort = " oijrra-lgort 05th enqueue argument
* rtype = " oijrra-rtype 06th enqueue argument
* rdiff = " oijrra-rdiff 07th enqueue argument
* x_kunnr = SPACE " Fill argument 02 with initial value?
* x_lifnr = SPACE " Fill argument 03 with initial value?
* x_werk = SPACE " Fill argument 04 with initial value?
* x_lgort = SPACE " Fill argument 05 with initial value?
* x_rtype = SPACE " Fill argument 06 with initial value?
* x_rdiff = SPACE " Fill argument 07 with initial value?
* _scope = '3' "
* _synchron = SPACE " Synchonous unlock
* _collect = ' ' " ddenqcoll Initially only collect lock
. " DEQUEUE_E_OIJRRA
The ABAP code below is a full code listing to execute function module DEQUEUE_E_OIJRRA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_mode_oijrra) = 'Check type of data required'.
SELECT single MANDT
FROM OIJRRA
INTO @DATA(ld_mandt).
SELECT single KUNNR
FROM OIJRRA
INTO @DATA(ld_kunnr).
SELECT single LIFNR
FROM OIJRRA
INTO @DATA(ld_lifnr).
SELECT single WERK
FROM OIJRRA
INTO @DATA(ld_werk).
SELECT single LGORT
FROM OIJRRA
INTO @DATA(ld_lgort).
SELECT single RTYPE
FROM OIJRRA
INTO @DATA(ld_rtype).
SELECT single RDIFF
FROM OIJRRA
INTO @DATA(ld_rdiff).
DATA(ld_x_kunnr) = 'some text here'.
DATA(ld_x_lifnr) = 'some text here'.
DATA(ld_x_werk) = 'some text here'.
DATA(ld_x_lgort) = 'some text here'.
DATA(ld_x_rtype) = 'some text here'.
DATA(ld_x_rdiff) = 'some text here'.
DATA(ld__scope) = 'some text here'.
DATA(ld__synchron) = 'some text here'.
DATA(ld__collect) = 'Check type of data required'. . CALL FUNCTION 'DEQUEUE_E_OIJRRA' * EXPORTING * mode_oijrra = ld_mode_oijrra * mandt = ld_mandt * kunnr = ld_kunnr * lifnr = ld_lifnr * werk = ld_werk * lgort = ld_lgort * rtype = ld_rtype * rdiff = ld_rdiff * x_kunnr = ld_x_kunnr * x_lifnr = ld_x_lifnr * x_werk = ld_x_werk * x_lgort = ld_x_lgort * x_rtype = ld_x_rtype * x_rdiff = ld_x_rdiff * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_E_OIJRRA
IF SY-SUBRC EQ 0. "All OK ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_mode_oijrra | TYPE ENQMODE , |
| ld_mandt | TYPE OIJRRA-MANDT , |
| ld_kunnr | TYPE OIJRRA-KUNNR , |
| ld_lifnr | TYPE OIJRRA-LIFNR , |
| ld_werk | TYPE OIJRRA-WERK , |
| ld_lgort | TYPE OIJRRA-LGORT , |
| ld_rtype | TYPE OIJRRA-RTYPE , |
| ld_rdiff | TYPE OIJRRA-RDIFF , |
| ld_x_kunnr | TYPE STRING , |
| ld_x_lifnr | TYPE STRING , |
| ld_x_werk | TYPE STRING , |
| ld_x_lgort | TYPE STRING , |
| ld_x_rtype | TYPE STRING , |
| ld_x_rdiff | TYPE STRING , |
| ld__scope | TYPE STRING , |
| ld__synchron | TYPE STRING , |
| ld__collect | TYPE DDENQCOLL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name DEQUEUE_E_OIJRRA or its description.
DEQUEUE_E_OIJRRA - Release lock on object E_OIJRRA DEQUEUE_E_OIJRDPL - Release lock on object E_OIJRDPL DEQUEUE_E_OIJRDNOM - Release lock on object E_OIJRDNOM DEQUEUE_E_OIJRD - Release lock on object E_OIJRD DEQUEUE_E_OIJPEG - Release lock on object E_OIJPEG DEQUEUE_E_OIJNOMSI_SUBIT - Release lock on object E_OIJNOMSI_SUBIT