SAP ENQUEUE_E_GC21 Function Module for
ENQUEUE_E_GC21 is a standard enqueue e gc21 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 e gc21 FM, simply by entering the name ENQUEUE_E_GC21 into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/FEN1
Program Name: /1BCDWBEN/SAPLFEN1
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENQUEUE_E_GC21 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_E_GC21'".
EXPORTING
* MODE_GLT2 = 'E' "
* RLEVL = "
* DOCTY = "
* RSUBD = "
* RMVCT = "
* RASSC = "
* SBUSA = "
* RYACQ = "
* RPACQ = "
* OCLNT = "
* OBUKR = "
* RCLNT = SY-MANDT "
* RTCUR = "
* RUNIT = "
* DRCRK = "
* RPMAX = "
* X_RLDNR = ' ' "
* X_RRCTY = ' ' "
* X_RVERS = ' ' "
* X_RCOMP = ' ' "
* X_RYEAR = ' ' "
* X_RACCT = ' ' "
* RLDNR = "
* X_RBUSA = ' ' "
* X_RLEVL = ' ' "
* X_DOCTY = ' ' "
* X_RSUBD = ' ' "
* X_RMVCT = ' ' "
* X_RASSC = ' ' "
* X_SBUSA = ' ' "
* X_RYACQ = ' ' "
* X_RPACQ = ' ' "
* X_OCLNT = ' ' "
* RRCTY = "
* X_OBUKR = ' ' "
* X_RTCUR = ' ' "
* X_RUNIT = ' ' "
* X_DRCRK = ' ' "
* X_RPMAX = ' ' "
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "
* RVERS = "
* RCOMP = "
* RYEAR = "
* RACCT = "
* RBUSA = "
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_E_GC21
MODE_GLT2 -
Data type: DD26E-ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
RLEVL -
Data type: GLT2-RLEVLOptional: Yes
Call by Reference: No ( called with pass by value option)
DOCTY -
Data type: GLT2-DOCTYOptional: Yes
Call by Reference: No ( called with pass by value option)
RSUBD -
Data type: GLT2-RSUBDOptional: Yes
Call by Reference: No ( called with pass by value option)
RMVCT -
Data type: GLT2-RMVCTOptional: Yes
Call by Reference: No ( called with pass by value option)
RASSC -
Data type: GLT2-RASSCOptional: Yes
Call by Reference: No ( called with pass by value option)
SBUSA -
Data type: GLT2-SBUSAOptional: Yes
Call by Reference: No ( called with pass by value option)
RYACQ -
Data type: GLT2-RYACQOptional: Yes
Call by Reference: No ( called with pass by value option)
RPACQ -
Data type: GLT2-RPACQOptional: Yes
Call by Reference: No ( called with pass by value option)
OCLNT -
Data type: GLT2-OCLNTOptional: Yes
Call by Reference: No ( called with pass by value option)
OBUKR -
Data type: GLT2-OBUKROptional: Yes
Call by Reference: No ( called with pass by value option)
RCLNT -
Data type: GLT2-RCLNTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
RTCUR -
Data type: GLT2-RTCUROptional: Yes
Call by Reference: No ( called with pass by value option)
RUNIT -
Data type: GLT2-RUNITOptional: Yes
Call by Reference: No ( called with pass by value option)
DRCRK -
Data type: GLT2-DRCRKOptional: Yes
Call by Reference: No ( called with pass by value option)
RPMAX -
Data type: GLT2-RPMAXOptional: Yes
Call by Reference: No ( called with pass by value option)
X_RLDNR -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RRCTY -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RVERS -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RCOMP -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RYEAR -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RACCT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RLDNR -
Data type: GLT2-RLDNROptional: Yes
Call by Reference: No ( called with pass by value option)
X_RBUSA -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RLEVL -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DOCTY -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RSUBD -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RMVCT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RASSC -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_SBUSA -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RYACQ -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RPACQ -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_OCLNT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RRCTY -
Data type: GLT2-RRCTYOptional: Yes
Call by Reference: No ( called with pass by value option)
X_OBUKR -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RTCUR -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RUNIT -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DRCRK -
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_RPMAX -
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 -
Data type: DDENQ_LIKE-COLLECTDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
RVERS -
Data type: GLT2-RVERSOptional: Yes
Call by Reference: No ( called with pass by value option)
RCOMP -
Data type: GLT2-RCOMPOptional: Yes
Call by Reference: No ( called with pass by value option)
RYEAR -
Data type: GLT2-RYEAROptional: Yes
Call by Reference: No ( called with pass by value option)
RACCT -
Data type: GLT2-RACCTOptional: Yes
Call by Reference: No ( called with pass by value option)
RBUSA -
Data type: GLT2-RBUSAOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
FOREIGN_LOCK -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ENQUEUE_E_GC21 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_glt2 | TYPE DD26E-ENQMODE, " 'E' | |||
| lv_foreign_lock | TYPE DD26E, " | |||
| lv_rlevl | TYPE GLT2-RLEVL, " | |||
| lv_docty | TYPE GLT2-DOCTY, " | |||
| lv_rsubd | TYPE GLT2-RSUBD, " | |||
| lv_rmvct | TYPE GLT2-RMVCT, " | |||
| lv_rassc | TYPE GLT2-RASSC, " | |||
| lv_sbusa | TYPE GLT2-SBUSA, " | |||
| lv_ryacq | TYPE GLT2-RYACQ, " | |||
| lv_rpacq | TYPE GLT2-RPACQ, " | |||
| lv_oclnt | TYPE GLT2-OCLNT, " | |||
| lv_obukr | TYPE GLT2-OBUKR, " | |||
| lv_rclnt | TYPE GLT2-RCLNT, " SY-MANDT | |||
| lv_system_failure | TYPE GLT2, " | |||
| lv_rtcur | TYPE GLT2-RTCUR, " | |||
| lv_runit | TYPE GLT2-RUNIT, " | |||
| lv_drcrk | TYPE GLT2-DRCRK, " | |||
| lv_rpmax | TYPE GLT2-RPMAX, " | |||
| lv_x_rldnr | TYPE GLT2, " SPACE | |||
| lv_x_rrcty | TYPE GLT2, " SPACE | |||
| lv_x_rvers | TYPE GLT2, " SPACE | |||
| lv_x_rcomp | TYPE GLT2, " SPACE | |||
| lv_x_ryear | TYPE GLT2, " SPACE | |||
| lv_x_racct | TYPE GLT2, " SPACE | |||
| lv_rldnr | TYPE GLT2-RLDNR, " | |||
| lv_x_rbusa | TYPE GLT2, " SPACE | |||
| lv_x_rlevl | TYPE GLT2, " SPACE | |||
| lv_x_docty | TYPE GLT2, " SPACE | |||
| lv_x_rsubd | TYPE GLT2, " SPACE | |||
| lv_x_rmvct | TYPE GLT2, " SPACE | |||
| lv_x_rassc | TYPE GLT2, " SPACE | |||
| lv_x_sbusa | TYPE GLT2, " SPACE | |||
| lv_x_ryacq | TYPE GLT2, " SPACE | |||
| lv_x_rpacq | TYPE GLT2, " SPACE | |||
| lv_x_oclnt | TYPE GLT2, " SPACE | |||
| lv_rrcty | TYPE GLT2-RRCTY, " | |||
| lv_x_obukr | TYPE GLT2, " SPACE | |||
| lv_x_rtcur | TYPE GLT2, " SPACE | |||
| lv_x_runit | TYPE GLT2, " SPACE | |||
| lv_x_drcrk | TYPE GLT2, " SPACE | |||
| lv_x_rpmax | TYPE GLT2, " SPACE | |||
| lv__scope | TYPE GLT2, " '2' | |||
| lv__wait | TYPE GLT2, " SPACE | |||
| lv__collect | TYPE DDENQ_LIKE-COLLECT, " ' ' | |||
| lv_rvers | TYPE GLT2-RVERS, " | |||
| lv_rcomp | TYPE GLT2-RCOMP, " | |||
| lv_ryear | TYPE GLT2-RYEAR, " | |||
| lv_racct | TYPE GLT2-RACCT, " | |||
| lv_rbusa | TYPE GLT2-RBUSA. " |
|   CALL FUNCTION 'ENQUEUE_E_GC21' " |
| EXPORTING | ||
| MODE_GLT2 | = lv_mode_glt2 | |
| RLEVL | = lv_rlevl | |
| DOCTY | = lv_docty | |
| RSUBD | = lv_rsubd | |
| RMVCT | = lv_rmvct | |
| RASSC | = lv_rassc | |
| SBUSA | = lv_sbusa | |
| RYACQ | = lv_ryacq | |
| RPACQ | = lv_rpacq | |
| OCLNT | = lv_oclnt | |
| OBUKR | = lv_obukr | |
| RCLNT | = lv_rclnt | |
| RTCUR | = lv_rtcur | |
| RUNIT | = lv_runit | |
| DRCRK | = lv_drcrk | |
| RPMAX | = lv_rpmax | |
| X_RLDNR | = lv_x_rldnr | |
| X_RRCTY | = lv_x_rrcty | |
| X_RVERS | = lv_x_rvers | |
| X_RCOMP | = lv_x_rcomp | |
| X_RYEAR | = lv_x_ryear | |
| X_RACCT | = lv_x_racct | |
| RLDNR | = lv_rldnr | |
| X_RBUSA | = lv_x_rbusa | |
| X_RLEVL | = lv_x_rlevl | |
| X_DOCTY | = lv_x_docty | |
| X_RSUBD | = lv_x_rsubd | |
| X_RMVCT | = lv_x_rmvct | |
| X_RASSC | = lv_x_rassc | |
| X_SBUSA | = lv_x_sbusa | |
| X_RYACQ | = lv_x_ryacq | |
| X_RPACQ | = lv_x_rpacq | |
| X_OCLNT | = lv_x_oclnt | |
| RRCTY | = lv_rrcty | |
| X_OBUKR | = lv_x_obukr | |
| X_RTCUR | = lv_x_rtcur | |
| X_RUNIT | = lv_x_runit | |
| X_DRCRK | = lv_x_drcrk | |
| X_RPMAX | = lv_x_rpmax | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| RVERS | = lv_rvers | |
| RCOMP | = lv_rcomp | |
| RYEAR | = lv_ryear | |
| RACCT | = lv_racct | |
| RBUSA | = lv_rbusa | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_E_GC21 | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_GC21
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_glt2). | ||||
| DATA(ld_mode_glt2) | = 'E'. | |||
| "SELECT single RLEVL FROM GLT2 INTO @DATA(ld_rlevl). | ||||
| "SELECT single DOCTY FROM GLT2 INTO @DATA(ld_docty). | ||||
| "SELECT single RSUBD FROM GLT2 INTO @DATA(ld_rsubd). | ||||
| "SELECT single RMVCT FROM GLT2 INTO @DATA(ld_rmvct). | ||||
| "SELECT single RASSC FROM GLT2 INTO @DATA(ld_rassc). | ||||
| "SELECT single SBUSA FROM GLT2 INTO @DATA(ld_sbusa). | ||||
| "SELECT single RYACQ FROM GLT2 INTO @DATA(ld_ryacq). | ||||
| "SELECT single RPACQ FROM GLT2 INTO @DATA(ld_rpacq). | ||||
| "SELECT single OCLNT FROM GLT2 INTO @DATA(ld_oclnt). | ||||
| "SELECT single OBUKR FROM GLT2 INTO @DATA(ld_obukr). | ||||
| "SELECT single RCLNT FROM GLT2 INTO @DATA(ld_rclnt). | ||||
| DATA(ld_rclnt) | = SY-MANDT. | |||
| "SELECT single RTCUR FROM GLT2 INTO @DATA(ld_rtcur). | ||||
| "SELECT single RUNIT FROM GLT2 INTO @DATA(ld_runit). | ||||
| "SELECT single DRCRK FROM GLT2 INTO @DATA(ld_drcrk). | ||||
| "SELECT single RPMAX FROM GLT2 INTO @DATA(ld_rpmax). | ||||
| DATA(ld_x_rldnr) | = ' '. | |||
| DATA(ld_x_rrcty) | = ' '. | |||
| DATA(ld_x_rvers) | = ' '. | |||
| DATA(ld_x_rcomp) | = ' '. | |||
| DATA(ld_x_ryear) | = ' '. | |||
| DATA(ld_x_racct) | = ' '. | |||
| "SELECT single RLDNR FROM GLT2 INTO @DATA(ld_rldnr). | ||||
| DATA(ld_x_rbusa) | = ' '. | |||
| DATA(ld_x_rlevl) | = ' '. | |||
| DATA(ld_x_docty) | = ' '. | |||
| DATA(ld_x_rsubd) | = ' '. | |||
| DATA(ld_x_rmvct) | = ' '. | |||
| DATA(ld_x_rassc) | = ' '. | |||
| DATA(ld_x_sbusa) | = ' '. | |||
| DATA(ld_x_ryacq) | = ' '. | |||
| DATA(ld_x_rpacq) | = ' '. | |||
| DATA(ld_x_oclnt) | = ' '. | |||
| "SELECT single RRCTY FROM GLT2 INTO @DATA(ld_rrcty). | ||||
| DATA(ld_x_obukr) | = ' '. | |||
| DATA(ld_x_rtcur) | = ' '. | |||
| DATA(ld_x_runit) | = ' '. | |||
| DATA(ld_x_drcrk) | = ' '. | |||
| DATA(ld_x_rpmax) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| "SELECT single COLLECT FROM DDENQ_LIKE INTO @DATA(ld__collect). | ||||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single RVERS FROM GLT2 INTO @DATA(ld_rvers). | ||||
| "SELECT single RCOMP FROM GLT2 INTO @DATA(ld_rcomp). | ||||
| "SELECT single RYEAR FROM GLT2 INTO @DATA(ld_ryear). | ||||
| "SELECT single RACCT FROM GLT2 INTO @DATA(ld_racct). | ||||
| "SELECT single RBUSA FROM GLT2 INTO @DATA(ld_rbusa). | ||||
Search for further information about these or an SAP related objects