SAP ENQUEUE_ARRAY Function Module for









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

Function Group: SENT
Program Name: SAPLSENT
Main Program: SAPLSENT
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_ARRAY 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_ARRAY'"
EXPORTING
* DEQUEUE = ' ' "'X' -> Dequeue-Operation
* GOBJ = 'ENQARRAY' "Enqueue object name
* SYNCHRON = ' ' "
* SCOPE = ' ' "

IMPORTING
COLLISION_GOBJ = "Object name during collision
COLLISION_GUNAME = "User ID during collision

TABLES
ENQ_ARRAY = "Table with block entries

EXCEPTIONS
ARGUMENT_ERROR = 1 FOREIGN_LOCK = 2 OWN_LOCK = 3 SYSTEM_FAILURE = 4 TABLE_OVERFLOW = 5
.



IMPORTING Parameters details for ENQUEUE_ARRAY

DEQUEUE - 'X' -> Dequeue-Operation

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

GOBJ - Enqueue object name

Data type: SEQG3-GOBJ
Default: 'ENQARRAY'
Optional: Yes
Call by Reference: No ( called with pass by value option)

SYNCHRON -

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

SCOPE -

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

EXPORTING Parameters details for ENQUEUE_ARRAY

COLLISION_GOBJ - Object name during collision

Data type: SEQG3-GOBJ
Optional: No
Call by Reference: No ( called with pass by value option)

COLLISION_GUNAME - User ID during collision

Data type: SEQG3-GUNAME
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ENQUEUE_ARRAY

ENQ_ARRAY - Table with block entries

Data type: SEQTA
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

ARGUMENT_ERROR -

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

FOREIGN_LOCK - Collision with foreign enqueue owner(LUW)

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

OWN_LOCK - Collision with own enqueue owner(LUW)

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

SYSTEM_FAILURE - System error or communication error

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

TABLE_OVERFLOW - Lock table overflow

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

Copy and paste ABAP code example for ENQUEUE_ARRAY 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_dequeue  TYPE STRING, "   SPACE
lt_enq_array  TYPE STANDARD TABLE OF SEQTA, "   
lv_argument_error  TYPE SEQTA, "   
lv_collision_gobj  TYPE SEQG3-GOBJ, "   
lv_gobj  TYPE SEQG3-GOBJ, "   'ENQARRAY'
lv_foreign_lock  TYPE SEQG3, "   
lv_collision_guname  TYPE SEQG3-GUNAME, "   
lv_own_lock  TYPE SEQG3, "   
lv_synchron  TYPE SEQG3, "   SPACE
lv_scope  TYPE SEQG3, "   SPACE
lv_system_failure  TYPE SEQG3, "   
lv_table_overflow  TYPE SEQG3. "   

  CALL FUNCTION 'ENQUEUE_ARRAY'  "
    EXPORTING
         DEQUEUE = lv_dequeue
         GOBJ = lv_gobj
         SYNCHRON = lv_synchron
         SCOPE = lv_scope
    IMPORTING
         COLLISION_GOBJ = lv_collision_gobj
         COLLISION_GUNAME = lv_collision_guname
    TABLES
         ENQ_ARRAY = lt_enq_array
    EXCEPTIONS
        ARGUMENT_ERROR = 1
        FOREIGN_LOCK = 2
        OWN_LOCK = 3
        SYSTEM_FAILURE = 4
        TABLE_OVERFLOW = 5
. " ENQUEUE_ARRAY




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ARRAY

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_dequeue) = ' '.
 
 
 
"SELECT single GOBJ FROM SEQG3 INTO @DATA(ld_collision_gobj).
 
"SELECT single GOBJ FROM SEQG3 INTO @DATA(ld_gobj).
DATA(ld_gobj) = 'ENQARRAY'.
 
 
"SELECT single GUNAME FROM SEQG3 INTO @DATA(ld_collision_guname).
 
 
DATA(ld_synchron) = ' '.
 
DATA(ld_scope) = ' '.
 
 
 


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!