SAP ENQUEUE_E_POS_IDENT Function Module for Request lock for object E_POS_IDENT









ENQUEUE_E_POS_IDENT is a standard enqueue e pos ident 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 E_POS_IDENT 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 e pos ident FM, simply by entering the name ENQUEUE_E_POS_IDENT into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_E_POS_IDENT 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_E_POS_IDENT'"Request lock for object E_POS_IDENT
EXPORTING
* MODE_DIFS_POS_IDENT_LOCK_GEN = 'E' "Lock mode for table DIFS_POS_IDENT_LOCK_GEN
* CONTRACT = "09th enqueue argument
* ACCOUNT = "10th enqueue argument
* PORTFOLIO = "11th enqueue argument
* ACCOUNT_GROUP = "12th enqueue argument
* FLAG_LONG_SHORT = "13th enqueue argument
* OBJECT_ID = "14th enqueue argument
* X_CONTEXT = ' ' "Fill argument 02 with initial value?
* X_VALUATION_AREA = ' ' "Fill argument 03 with initial value?
* X_VALUATION_CLASS = ' ' "Fill argument 04 with initial value?
* X_COMPANY_CODE = ' ' "Fill argument 05 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_PRODUCT_TYPE = ' ' "Fill argument 06 with initial value?
* X_FUND = ' ' "Fill argument 07 with initial value?
* X_GRANT_NBR = ' ' "Fill argument 08 with initial value?
* X_CONTRACT = ' ' "Fill argument 09 with initial value?
* X_ACCOUNT = ' ' "Fill argument 10 with initial value?
* X_PORTFOLIO = ' ' "Fill argument 11 with initial value?
* X_ACCOUNT_GROUP = ' ' "Fill argument 12 with initial value?
* X_FLAG_LONG_SHORT = ' ' "Fill argument 13 with initial value?
* X_OBJECT_ID = ' ' "Fill argument 14 with initial value?
* _SCOPE = '2' "
* CONTEXT = "02th enqueue argument
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* VALUATION_AREA = "03th enqueue argument
* VALUATION_CLASS = "04th enqueue argument
* COMPANY_CODE = "05th enqueue argument
* PRODUCT_TYPE = "06th enqueue argument
* FUND = "07th enqueue argument
* GRANT_NBR = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_E_POS_IDENT

MODE_DIFS_POS_IDENT_LOCK_GEN - Lock mode for table DIFS_POS_IDENT_LOCK_GEN

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

CONTRACT - 09th enqueue argument

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

ACCOUNT - 10th enqueue argument

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

PORTFOLIO - 11th enqueue argument

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

ACCOUNT_GROUP - 12th enqueue argument

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

FLAG_LONG_SHORT - 13th enqueue argument

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

OBJECT_ID - 14th enqueue argument

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

X_CONTEXT - Fill argument 02 with initial value?

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

X_VALUATION_AREA - Fill argument 03 with initial value?

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

X_VALUATION_CLASS - Fill argument 04 with initial value?

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

X_COMPANY_CODE - Fill argument 05 with initial value?

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

MANDT - 01th enqueue argument

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

X_PRODUCT_TYPE - Fill argument 06 with initial value?

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

X_FUND - Fill argument 07 with initial value?

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

X_GRANT_NBR - Fill argument 08 with initial value?

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

X_CONTRACT - Fill argument 09 with initial value?

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

X_ACCOUNT - Fill argument 10 with initial value?

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

X_PORTFOLIO - Fill argument 11 with initial value?

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

X_ACCOUNT_GROUP - Fill argument 12 with initial value?

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

X_FLAG_LONG_SHORT - Fill argument 13 with initial value?

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

X_OBJECT_ID - Fill argument 14 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)

CONTEXT - 02th enqueue argument

Data type: DIFS_POS_IDENT_LOCK_GEN-CONTEXT
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)

VALUATION_AREA - 03th enqueue argument

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

VALUATION_CLASS - 04th enqueue argument

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

COMPANY_CODE - 05th enqueue argument

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

PRODUCT_TYPE - 06th enqueue argument

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

FUND - 07th enqueue argument

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

GRANT_NBR - 08th enqueue argument

