SAP ENQUEUE_ECOWIPB_CHVW Function Module for Request lock for object ECOWIPB_CHVW









ENQUEUE_ECOWIPB_CHVW is a standard enqueue ecowipb chvw 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 ECOWIPB_CHVW 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 ecowipb chvw FM, simply by entering the name ENQUEUE_ECOWIPB_CHVW into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/CEN0012
Program Name: /1BCDWBEN/SAPLCEN0012
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function ENQUEUE_ECOWIPB_CHVW 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_ECOWIPB_CHVW'"Request lock for object ECOWIPB_CHVW
EXPORTING
* MODE_COWIPB_CHVW = 'E' "Lock mode for table COWIPB_CHVW
* MATNR_PRE = "09th enqueue argument
* CHARG_PRE = "10th enqueue argument
* PCLVL_PRE = "11th enqueue argument
* X_AUFNR = ' ' "Fill argument 02 with initial value?
* X_POSNR = ' ' "Fill argument 03 with initial value?
* X_MATNR = ' ' "Fill argument 04 with initial value?
* X_CHARG = ' ' "Fill argument 05 with initial value?
* X_PCLVL = ' ' "Fill argument 06 with initial value?
* X_AUFNR_PRE = ' ' "Fill argument 07 with initial value?
* X_POSNR_PRE = ' ' "Fill argument 08 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_MATNR_PRE = ' ' "Fill argument 09 with initial value?
* X_CHARG_PRE = ' ' "Fill argument 10 with initial value?
* X_PCLVL_PRE = ' ' "Fill argument 11 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* AUFNR = "02th enqueue argument
* POSNR = "03th enqueue argument
* MATNR = "04th enqueue argument
* CHARG = "05th enqueue argument
* PCLVL = "06th enqueue argument
* AUFNR_PRE = "07th enqueue argument
* POSNR_PRE = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ECOWIPB_CHVW

MODE_COWIPB_CHVW - Lock mode for table COWIPB_CHVW

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

MATNR_PRE - 09th enqueue argument

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

CHARG_PRE - 10th enqueue argument

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

PCLVL_PRE - 11th enqueue argument

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

X_AUFNR - Fill argument 02 with initial value?

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

X_POSNR - Fill argument 03 with initial value?

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

X_MATNR - Fill argument 04 with initial value?

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

X_CHARG - Fill argument 05 with initial value?

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

X_PCLVL - Fill argument 06 with initial value?

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

X_AUFNR_PRE - Fill argument 07 with initial value?

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

X_POSNR_PRE - Fill argument 08 with initial value?

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

MANDT - 01th enqueue argument

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

X_MATNR_PRE - Fill argument 09 with initial value?

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

X_CHARG_PRE - Fill argument 10 with initial value?

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

X_PCLVL_PRE - Fill argument 11 with initial value?

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

_SCOPE -

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

_WAIT -

Data type: DDENQWAIT
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)

AUFNR - 02th enqueue argument

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

POSNR - 03th enqueue argument

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

MATNR - 04th enqueue argument

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

CHARG - 05th enqueue argument

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

PCLVL - 06th enqueue argument

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

AUFNR_PRE - 07th enqueue argument

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

POSNR_PRE - 08th enqueue argument

