SAP ENQUEUE_EFCLM_BAM_AMD Function Module for Request lock for object EFCLM_BAM_AMD









ENQUEUE_EFCLM_BAM_AMD is a standard enqueue efclm bam amd 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 EFCLM_BAM_AMD 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 efclm bam amd FM, simply by entering the name ENQUEUE_EFCLM_BAM_AMD into the relevant SAP transaction such as SE37 or SE38.

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



Function ENQUEUE_EFCLM_BAM_AMD 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_EFCLM_BAM_AMD'"Request lock for object EFCLM_BAM_AMD
EXPORTING
* MODE_FCLM_BAM_AMD = 'E' "Lock mode for table FCLM_BAM_AMD
* BNAME = "06th enqueue argument
* VALID_TO = "07th enqueue argument
* X_ACC_ID = ' ' "Fill argument 02 with initial value?
* X_REVISION = ' ' "Fill argument 03 with initial value?
* X_LANGU = ' ' "Fill argument 04 with initial value?
* X_LIM_ID = ' ' "Fill argument 05 with initial value?
* X_BNAME = ' ' "Fill argument 06 with initial value?
* X_VALID_TO = ' ' "Fill argument 07 with initial value?
* _SCOPE = '2' "
* _WAIT = ' ' "
* MODE_FCLM_BAM_AMD_T = 'E' "Lock mode for table FCLM_BAM_AMD_T
* _COLLECT = ' ' "Initially only collect lock
* MODE_FCLM_BAM_AMD_LIM = 'E' "Lock mode for table FCLM_BAM_AMD_LIM
* MODE_FCLM_BAM_SIG = 'E' "Lock mode for table FCLM_BAM_SIG
* MANDT = SY-MANDT "01th enqueue argument
* ACC_ID = "02th enqueue argument
* REVISION = "03th enqueue argument
* LANGU = "04th enqueue argument
* LIM_ID = "05th enqueue argument

EXCEPTIONS
FOREIGN_LOCK = 1 SYSTEM_FAILURE = 2
.



IMPORTING Parameters details for ENQUEUE_EFCLM_BAM_AMD

MODE_FCLM_BAM_AMD - Lock mode for table FCLM_BAM_AMD

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

BNAME - 06th enqueue argument

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

VALID_TO - 07th enqueue argument

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

X_ACC_ID - Fill argument 02 with initial value?

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

X_REVISION - Fill argument 03 with initial value?

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

X_LANGU - Fill argument 04 with initial value?

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

X_LIM_ID - Fill argument 05 with initial value?

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

X_BNAME - Fill argument 06 with initial value?

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

X_VALID_TO - Fill argument 07 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)

MODE_FCLM_BAM_AMD_T - Lock mode for table FCLM_BAM_AMD_T

Data type: ENQMODE
Default: 'E'
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)

MODE_FCLM_BAM_AMD_LIM - Lock mode for table FCLM_BAM_AMD_LIM

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

MODE_FCLM_BAM_SIG - Lock mode for table FCLM_BAM_SIG

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

MANDT - 01th enqueue argument

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

ACC_ID - 02th enqueue argument

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

REVISION - 03th enqueue argument

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

LANGU - 04th enqueue argument

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

LIM_ID - 05th enqueue argument

