SAP ENQUEUE_IDCFM_FRIM_DATA Function Module for Request lock for object IDCFM_FRIM_DATA









ENQUEUE_IDCFM_FRIM_DATA is a standard enqueue idcfm frim data 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 IDCFM_FRIM_DATA 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 idcfm frim data FM, simply by entering the name ENQUEUE_IDCFM_FRIM_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_IDCFM_FRIM_DATA 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_IDCFM_FRIM_DATA'"Request lock for object IDCFM_FRIM_DATA
EXPORTING
* MODE_IDCFM_FRIM_DATA = 'E' "Lock mode for table IDCFM_FRIM_DATA
* KEY_DATE = "09th enqueue argument
* LOT_ID = "10th enqueue argument
* FUND = "11th enqueue argument
* RUN_KEY = "12th enqueue argument
* X_VALUATION_AREA = ' ' "Fill argument 02 with initial value?
* X_VALUATION_CLASS = ' ' "Fill argument 03 with initial value?
* X_COMPANY_CODE = ' ' "Fill argument 04 with initial value?
* X_SECURITY_ACCOUNT = ' ' "Fill argument 05 with initial value?
* X_SECURITY_ID = ' ' "Fill argument 06 with initial value?
* X_PORTFOLIO = ' ' "Fill argument 07 with initial value?
* MANDT = SY-MANDT "01th enqueue argument
* X_ACCOUNT_GROUP = ' ' "Fill argument 08 with initial value?
* X_KEY_DATE = ' ' "Fill argument 09 with initial value?
* X_LOT_ID = ' ' "Fill argument 10 with initial value?
* X_FUND = ' ' "Fill argument 11 with initial value?
* X_RUN_KEY = ' ' "Fill argument 12 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* _COLLECT = ' ' "Initially only collect lock
* VALUATION_AREA = "02th enqueue argument
* VALUATION_CLASS = "03th enqueue argument
* COMPANY_CODE = "04th enqueue argument
* SECURITY_ACCOUNT = "05th enqueue argument
* SECURITY_ID = "06th enqueue argument
* PORTFOLIO = "07th enqueue argument
* ACCOUNT_GROUP = "08th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_IDCFM_FRIM_DATA

MODE_IDCFM_FRIM_DATA - Lock mode for table IDCFM_FRIM_DATA

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

KEY_DATE - 09th enqueue argument

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

LOT_ID - 10th enqueue argument

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

FUND - 11th enqueue argument

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

RUN_KEY - 12th enqueue argument

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

X_VALUATION_AREA - Fill argument 02 with initial value?

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

X_VALUATION_CLASS - Fill argument 03 with initial value?

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

X_COMPANY_CODE - Fill argument 04 with initial value?

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

X_SECURITY_ACCOUNT - Fill argument 05 with initial value?

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

X_SECURITY_ID - Fill argument 06 with initial value?

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

X_PORTFOLIO - Fill argument 07 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: IDCFM_FRIM_DATA-MANDT
Default: SY-MANDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

X_ACCOUNT_GROUP - Fill argument 08 with initial value?

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

X_KEY_DATE - Fill argument 09 with initial value?

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

X_LOT_ID - Fill argument 10 with initial value?

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

X_FUND - Fill argument 11 with initial value?

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

X_RUN_KEY - Fill argument 12 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)

VALUATION_AREA - 02th enqueue argument

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

VALUATION_CLASS - 03th enqueue argument

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

COMPANY_CODE - 04th enqueue argument

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

SECURITY_ACCOUNT - 05th enqueue argument

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

SECURITY_ID - 06th enqueue argument

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

PORTFOLIO - 07th enqueue argument

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

ACCOUNT_GROUP - 08th enqueue argument

