SAP Function Modules

DEQUEUE_E_OIU_WCTRN SAP Function module - Release lock on object E_OIU_WCTRN







DEQUEUE_E_OIU_WCTRN 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_OIU_WCTRN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DWBEN/SAPLOEN0002
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM DEQUEUE_E_OIU_WCTRN - DEQUEUE E OIU WCTRN





CALL FUNCTION 'DEQUEUE_E_OIU_WCTRN' "Release lock on object E_OIU_WCTRN
* EXPORTING
*   mandt = SY-MANDT            " oiu_pr_wctrnh-mandt  01th enqueue argument
*   wl_no =                     " oiu_pr_wctrnh-wl_no  02th enqueue argument
*   wc_no =                     " oiu_pr_wctrnh-wc_no  03th enqueue argument
*   eff_from_dt =               " oiu_pr_wctrnh-eff_from_dt  04th enqueue argument
*   trnsp_no =                  " oiu_pr_wctrnh-trnsp_no  05th enqueue argument
*   x_wl_no = SPACE             "               Fill argument 02 with initial value?
*   x_wc_no = SPACE             "               Fill argument 03 with initial value?
*   x_eff_from_dt = SPACE       "               Fill argument 04 with initial value?
*   x_trnsp_no = SPACE          "               Fill argument 05 with initial value?
*   _scope = '3'                "
*   _synchron = SPACE           "               Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_E_OIU_WCTRN

ABAP code example for Function Module DEQUEUE_E_OIU_WCTRN





The ABAP code below is a full code listing to execute function module DEQUEUE_E_OIU_WCTRN 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).

 

SELECT single MANDT
FROM OIU_PR_WCTRNH
INTO @DATA(ld_mandt).


SELECT single WL_NO
FROM OIU_PR_WCTRNH
INTO @DATA(ld_wl_no).


SELECT single WC_NO
FROM OIU_PR_WCTRNH
INTO @DATA(ld_wc_no).


SELECT single EFF_FROM_DT
FROM OIU_PR_WCTRNH
INTO @DATA(ld_eff_from_dt).


SELECT single TRNSP_NO
FROM OIU_PR_WCTRNH
INTO @DATA(ld_trnsp_no).

DATA(ld_x_wl_no) = 'some text here'.
DATA(ld_x_wc_no) = 'some text here'.
DATA(ld_x_eff_from_dt) = 'some text here'.
DATA(ld_x_trnsp_no) = '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_OIU_WCTRN' * EXPORTING * mandt = ld_mandt * wl_no = ld_wl_no * wc_no = ld_wc_no * eff_from_dt = ld_eff_from_dt * trnsp_no = ld_trnsp_no * x_wl_no = ld_x_wl_no * x_wc_no = ld_x_wc_no * x_eff_from_dt = ld_x_eff_from_dt * x_trnsp_no = ld_x_trnsp_no * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_E_OIU_WCTRN
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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_mandt  TYPE OIU_PR_WCTRNH-MANDT ,
ld_wl_no  TYPE OIU_PR_WCTRNH-WL_NO ,
ld_wc_no  TYPE OIU_PR_WCTRNH-WC_NO ,
ld_eff_from_dt  TYPE OIU_PR_WCTRNH-EFF_FROM_DT ,
ld_trnsp_no  TYPE OIU_PR_WCTRNH-TRNSP_NO ,
ld_x_wl_no  TYPE STRING ,
ld_x_wc_no  TYPE STRING ,
ld_x_eff_from_dt  TYPE STRING ,
ld_x_trnsp_no  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__synchron  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .


SELECT single MANDT
FROM OIU_PR_WCTRNH
INTO ld_mandt.


SELECT single WL_NO
FROM OIU_PR_WCTRNH
INTO ld_wl_no.


SELECT single WC_NO
FROM OIU_PR_WCTRNH
INTO ld_wc_no.


SELECT single EFF_FROM_DT
FROM OIU_PR_WCTRNH
INTO ld_eff_from_dt.


SELECT single TRNSP_NO
FROM OIU_PR_WCTRNH
INTO ld_trnsp_no.

ld_x_wl_no = 'some text here'.
ld_x_wc_no = 'some text here'.
ld_x_eff_from_dt = 'some text here'.
ld_x_trnsp_no = 'some text here'.
ld__scope = 'some text here'.
ld__synchron = 'some text here'.
ld__collect = 'Check type of data required'.

Contribute (Add Comments)

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_OIU_WCTRN or its description.