Data type: DIFS_POS_IDENT_LOCK_GEN-GRANT_NBR
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_E_POS_IDENT 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_difs_pos_ident_lock_gen  TYPE ENQMODE, "   'E'
lv_contract  TYPE DIFS_POS_IDENT_LOCK_GEN-CONTRACT, "   
lv_account  TYPE DIFS_POS_IDENT_LOCK_GEN-ACCOUNT, "   
lv_portfolio  TYPE DIFS_POS_IDENT_LOCK_GEN-PORTFOLIO, "   
lv_account_group  TYPE DIFS_POS_IDENT_LOCK_GEN-ACCOUNT_GROUP, "   
lv_flag_long_short  TYPE DIFS_POS_IDENT_LOCK_GEN-FLAG_LONG_SHORT, "   
lv_object_id  TYPE DIFS_POS_IDENT_LOCK_GEN-OBJECT_ID, "   
lv_x_context  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_valuation_area  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_valuation_class  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_company_code  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_mandt  TYPE DIFS_POS_IDENT_LOCK_GEN-MANDT, "   SY-MANDT
lv_system_failure  TYPE DIFS_POS_IDENT_LOCK_GEN, "   
lv_x_product_type  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_fund  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_grant_nbr  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_contract  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_account  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_portfolio  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_account_group  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_flag_long_short  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv_x_object_id  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv__scope  TYPE DIFS_POS_IDENT_LOCK_GEN, "   '2'
lv_context  TYPE DIFS_POS_IDENT_LOCK_GEN-CONTEXT, "   
lv__wait  TYPE DIFS_POS_IDENT_LOCK_GEN, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_valuation_area  TYPE DIFS_POS_IDENT_LOCK_GEN-VALUATION_AREA, "   
lv_valuation_class  TYPE DIFS_POS_IDENT_LOCK_GEN-VALUATION_CLASS, "   
lv_company_code  TYPE DIFS_POS_IDENT_LOCK_GEN-COMPANY_CODE, "   
lv_product_type  TYPE DIFS_POS_IDENT_LOCK_GEN-PRODUCT_TYPE, "   
lv_fund  TYPE DIFS_POS_IDENT_LOCK_GEN-FUND, "   
lv_grant_nbr  TYPE DIFS_POS_IDENT_LOCK_GEN-GRANT_NBR. "   

  CALL FUNCTION 'ENQUEUE_E_POS_IDENT'  "Request lock for object E_POS_IDENT
    EXPORTING
         MODE_DIFS_POS_IDENT_LOCK_GEN = lv_mode_difs_pos_ident_lock_gen
         CONTRACT = lv_contract
         ACCOUNT = lv_account
         PORTFOLIO = lv_portfolio
         ACCOUNT_GROUP = lv_account_group
         FLAG_LONG_SHORT = lv_flag_long_short
         OBJECT_ID = lv_object_id
         X_CONTEXT = lv_x_context
         X_VALUATION_AREA = lv_x_valuation_area
         X_VALUATION_CLASS = lv_x_valuation_class
         X_COMPANY_CODE = lv_x_company_code
         MANDT = lv_mandt
         X_PRODUCT_TYPE = lv_x_product_type
         X_FUND = lv_x_fund
         X_GRANT_NBR = lv_x_grant_nbr
         X_CONTRACT = lv_x_contract
         X_ACCOUNT = lv_x_account
         X_PORTFOLIO = lv_x_portfolio
         X_ACCOUNT_GROUP = lv_x_account_group
         X_FLAG_LONG_SHORT = lv_x_flag_long_short
         X_OBJECT_ID = lv_x_object_id
         _SCOPE = lv__scope
         CONTEXT = lv_context
         _WAIT = lv__wait
         _COLLECT = lv__collect
         VALUATION_AREA = lv_valuation_area
         VALUATION_CLASS = lv_valuation_class
         COMPANY_CODE = lv_company_code
         PRODUCT_TYPE = lv_product_type
         FUND = lv_fund
         GRANT_NBR = lv_grant_nbr
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_E_POS_IDENT




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_E_POS_IDENT

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_difs_pos_ident_lock_gen) = 'E'.
 
"SELECT single CONTRACT FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_contract).
 
"SELECT single ACCOUNT FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_account).
 
"SELECT single PORTFOLIO FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_portfolio).
 
"SELECT single ACCOUNT_GROUP FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_account_group).
 
"SELECT single FLAG_LONG_SHORT FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_flag_long_short).
 
"SELECT single OBJECT_ID FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_object_id).
 
DATA(ld_x_context) = ' '.
 
DATA(ld_x_valuation_area) = ' '.
 
DATA(ld_x_valuation_class) = ' '.
 
DATA(ld_x_company_code) = ' '.
 
"SELECT single MANDT FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_product_type) = ' '.
 
DATA(ld_x_fund) = ' '.
 
DATA(ld_x_grant_nbr) = ' '.
 
DATA(ld_x_contract) = ' '.
 
DATA(ld_x_account) = ' '.
 
DATA(ld_x_portfolio) = ' '.
 
DATA(ld_x_account_group) = ' '.
 
DATA(ld_x_flag_long_short) = ' '.
 
DATA(ld_x_object_id) = ' '.
 
DATA(ld__scope) = '2'.
 
"SELECT single CONTEXT FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_context).
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single VALUATION_AREA FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_valuation_area).
 
"SELECT single VALUATION_CLASS FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_valuation_class).
 
"SELECT single COMPANY_CODE FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_company_code).
 
"SELECT single PRODUCT_TYPE FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_product_type).
 
"SELECT single FUND FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_fund).
 
"SELECT single GRANT_NBR FROM DIFS_POS_IDENT_LOCK_GEN INTO @DATA(ld_grant_nbr).
 


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!