ENQUEUE_E_OIU_WCTCM 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 ENQUEUE_E_OIU_WCTCM into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
DWBEN/SAPLOEN0002
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ENQUEUE_E_OIU_WCTCM' "Request lock for object E_OIU_WCTCM
* EXPORTING
* mode_oiu_pr_wctcm = 'E' " enqmode Lock mode for table OIU_PR_WCTCM
* mandt = SY-MANDT " oiu_pr_wctcm-mandt 01th enqueue argument
* wl_no = " oiu_pr_wctcm-wl_no 02th enqueue argument
* wc_no = " oiu_pr_wctcm-wc_no 03th enqueue argument
* freq_cd = " oiu_pr_wctcm-freq_cd 04th enqueue argument
* majpd_cd = " oiu_pr_wctcm-majpd_cd 05th enqueue argument
* eff_from_dt = " oiu_pr_wctcm-eff_from_dt 06th enqueue argument
* x_wl_no = SPACE " Fill argument 02 with initial value?
* x_wc_no = SPACE " Fill argument 03 with initial value?
* x_freq_cd = SPACE " Fill argument 04 with initial value?
* x_majpd_cd = SPACE " Fill argument 05 with initial value?
* x_eff_from_dt = SPACE " Fill argument 06 with initial value?
* _scope = '2' "
* _wait = SPACE "
* _collect = ' ' " ddenqcoll Initially only collect lock
EXCEPTIONS
FOREIGN_LOCK = 1 " Object already locked
SYSTEM_FAILURE = 2 " Internal error from enqueue server
. " ENQUEUE_E_OIU_WCTCM
The ABAP code below is a full code listing to execute function module ENQUEUE_E_OIU_WCTCM 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_oiu_pr_wctcm) = 'Check type of data required'.
SELECT single MANDT
FROM OIU_PR_WCTCM
INTO @DATA(ld_mandt).
SELECT single WL_NO
FROM OIU_PR_WCTCM
INTO @DATA(ld_wl_no).
SELECT single WC_NO
FROM OIU_PR_WCTCM
INTO @DATA(ld_wc_no).
SELECT single FREQ_CD
FROM OIU_PR_WCTCM
INTO @DATA(ld_freq_cd).
SELECT single MAJPD_CD
FROM OIU_PR_WCTCM
INTO @DATA(ld_majpd_cd).
SELECT single EFF_FROM_DT
FROM OIU_PR_WCTCM
INTO @DATA(ld_eff_from_dt).
DATA(ld_x_wl_no) = 'some text here'.
DATA(ld_x_wc_no) = 'some text here'.
DATA(ld_x_freq_cd) = 'some text here'.
DATA(ld_x_majpd_cd) = 'some text here'.
DATA(ld_x_eff_from_dt) = 'some text here'.
DATA(ld__scope) = 'some text here'.
DATA(ld__wait) = 'some text here'.
DATA(ld__collect) = 'Check type of data required'. . CALL FUNCTION 'ENQUEUE_E_OIU_WCTCM' * EXPORTING * mode_oiu_pr_wctcm = ld_mode_oiu_pr_wctcm * mandt = ld_mandt * wl_no = ld_wl_no * wc_no = ld_wc_no * freq_cd = ld_freq_cd * majpd_cd = ld_majpd_cd * eff_from_dt = ld_eff_from_dt * x_wl_no = ld_x_wl_no * x_wc_no = ld_x_wc_no * x_freq_cd = ld_x_freq_cd * x_majpd_cd = ld_x_majpd_cd * x_eff_from_dt = ld_x_eff_from_dt * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_E_OIU_WCTCM
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here 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_oiu_pr_wctcm | TYPE ENQMODE , |
| ld_mandt | TYPE OIU_PR_WCTCM-MANDT , |
| ld_wl_no | TYPE OIU_PR_WCTCM-WL_NO , |
| ld_wc_no | TYPE OIU_PR_WCTCM-WC_NO , |
| ld_freq_cd | TYPE OIU_PR_WCTCM-FREQ_CD , |
| ld_majpd_cd | TYPE OIU_PR_WCTCM-MAJPD_CD , |
| ld_eff_from_dt | TYPE OIU_PR_WCTCM-EFF_FROM_DT , |
| ld_x_wl_no | TYPE STRING , |
| ld_x_wc_no | TYPE STRING , |
| ld_x_freq_cd | TYPE STRING , |
| ld_x_majpd_cd | TYPE STRING , |
| ld_x_eff_from_dt | TYPE STRING , |
| ld__scope | TYPE STRING , |
| ld__wait | 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 ENQUEUE_E_OIU_WCTCM or its description.
ENQUEUE_E_OIU_WCTCM - Request lock for object E_OIU_WCTCM ENQUEUE_E_OIU_WCSSH - Request lock for object E_OIU_WCSSH ENQUEUE_E_OIU_WCRMAT - Request lock for object E_OIU_WCRMAT ENQUEUE_E_OIU_WCHV - Request lock for object E_OIU_WCHV ENQUEUE_E_OIU_WCDVLH - Request lock for object E_OIU_WCDVLH ENQUEUE_E_OIU_WCDT - Request lock for object E_OIU_WCDT