Data type: IDCFM_FRIM_DATA-ACCOUNT_GROUP
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_IDCFM_FRIM_DATA 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_idcfm_frim_data  TYPE ENQMODE, "   'E'
lv_key_date  TYPE IDCFM_FRIM_DATA-KEY_DATE, "   
lv_lot_id  TYPE IDCFM_FRIM_DATA-LOT_ID, "   
lv_fund  TYPE IDCFM_FRIM_DATA-FUND, "   
lv_run_key  TYPE IDCFM_FRIM_DATA-RUN_KEY, "   
lv_x_valuation_area  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_valuation_class  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_company_code  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_security_account  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_security_id  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_portfolio  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_mandt  TYPE IDCFM_FRIM_DATA-MANDT, "   SY-MANDT
lv_system_failure  TYPE IDCFM_FRIM_DATA, "   
lv_x_account_group  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_key_date  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_lot_id  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_fund  TYPE IDCFM_FRIM_DATA, "   SPACE
lv_x_run_key  TYPE IDCFM_FRIM_DATA, "   SPACE
lv__scope  TYPE IDCFM_FRIM_DATA, "   '2'
lv__wait  TYPE IDCFM_FRIM_DATA, "   SPACE
lv__collect  TYPE DDENQCOLL, "   ' '
lv_valuation_area  TYPE IDCFM_FRIM_DATA-VALUATION_AREA, "   
lv_valuation_class  TYPE IDCFM_FRIM_DATA-VALUATION_CLASS, "   
lv_company_code  TYPE IDCFM_FRIM_DATA-COMPANY_CODE, "   
lv_security_account  TYPE IDCFM_FRIM_DATA-SECURITY_ACCOUNT, "   
lv_security_id  TYPE IDCFM_FRIM_DATA-SECURITY_ID, "   
lv_portfolio  TYPE IDCFM_FRIM_DATA-PORTFOLIO, "   
lv_account_group  TYPE IDCFM_FRIM_DATA-ACCOUNT_GROUP. "   

  CALL FUNCTION 'ENQUEUE_IDCFM_FRIM_DATA'  "Request lock for object IDCFM_FRIM_DATA
    EXPORTING
         MODE_IDCFM_FRIM_DATA = lv_mode_idcfm_frim_data
         KEY_DATE = lv_key_date
         LOT_ID = lv_lot_id
         FUND = lv_fund
         RUN_KEY = lv_run_key
         X_VALUATION_AREA = lv_x_valuation_area
         X_VALUATION_CLASS = lv_x_valuation_class
         X_COMPANY_CODE = lv_x_company_code
         X_SECURITY_ACCOUNT = lv_x_security_account
         X_SECURITY_ID = lv_x_security_id
         X_PORTFOLIO = lv_x_portfolio
         MANDT = lv_mandt
         X_ACCOUNT_GROUP = lv_x_account_group
         X_KEY_DATE = lv_x_key_date
         X_LOT_ID = lv_x_lot_id
         X_FUND = lv_x_fund
         X_RUN_KEY = lv_x_run_key
         _SCOPE = lv__scope
         _WAIT = lv__wait
         _COLLECT = lv__collect
         VALUATION_AREA = lv_valuation_area
         VALUATION_CLASS = lv_valuation_class
         COMPANY_CODE = lv_company_code
         SECURITY_ACCOUNT = lv_security_account
         SECURITY_ID = lv_security_id
         PORTFOLIO = lv_portfolio
         ACCOUNT_GROUP = lv_account_group
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_IDCFM_FRIM_DATA




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_IDCFM_FRIM_DATA

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_idcfm_frim_data) = 'E'.
 
"SELECT single KEY_DATE FROM IDCFM_FRIM_DATA INTO @DATA(ld_key_date).
 
"SELECT single LOT_ID FROM IDCFM_FRIM_DATA INTO @DATA(ld_lot_id).
 
"SELECT single FUND FROM IDCFM_FRIM_DATA INTO @DATA(ld_fund).
 
"SELECT single RUN_KEY FROM IDCFM_FRIM_DATA INTO @DATA(ld_run_key).
 
DATA(ld_x_valuation_area) = ' '.
 
DATA(ld_x_valuation_class) = ' '.
 
DATA(ld_x_company_code) = ' '.
 
DATA(ld_x_security_account) = ' '.
 
DATA(ld_x_security_id) = ' '.
 
DATA(ld_x_portfolio) = ' '.
 
"SELECT single MANDT FROM IDCFM_FRIM_DATA INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
 
DATA(ld_x_account_group) = ' '.
 
DATA(ld_x_key_date) = ' '.
 
DATA(ld_x_lot_id) = ' '.
 
DATA(ld_x_fund) = ' '.
 
DATA(ld_x_run_key) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
DATA(ld__collect) = ' '.
 
"SELECT single VALUATION_AREA FROM IDCFM_FRIM_DATA INTO @DATA(ld_valuation_area).
 
"SELECT single VALUATION_CLASS FROM IDCFM_FRIM_DATA INTO @DATA(ld_valuation_class).
 
"SELECT single COMPANY_CODE FROM IDCFM_FRIM_DATA INTO @DATA(ld_company_code).
 
"SELECT single SECURITY_ACCOUNT FROM IDCFM_FRIM_DATA INTO @DATA(ld_security_account).
 
"SELECT single SECURITY_ID FROM IDCFM_FRIM_DATA INTO @DATA(ld_security_id).
 
"SELECT single PORTFOLIO FROM IDCFM_FRIM_DATA INTO @DATA(ld_portfolio).
 
"SELECT single ACCOUNT_GROUP FROM IDCFM_FRIM_DATA INTO @DATA(ld_account_group).
 


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!