Data type: FCLM_BAM_AMD_LIM-LIM_ID
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_EFCLM_BAM_AMD 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_fclm_bam_amd  TYPE ENQMODE, "   'E'
lv_bname  TYPE FCLM_BAM_SIG-BNAME, "   
lv_valid_to  TYPE FCLM_BAM_SIG-VALID_TO, "   
lv_x_acc_id  TYPE FCLM_BAM_SIG, "   SPACE
lv_x_revision  TYPE FCLM_BAM_SIG, "   SPACE
lv_x_langu  TYPE FCLM_BAM_SIG, "   SPACE
lv_x_lim_id  TYPE FCLM_BAM_SIG, "   SPACE
lv_x_bname  TYPE FCLM_BAM_SIG, "   SPACE
lv_x_valid_to  TYPE FCLM_BAM_SIG, "   SPACE
lv__scope  TYPE FCLM_BAM_SIG, "   '2'
lv__wait  TYPE FCLM_BAM_SIG, "   SPACE
lv_system_failure  TYPE FCLM_BAM_SIG, "   
lv_mode_fclm_bam_amd_t  TYPE ENQMODE, "   'E'
lv__collect  TYPE DDENQCOLL, "   ' '
lv_mode_fclm_bam_amd_lim  TYPE ENQMODE, "   'E'
lv_mode_fclm_bam_sig  TYPE ENQMODE, "   'E'
lv_mandt  TYPE FCLM_BAM_AMD-MANDT, "   SY-MANDT
lv_acc_id  TYPE FCLM_BAM_AMD-ACC_ID, "   
lv_revision  TYPE FCLM_BAM_AMD-REVISION, "   
lv_langu  TYPE FCLM_BAM_AMD_T-LANGU, "   
lv_lim_id  TYPE FCLM_BAM_AMD_LIM-LIM_ID. "   

  CALL FUNCTION 'ENQUEUE_EFCLM_BAM_AMD'  "Request lock for object EFCLM_BAM_AMD
    EXPORTING
         MODE_FCLM_BAM_AMD = lv_mode_fclm_bam_amd
         BNAME = lv_bname
         VALID_TO = lv_valid_to
         X_ACC_ID = lv_x_acc_id
         X_REVISION = lv_x_revision
         X_LANGU = lv_x_langu
         X_LIM_ID = lv_x_lim_id
         X_BNAME = lv_x_bname
         X_VALID_TO = lv_x_valid_to
         _SCOPE = lv__scope
         _WAIT = lv__wait
         MODE_FCLM_BAM_AMD_T = lv_mode_fclm_bam_amd_t
         _COLLECT = lv__collect
         MODE_FCLM_BAM_AMD_LIM = lv_mode_fclm_bam_amd_lim
         MODE_FCLM_BAM_SIG = lv_mode_fclm_bam_sig
         MANDT = lv_mandt
         ACC_ID = lv_acc_id
         REVISION = lv_revision
         LANGU = lv_langu
         LIM_ID = lv_lim_id
    EXCEPTIONS
        FOREIGN_LOCK = 1
        SYSTEM_FAILURE = 2
. " ENQUEUE_EFCLM_BAM_AMD




ABAP code using 7.40 inline data declarations to call FM ENQUEUE_EFCLM_BAM_AMD

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_fclm_bam_amd) = 'E'.
 
"SELECT single BNAME FROM FCLM_BAM_SIG INTO @DATA(ld_bname).
 
"SELECT single VALID_TO FROM FCLM_BAM_SIG INTO @DATA(ld_valid_to).
 
DATA(ld_x_acc_id) = ' '.
 
DATA(ld_x_revision) = ' '.
 
DATA(ld_x_langu) = ' '.
 
DATA(ld_x_lim_id) = ' '.
 
DATA(ld_x_bname) = ' '.
 
DATA(ld_x_valid_to) = ' '.
 
DATA(ld__scope) = '2'.
 
DATA(ld__wait) = ' '.
 
 
DATA(ld_mode_fclm_bam_amd_t) = 'E'.
 
DATA(ld__collect) = ' '.
 
DATA(ld_mode_fclm_bam_amd_lim) = 'E'.
 
DATA(ld_mode_fclm_bam_sig) = 'E'.
 
"SELECT single MANDT FROM FCLM_BAM_AMD INTO @DATA(ld_mandt).
DATA(ld_mandt) = SY-MANDT.
 
"SELECT single ACC_ID FROM FCLM_BAM_AMD INTO @DATA(ld_acc_id).
 
"SELECT single REVISION FROM FCLM_BAM_AMD INTO @DATA(ld_revision).
 
"SELECT single LANGU FROM FCLM_BAM_AMD_T INTO @DATA(ld_langu).
 
"SELECT single LIM_ID FROM FCLM_BAM_AMD_LIM INTO @DATA(ld_lim_id).
 


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!