SAP ENQUEUE_E_CVP_SORT_CD Function Module for Request lock for object E_CVP_SORT_CD









ENQUEUE_E_CVP_SORT_CD is a standard enqueue e cvp sort cd 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_CVP_SORT_CD 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 cvp sort cd FM, simply by entering the name ENQUEUE_E_CVP_SORT_CD into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/EEN0004
Program Name: /1BCDWBEN/SAPLEEN0004
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_E_CVP_SORT_CD 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_CVP_SORT_CD'"Request lock for object E_CVP_SORT_CD
EXPORTING
* MODE_CVP_SORT_CD = 'E' "Lock mode for table CVP_SORT_CD
* X_ID_TYPE = ' ' "Fill argument 03 with initial value?
* X_BUKRS = ' ' "Fill argument 04 with initial value?
* X_VKORG = ' ' "Fill argument 05 with initial value?
* X_APPL_NAME = ' ' "Fill argument 06 with initial value?
* X_IDX = ' ' "Fill argument 07 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* CLIENT = SY-MANDT "01th enqueue argument
* ID = "02th enqueue argument
* ID_TYPE = "03th enqueue argument
* BUKRS = "04th enqueue argument
* VKORG = "05th enqueue argument
* APPL_NAME = "06th enqueue argument
* IDX = "07th enqueue argument
* X_ID = ' ' "Fill argument 02 with initial value?

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_CVP_SORT_CD

MODE_CVP_SORT_CD - Lock mode for table CVP_SORT_CD

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

X_ID_TYPE - Fill argument 03 with initial value?

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

X_BUKRS - Fill argument 04 with initial value?

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

X_VKORG - Fill argument 05 with initial value?

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

X_APPL_NAME - Fill argument 06 with initial value?

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

X_IDX - Fill argument 07 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: DDENQCOLL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT - 01th enqueue argument

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

ID - 02th enqueue argument

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

ID_TYPE - 03th enqueue argument

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

BUKRS - 04th enqueue argument

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

VKORG - 05th enqueue argument

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

APPL_NAME - 06th enqueue argument

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

IDX - 07th enqueue argument

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

X_ID - Fill argument 02 with initial value?

Data type:
Default: SPACE
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_E_CVP_SORT_CD 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_cvp_sort_cd  TYPE ENQMODE, "   'E'
lv_x_id_type  TYPE ENQMODE, "   SPACE
lv_x_bukrs  TYPE ENQMODE, "   SPACE
lv_x_vkorg  TYPE ENQMODE, "   SPACE
lv_x_appl_name  TYPE ENQMODE, "   SPACE
lv_x_idx  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_client  TYPE CVP_SORT_CD-CLIENT, "   SY-MANDT
lv_system_failure  TYPE CVP_SORT_CD, "   
lv_id  TYPE CVP_SORT_CD-ID, "   
lv_id_type  TYPE CVP_SORT_CD-ID_TYPE, "   
lv_bukrs  TYPE CVP_SORT_CD-BUKRS, "   
lv_vkorg  TYPE CVP_SORT_CD-VKORG, "   
lv_appl_name  TYPE CVP_SORT_CD-APPL_NAME, "   
lv_idx  TYPE CVP_SORT_CD-IDX, "   
lv_x_id  TYPE CVP_SORT_CD. "   SPACE

  CALL FUNCTION 'ENQUEUE_E_CVP_SORT_CD'  "Request lock for object E_CVP_SORT_CD
    EXPORTING
         MODE_CVP_SORT_CD = lv_mode_cvp_sort_cd
         X_ID_TYPE = lv_x_id_type
         X_BUKRS = lv_x_bukrs
         X_VKORG = lv_x_vkorg
         X_APPL_NAME = lv_x_appl_name
         X_IDX = lv_x_idx
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         CLIENT = lv_client
         ID = lv_id
         ID_TYPE = lv_id_type
         BUKRS = lv_bukrs
         VKORG = lv_vkorg
         APPL_NAME = lv_appl_name
         IDX = lv_idx
         X_ID = lv_x_id
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_CVP_SORT_CD




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_CVP_SORT_CD

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_cvp_sort_cd) = 'E'.
 
DATA(ld_x_id_type) = ' '.
 
DATA(ld_x_bukrs) = ' '.
 
DATA(ld_x_vkorg) = ' '.
 
DATA(ld_x_appl_name) = ' '.
 
DATA(ld_x_idx) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single CLIENT FROM CVP_SORT_CD INTO @DATA(ld_client).
DATA(ld_client) = SY-MANDT.
 
 
"SELECT single ID FROM CVP_SORT_CD INTO @DATA(ld_id).
 
"SELECT single ID_TYPE FROM CVP_SORT_CD INTO @DATA(ld_id_type).
 
"SELECT single BUKRS FROM CVP_SORT_CD INTO @DATA(ld_bukrs).
 
"SELECT single VKORG FROM CVP_SORT_CD INTO @DATA(ld_vkorg).
 
"SELECT single APPL_NAME FROM CVP_SORT_CD INTO @DATA(ld_appl_name).
 
"SELECT single IDX FROM CVP_SORT_CD INTO @DATA(ld_idx).
 
DATA(ld_x_id) = ' '.
 


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!