SAP ENQUEUE_ERSANAUMM2UPOBJ Function Module for Request lock for object ERSANAUMM2UPOBJ









ENQUEUE_ERSANAUMM2UPOBJ is a standard enqueue ersanaumm2upobj 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 ERSANAUMM2UPOBJ 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 ersanaumm2upobj FM, simply by entering the name ENQUEUE_ERSANAUMM2UPOBJ into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_ERSANAUMM2UPOBJ 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_ERSANAUMM2UPOBJ'"Request lock for object ERSANAUMM2UPOBJ
EXPORTING
* MODE_RSANAUMM2UPLOCK = 'E' "Lock mode for table RSANAUMM2UPLOCK
* X_MODEL_VERSION = ' ' "Fill argument 05 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* SCENARIO = "01th enqueue argument
* MANDT = SY-MANDT "02th enqueue argument
* MODELING_CONTEXT = "03th enqueue argument
* MODEL = "04th enqueue argument
* MODEL_VERSION = "05th enqueue argument
* X_SCENARIO = ' ' "Fill argument 01 with initial value?
* X_MODELING_CONTEXT = ' ' "Fill argument 03 with initial value?
* X_MODEL = ' ' "Fill argument 04 with initial value?

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_ERSANAUMM2UPOBJ

MODE_RSANAUMM2UPLOCK - Lock mode for table RSANAUMM2UPLOCK

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

X_MODEL_VERSION - Fill argument 05 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)

SCENARIO - 01th enqueue argument

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

MANDT - 02th enqueue argument

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

MODELING_CONTEXT - 03th enqueue argument

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

MODEL - 04th enqueue argument

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

MODEL_VERSION - 05th enqueue argument

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

X_SCENARIO - Fill argument 01 with initial value?

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

X_MODELING_CONTEXT - Fill argument 03 with initial value?

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

X_MODEL - Fill argument 04 with initial value?

Data type:
Default: SPACE
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_ERSANAUMM2UPOBJ 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_rsanaumm2uplock  TYPE ENQMODE, "   'E'
lv_x_model_version  TYPE ENQMODE, "   SPACE
lv__scope  TYPE ENQMODE, "   '2'
lv__wait  TYPE ENQMODE, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_scenario  TYPE RSANAUMM2UPLOCK-SCENARIO, "   
lv_system_failure  TYPE RSANAUMM2UPLOCK, "   
lv_mandt  TYPE RSANAUMM2UPLOCK-MANDT, "   SY-MANDT
lv_modeling_context  TYPE RSANAUMM2UPLOCK-MODELING_CONTEXT, "   
lv_model  TYPE RSANAUMM2UPLOCK-MODEL, "   
lv_model_version  TYPE RSANAUMM2UPLOCK-MODEL_VERSION, "   
lv_x_scenario  TYPE RSANAUMM2UPLOCK, "   SPACE
lv_x_modeling_context  TYPE RSANAUMM2UPLOCK, "   SPACE
lv_x_model  TYPE RSANAUMM2UPLOCK. "   SPACE

  CALL FUNCTION 'ENQUEUE_ERSANAUMM2UPOBJ'  "Request lock for object ERSANAUMM2UPOBJ
    EXPORTING
         MODE_RSANAUMM2UPLOCK = lv_mode_rsanaumm2uplock
         X_MODEL_VERSION = lv_x_model_version
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         SCENARIO = lv_scenario
         MANDT = lv_mandt
         MODELING_CONTEXT = lv_modeling_context
         MODEL = lv_model
         MODEL_VERSION = lv_model_version
         X_SCENARIO = lv_x_scenario
         X_MODELING_CONTEXT = lv_x_modeling_context
         X_MODEL = lv_x_model
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_ERSANAUMM2UPOBJ




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_ERSANAUMM2UPOBJ

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_rsanaumm2uplock) = 'E'.
 
DATA(ld_x_model_version) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single SCENARIO FROM RSANAUMM2UPLOCK INTO @DATA(ld_scenario).
 
 
"SELECT single MANDT FROM RSANAUMM2UPLOCK INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single MODELING_CONTEXT FROM RSANAUMM2UPLOCK INTO @DATA(ld_modeling_context).
 
"SELECT single MODEL FROM RSANAUMM2UPLOCK INTO @DATA(ld_model).
 
"SELECT single MODEL_VERSION FROM RSANAUMM2UPLOCK INTO @DATA(ld_model_version).
 
DATA(ld_x_scenario) = ' '.
 
DATA(ld_x_modeling_context) = ' '.
 
DATA(ld_x_model) = ' '.
 


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!