SAP ENQUEUE_EJICIRCBOOK Function Module for Request lock for object EJICIRCBOOK
ENQUEUE_EJICIRCBOOK is a standard enqueue ejicircbook SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request lock for object EJICIRCBOOK processing and below is the pattern details for this FM, 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 ejicircbook FM, simply by entering the name ENQUEUE_EJICIRCBOOK into the relevant SAP transaction such as SE37 or SE38.
Function Group: /1BCDWBEN/JEN0003
Program Name: /1BCDWBEN/SAPLJEN0003
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ENQUEUE_EJICIRCBOOK 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_EJICIRCBOOK'"Request lock for object EJICIRCBOOK.
EXPORTING
* MODE_JCBENQKEY = 'E' "Lock mode for table JCBENQKEY
* X_CIRC_ORIGIN = ' ' "Fill argument 02 with initial value?
* X_MEDIAISSUE = ' ' "Fill argument 03 with initial value?
* X_PLANT = ' ' "Fill argument 04 with initial value?
* X_PUBL_ORDER = ' ' "Fill argument 05 with initial value?
* X_EDITION_ORDER = ' ' "Fill argument 06 with initial value?
* X_DELIVTYPE_ORDER = ' ' "Fill argument 07 with initial value?
* X_DELIV_RETRN_DATE = ' ' "Fill argument 08 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MANDT = SY-MANDT "01th enqueue argument
* CIRC_ORIGIN = "02th enqueue argument
* MEDIAISSUE = "03th enqueue argument
* PLANT = "04th enqueue argument
* PUBL_ORDER = "05th enqueue argument
* EDITION_ORDER = "06th enqueue argument
* DELIVTYPE_ORDER = "07th enqueue argument
* DELIV_RETRN_DATE = "08th enqueue argument
EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
IMPORTING Parameters details for ENQUEUE_EJICIRCBOOK
MODE_JCBENQKEY - Lock mode for table JCBENQKEY
Data type: ENQMODEDefault: 'E'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_CIRC_ORIGIN - Fill argument 02 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_MEDIAISSUE - Fill argument 03 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PLANT - Fill argument 04 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_PUBL_ORDER - Fill argument 05 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_EDITION_ORDER - Fill argument 06 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DELIVTYPE_ORDER - Fill argument 07 with initial value?
Data type:Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_DELIV_RETRN_DATE - Fill argument 08 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: DDENQCOLLDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
MANDT - 01th enqueue argument
Data type: JCBENQKEY-MANDTDefault: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)
CIRC_ORIGIN - 02th enqueue argument
Data type: JCBENQKEY-CIRC_ORIGINOptional: Yes
Call by Reference: No ( called with pass by value option)
MEDIAISSUE - 03th enqueue argument
Data type: JCBENQKEY-MEDIAISSUEOptional: Yes
Call by Reference: No ( called with pass by value option)
PLANT - 04th enqueue argument
Data type: JCBENQKEY-PLANTOptional: Yes
Call by Reference: No ( called with pass by value option)
PUBL_ORDER - 05th enqueue argument
Data type: JCBENQKEY-PUBL_ORDEROptional: Yes
Call by Reference: No ( called with pass by value option)
EDITION_ORDER - 06th enqueue argument
Data type: JCBENQKEY-EDITION_ORDEROptional: Yes
Call by Reference: No ( called with pass by value option)
DELIVTYPE_ORDER - 07th enqueue argument
Data type: JCBENQKEY-DELIVTYPE_ORDEROptional: Yes
Call by Reference: No ( called with pass by value option)
DELIV_RETRN_DATE - 08th enqueue argument
Data type: JCBENQKEY-DELIV_RETRN_DATEOptional: 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_EJICIRCBOOK 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_foreign_lock | TYPE STRING, " | |||
| lv_mode_jcbenqkey | TYPE ENQMODE, " 'E' | |||
| lv_x_circ_origin | TYPE ENQMODE, " SPACE | |||
| lv_x_mediaissue | TYPE ENQMODE, " SPACE | |||
| lv_x_plant | TYPE ENQMODE, " SPACE | |||
| lv_x_publ_order | TYPE ENQMODE, " SPACE | |||
| lv_x_edition_order | TYPE ENQMODE, " SPACE | |||
| lv_x_delivtype_order | TYPE ENQMODE, " SPACE | |||
| lv_x_deliv_retrn_date | TYPE ENQMODE, " SPACE | |||
| lv__scope | TYPE ENQMODE, " '2' | |||
| lv__wait | TYPE ENQMODE, " SPACE | |||
| lv__collect | TYPE DDENQCOLL, " ' ' | |||
| lv_mandt | TYPE JCBENQKEY-MANDT, " SY-MANDT | |||
| lv_system_failure | TYPE JCBENQKEY, " | |||
| lv_circ_origin | TYPE JCBENQKEY-CIRC_ORIGIN, " | |||
| lv_mediaissue | TYPE JCBENQKEY-MEDIAISSUE, " | |||
| lv_plant | TYPE JCBENQKEY-PLANT, " | |||
| lv_publ_order | TYPE JCBENQKEY-PUBL_ORDER, " | |||
| lv_edition_order | TYPE JCBENQKEY-EDITION_ORDER, " | |||
| lv_delivtype_order | TYPE JCBENQKEY-DELIVTYPE_ORDER, " | |||
| lv_deliv_retrn_date | TYPE JCBENQKEY-DELIV_RETRN_DATE. " |
|   CALL FUNCTION 'ENQUEUE_EJICIRCBOOK' "Request lock for object EJICIRCBOOK |
| EXPORTING | ||
| MODE_JCBENQKEY | = lv_mode_jcbenqkey | |
| X_CIRC_ORIGIN | = lv_x_circ_origin | |
| X_MEDIAISSUE | = lv_x_mediaissue | |
| X_PLANT | = lv_x_plant | |
| X_PUBL_ORDER | = lv_x_publ_order | |
| X_EDITION_ORDER | = lv_x_edition_order | |
| X_DELIVTYPE_ORDER | = lv_x_delivtype_order | |
| X_DELIV_RETRN_DATE | = lv_x_deliv_retrn_date | |
| _SCOPE | = lv__scope | |
| _WAIT | = lv__wait | |
| _COLLECT | = lv__collect | |
| MANDT | = lv_mandt | |
| CIRC_ORIGIN | = lv_circ_origin | |
| MEDIAISSUE | = lv_mediaissue | |
| PLANT | = lv_plant | |
| PUBL_ORDER | = lv_publ_order | |
| EDITION_ORDER | = lv_edition_order | |
| DELIVTYPE_ORDER | = lv_delivtype_order | |
| DELIV_RETRN_DATE | = lv_deliv_retrn_date | |
| EXCEPTIONS | ||
| FOREIGN_LOCK = 1 | ||
| SYSTEM_FAILURE = 2 | ||
| . " ENQUEUE_EJICIRCBOOK | ||
ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EJICIRCBOOK
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_mode_jcbenqkey) | = 'E'. | |||
| DATA(ld_x_circ_origin) | = ' '. | |||
| DATA(ld_x_mediaissue) | = ' '. | |||
| DATA(ld_x_plant) | = ' '. | |||
| DATA(ld_x_publ_order) | = ' '. | |||
| DATA(ld_x_edition_order) | = ' '. | |||
| DATA(ld_x_delivtype_order) | = ' '. | |||
| DATA(ld_x_deliv_retrn_date) | = ' '. | |||
| DATA(ld__scope) | = '2'. | |||
| DATA(ld__wait) | = ' '. | |||
| DATA(ld__collect) | = ' '. | |||
| "SELECT single MANDT FROM JCBENQKEY INTO @DATA(ld_mandt). | ||||
| DATA(ld_mandt) | = SY-MANDT. | |||
| "SELECT single CIRC_ORIGIN FROM JCBENQKEY INTO @DATA(ld_circ_origin). | ||||
| "SELECT single MEDIAISSUE FROM JCBENQKEY INTO @DATA(ld_mediaissue). | ||||
| "SELECT single PLANT FROM JCBENQKEY INTO @DATA(ld_plant). | ||||
| "SELECT single PUBL_ORDER FROM JCBENQKEY INTO @DATA(ld_publ_order). | ||||
| "SELECT single EDITION_ORDER FROM JCBENQKEY INTO @DATA(ld_edition_order). | ||||
| "SELECT single DELIVTYPE_ORDER FROM JCBENQKEY INTO @DATA(ld_delivtype_order). | ||||
| "SELECT single DELIV_RETRN_DATE FROM JCBENQKEY INTO @DATA(ld_deliv_retrn_date). | ||||
Search for further information about these or an SAP related objects