Data type: COWIPB_CHVW-POSNR_PRE
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_ECOWIPB_CHVW 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_cowipb_chvw  TYPE ENQMODE, "   'E'
lv_matnr_pre  TYPE COWIPB_CHVW-MATNR_PRE, "   
lv_charg_pre  TYPE COWIPB_CHVW-CHARG_PRE, "   
lv_pclvl_pre  TYPE COWIPB_CHVW-PCLVL_PRE, "   
lv_x_aufnr  TYPE DDENQXPAR, "   SPACE
lv_x_posnr  TYPE DDENQXPAR, "   SPACE
lv_x_matnr  TYPE DDENQXPAR, "   SPACE
lv_x_charg  TYPE DDENQXPAR, "   SPACE
lv_x_pclvl  TYPE DDENQXPAR, "   SPACE
lv_x_aufnr_pre  TYPE DDENQXPAR, "   SPACE
lv_x_posnr_pre  TYPE DDENQXPAR, "   SPACE
lv_mandt  TYPE COWIPB_CHVW-MANDT, "   SY-MANDT
lv_system_failure  TYPE COWIPB_CHVW, "   
lv_x_matnr_pre  TYPE DDENQXPAR, "   SPACE
lv_x_charg_pre  TYPE DDENQXPAR, "   SPACE
lv_x_pclvl_pre  TYPE DDENQXPAR, "   SPACE
lv__scope  TYPE DDENQSCOPE, "   '2'
lv__wait  TYPE DDENQWAIT, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_aufnr  TYPE COWIPB_CHVW-AUFNR, "   
lv_posnr  TYPE COWIPB_CHVW-POSNR, "   
lv_matnr  TYPE COWIPB_CHVW-MATNR, "   
lv_charg  TYPE COWIPB_CHVW-CHARG, "   
lv_pclvl  TYPE COWIPB_CHVW-PCLVL, "   
lv_aufnr_pre  TYPE COWIPB_CHVW-AUFNR_PRE, "   
lv_posnr_pre  TYPE COWIPB_CHVW-POSNR_PRE. "   

  CALL FUNCTION 'ENQUEUE_ECOWIPB_CHVW'  "Request lock for object ECOWIPB_CHVW
    EXPORTING
         MODE_COWIPB_CHVW = lv_mode_cowipb_chvw
         MATNR_PRE = lv_matnr_pre
         CHARG_PRE = lv_charg_pre
         PCLVL_PRE = lv_pclvl_pre
         X_AUFNR = lv_x_aufnr
         X_POSNR = lv_x_posnr
         X_MATNR = lv_x_matnr
         X_CHARG = lv_x_charg
         X_PCLVL = lv_x_pclvl
         X_AUFNR_PRE = lv_x_aufnr_pre
         X_POSNR_PRE = lv_x_posnr_pre
         MANDT = lv_mandt
         X_MATNR_PRE = lv_x_matnr_pre
         X_CHARG_PRE = lv_x_charg_pre
         X_PCLVL_PRE = lv_x_pclvl_pre
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         AUFNR = lv_aufnr
         POSNR = lv_posnr
         MATNR = lv_matnr
         CHARG = lv_charg
         PCLVL = lv_pclvl
         AUFNR_PRE = lv_aufnr_pre
         POSNR_PRE = lv_posnr_pre
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ECOWIPB_CHVW




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ECOWIPB_CHVW

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_cowipb_chvw) = 'E'.
 
"SELECT single MATNR_PRE FROM COWIPB_CHVW INTO @DATA(ld_matnr_pre).
 
"SELECT single CHARG_PRE FROM COWIPB_CHVW INTO @DATA(ld_charg_pre).
 
"SELECT single PCLVL_PRE FROM COWIPB_CHVW INTO @DATA(ld_pclvl_pre).
 
DATA(ld_x_aufnr) = ' '.
 
DATA(ld_x_posnr) = ' '.
 
DATA(ld_x_matnr) = ' '.
 
DATA(ld_x_charg) = ' '.
 
DATA(ld_x_pclvl) = ' '.
 
DATA(ld_x_aufnr_pre) = ' '.
 
DATA(ld_x_posnr_pre) = ' '.
 
"SELECT single MANDT FROM COWIPB_CHVW INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_matnr_pre) = ' '.
 
DATA(ld_x_charg_pre) = ' '.
 
DATA(ld_x_pclvl_pre) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single AUFNR FROM COWIPB_CHVW INTO @DATA(ld_aufnr).
 
"SELECT single POSNR FROM COWIPB_CHVW INTO @DATA(ld_posnr).
 
"SELECT single MATNR FROM COWIPB_CHVW INTO @DATA(ld_matnr).
 
"SELECT single CHARG FROM COWIPB_CHVW INTO @DATA(ld_charg).
 
"SELECT single PCLVL FROM COWIPB_CHVW INTO @DATA(ld_pclvl).
 
"SELECT single AUFNR_PRE FROM COWIPB_CHVW INTO @DATA(ld_aufnr_pre).
 
"SELECT single POSNR_PRE FROM COWIPB_CHVW INTO @DATA(ld_posnr_pre).
 


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!