SAP Function Modules

DEQUEUE_E_ATXKO SAP Function module - Release lock on object E_ATXKO







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

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


Pattern for FM DEQUEUE_E_ATXKO - DEQUEUE E ATXKO





CALL FUNCTION 'DEQUEUE_E_ATXKO' "Release lock on object E_ATXKO
* EXPORTING
*   mode_atxko = 'E'            " enqmode       Lock mode for table ATXKO
*   mandt = SY-MANDT            " atxko-mandt   01th enqueue argument
*   korart =                    " atxko-korart  02th enqueue argument
*   instrum11 =                 " atxko-instrum11  03th enqueue argument
*   instrum12 =                 " atxko-instrum12  04th enqueue argument
*   instyp1 =                   " atxko-instyp1  05th enqueue argument
*   instrum21 =                 " atxko-instrum21  06th enqueue argument
*   instrum22 =                 " atxko-instrum22  07th enqueue argument
*   instyp2 =                   " atxko-instyp2  08th enqueue argument
*   datab =                     " atxko-datab   09th enqueue argument
*   lfzeit =                    " atxko-lfzeit  10th enqueue argument
*   x_korart = SPACE            "               Fill argument 02 with initial value?
*   x_instrum11 = SPACE         "               Fill argument 03 with initial value?
*   x_instrum12 = SPACE         "               Fill argument 04 with initial value?
*   x_instyp1 = SPACE           "               Fill argument 05 with initial value?
*   x_instrum21 = SPACE         "               Fill argument 06 with initial value?
*   x_instrum22 = SPACE         "               Fill argument 07 with initial value?
*   x_instyp2 = SPACE           "               Fill argument 08 with initial value?
*   x_datab = SPACE             "               Fill argument 09 with initial value?
*   x_lfzeit = SPACE            "               Fill argument 10 with initial value?
*   _scope = '3'                "
*   _synchron = SPACE           "               Synchonous unlock
*   _collect = ' '              " ddenqcoll     Initially only collect lock
    .  "  DEQUEUE_E_ATXKO

ABAP code example for Function Module DEQUEUE_E_ATXKO





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

SELECT single MANDT
FROM ATXKO
INTO @DATA(ld_mandt).


SELECT single KORART
FROM ATXKO
INTO @DATA(ld_korart).


SELECT single INSTRUM11
FROM ATXKO
INTO @DATA(ld_instrum11).


SELECT single INSTRUM12
FROM ATXKO
INTO @DATA(ld_instrum12).


SELECT single INSTYP1
FROM ATXKO
INTO @DATA(ld_instyp1).


SELECT single INSTRUM21
FROM ATXKO
INTO @DATA(ld_instrum21).


SELECT single INSTRUM22
FROM ATXKO
INTO @DATA(ld_instrum22).


SELECT single INSTYP2
FROM ATXKO
INTO @DATA(ld_instyp2).


SELECT single DATAB
FROM ATXKO
INTO @DATA(ld_datab).


SELECT single LFZEIT
FROM ATXKO
INTO @DATA(ld_lfzeit).

DATA(ld_x_korart) = 'some text here'.
DATA(ld_x_instrum11) = 'some text here'.
DATA(ld_x_instrum12) = 'some text here'.
DATA(ld_x_instyp1) = 'some text here'.
DATA(ld_x_instrum21) = 'some text here'.
DATA(ld_x_instrum22) = 'some text here'.
DATA(ld_x_instyp2) = 'some text here'.
DATA(ld_x_datab) = 'some text here'.
DATA(ld_x_lfzeit) = 'some text here'.
DATA(ld__scope) = 'some text here'.
DATA(ld__synchron) = 'some text here'.
DATA(ld__collect) = 'Check type of data required'. . CALL FUNCTION 'DEQUEUE_E_ATXKO' * EXPORTING * mode_atxko = ld_mode_atxko * mandt = ld_mandt * korart = ld_korart * instrum11 = ld_instrum11 * instrum12 = ld_instrum12 * instyp1 = ld_instyp1 * instrum21 = ld_instrum21 * instrum22 = ld_instrum22 * instyp2 = ld_instyp2 * datab = ld_datab * lfzeit = ld_lfzeit * x_korart = ld_x_korart * x_instrum11 = ld_x_instrum11 * x_instrum12 = ld_x_instrum12 * x_instyp1 = ld_x_instyp1 * x_instrum21 = ld_x_instrum21 * x_instrum22 = ld_x_instrum22 * x_instyp2 = ld_x_instyp2 * x_datab = ld_x_datab * x_lfzeit = ld_x_lfzeit * _scope = ld__scope * _synchron = ld__synchron * _collect = ld__collect . " DEQUEUE_E_ATXKO
IF SY-SUBRC EQ 0. "All OK 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_atxko  TYPE ENQMODE ,
ld_mandt  TYPE ATXKO-MANDT ,
ld_korart  TYPE ATXKO-KORART ,
ld_instrum11  TYPE ATXKO-INSTRUM11 ,
ld_instrum12  TYPE ATXKO-INSTRUM12 ,
ld_instyp1  TYPE ATXKO-INSTYP1 ,
ld_instrum21  TYPE ATXKO-INSTRUM21 ,
ld_instrum22  TYPE ATXKO-INSTRUM22 ,
ld_instyp2  TYPE ATXKO-INSTYP2 ,
ld_datab  TYPE ATXKO-DATAB ,
ld_lfzeit  TYPE ATXKO-LFZEIT ,
ld_x_korart  TYPE STRING ,
ld_x_instrum11  TYPE STRING ,
ld_x_instrum12  TYPE STRING ,
ld_x_instyp1  TYPE STRING ,
ld_x_instrum21  TYPE STRING ,
ld_x_instrum22  TYPE STRING ,
ld_x_instyp2  TYPE STRING ,
ld_x_datab  TYPE STRING ,
ld_x_lfzeit  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__synchron  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_atxko = 'Check type of data required'.

SELECT single MANDT
FROM ATXKO
INTO ld_mandt.


SELECT single KORART
FROM ATXKO
INTO ld_korart.


SELECT single INSTRUM11
FROM ATXKO
INTO ld_instrum11.


SELECT single INSTRUM12
FROM ATXKO
INTO ld_instrum12.


SELECT single INSTYP1
FROM ATXKO
INTO ld_instyp1.


SELECT single INSTRUM21
FROM ATXKO
INTO ld_instrum21.


SELECT single INSTRUM22
FROM ATXKO
INTO ld_instrum22.


SELECT single INSTYP2
FROM ATXKO
INTO ld_instyp2.


SELECT single DATAB
FROM ATXKO
INTO ld_datab.


SELECT single LFZEIT
FROM ATXKO
INTO ld_lfzeit.

ld_x_korart = 'some text here'.
ld_x_instrum11 = 'some text here'.
ld_x_instrum12 = 'some text here'.
ld_x_instyp1 = 'some text here'.
ld_x_instrum21 = 'some text here'.
ld_x_instrum22 = 'some text here'.
ld_x_instyp2 = 'some text here'.
ld_x_datab = 'some text here'.
ld_x_lfzeit = 'some text here'.
ld__scope = 'some text here'.
ld__synchron = '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 DEQUEUE_E_ATXKO or its description.