SAP ENQUEUE_EPYC_ST_CONF Function Module for Request lock for object EPYC_ST_CONF









ENQUEUE_EPYC_ST_CONF is a standard enqueue epyc st conf 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 EPYC_ST_CONF 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 epyc st conf FM, simply by entering the name ENQUEUE_EPYC_ST_CONF into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_EPYC_ST_CONF 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_EPYC_ST_CONF'"Request lock for object EPYC_ST_CONF
EXPORTING
* MODE_PYD_D_TY = 'E' "Lock mode for table PYD_D_TY
* MANDT = SY-MANDT "Enqueue argument 01
* TYPE = "Enqueue argument 02
* X_TYPE = ' ' "Fill argument 02 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MODE_PYD_D_TYPTI = 'E' "Lock mode for table PYD_D_TYPTI
* MODE_PYD_D_TYPTR = 'E' "Lock mode for table PYD_D_TYPTR
* MODE_PYD_D_TYPTRRDT = 'E' "Lock mode for table PYD_D_TYPTRRDT
* MODE_PYD_D_TYPTRSCR = 'E' "Lock mode for table PYD_D_TYPTRSCR
* MODE_PYD_D_TYPTRSCRT = 'E' "Lock mode for table PYD_D_TYPTRSCRT
* MODE_PYD_D_TYSC = 'E' "Lock mode for table PYD_D_TYSC
* MODE_PYD_D_TYT = 'E' "Lock mode for table PYD_D_TYT
* MODE_PYD_D_TYUICA = 'E' "Lock mode for table PYD_D_TYUICA

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EPYC_ST_CONF

MODE_PYD_D_TY - Lock mode for table PYD_D_TY

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

MANDT - Enqueue argument 01

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

TYPE - Enqueue argument 02

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

X_TYPE - Fill argument 02 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)

MODE_PYD_D_TYPTI - Lock mode for table PYD_D_TYPTI

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

MODE_PYD_D_TYPTR - Lock mode for table PYD_D_TYPTR

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

MODE_PYD_D_TYPTRRDT - Lock mode for table PYD_D_TYPTRRDT

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

MODE_PYD_D_TYPTRSCR - Lock mode for table PYD_D_TYPTRSCR

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

MODE_PYD_D_TYPTRSCRT - Lock mode for table PYD_D_TYPTRSCRT

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

MODE_PYD_D_TYSC - Lock mode for table PYD_D_TYSC

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

MODE_PYD_D_TYT - Lock mode for table PYD_D_TYT

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

MODE_PYD_D_TYUICA - Lock mode for table PYD_D_TYUICA

Data type: ENQMODE
Default: 'E'
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_EPYC_ST_CONF 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_pyd_d_ty  TYPE ENQMODE, "   'E'
lv_mandt  TYPE PYD_D_TY-MANDT, "   SY-MANDT
lv_type  TYPE PYD_D_TY-TYPE, "   
lv_x_type  TYPE PYD_D_TY, "   SPACE
lv__scope  TYPE PYD_D_TY, "   '2'
lv__wait  TYPE PYD_D_TY, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_system_failure  TYPE DDENQCOLL, "   
lv_mode_pyd_d_typti  TYPE ENQMODE, "   'E'
lv_mode_pyd_d_typtr  TYPE ENQMODE, "   'E'
lv_mode_pyd_d_typtrrdt  TYPE ENQMODE, "   'E'
lv_mode_pyd_d_typtrscr  TYPE ENQMODE, "   'E'
lv_mode_pyd_d_typtrscrt  TYPE ENQMODE, "   'E'
lv_mode_pyd_d_tysc  TYPE ENQMODE, "   'E'
lv_mode_pyd_d_tyt  TYPE ENQMODE, "   'E'
lv_mode_pyd_d_tyuica  TYPE ENQMODE. "   'E'

  CALL FUNCTION 'ENQUEUE_EPYC_ST_CONF'  "Request lock for object EPYC_ST_CONF
    EXPORTING
         MODE_PYD_D_TY = lv_mode_pyd_d_ty
         MANDT = lv_mandt
         TYPE = lv_type
         X_TYPE = lv_x_type
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MODE_PYD_D_TYPTI = lv_mode_pyd_d_typti
         MODE_PYD_D_TYPTR = lv_mode_pyd_d_typtr
         MODE_PYD_D_TYPTRRDT = lv_mode_pyd_d_typtrrdt
         MODE_PYD_D_TYPTRSCR = lv_mode_pyd_d_typtrscr
         MODE_PYD_D_TYPTRSCRT = lv_mode_pyd_d_typtrscrt
         MODE_PYD_D_TYSC = lv_mode_pyd_d_tysc
         MODE_PYD_D_TYT = lv_mode_pyd_d_tyt
         MODE_PYD_D_TYUICA = lv_mode_pyd_d_tyuica
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EPYC_ST_CONF




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EPYC_ST_CONF

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_pyd_d_ty) = 'E'.
 
"SELECT single MANDT FROM PYD_D_TY INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single TYPE FROM PYD_D_TY INTO @DATA(ld_type).
 
DATA(ld_x_type) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
 
DATA(ld_mode_pyd_d_typti) = 'E'.
 
DATA(ld_mode_pyd_d_typtr) = 'E'.
 
DATA(ld_mode_pyd_d_typtrrdt) = 'E'.
 
DATA(ld_mode_pyd_d_typtrscr) = 'E'.
 
DATA(ld_mode_pyd_d_typtrscrt) = 'E'.
 
DATA(ld_mode_pyd_d_tysc) = 'E'.
 
DATA(ld_mode_pyd_d_tyt) = 'E'.
 
DATA(ld_mode_pyd_d_tyuica) = 'E'.
 


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!