SAP ENQUEUE_ESSORD Function Module for









ENQUEUE_ESSORD is a standard enqueue essord SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 essord FM, simply by entering the name ENQUEUE_ESSORD into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_ESSORD 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_ESSORD'"
EXPORTING
* MODE_SORD = 'E' "Lock mode for table SORD
* OBJYR = "09th enqueue argument
* OBJNO = "10th enqueue argument
* X_FOLTP = ' ' "Fill argument 02 with initial value?
* X_FOLYR = ' ' "Fill argument 03 with initial value?
* X_FOLNO = ' ' "Fill argument 04 with initial value?
* X_USRTP = ' ' "Fill argument 05 with initial value?
* X_USRYR = ' ' "Fill argument 06 with initial value?
* X_USRNO = ' ' "Fill argument 07 with initial value?
* X_OBJTP = ' ' "Fill argument 08 with initial value?
* X_OBJYR = ' ' "Fill argument 09 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_OBJNO = ' ' "Fill argument 10 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* FOLTP = "02th enqueue argument
* FOLYR = "03th enqueue argument
* FOLNO = "04th enqueue argument
* USRTP = "05th enqueue argument
* USRYR = "06th enqueue argument
* USRNO = "07th enqueue argument
* OBJTP = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ESSORD

MODE_SORD - Lock mode for table SORD

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

OBJYR - 09th enqueue argument

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

OBJNO - 10th enqueue argument

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

X_FOLTP - Fill argument 02 with initial value?

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

X_FOLYR - Fill argument 03 with initial value?

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

X_FOLNO - Fill argument 04 with initial value?

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

X_USRTP - Fill argument 05 with initial value?

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

X_USRYR - Fill argument 06 with initial value?

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

X_USRNO - Fill argument 07 with initial value?

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

X_OBJTP - Fill argument 08 with initial value?

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

X_OBJYR - Fill argument 09 with initial value?

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

MANDT - 01th enqueue argument

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

X_OBJNO - Fill argument 10 with initial value?

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

_SCOPE -

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

_WAIT -

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

_COLLECT - Initially only collect lock

Data type: DDENQ_LIKE-COLLECT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FOLTP - 02th enqueue argument

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

FOLYR - 03th enqueue argument

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

FOLNO - 04th enqueue argument

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

USRTP - 05th enqueue argument

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

USRYR - 06th enqueue argument

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

USRNO - 07th enqueue argument

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

OBJTP - 08th enqueue argument

Data type: SORD-OBJTP
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_ESSORD 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_mode_sord  TYPE DD26E-ENQMODE, "   'E'
lv_foreign_lock  TYPE DD26E, "   
lv_objyr  TYPE SORD-OBJYR, "   
lv_objno  TYPE SORD-OBJNO, "   
lv_x_foltp  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_x_folyr  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_x_folno  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_x_usrtp  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_x_usryr  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_x_usrno  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_x_objtp  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_x_objyr  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv_mandt  TYPE SORD-MANDT, "   SY-MANDT
lv_system_failure  TYPE SORD, "   
lv_x_objno  TYPE DDENQ_LIKE-XPARFLAG, "   SPACE
lv__scope  TYPE DDENQ_LIKE-SCOPE, "   '2'
lv__wait  TYPE DDENQ_LIKE-WAITFLAG, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_foltp  TYPE SORD-FOLTP, "   
lv_folyr  TYPE SORD-FOLYR, "   
lv_folno  TYPE SORD-FOLNO, "   
lv_usrtp  TYPE SORD-USRTP, "   
lv_usryr  TYPE SORD-USRYR, "   
lv_usrno  TYPE SORD-USRNO, "   
lv_objtp  TYPE SORD-OBJTP. "   

  CALL FUNCTION 'ENQUEUE_ESSORD'  "
    EXPORTING
         MODE_SORD = lv_mode_sord
         OBJYR = lv_objyr
         OBJNO = lv_objno
         X_FOLTP = lv_x_foltp
         X_FOLYR = lv_x_folyr
         X_FOLNO = lv_x_folno
         X_USRTP = lv_x_usrtp
         X_USRYR = lv_x_usryr
         X_USRNO = lv_x_usrno
         X_OBJTP = lv_x_objtp
         X_OBJYR = lv_x_objyr
         MANDT = lv_mandt
         X_OBJNO = lv_x_objno
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         FOLTP = lv_foltp
         FOLYR = lv_folyr
         FOLNO = lv_folno
         USRTP = lv_usrtp
         USRYR = lv_usryr
         USRNO = lv_usrno
         OBJTP = lv_objtp
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ESSORD




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ESSORD

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.

"SELECT single ENQMODE FROM DD26E INTO @DATA(ld_mode_sord).
DATA(ld_mode_sord) = 'E'.
 
 
"SELECT single OBJYR FROM SORD INTO @DATA(ld_objyr).
 
"SELECT single OBJNO FROM SORD INTO @DATA(ld_objno).
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_foltp).
DATA(ld_x_foltp) = ' '.
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_folyr).
DATA(ld_x_folyr) = ' '.
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_folno).
DATA(ld_x_folno) = ' '.
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_usrtp).
DATA(ld_x_usrtp) = ' '.
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_usryr).
DATA(ld_x_usryr) = ' '.
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_usrno).
DATA(ld_x_usrno) = ' '.
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_objtp).
DATA(ld_x_objtp) = ' '.
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_objyr).
DATA(ld_x_objyr) = ' '.
 
"SELECT single MANDT FROM SORD INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
"SELECT single XPARFLAG FROM DDENQ_LIKE INTO @DATA(ld_x_objno).
DATA(ld_x_objno) = ' '.
 
"SELECT single SCOPE FROM DDENQ_LIKE INTO @DATA(ld__scope).
DATA(ld__scope) = '2'.
 
"SELECT single WAITFLAG FROM DDENQ_LIKE INTO @DATA(ld__wait).
DATA(ld__wait) = ' '.
 
"SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect).
DATA(ld__collect) = ' '.
 
"SELECT single FOLTP FROM SORD INTO @DATA(ld_foltp).
 
"SELECT single FOLYR FROM SORD INTO @DATA(ld_folyr).
 
"SELECT single FOLNO FROM SORD INTO @DATA(ld_folno).
 
"SELECT single USRTP FROM SORD INTO @DATA(ld_usrtp).
 
"SELECT single USRYR FROM SORD INTO @DATA(ld_usryr).
 
"SELECT single USRNO FROM SORD INTO @DATA(ld_usrno).
 
"SELECT single OBJTP FROM SORD INTO @DATA(ld_objtp).
 


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!