SAP Function Modules

ENQUEUE_EJKSDDEMANDFIELD SAP Function module - Request lock for object EJKSDDEMANDFIELD







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

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


Pattern for FM ENQUEUE_EJKSDDEMANDFIELD - ENQUEUE EJKSDDEMANDFIELD





CALL FUNCTION 'ENQUEUE_EJKSDDEMANDFIELD' "Request lock for object EJKSDDEMANDFIELD
* EXPORTING
*   mode_rjksddemandfield = 'E'  " enqmode      Lock mode for table RJKSDDEMANDFIELD
*   mandt = SY-MANDT            " rjksddemandfield-mandt  01th enqueue argument
*   version =                   " rjksddemandfield-version  02th enqueue argument
*   vbeln =                     " rjksddemandfield-vbeln  03th enqueue argument
*   posnr =                     " rjksddemandfield-posnr  04th enqueue argument
*   issue =                     " rjksddemandfield-issue  05th enqueue argument
*   phasemdl =                  " rjksddemandfield-phasemdl  06th enqueue argument
*   phasenbr =                  " rjksddemandfield-phasenbr  07th enqueue argument
*   vkorg =                     " rjksddemandfield-vkorg  08th enqueue argument
*   vtweg =                     " rjksddemandfield-vtweg  09th enqueue argument
*   spart =                     " rjksddemandfield-spart  10th enqueue argument
*   field =                     " rjksddemandfield-field  11th enqueue argument
*   werks =                     " rjksddemandfield-werks  12th enqueue argument
*   x_version = SPACE           "               Fill argument 02 with initial value?
*   x_vbeln = SPACE             "               Fill argument 03 with initial value?
*   x_posnr = SPACE             "               Fill argument 04 with initial value?
*   x_issue = SPACE             "               Fill argument 05 with initial value?
*   x_phasemdl = SPACE          "               Fill argument 06 with initial value?
*   x_phasenbr = SPACE          "               Fill argument 07 with initial value?
*   x_vkorg = SPACE             "               Fill argument 08 with initial value?
*   x_vtweg = SPACE             "               Fill argument 09 with initial value?
*   x_spart = SPACE             "               Fill argument 10 with initial value?
*   x_field = SPACE             "               Fill argument 11 with initial value?
*   x_werks = 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_EJKSDDEMANDFIELD

ABAP code example for Function Module ENQUEUE_EJKSDDEMANDFIELD





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

DATA(ld_mandt) = Check type of data required

DATA(ld_version) = some text here

DATA(ld_vbeln) = some text here

DATA(ld_posnr) = Check type of data required

DATA(ld_issue) = some text here

DATA(ld_phasemdl) = some text here

DATA(ld_phasenbr) = Check type of data required

DATA(ld_vkorg) = some text here

DATA(ld_vtweg) = some text here

DATA(ld_spart) = some text here

DATA(ld_field) = some text here

DATA(ld_werks) = some text here
DATA(ld_x_version) = 'some text here'.
DATA(ld_x_vbeln) = 'some text here'.
DATA(ld_x_posnr) = 'some text here'.
DATA(ld_x_issue) = 'some text here'.
DATA(ld_x_phasemdl) = 'some text here'.
DATA(ld_x_phasenbr) = 'some text here'.
DATA(ld_x_vkorg) = 'some text here'.
DATA(ld_x_vtweg) = 'some text here'.
DATA(ld_x_spart) = 'some text here'.
DATA(ld_x_field) = 'some text here'.
DATA(ld_x_werks) = '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_EJKSDDEMANDFIELD' * EXPORTING * mode_rjksddemandfield = ld_mode_rjksddemandfield * mandt = ld_mandt * version = ld_version * vbeln = ld_vbeln * posnr = ld_posnr * issue = ld_issue * phasemdl = ld_phasemdl * phasenbr = ld_phasenbr * vkorg = ld_vkorg * vtweg = ld_vtweg * spart = ld_spart * field = ld_field * werks = ld_werks * x_version = ld_x_version * x_vbeln = ld_x_vbeln * x_posnr = ld_x_posnr * x_issue = ld_x_issue * x_phasemdl = ld_x_phasemdl * x_phasenbr = ld_x_phasenbr * x_vkorg = ld_x_vkorg * x_vtweg = ld_x_vtweg * x_spart = ld_x_spart * x_field = ld_x_field * x_werks = ld_x_werks * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_EJKSDDEMANDFIELD
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_rjksddemandfield  TYPE ENQMODE ,
ld_mandt  TYPE RJKSDDEMANDFIELD-MANDT ,
ld_version  TYPE RJKSDDEMANDFIELD-VERSION ,
ld_vbeln  TYPE RJKSDDEMANDFIELD-VBELN ,
ld_posnr  TYPE RJKSDDEMANDFIELD-POSNR ,
ld_issue  TYPE RJKSDDEMANDFIELD-ISSUE ,
ld_phasemdl  TYPE RJKSDDEMANDFIELD-PHASEMDL ,
ld_phasenbr  TYPE RJKSDDEMANDFIELD-PHASENBR ,
ld_vkorg  TYPE RJKSDDEMANDFIELD-VKORG ,
ld_vtweg  TYPE RJKSDDEMANDFIELD-VTWEG ,
ld_spart  TYPE RJKSDDEMANDFIELD-SPART ,
ld_field  TYPE RJKSDDEMANDFIELD-FIELD ,
ld_werks  TYPE RJKSDDEMANDFIELD-WERKS ,
ld_x_version  TYPE STRING ,
ld_x_vbeln  TYPE STRING ,
ld_x_posnr  TYPE STRING ,
ld_x_issue  TYPE STRING ,
ld_x_phasemdl  TYPE STRING ,
ld_x_phasenbr  TYPE STRING ,
ld_x_vkorg  TYPE STRING ,
ld_x_vtweg  TYPE STRING ,
ld_x_spart  TYPE STRING ,
ld_x_field  TYPE STRING ,
ld_x_werks  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__wait  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_rjksddemandfield = 'Check type of data required'.

ld_mandt = Check type of data required

ld_version = some text here

ld_vbeln = some text here

ld_posnr = Check type of data required

ld_issue = some text here

ld_phasemdl = some text here

ld_phasenbr = Check type of data required

ld_vkorg = some text here

ld_vtweg = some text here

ld_spart = some text here

ld_field = some text here

ld_werks = some text here
ld_x_version = 'some text here'.
ld_x_vbeln = 'some text here'.
ld_x_posnr = 'some text here'.
ld_x_issue = 'some text here'.
ld_x_phasemdl = 'some text here'.
ld_x_phasenbr = 'some text here'.
ld_x_vkorg = 'some text here'.
ld_x_vtweg = 'some text here'.
ld_x_spart = 'some text here'.
ld_x_field = 'some text here'.
ld_x_werks = '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_EJKSDDEMANDFIELD or its description.