SAP Function Modules

ENQUEUE_EJKSDORDERBFIELD SAP Function module - Request lock for object EJKSDORDERBFIELD







ENQUEUE_EJKSDORDERBFIELD 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_EJKSDORDERBFIELD into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: DWBEN/SAPLJEN0006
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ENQUEUE_EJKSDORDERBFIELD - ENQUEUE EJKSDORDERBFIELD





CALL FUNCTION 'ENQUEUE_EJKSDORDERBFIELD' "Request lock for object EJKSDORDERBFIELD
* EXPORTING
*   mode_rjksdorderbookfield = 'E'  " enqmode   Lock mode for table RJKSDORDERBOOKFIELD
*   mandt = SY-MANDT            " rjksdorderbookfield-mandt  01th enqueue argument
*   version =                   " rjksdorderbookfield-version  02th enqueue argument
*   ekorg =                     " rjksdorderbookfield-ekorg  03th enqueue argument
*   werks =                     " rjksdorderbookfield-werks  04th enqueue argument
*   med_prod =                  " rjksdorderbookfield-med_prod  05th enqueue argument
*   matnr =                     " rjksdorderbookfield-matnr  06th enqueue argument
*   porder_lfdnr =              " rjksdorderbookfield-porder_lfdnr  07th enqueue argument
*   phasemdl =                  " rjksdorderbookfield-phasemdl  08th enqueue argument
*   phasenbr =                  " rjksdorderbookfield-phasenbr  09th enqueue argument
*   split =                     " rjksdorderbookfield-split  10th enqueue argument
*   type =                      " rjksdorderbookfield-type  11th enqueue argument
*   field =                     " rjksdorderbookfield-field  12th 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?
*   x_type = SPACE              "               Fill argument 11 with initial value?
*   x_field = SPACE             "               Fill argument 12 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_EJKSDORDERBFIELD

ABAP code example for Function Module ENQUEUE_EJKSDORDERBFIELD





The ABAP code below is a full code listing to execute function module ENQUEUE_EJKSDORDERBFIELD 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_rjksdorderbookfield) = 'Check type of data required'.

DATA(ld_mandt) = Check type of data required

DATA(ld_version) = some text here

DATA(ld_ekorg) = some text here

DATA(ld_werks) = some text here

DATA(ld_med_prod) = some text here

DATA(ld_matnr) = some text here

DATA(ld_porder_lfdnr) = Check type of data required

DATA(ld_phasemdl) = some text here

DATA(ld_phasenbr) = Check type of data required

DATA(ld_split) = some text here

DATA(ld_type) = some text here

DATA(ld_field) = some text here
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_x_type) = 'some text here'.
DATA(ld_x_field) = '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_EJKSDORDERBFIELD' * EXPORTING * mode_rjksdorderbookfield = ld_mode_rjksdorderbookfield * 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 * type = ld_type * field = ld_field * 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 * x_type = ld_x_type * x_field = ld_x_field * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_EJKSDORDERBFIELD
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.







ABAP code to compare 7.40 inline data declaration with original syntax

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_rjksdorderbookfield  TYPE ENQMODE ,
ld_mandt  TYPE RJKSDORDERBOOKFIELD-MANDT ,
ld_version  TYPE RJKSDORDERBOOKFIELD-VERSION ,
ld_ekorg  TYPE RJKSDORDERBOOKFIELD-EKORG ,
ld_werks  TYPE RJKSDORDERBOOKFIELD-WERKS ,
ld_med_prod  TYPE RJKSDORDERBOOKFIELD-MED_PROD ,
ld_matnr  TYPE RJKSDORDERBOOKFIELD-MATNR ,
ld_porder_lfdnr  TYPE RJKSDORDERBOOKFIELD-PORDER_LFDNR ,
ld_phasemdl  TYPE RJKSDORDERBOOKFIELD-PHASEMDL ,
ld_phasenbr  TYPE RJKSDORDERBOOKFIELD-PHASENBR ,
ld_split  TYPE RJKSDORDERBOOKFIELD-SPLIT ,
ld_type  TYPE RJKSDORDERBOOKFIELD-TYPE ,
ld_field  TYPE RJKSDORDERBOOKFIELD-FIELD ,
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_x_type  TYPE STRING ,
ld_x_field  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__wait  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_rjksdorderbookfield = 'Check type of data required'.

ld_mandt = Check type of data required

ld_version = some text here

ld_ekorg = some text here

ld_werks = some text here

ld_med_prod = some text here

ld_matnr = some text here

ld_porder_lfdnr = Check type of data required

ld_phasemdl = some text here

ld_phasenbr = Check type of data required

ld_split = some text here

ld_type = some text here

ld_field = some text here
ld_x_version = 'some text here'.
ld_x_ekorg = 'some text here'.
ld_x_werks = 'some text here'.
ld_x_med_prod = 'some text here'.
ld_x_matnr = 'some text here'.
ld_x_porder_lfdnr = 'some text here'.
ld_x_phasemdl = 'some text here'.
ld_x_phasenbr = 'some text here'.
ld_x_split = 'some text here'.
ld_x_type = 'some text here'.
ld_x_field = 'some text here'.
ld__scope = 'some text here'.
ld__wait = 'some text here'.
ld__collect = 'Check type of data required'.

Contribute (Add Comments)

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_EJKSDORDERBFIELD or its description.