SAP ENQUEUE_E_OIU_CW_SUM Function Module for Request lock for object E_OIU_CW_SUM
ENQUEUE_E_OIU_CW_SUM is a standard enqueue e oiu cw sum 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_OIU_CW_SUM 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 oiu cw sum FM, simply by entering the name ENQUEUE_E_OIU_CW_SUM into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/OEN0006
Program Name: /1BCDWBEN/SAPLOEN0006
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENQUEUE_E_OIU_CW_SUM 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_OIU_CW_SUM'"Request lock for object E_OIU_CW_SUM.
EXPORTING
* MODE_OIU_CW_SUM_PAY = 'E' "Lock mode for table OIU_CW_SUM_PAY
* OWN_INT_TYPE = "09th enqueue argument
* OWN_INT_SEQ_NO = "10th enqueue argument
* ACCT_NO = "11th enqueue argument
* OWN_DECM_QY = "12th enqueue argument
* LGND_CD = "13th enqueue argument
* X_ORG_LVL_1 = ' ' "Fill argument 02 with initial value?
* X_OWN_NO = ' ' "Fill argument 03 with initial value?
* X_OWN_SEQ_NO = ' ' "Fill argument 04 with initial value?
* X_DOI_PR_NO = ' ' "Fill argument 05 with initial value?
* X_DOI_SEQ_NO = ' ' "Fill argument 06 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_PD_CD = ' ' "Fill argument 07 with initial value?
* X_SA_DT = ' ' "Fill argument 08 with initial value?
* X_OWN_INT_TYPE = ' ' "Fill argument 09 with initial value?
* X_OWN_INT_SEQ_NO = ' ' "Fill argument 10 with initial value?
* X_ACCT_NO = ' ' "Fill argument 11 with initial value?
* X_OWN_DECM_QY = ' ' "Fill argument 12 with initial value?
* X_LGND_CD = ' ' "Fill argument 13 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* ORG_LVL_1 = "02th enqueue argument
* OWN_NO = "03th enqueue argument
* OWN_SEQ_NO = "04th enqueue argument
* DOI_PR_NO = "05th enqueue argument
* DOI_SEQ_NO = "06th enqueue argument
* PD_CD = "07th enqueue argument
* SA_DT = "08th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_E_OIU_CW_SUM
MODE_OIU_CW_SUM_PAY - Lock mode for table OIU_CW_SUM_PAY
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
OWN_INT_TYPE - 09th enqueue argument
Data type: OIU_CW_SUM_PAY-OWN_INT_TYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
OWN_INT_SEQ_NO - 10th enqueue argument
Data type: OIU_CW_SUM_PAY-OWN_INT_SEQ_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
ACCT_NO - 11th enqueue argument
Data type: OIU_CW_SUM_PAY-ACCT_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
OWN_DECM_QY - 12th enqueue argument
Data type: OIU_CW_SUM_PAY-OWN_DECM_QYOptional: Yes
Call by Reference: No ( called with pass by value option)
LGND_CD - 13th enqueue argument
Data type: OIU_CW_SUM_PAY-LGND_CDOptional: Yes
Call by Reference: No ( called with pass by value option)
X_ORG_LVL_1 - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OWN_NO - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OWN_SEQ_NO - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DOI_PR_NO - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DOI_SEQ_NO - Fill argument 06 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: OIU_CW_SUM_PAY-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PD_CD - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SA_DT - Fill argument 08 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OWN_INT_TYPE - Fill argument 09 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OWN_INT_SEQ_NO - Fill argument 10 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ACCT_NO - Fill argument 11 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OWN_DECM_QY - Fill argument 12 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_LGND_CD - Fill argument 13 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: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
ORG_LVL_1 - 02th enqueue argument
Data type: OIU_CW_SUM_PAY-ORG_LVL_1Optional: Yes
Call by Reference: No ( called with pass by value option)
OWN_NO - 03th enqueue argument
Data type: OIU_CW_SUM_PAY-OWN_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
OWN_SEQ_NO - 04th enqueue argument
Data type: OIU_CW_SUM_PAY-OWN_SEQ_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
DOI_PR_NO - 05th enqueue argument
Data type: OIU_CW_SUM_PAY-DOI_PR_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
DOI_SEQ_NO - 06th enqueue argument
Data type: OIU_CW_SUM_PAY-DOI_SEQ_NOOptional: Yes
Call by Reference: No ( called with pass by value option)
PD_CD - 07th enqueue argument
Data type: OIU_CW_SUM_PAY-PD_CDOptional: Yes
Call by Reference: No ( called with pass by value option)
SA_DT - 08th enqueue argument
Data type: OIU_CW_SUM_PAY-SA_DTOptional: 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_OIU_CW_SUM 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_oiu_cw_sum_pay | TYPE ENQMODE, " 'E' | |||
| lv_own_int_type | TYPE OIU_CW_SUM_PAY-OWN_INT_TYPE, " | |||
| lv_own_int_seq_no | TYPE OIU_CW_SUM_PAY-OWN_INT_SEQ_NO, " | |||
| lv_acct_no | TYPE OIU_CW_SUM_PAY-ACCT_NO, " | |||
| lv_own_decm_qy | TYPE OIU_CW_SUM_PAY-OWN_DECM_QY, " | |||
| lv_lgnd_cd | TYPE OIU_CW_SUM_PAY-LGND_CD, " | |||
| lv_x_org_lvl_1 | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_own_no | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_own_seq_no | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_doi_pr_no | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_doi_seq_no | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_mandt | TYPE OIU_CW_SUM_PAY-MANDT, " SY-MANDT | |||
| lv_system_failure | TYPE OIU_CW_SUM_PAY, " | |||
| lv_x_pd_cd | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_sa_dt | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_own_int_type | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_own_int_seq_no | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_acct_no | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_own_decm_qy | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv_x_lgnd_cd | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv__scope | TYPE OIU_CW_SUM_PAY, " '2' | |||
| lv__wait | TYPE OIU_CW_SUM_PAY, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_org_lvl_1 | TYPE OIU_CW_SUM_PAY-ORG_LVL_1, " | |||
| lv_own_no | TYPE OIU_CW_SUM_PAY-OWN_NO, " | |||
| lv_own_seq_no | TYPE OIU_CW_SUM_PAY-OWN_SEQ_NO, " | |||
| lv_doi_pr_no | TYPE OIU_CW_SUM_PAY-DOI_PR_NO, " | |||
| lv_doi_seq_no | TYPE OIU_CW_SUM_PAY-DOI_SEQ_NO, " | |||
| lv_pd_cd | TYPE OIU_CW_SUM_PAY-PD_CD, " | |||
| lv_sa_dt | TYPE OIU_CW_SUM_PAY-SA_DT. " |
|   CALL FUNCTION 'ENQUEUE_E_OIU_CW_SUM' "Request lock for object E_OIU_CW_SUM |
| EXPORTING | ||
| MODE_OIU_CW_SUM_PAY | = lv_mode_oiu_cw_sum_pay | |
| OWN_INT_TYPE | = lv_own_int_type | |
| OWN_INT_SEQ_NO | = lv_own_int_seq_no | |
| ACCT_NO | = lv_acct_no | |
| OWN_DECM_QY | = lv_own_decm_qy | |
| LGND_CD | = lv_lgnd_cd | |
| X_ORG_LVL_1 | = lv_x_org_lvl_1 | |
| X_OWN_NO | = lv_x_own_no | |
| X_OWN_SEQ_NO | = lv_x_own_seq_no | |
| X_DOI_PR_NO | = lv_x_doi_pr_no | |
| X_DOI_SEQ_NO | = lv_x_doi_seq_no | |
| MANDT | = lv_mandt | |
| X_PD_CD | = lv_x_pd_cd | |
| X_SA_DT | = lv_x_sa_dt | |
| X_OWN_INT_TYPE | = lv_x_own_int_type | |
| X_OWN_INT_SEQ_NO | = lv_x_own_int_seq_no | |
| X_ACCT_NO | = lv_x_acct_no | |
| X_OWN_DECM_QY | = lv_x_own_decm_qy | |
| X_LGND_CD | = lv_x_lgnd_cd | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| ORG_LVL_1 | = lv_org_lvl_1 | |
| OWN_NO | = lv_own_no | |
| OWN_SEQ_NO | = lv_own_seq_no | |
| DOI_PR_NO | = lv_doi_pr_no | |
| DOI_SEQ_NO | = lv_doi_seq_no | |
| PD_CD | = lv_pd_cd | |
| SA_DT | = lv_sa_dt | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_E_OIU_CW_SUM | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_OIU_CW_SUM
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_oiu_cw_sum_pay) | = 'E'. | |||
| "SELECT single OWN_INT_TYPE FROM OIU_CW_SUM_PAY INTO @DATA(ld_own_int_type). | ||||
| "SELECT single OWN_INT_SEQ_NO FROM OIU_CW_SUM_PAY INTO @DATA(ld_own_int_seq_no). | ||||
| "SELECT single ACCT_NO FROM OIU_CW_SUM_PAY INTO @DATA(ld_acct_no). | ||||
| "SELECT single OWN_DECM_QY FROM OIU_CW_SUM_PAY INTO @DATA(ld_own_decm_qy). | ||||
| "SELECT single LGND_CD FROM OIU_CW_SUM_PAY INTO @DATA(ld_lgnd_cd). | ||||
| DATA(ld_x_org_lvl_1) | = ' '. | |||
| DATA(ld_x_own_no) | = ' '. | |||
| DATA(ld_x_own_seq_no) | = ' '. | |||
| DATA(ld_x_doi_pr_no) | = ' '. | |||
| DATA(ld_x_doi_seq_no) | = ' '. | |||
| "SELECT single MANDT FROM OIU_CW_SUM_PAY INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| DATA(ld_x_pd_cd) | = ' '. | |||
| DATA(ld_x_sa_dt) | = ' '. | |||
| DATA(ld_x_own_int_type) | = ' '. | |||
| DATA(ld_x_own_int_seq_no) | = ' '. | |||
| DATA(ld_x_acct_no) | = ' '. | |||
| DATA(ld_x_own_decm_qy) | = ' '. | |||
| DATA(ld_x_lgnd_cd) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single ORG_LVL_1 FROM OIU_CW_SUM_PAY INTO @DATA(ld_org_lvl_1). | ||||
| "SELECT single OWN_NO FROM OIU_CW_SUM_PAY INTO @DATA(ld_own_no). | ||||
| "SELECT single OWN_SEQ_NO FROM OIU_CW_SUM_PAY INTO @DATA(ld_own_seq_no). | ||||
| "SELECT single DOI_PR_NO FROM OIU_CW_SUM_PAY INTO @DATA(ld_doi_pr_no). | ||||
| "SELECT single DOI_SEQ_NO FROM OIU_CW_SUM_PAY INTO @DATA(ld_doi_seq_no). | ||||
| "SELECT single PD_CD FROM OIU_CW_SUM_PAY INTO @DATA(ld_pd_cd). | ||||
| "SELECT single SA_DT FROM OIU_CW_SUM_PAY INTO @DATA(ld_sa_dt). | ||||
Search for further information about these or an SAP related objects