SAP ENQUEUE_ESSOFM Function Module for









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

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



Function ENQUEUE_ESSOFM 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_ESSOFM'"
EXPORTING
* MODE_SOFM = 'E' "Lock mode for table SOFM
* FORYR = "09th enqueue argument
* FORNO = "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_DOCTP = ' ' "Fill argument 05 with initial value?
* X_DOCYR = ' ' "Fill argument 06 with initial value?
* X_DOCNO = ' ' "Fill argument 07 with initial value?
* X_FORTP = ' ' "Fill argument 08 with initial value?
* X_FORYR = ' ' "Fill argument 09 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_FORNO = ' ' "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
* DOCTP = "05th enqueue argument
* DOCYR = "06th enqueue argument
* DOCNO = "07th enqueue argument
* FORTP = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ESSOFM

MODE_SOFM - Lock mode for table SOFM

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

FORYR - 09th enqueue argument

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

FORNO - 10th enqueue argument

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

X_FOLTP - Fill argument 02 with initial value?

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

X_FOLYR - Fill argument 03 with initial value?

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

X_FOLNO - Fill argument 04 with initial value?

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

X_DOCTP - Fill argument 05 with initial value?

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

X_DOCYR - Fill argument 06 with initial value?

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

X_DOCNO - Fill argument 07 with initial value?

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

X_FORTP - Fill argument 08 with initial value?

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

X_FORYR - Fill argument 09 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: SOFM-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_FORNO - Fill argument 10 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: DDENQ_LIKE-COLLECT
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

FOLTP - 02th enqueue argument

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

FOLYR - 03th enqueue argument

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

FOLNO - 04th enqueue argument

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

DOCTP - 05th enqueue argument

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

DOCYR - 06th enqueue argument

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

DOCNO - 07th enqueue argument

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

FORTP - 08th enqueue argument

Data type: SOFM-FORTP
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_ESSOFM 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_sofm  TYPE DD26E-ENQMODE, "   'E'
lv_foreign_lock  TYPE DD26E, "   
lv_foryr  TYPE SOFM-FORYR, "   
lv_forno  TYPE SOFM-FORNO, "   
lv_x_foltp  TYPE SOFM, "   SPACE
lv_x_folyr  TYPE SOFM, "   SPACE
lv_x_folno  TYPE SOFM, "   SPACE
lv_x_doctp  TYPE SOFM, "   SPACE
lv_x_docyr  TYPE SOFM, "   SPACE
lv_x_docno  TYPE SOFM, "   SPACE
lv_x_fortp  TYPE SOFM, "   SPACE
lv_x_foryr  TYPE SOFM, "   SPACE
lv_mandt  TYPE SOFM-MANDT, "   SY-MANDT
lv_system_failure  TYPE SOFM, "   
lv_x_forno  TYPE SOFM, "   SPACE
lv__scope  TYPE SOFM, "   '2'
lv__wait  TYPE SOFM, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_foltp  TYPE SOFM-FOLTP, "   
lv_folyr  TYPE SOFM-FOLYR, "   
lv_folno  TYPE SOFM-FOLNO, "   
lv_doctp  TYPE SOFM-DOCTP, "   
lv_docyr  TYPE SOFM-DOCYR, "   
lv_docno  TYPE SOFM-DOCNO, "   
lv_fortp  TYPE SOFM-FORTP. "   

  CALL FUNCTION 'ENQUEUE_ESSOFM'  "
    EXPORTING
         MODE_SOFM = lv_mode_sofm
         FORYR = lv_foryr
         FORNO = lv_forno
         X_FOLTP = lv_x_foltp
         X_FOLYR = lv_x_folyr
         X_FOLNO = lv_x_folno
         X_DOCTP = lv_x_doctp
         X_DOCYR = lv_x_docyr
         X_DOCNO = lv_x_docno
         X_FORTP = lv_x_fortp
         X_FORYR = lv_x_foryr
         MANDT = lv_mandt
         X_FORNO = lv_x_forno
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         FOLTP = lv_foltp
         FOLYR = lv_folyr
         FOLNO = lv_folno
         DOCTP = lv_doctp
         DOCYR = lv_docyr
         DOCNO = lv_docno
         FORTP = lv_fortp
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ESSOFM




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ESSOFM

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_sofm).
DATA(ld_mode_sofm) = 'E'.
 
 
"SELECT single FORYR FROM SOFM INTO @DATA(ld_foryr).
 
"SELECT single FORNO FROM SOFM INTO @DATA(ld_forno).
 
DATA(ld_x_foltp) = ' '.
 
DATA(ld_x_folyr) = ' '.
 
DATA(ld_x_folno) = ' '.
 
DATA(ld_x_doctp) = ' '.
 
DATA(ld_x_docyr) = ' '.
 
DATA(ld_x_docno) = ' '.
 
DATA(ld_x_fortp) = ' '.
 
DATA(ld_x_foryr) = ' '.
 
"SELECT single MANDT FROM SOFM INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_forno) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
"SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect).
DATA(ld__collect) = ' '.
 
"SELECT single FOLTP FROM SOFM INTO @DATA(ld_foltp).
 
"SELECT single FOLYR FROM SOFM INTO @DATA(ld_folyr).
 
"SELECT single FOLNO FROM SOFM INTO @DATA(ld_folno).
 
"SELECT single DOCTP FROM SOFM INTO @DATA(ld_doctp).
 
"SELECT single DOCYR FROM SOFM INTO @DATA(ld_docyr).
 
"SELECT single DOCNO FROM SOFM INTO @DATA(ld_docno).
 
"SELECT single FORTP FROM SOFM INTO @DATA(ld_fortp).
 


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!