SAP Function Modules

ENQUEUE_EGFMFLEXE SAP Function module - Request lock for object EGFMFLEXE







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

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


Pattern for FM ENQUEUE_EGFMFLEXE - ENQUEUE EGFMFLEXE





CALL FUNCTION 'ENQUEUE_EGFMFLEXE' "Request lock for object EGFMFLEXE
* EXPORTING
*   mode_fmglflexkey = 'E'      " enqmode       Lock mode for table FMGLFLEXKEY
*   rclnt = SY-MANDT            " fmglflexkey-rclnt  01th enqueue argument
*   ryear =                     " fmglflexkey-ryear  02th enqueue argument
*   activ =                     " fmglflexkey-activ  03th enqueue argument
*   rmvct =                     " fmglflexkey-rmvct  04th enqueue argument
*   rtcur =                     " fmglflexkey-rtcur  05th enqueue argument
*   runit =                     " fmglflexkey-runit  06th enqueue argument
*   awtyp =                     " fmglflexkey-awtyp  07th enqueue argument
*   rldnr =                     " fmglflexkey-rldnr  08th enqueue argument
*   rrcty =                     " fmglflexkey-rrcty  09th enqueue argument
*   rvers =                     " fmglflexkey-rvers  10th enqueue argument
*   logsys =                    " fmglflexkey-logsys  11th enqueue argument
*   racct =                     " fmglflexkey-racct  12th enqueue argument
*   cost_elem =                 " fmglflexkey-cost_elem  13th enqueue argument
*   rbukrs =                    " fmglflexkey-rbukrs  14th enqueue argument
*   rbusa =                     " fmglflexkey-rbusa  15th enqueue argument
*   kokrs =                     " fmglflexkey-kokrs  16th enqueue argument
*   fikrs =                     " fmglflexkey-fikrs  17th enqueue argument
*   rfund =                     " fmglflexkey-rfund  18th enqueue argument
*   rgrant_nbr =                " fmglflexkey-rgrant_nbr  19th enqueue argument
*   rfarea =                    " fmglflexkey-rfarea  20th enqueue argument
*   x_ryear = SPACE             "               Fill argument 02 with initial value?
*   x_activ = SPACE             "               Fill argument 03 with initial value?
*   x_rmvct = SPACE             "               Fill argument 04 with initial value?
*   x_rtcur = SPACE             "               Fill argument 05 with initial value?
*   x_runit = SPACE             "               Fill argument 06 with initial value?
*   x_awtyp = SPACE             "               Fill argument 07 with initial value?
*   x_rldnr = SPACE             "               Fill argument 08 with initial value?
*   x_rrcty = SPACE             "               Fill argument 09 with initial value?
*   x_rvers = SPACE             "               Fill argument 10 with initial value?
*   x_logsys = SPACE            "               Fill argument 11 with initial value?
*   x_racct = SPACE             "               Fill argument 12 with initial value?
*   x_cost_elem = SPACE         "               Fill argument 13 with initial value?
*   x_rbukrs = SPACE            "               Fill argument 14 with initial value?
*   x_rbusa = SPACE             "               Fill argument 15 with initial value?
*   x_kokrs = SPACE             "               Fill argument 16 with initial value?
*   x_fikrs = SPACE             "               Fill argument 17 with initial value?
*   x_rfund = SPACE             "               Fill argument 18 with initial value?
*   x_rgrant_nbr = SPACE        "               Fill argument 19 with initial value?
*   x_rfarea = SPACE            "               Fill argument 20 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_EGFMFLEXE

ABAP code example for Function Module ENQUEUE_EGFMFLEXE





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

DATA(ld_rclnt) = Check type of data required

DATA(ld_ryear) = Check type of data required

DATA(ld_activ) = some text here

DATA(ld_rmvct) = some text here

DATA(ld_rtcur) = Check type of data required

DATA(ld_runit) = Check type of data required

DATA(ld_awtyp) = some text here

DATA(ld_rldnr) = some text here

DATA(ld_rrcty) = some text here

DATA(ld_rvers) = some text here

DATA(ld_logsys) = some text here

DATA(ld_racct) = some text here

DATA(ld_cost_elem) = some text here

DATA(ld_rbukrs) = some text here

DATA(ld_rbusa) = some text here

DATA(ld_kokrs) = some text here

DATA(ld_fikrs) = some text here

DATA(ld_rfund) = some text here

DATA(ld_rgrant_nbr) = some text here

