SAP ENQUEUE_ESFHT Function Module for









ENQUEUE_ESFHT is a standard enqueue esfht 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 esfht FM, simply by entering the name ENQUEUE_ESFHT 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_ESFHT 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_ESFHT'"
EXPORTING
* MODE_SFHH = 'E' "Lock mode for table SFHH
* X_DOKASPCT = ' ' "Fill argument 04 with initial value?
* X_DOKVERSION = ' ' "Fill argument 05 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* DOKCLASS = "01th enqueue argument
* DOKNAME = "02th enqueue argument
* DOKLANGU = "03th enqueue argument
* DOKASPCT = "04th enqueue argument
* DOKVERSION = "05th enqueue argument
* X_DOKCLASS = ' ' "Fill argument 01 with initial value?
* X_DOKNAME = ' ' "Fill argument 02 with initial value?
* X_DOKLANGU = ' ' "Fill argument 03 with initial value?

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ESFHT

MODE_SFHH - Lock mode for table SFHH

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

X_DOKASPCT - Fill argument 04 with initial value?

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

X_DOKVERSION - Fill argument 05 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)

DOKCLASS - 01th enqueue argument

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

DOKNAME - 02th enqueue argument

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

DOKLANGU - 03th enqueue argument

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

DOKASPCT - 04th enqueue argument

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

DOKVERSION - 05th enqueue argument

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

X_DOKCLASS - Fill argument 01 with initial value?

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

X_DOKNAME - Fill argument 02 with initial value?

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

X_DOKLANGU - Fill argument 03 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_ESFHT 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_sfhh  TYPE DD26E-ENQMODE, "   'E'
lv_foreign_lock  TYPE DD26E, "   
lv_x_dokaspct  TYPE DD26E, "   SPACE
lv_x_dokversion  TYPE DD26E, "   SPACE
lv__scope  TYPE DD26E, "   '2'
lv__wait  TYPE DD26E, "   SPACE
lv__collect  TYPE DDENQ_LIKE-COLLECT, "   ' '
lv_dokclass  TYPE SFHH-DOKCLASS, "   
lv_system_failure  TYPE SFHH, "   
lv_dokname  TYPE SFHH-DOKNAME, "   
lv_doklangu  TYPE SFHH-DOKLANGU, "   
lv_dokaspct  TYPE SFHH-DOKASPCT, "   
lv_dokversion  TYPE SFHH-DOKVERSION, "   
lv_x_dokclass  TYPE SFHH, "   SPACE
lv_x_dokname  TYPE SFHH, "   SPACE
lv_x_doklangu  TYPE SFHH. "   SPACE

  CALL FUNCTION 'ENQUEUE_ESFHT'  "
    EXPORTING
         MODE_SFHH = lv_mode_sfhh
         X_DOKASPCT = lv_x_dokaspct
         X_DOKVERSION = lv_x_dokversion
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         DOKCLASS = lv_dokclass
         DOKNAME = lv_dokname
         DOKLANGU = lv_doklangu
         DOKASPCT = lv_dokaspct
         DOKVERSION = lv_dokversion
         X_DOKCLASS = lv_x_dokclass
         X_DOKNAME = lv_x_dokname
         X_DOKLANGU = lv_x_doklangu
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ESFHT




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ESFHT

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_sfhh).
DATA(ld_mode_sfhh) = 'E'.
 
 
DATA(ld_x_dokaspct) = ' '.
 
DATA(ld_x_dokversion) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
"SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect).
DATA(ld__collect) = ' '.
 
"SELECT single DOKCLASS FROM SFHH INTO @DATA(ld_dokclass).
 
 
"SELECT single DOKNAME FROM SFHH INTO @DATA(ld_dokname).
 
"SELECT single DOKLANGU FROM SFHH INTO @DATA(ld_doklangu).
 
"SELECT single DOKASPCT FROM SFHH INTO @DATA(ld_dokaspct).
 
"SELECT single DOKVERSION FROM SFHH INTO @DATA(ld_dokversion).
 
DATA(ld_x_dokclass) = ' '.
 
DATA(ld_x_dokname) = ' '.
 
DATA(ld_x_doklangu) = ' '.
 


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!