ENQUEUE_EJKSDORDERBOOK is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name ENQUEUE_EJKSDORDERBOOK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
DWBEN/SAPLJEN0005
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'ENQUEUE_EJKSDORDERBOOK' "Request lock for object EJKSDORDERBOOK
* EXPORTING
* mode_jksdorderbook = 'E' " enqmode Lock mode for table JKSDORDERBOOK
* mandt = SY-MANDT " jksdorderbook-mandt 01th enqueue argument
* version = " jksdorderbook-version 02th enqueue argument
* ekorg = " jksdorderbook-ekorg 03th enqueue argument
* werks = " jksdorderbook-werks 04th enqueue argument
* med_prod = " jksdorderbook-med_prod 05th enqueue argument
* matnr = " jksdorderbook-matnr 06th enqueue argument
* porder_lfdnr = " jksdorderbook-porder_lfdnr 07th enqueue argument
* phasemdl = " jksdorderbook-phasemdl 08th enqueue argument
* phasenbr = " jksdorderbook-phasenbr 09th enqueue argument
* split = " jksdorderbook-split 10th enqueue argument
* x_version = SPACE " Fill argument 02 with initial value?
* x_ekorg = SPACE " Fill argument 03 with initial value?
* x_werks = SPACE " Fill argument 04 with initial value?
* x_med_prod = SPACE " Fill argument 05 with initial value?
* x_matnr = SPACE " Fill argument 06 with initial value?
* x_porder_lfdnr = SPACE " Fill argument 07 with initial value?
* x_phasemdl = SPACE " Fill argument 08 with initial value?
* x_phasenbr = SPACE " Fill argument 09 with initial value?
* x_split = SPACE " Fill argument 10 with initial value?
* _scope = '2' "
* _wait = SPACE "
* _collect = ' ' " ddenqcoll Initially only collect lock
EXCEPTIONS
FOREIGN_LOCK = 1 " Object already locked
SYSTEM_FAILURE = 2 " Internal error from enqueue server
. " ENQUEUE_EJKSDORDERBOOK
The ABAP code below is a full code listing to execute function module ENQUEUE_EJKSDORDERBOOK including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_mode_jksdorderbook) = 'Check type of data required'.
SELECT single MANDT
FROM JKSDORDERBOOK
INTO @DATA(ld_mandt).
SELECT single VERSION
FROM JKSDORDERBOOK
INTO @DATA(ld_version).
SELECT single EKORG
FROM JKSDORDERBOOK
INTO @DATA(ld_ekorg).
SELECT single WERKS
FROM JKSDORDERBOOK
INTO @DATA(ld_werks).
SELECT single MED_PROD
FROM JKSDORDERBOOK
INTO @DATA(ld_med_prod).
SELECT single MATNR
FROM JKSDORDERBOOK
INTO @DATA(ld_matnr).
SELECT single PORDER_LFDNR
FROM JKSDORDERBOOK
INTO @DATA(ld_porder_lfdnr).
SELECT single PHASEMDL
FROM JKSDORDERBOOK
INTO @DATA(ld_phasemdl).
SELECT single PHASENBR
FROM JKSDORDERBOOK
INTO @DATA(ld_phasenbr).
SELECT single SPLIT
FROM JKSDORDERBOOK
INTO @DATA(ld_split).
DATA(ld_x_version) = 'some text here'.
DATA(ld_x_ekorg) = 'some text here'.
DATA(ld_x_werks) = 'some text here'.
DATA(ld_x_med_prod) = 'some text here'.
DATA(ld_x_matnr) = 'some text here'.
DATA(ld_x_porder_lfdnr) = 'some text here'.
DATA(ld_x_phasemdl) = 'some text here'.
DATA(ld_x_phasenbr) = 'some text here'.
DATA(ld_x_split) = 'some text here'.
DATA(ld__scope) = 'some text here'.
DATA(ld__wait) = 'some text here'.
DATA(ld__collect) = 'Check type of data required'. . CALL FUNCTION 'ENQUEUE_EJKSDORDERBOOK' * EXPORTING * mode_jksdorderbook = ld_mode_jksdorderbook * mandt = ld_mandt * version = ld_version * ekorg = ld_ekorg * werks = ld_werks * med_prod = ld_med_prod * matnr = ld_matnr * porder_lfdnr = ld_porder_lfdnr * phasemdl = ld_phasemdl * phasenbr = ld_phasenbr * split = ld_split * x_version = ld_x_version * x_ekorg = ld_x_ekorg * x_werks = ld_x_werks * x_med_prod = ld_x_med_prod * x_matnr = ld_x_matnr * x_porder_lfdnr = ld_x_porder_lfdnr * x_phasemdl = ld_x_phasemdl * x_phasenbr = ld_x_phasenbr * x_split = ld_x_split * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_EJKSDORDERBOOK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_mode_jksdorderbook | TYPE ENQMODE , |
| ld_mandt | TYPE JKSDORDERBOOK-MANDT , |
| ld_version | TYPE JKSDORDERBOOK-VERSION , |
| ld_ekorg | TYPE JKSDORDERBOOK-EKORG , |
| ld_werks | TYPE JKSDORDERBOOK-WERKS , |
| ld_med_prod | TYPE JKSDORDERBOOK-MED_PROD , |
| ld_matnr | TYPE JKSDORDERBOOK-MATNR , |
| ld_porder_lfdnr | TYPE JKSDORDERBOOK-PORDER_LFDNR , |
| ld_phasemdl | TYPE JKSDORDERBOOK-PHASEMDL , |
| ld_phasenbr | TYPE JKSDORDERBOOK-PHASENBR , |
| ld_split | TYPE JKSDORDERBOOK-SPLIT , |
| ld_x_version | TYPE STRING , |
| ld_x_ekorg | TYPE STRING , |
| ld_x_werks | TYPE STRING , |
| ld_x_med_prod | TYPE STRING , |
| ld_x_matnr | TYPE STRING , |
| ld_x_porder_lfdnr | TYPE STRING , |
| ld_x_phasemdl | TYPE STRING , |
| ld_x_phasenbr | TYPE STRING , |
| ld_x_split | TYPE STRING , |
| ld__scope | TYPE STRING , |
| ld__wait | TYPE STRING , |
| ld__collect | TYPE DDENQCOLL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name ENQUEUE_EJKSDORDERBOOK or its description.
ENQUEUE_EJKSDORDERBOOK - Request lock for object EJKSDORDERBOOK ENQUEUE_EJKSDORDERBFIELD - Request lock for object EJKSDORDERBFIELD ENQUEUE_EJKSDISSUERETPRO - Request lock for object EJKSDISSUERETPRO ENQUEUE_EJKSDISSUEDATE - Request lock for object EJKSDISSUEDATE ENQUEUE_EJKSDISSFORECITE - Request lock for object EJKSDISSFORECITE ENQUEUE_EJKSDISSFOREC - Request lock for object EJKSDISSFOREC