SAP ENQUEUE_ENSDM_MIG_AG_GRP Function Module for Request lock for object ENSDM_MIG_AG_GRP









ENQUEUE_ENSDM_MIG_AG_GRP is a standard enqueue ensdm mig ag grp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Request lock for object ENSDM_MIG_AG_GRP processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for enqueue ensdm mig ag grp FM, simply by entering the name ENQUEUE_ENSDM_MIG_AG_GRP into the relevant SAP transaction such as SE37 or SE38.

Function Group: /1BCDWBEN/MEN0001
Program Name: /1BCDWBEN/SAPLMEN0001
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ENQUEUE_ENSDM_MIG_AG_GRP pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ENQUEUE_ENSDM_MIG_AG_GRP'"Request lock for object ENSDM_MIG_AG_GRP
EXPORTING
* MODE_NSDM_MIG_AG_GRP = 'X' "Lock mode for table NSDM_MIG_AG_GRP
* X_MIG_RUN = ' ' "Fill argument 02 with initial value?
* X_NZDT_GENERATION = ' ' "Fill argument 03 with initial value?
* X_MIG_MODE = ' ' "Fill argument 04 with initial value?
* X_AGGREGATE = ' ' "Fill argument 05 with initial value?
* X_GRP_L1 = ' ' "Fill argument 06 with initial value?
* X_GRP_L2_FROM = ' ' "Fill argument 07 with initial value?
* X_GRP_L2_TO = ' ' "Fill argument 08 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* MANDT = SY-MANDT "01th enqueue argument
* MIG_RUN = "02th enqueue argument
* NZDT_GENERATION = "03th enqueue argument
* MIG_MODE = "04th enqueue argument
* AGGREGATE = "05th enqueue argument
* GRP_L1 = "06th enqueue argument
* GRP_L2_FROM = "07th enqueue argument
* GRP_L2_TO = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ENSDM_MIG_AG_GRP

MODE_NSDM_MIG_AG_GRP - Lock mode for table NSDM_MIG_AG_GRP

Data type: ENQMODE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_MIG_RUN - Fill argument 02 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_NZDT_GENERATION - Fill argument 03 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_MIG_MODE - Fill argument 04 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_AGGREGATE - Fill argument 05 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_GRP_L1 - Fill argument 06 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_GRP_L2_FROM - Fill argument 07 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_GRP_L2_TO - Fill argument 08 with initial value?

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

_SCOPE -

Data type:
Default: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)

_WAIT -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

_COLLECT - Initially only collect lock

Data type: DDENQCOLL
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MANDT - 01th enqueue argument

Data type: NSDM_MIG_AG_GRP-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

MIG_RUN - 02th enqueue argument

Data type: NSDM_MIG_AG_GRP-MIG_RUN
Optional: Yes
Call by Reference: No ( called with pass by value option)

NZDT_GENERATION - 03th enqueue argument

Data type: NSDM_MIG_AG_GRP-NZDT_GENERATION
Optional: Yes
Call by Reference: No ( called with pass by value option)

MIG_MODE - 04th enqueue argument

Data type: NSDM_MIG_AG_GRP-MIG_MODE
Optional: Yes
Call by Reference: No ( called with pass by value option)

AGGREGATE - 05th enqueue argument

Data type: NSDM_MIG_AG_GRP-AGGREGATE
Optional: Yes
Call by Reference: No ( called with pass by value option)

GRP_L1 - 06th enqueue argument

Data type: NSDM_MIG_AG_GRP-GRP_L1
Optional: Yes
Call by Reference: No ( called with pass by value option)

GRP_L2_FROM - 07th enqueue argument

Data type: NSDM_MIG_AG_GRP-GRP_L2_FROM
Optional: Yes
Call by Reference: No ( called with pass by value option)

GRP_L2_TO - 08th enqueue argument

Data type: NSDM_MIG_AG_GRP-GRP_L2_TO
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