DATA(ld_rfarea) = some text here
DATA(ld_x_ryear) = 'some text here'.
DATA(ld_x_activ) = 'some text here'.
DATA(ld_x_rmvct) = 'some text here'.
DATA(ld_x_rtcur) = 'some text here'.
DATA(ld_x_runit) = 'some text here'.
DATA(ld_x_awtyp) = 'some text here'.
DATA(ld_x_rldnr) = 'some text here'.
DATA(ld_x_rrcty) = 'some text here'.
DATA(ld_x_rvers) = 'some text here'.
DATA(ld_x_logsys) = 'some text here'.
DATA(ld_x_racct) = 'some text here'.
DATA(ld_x_cost_elem) = 'some text here'.
DATA(ld_x_rbukrs) = 'some text here'.
DATA(ld_x_rbusa) = 'some text here'.
DATA(ld_x_kokrs) = 'some text here'.
DATA(ld_x_fikrs) = 'some text here'.
DATA(ld_x_rfund) = 'some text here'.
DATA(ld_x_rgrant_nbr) = 'some text here'.
DATA(ld_x_rfarea) = '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_EGFMFLEXE' * EXPORTING * mode_fmglflexkey = ld_mode_fmglflexkey * rclnt = ld_rclnt * ryear = ld_ryear * activ = ld_activ * rmvct = ld_rmvct * rtcur = ld_rtcur * runit = ld_runit * awtyp = ld_awtyp * rldnr = ld_rldnr * rrcty = ld_rrcty * rvers = ld_rvers * logsys = ld_logsys * racct = ld_racct * cost_elem = ld_cost_elem * rbukrs = ld_rbukrs * rbusa = ld_rbusa * kokrs = ld_kokrs * fikrs = ld_fikrs * rfund = ld_rfund * rgrant_nbr = ld_rgrant_nbr * rfarea = ld_rfarea * x_ryear = ld_x_ryear * x_activ = ld_x_activ * x_rmvct = ld_x_rmvct * x_rtcur = ld_x_rtcur * x_runit = ld_x_runit * x_awtyp = ld_x_awtyp * x_rldnr = ld_x_rldnr * x_rrcty = ld_x_rrcty * x_rvers = ld_x_rvers * x_logsys = ld_x_logsys * x_racct = ld_x_racct * x_cost_elem = ld_x_cost_elem * x_rbukrs = ld_x_rbukrs * x_rbusa = ld_x_rbusa * x_kokrs = ld_x_kokrs * x_fikrs = ld_x_fikrs * x_rfund = ld_x_rfund * x_rgrant_nbr = ld_x_rgrant_nbr * x_rfarea = ld_x_rfarea * _scope = ld__scope * _wait = ld__wait * _collect = ld__collect EXCEPTIONS FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2 . " ENQUEUE_EGFMFLEXE
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_fmglflexkey  TYPE ENQMODE ,
ld_rclnt  TYPE FMGLFLEXKEY-RCLNT ,
ld_ryear  TYPE FMGLFLEXKEY-RYEAR ,
ld_activ  TYPE FMGLFLEXKEY-ACTIV ,
ld_rmvct  TYPE FMGLFLEXKEY-RMVCT ,
ld_rtcur  TYPE FMGLFLEXKEY-RTCUR ,
ld_runit  TYPE FMGLFLEXKEY-RUNIT ,
ld_awtyp  TYPE FMGLFLEXKEY-AWTYP ,
ld_rldnr  TYPE FMGLFLEXKEY-RLDNR ,
ld_rrcty  TYPE FMGLFLEXKEY-RRCTY ,
ld_rvers  TYPE FMGLFLEXKEY-RVERS ,
ld_logsys  TYPE FMGLFLEXKEY-LOGSYS ,
ld_racct  TYPE FMGLFLEXKEY-RACCT ,
ld_cost_elem  TYPE FMGLFLEXKEY-COST_ELEM ,
ld_rbukrs  TYPE FMGLFLEXKEY-RBUKRS ,
ld_rbusa  TYPE FMGLFLEXKEY-RBUSA ,
ld_kokrs  TYPE FMGLFLEXKEY-KOKRS ,
ld_fikrs  TYPE FMGLFLEXKEY-FIKRS ,
ld_rfund  TYPE FMGLFLEXKEY-RFUND ,
ld_rgrant_nbr  TYPE FMGLFLEXKEY-RGRANT_NBR ,
ld_rfarea  TYPE FMGLFLEXKEY-RFAREA ,
ld_x_ryear  TYPE STRING ,
ld_x_activ  TYPE STRING ,
ld_x_rmvct  TYPE STRING ,
ld_x_rtcur  TYPE STRING ,
ld_x_runit  TYPE STRING ,
ld_x_awtyp  TYPE STRING ,
ld_x_rldnr  TYPE STRING ,
ld_x_rrcty  TYPE STRING ,
ld_x_rvers  TYPE STRING ,
ld_x_logsys  TYPE STRING ,
ld_x_racct  TYPE STRING ,
ld_x_cost_elem  TYPE STRING ,
ld_x_rbukrs  TYPE STRING ,
ld_x_rbusa  TYPE STRING ,
ld_x_kokrs  TYPE STRING ,
ld_x_fikrs  TYPE STRING ,
ld_x_rfund  TYPE STRING ,
ld_x_rgrant_nbr  TYPE STRING ,
ld_x_rfarea  TYPE STRING ,
ld__scope  TYPE STRING ,
ld__wait  TYPE STRING ,
ld__collect  TYPE DDENQCOLL .

ld_mode_fmglflexkey = 'Check type of data required'.

ld_rclnt = Check type of data required

ld_ryear = Check type of data required

ld_activ = some text here

ld_rmvct = some text here

ld_rtcur = Check type of data required

ld_runit = Check type of data required

ld_awtyp = some text here

ld_rldnr = some text here

ld_rrcty = some text here

ld_rvers = some text here

ld_logsys = some text here

ld_racct = some text here

ld_cost_elem = some text here

ld_rbukrs = some text here

ld_rbusa = some text here

ld_kokrs = some text here

ld_fikrs = some text here

ld_rfund = some text here

ld_rgrant_nbr = some text here

ld_rfarea = some text here
ld_x_ryear = 'some text here'.
ld_x_activ = 'some text here'.
ld_x_rmvct = 'some text here'.
ld_x_rtcur = 'some text here'.
ld_x_runit = 'some text here'.
ld_x_awtyp = 'some text here'.
ld_x_rldnr = 'some text here'.
ld_x_rrcty = 'some text here'.
ld_x_rvers = 'some text here'.
ld_x_logsys = 'some text here'.
ld_x_racct = 'some text here'.
ld_x_cost_elem = 'some text here'.
ld_x_rbukrs = 'some text here'.
ld_x_rbusa = 'some text here'.
ld_x_kokrs = 'some text here'.
ld_x_fikrs = 'some text here'.
ld_x_rfund = 'some text here'.
ld_x_rgrant_nbr = 'some text here'.
ld_x_rfarea = '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_EGFMFLEXE or its description.