SAP Function Modules

ENQUEUE_ELLQUAY SAP Function module







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

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


Pattern for FM ENQUEUE_ELLQUAY - ENQUEUE ELLQUAY





CALL FUNCTION 'ENQUEUE_ELLQUAY' "
* EXPORTING
*   mode_lquay = 'S'            " dd26e-enqmode
*   mandt = SY-MANDT            " lquay-mandt
*   lgnum =                     " lquay-lgnum
*   lgtyp =                     " lquay-lgtyp
*   lgpla =                     " lquay-lgpla
*   lenum =                     " lquay-lenum
*   matnr =                     " lquay-matnr
*   werks =                     " lquay-werks
*   lgort =                     " lquay-lgort
*   bestq =                     " lquay-bestq
*   charg =                     " lquay-charg
*   sobkz =                     " lquay-sobkz
*   sonum =                     " lquay-sonum
*   plpos =                     " lquay-plpos
*   lqnum =                     " lquay-lqnum
*   ausme =                     " lquay-ausme
*   x_lgnum = SPACE             "
*   x_lgtyp = SPACE             "
*   x_lgpla = SPACE             "
*   x_lenum = SPACE             "
*   x_matnr = SPACE             "
*   x_werks = SPACE             "
*   x_lgort = SPACE             "
*   x_bestq = SPACE             "
*   x_charg = SPACE             "
*   x_sobkz = SPACE             "
*   x_sonum = SPACE             "
*   x_plpos = SPACE             "
*   x_lqnum = SPACE             "
*   x_ausme = SPACE             "
*   _scope = '2'                "
*   _wait = SPACE               "
*   _collect = ' '              " ddenq_like-collect
  EXCEPTIONS
    FOREIGN_LOCK = 1            "
    SYSTEM_FAILURE = 2          "
    .  "  ENQUEUE_ELLQUAY

ABAP code example for Function Module ENQUEUE_ELLQUAY





The ABAP code below is a full code listing to execute function module ENQUEUE_ELLQUAY 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_lquay) = some text here

DATA(ld_mandt) = Check type of data required

DATA(ld_lgnum) = some text here

DATA(ld_lgtyp) = some text here

DATA(ld_lgpla) = some text here

DATA(ld_lenum) = some text here

DATA(ld_matnr) = some text here

DATA(ld_werks) = some text here

DATA(ld_lgort) = some text here

DATA(ld_bestq) = some text here

DATA(ld_charg) = some text here

DATA(ld_sobkz) = some text here

DATA(ld_sonum) = some text here

DATA(ld_plpos) = some text here

DATA(ld_lqnum) = Check type of data required

DATA(ld_ausme) = some text here
DATA(ld_x_lgnum) = 'some text here'.
DATA(ld_x_lgtyp) = 'some text here'.
DATA(ld_x_lgpla) = 'some text here'.
DATA(ld_x_lenum) = 'some text here'.
DATA(ld_x_matnr) = 'some text here'.
DATA(ld_x_werks) = 'some text here'.
DATA(ld_x_lgort) = 'some text here'.
DATA(ld_x_bestq) = 'some text here'.
DATA(ld_x_charg) = 'some text here'.
DATA(ld_x_sobkz) = 'some text here'.
DATA(ld_x_sonum) = 'some text here'.
DATA(ld_x_plpos) = 'some text here'.
DATA(ld_x_lqnum) = 'some text here'.
DATA(ld_x_ausme) = 'some text here'.
DATA(ld__scope) = 'some text here'.
DATA(ld__wait) = 'some text here'.

DATA(ld__collect) = some text here . CALL FUNCTION 'ENQUEUE_ELLQUAY' * EXPORTING * mode_lquay = ld_mode_lquay * mandt = ld_mandt * lgnum = ld_lgnum * lgtyp = ld_lgtyp * lgpla = ld_lgpla * lenum = ld_lenum * matnr = ld_matnr * werks = ld_werks * lgort = ld_lgort * bestq = ld_bestq * charg = ld_charg * sobkz = ld_sobkz * sonum = ld_sonum * plpos = ld_plpos * lqnum = ld_lqnum * ausme = ld_ausme * x_lgnum = ld_x_lgnum * x_lgtyp = ld_x_lgtyp * x_lgpla = ld_x_lgpla * x_lenum = ld_x_lenum * x_matnr = ld_x_matnr * x_werks = ld_x_werks * x_lgort = ld_x_lgort * x_bestq = ld_x_bestq * x_charg = ld_x_charg * x_sobkz = ld_x_sobkz * x_sonum = ld_x_sonum * x_plpos = ld_x_plpos * x_lqnum = ld_x_lqnum * x_ausme = ld_x_ausme * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_ELLQUAY
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_lquay  TYPE DD26E-ENQMODE ,
ld_mandt  TYPE LQUAY-MANDT ,
ld_lgnum  TYPE LQUAY-LGNUM ,
ld_lgtyp  TYPE LQUAY-LGTYP ,
ld_lgpla  TYPE LQUAY-LGPLA ,
ld_lenum  TYPE LQUAY-LENUM ,
ld_matnr  TYPE LQUAY-MATNR ,
ld_werks  TYPE LQUAY-WERKS ,
ld_lgort  TYPE LQUAY-LGORT ,
ld_bestq  TYPE LQUAY-BESTQ ,
ld_charg  TYPE LQUAY-CHARG ,
ld_sobkz  TYPE LQUAY-SOBKZ ,
ld_sonum  TYPE LQUAY-SONUM ,
ld_plpos  TYPE LQUAY-PLPOS ,
ld_lqnum  TYPE LQUAY-LQNUM ,
ld_ausme  TYPE LQUAY-AUSME ,
ld_x_lgnum  TYPE STRING ,
ld_x_lgtyp  TYPE STRING ,
ld_x_lgpla  TYPE STRING ,
ld_x_lenum  TYPE STRING ,
ld_x_matnr  TYPE STRING ,
ld_x_werks  TYPE STRING ,
ld_x_lgort  TYPE STRING ,
ld_x_bestq  TYPE STRING ,
ld_x_charg  TYPE STRING ,
ld_x_sobkz  TYPE STRING ,
ld_x_sonum  TYPE STRING ,
ld_x_plpos  TYPE STRING ,
ld_x_lqnum  TYPE STRING ,
ld_x_ausme  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__wait  TYPE STRING ,
ld__collect  TYPE DDENQ_LIKE-COLLECT .


ld_mode_lquay = some text here

ld_mandt = Check type of data required

ld_lgnum = some text here

ld_lgtyp = some text here

ld_lgpla = some text here

ld_lenum = some text here

ld_matnr = some text here

ld_werks = some text here

ld_lgort = some text here

ld_bestq = some text here

ld_charg = some text here

ld_sobkz = some text here

ld_sonum = some text here

ld_plpos = some text here

ld_lqnum = Check type of data required

ld_ausme = some text here
ld_x_lgnum = 'some text here'.
ld_x_lgtyp = 'some text here'.
ld_x_lgpla = 'some text here'.
ld_x_lenum = 'some text here'.
ld_x_matnr = 'some text here'.
ld_x_werks = 'some text here'.
ld_x_lgort = 'some text here'.
ld_x_bestq = 'some text here'.
ld_x_charg = 'some text here'.
ld_x_sobkz = 'some text here'.
ld_x_sonum = 'some text here'.
ld_x_plpos = 'some text here'.
ld_x_lqnum = 'some text here'.
ld_x_ausme = 'some text here'.
ld__scope = 'some text here'.
ld__wait = 'some text here'.

ld__collect = some text here

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