FOREIGN_LOCK - Object already locked

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SYSTEM_FAILURE - Internal error from enqueue server

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for ENQUEUE_ENSDM_MIG_AG_GRP Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_foreign_lock  TYPE STRING, "   
lv_mode_nsdm_mig_ag_grp  TYPE ENQMODE, "   'X'
lv_x_mig_run  TYPE ENQMODE, "   SPACE
lv_x_nzdt_generation  TYPE ENQMODE, "   SPACE
lv_x_mig_mode  TYPE ENQMODE, "   SPACE
lv_x_aggregate  TYPE ENQMODE, "   SPACE
lv_x_grp_l1  TYPE ENQMODE, "   SPACE
lv_x_grp_l2_from  TYPE ENQMODE, "   SPACE
lv_x_grp_l2_to  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mandt  TYPE NSDM_MIG_AG_GRP-MANDT, "   SY-MANDT
lv_system_failure  TYPE NSDM_MIG_AG_GRP, "   
lv_mig_run  TYPE NSDM_MIG_AG_GRP-MIG_RUN, "   
lv_nzdt_generation  TYPE NSDM_MIG_AG_GRP-NZDT_GENERATION, "   
lv_mig_mode  TYPE NSDM_MIG_AG_GRP-MIG_MODE, "   
lv_aggregate  TYPE NSDM_MIG_AG_GRP-AGGREGATE, "   
lv_grp_l1  TYPE NSDM_MIG_AG_GRP-GRP_L1, "   
lv_grp_l2_from  TYPE NSDM_MIG_AG_GRP-GRP_L2_FROM, "   
lv_grp_l2_to  TYPE NSDM_MIG_AG_GRP-GRP_L2_TO. "   

  CALL FUNCTION 'ENQUEUE_ENSDM_MIG_AG_GRP'  "Request lock for object ENSDM_MIG_AG_GRP
    EXPORTING
         MODE_NSDM_MIG_AG_GRP = lv_mode_nsdm_mig_ag_grp
         X_MIG_RUN = lv_x_mig_run
         X_NZDT_GENERATION = lv_x_nzdt_generation
         X_MIG_MODE = lv_x_mig_mode
         X_AGGREGATE = lv_x_aggregate
         X_GRP_L1 = lv_x_grp_l1
         X_GRP_L2_FROM = lv_x_grp_l2_from
         X_GRP_L2_TO = lv_x_grp_l2_to
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         MANDT = lv_mandt
         MIG_RUN = lv_mig_run
         NZDT_GENERATION = lv_nzdt_generation
         MIG_MODE = lv_mig_mode
         AGGREGATE = lv_aggregate
         GRP_L1 = lv_grp_l1
         GRP_L2_FROM = lv_grp_l2_from
         GRP_L2_TO = lv_grp_l2_to
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ENSDM_MIG_AG_GRP




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ENSDM_MIG_AG_GRP

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
DATA(ld_mode_nsdm_mig_ag_grp) = 'X'.
 
DATA(ld_x_mig_run) = ' '.
 
DATA(ld_x_nzdt_generation) = ' '.
 
DATA(ld_x_mig_mode) = ' '.
 
DATA(ld_x_aggregate) = ' '.
 
DATA(ld_x_grp_l1) = ' '.
 
DATA(ld_x_grp_l2_from) = ' '.
 
DATA(ld_x_grp_l2_to) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single MANDT FROM NSDM_MIG_AG_GRP INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
"SELECT single MIG_RUN FROM NSDM_MIG_AG_GRP INTO @DATA(ld_mig_run).
 
"SELECT single NZDT_GENERATION FROM NSDM_MIG_AG_GRP INTO @DATA(ld_nzdt_generation).
 
"SELECT single MIG_MODE FROM NSDM_MIG_AG_GRP INTO @DATA(ld_mig_mode).
 
"SELECT single AGGREGATE FROM NSDM_MIG_AG_GRP INTO @DATA(ld_aggregate).
 
"SELECT single GRP_L1 FROM NSDM_MIG_AG_GRP INTO @DATA(ld_grp_l1).
 
"SELECT single GRP_L2_FROM FROM NSDM_MIG_AG_GRP INTO @DATA(ld_grp_l2_from).
 
"SELECT single GRP_L2_TO FROM NSDM_MIG_AG_GRP INTO @DATA(ld_grp_l2_to).
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!