SAP FKK_S_LOCK_CREATE Function Module for









FKK_S_LOCK_CREATE is a standard fkk s lock create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fkk s lock create FM, simply by entering the name FKK_S_LOCK_CREATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FKKLOCK_SERVICE
Program Name: SAPLFKKLOCK_SERVICE
Main Program: SAPLFKLOCK
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FKK_S_LOCK_CREATE 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 'FKK_S_LOCK_CREATE'"
EXPORTING
* I_APPL_WORK_AREA = "
* I_COND_LOOBJ = "
* I_ACTKEY = "
* IT_EXP_GPART = "
* IT_EXP_VKONT = "
* IX_SET_ENQUEUE = ' ' "Indicator: Set Lock
* I_PROTECTED = ' ' "
* I_UNAME = SY-UNAME "SAP System, User Logon Name
* I_LAUFD = "Date ID
* I_LAUFI = "Additional Identification Characteristic
* I_UPD_ONLINE = 'X' "
* I_LOOBJ1 = "
* IX_CHECK_AUTHORITY = 'X' "
* I_ADATUM = "
* I_AZEIT = "
* I_LOCKT = "
* I_GPART = "
* I_VKONT = "
I_PROID = "
I_LOTYP = "
I_LOCKR = "
I_FDATE = "
I_TDATE = "

IMPORTING
ES_LOCKS = "FI-CA: Business Locks
ET_EXP_GPART = "
ET_EXP_VKONT = "

EXCEPTIONS
ALREADY_EXIST = 1 IMP_DATA_NOT_COMPLETE = 2 NO_AUTHORITY = 3 ENQUEUE_LOCK = 4 WRONG_DATA = 5
.



IMPORTING Parameters details for FKK_S_LOCK_CREATE

I_APPL_WORK_AREA -

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

I_COND_LOOBJ -

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

I_ACTKEY -

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

IT_EXP_GPART -

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

IT_EXP_VKONT -

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

IX_SET_ENQUEUE - Indicator: Set Lock

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

I_PROTECTED -

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

I_UNAME - SAP System, User Logon Name

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

I_LAUFD - Date ID

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

I_LAUFI - Additional Identification Characteristic

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

I_UPD_ONLINE -

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

I_LOOBJ1 -

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

IX_CHECK_AUTHORITY -

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

I_ADATUM -

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

I_AZEIT -

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

I_LOCKT -

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

I_GPART -

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

I_VKONT -

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

I_PROID -

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

I_LOTYP -

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

I_LOCKR -

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

I_FDATE -

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

I_TDATE -

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

EXPORTING Parameters details for FKK_S_LOCK_CREATE

ES_LOCKS - FI-CA: Business Locks

Data type: DFKKLOCKS
Optional: No
Call by Reference: Yes

ET_EXP_GPART -

Data type: FKLOC_EXP_GPART
Optional: No
Call by Reference: Yes

ET_EXP_VKONT -

Data type: FKLOC_EXP_VKONT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

ALREADY_EXIST -

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

IMP_DATA_NOT_COMPLETE -

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

NO_AUTHORITY -

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

ENQUEUE_LOCK -

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

WRONG_DATA -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FKK_S_LOCK_CREATE 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_es_locks  TYPE DFKKLOCKS, "   
lv_already_exist  TYPE DFKKLOCKS, "   
lv_i_appl_work_area  TYPE DFKKLOCKS, "   
lv_i_cond_loobj  TYPE DFKKLOCKS-COND_LOOBJ, "   
lv_i_actkey  TYPE DFKKLOCKS-ACTKEY, "   
lv_it_exp_gpart  TYPE FKLOC_EXP_GPART, "   
lv_it_exp_vkont  TYPE FKLOC_EXP_VKONT, "   
lv_ix_set_enqueue  TYPE BOOLE-BOOLE, "   SPACE
lv_i_protected  TYPE DFKKLOCKS-PROTECTED, "   SPACE
lv_i_uname  TYPE SY-UNAME, "   SY-UNAME
lv_i_laufd  TYPE DFKKLOCKS-LAUFD, "   
lv_i_laufi  TYPE DFKKLOCKS-LAUFI, "   
lv_i_upd_online  TYPE XFELD, "   'X'
lv_i_loobj1  TYPE DFKKLOCKS-LOOBJ1, "   
lv_et_exp_gpart  TYPE FKLOC_EXP_GPART, "   
lv_imp_data_not_complete  TYPE FKLOC_EXP_GPART, "   
lv_ix_check_authority  TYPE BOOLE-BOOLE, "   'X'
lv_i_adatum  TYPE UDATUM, "   
lv_i_azeit  TYPE UZEIT, "   
lv_i_lockt  TYPE FKK_ENH_LOCKT-LOCKT, "   
lv_i_gpart  TYPE DFKKLOCKS-GPART, "   
lv_et_exp_vkont  TYPE FKLOC_EXP_VKONT, "   
lv_no_authority  TYPE FKLOC_EXP_VKONT, "   
lv_i_vkont  TYPE DFKKLOCKS-VKONT, "   
lv_enqueue_lock  TYPE DFKKLOCKS, "   
lv_i_proid  TYPE DFKKLOCKS-PROID, "   
lv_wrong_data  TYPE DFKKLOCKS, "   
lv_i_lotyp  TYPE DFKKLOCKS-LOTYP, "   
lv_i_lockr  TYPE DFKKLOCKS-LOCKR, "   
lv_i_fdate  TYPE DFKKLOCKS-FDATE, "   
lv_i_tdate  TYPE DFKKLOCKS-TDATE. "   

  CALL FUNCTION 'FKK_S_LOCK_CREATE'  "
    EXPORTING
         I_APPL_WORK_AREA = lv_i_appl_work_area
         I_COND_LOOBJ = lv_i_cond_loobj
         I_ACTKEY = lv_i_actkey
         IT_EXP_GPART = lv_it_exp_gpart
         IT_EXP_VKONT = lv_it_exp_vkont
         IX_SET_ENQUEUE = lv_ix_set_enqueue
         I_PROTECTED = lv_i_protected
         I_UNAME = lv_i_uname
         I_LAUFD = lv_i_laufd
         I_LAUFI = lv_i_laufi
         I_UPD_ONLINE = lv_i_upd_online
         I_LOOBJ1 = lv_i_loobj1
         IX_CHECK_AUTHORITY = lv_ix_check_authority
         I_ADATUM = lv_i_adatum
         I_AZEIT = lv_i_azeit
         I_LOCKT = lv_i_lockt
         I_GPART = lv_i_gpart
         I_VKONT = lv_i_vkont
         I_PROID = lv_i_proid
         I_LOTYP = lv_i_lotyp
         I_LOCKR = lv_i_lockr
         I_FDATE = lv_i_fdate
         I_TDATE = lv_i_tdate
    IMPORTING
         ES_LOCKS = lv_es_locks
         ET_EXP_GPART = lv_et_exp_gpart
         ET_EXP_VKONT = lv_et_exp_vkont
    EXCEPTIONS
        ALREADY_EXIST = 1
        IMP_DATA_NOT_COMPLETE = 2
        NO_AUTHORITY = 3
        ENQUEUE_LOCK = 4
        WRONG_DATA = 5
. " FKK_S_LOCK_CREATE




ABAP code using 7.40 inline data declarations to call FM FKK_S_LOCK_CREATE

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.

 
 
 
"SELECT single COND_LOOBJ FROM DFKKLOCKS INTO @DATA(ld_i_cond_loobj).
 
"SELECT single ACTKEY FROM DFKKLOCKS INTO @DATA(ld_i_actkey).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_set_enqueue).
DATA(ld_ix_set_enqueue) = ' '.
 
"SELECT single PROTECTED FROM DFKKLOCKS INTO @DATA(ld_i_protected).
DATA(ld_i_protected) = ' '.
 
"SELECT single UNAME FROM SY INTO @DATA(ld_i_uname).
DATA(ld_i_uname) = SY-UNAME.
 
"SELECT single LAUFD FROM DFKKLOCKS INTO @DATA(ld_i_laufd).
 
"SELECT single LAUFI FROM DFKKLOCKS INTO @DATA(ld_i_laufi).
 
DATA(ld_i_upd_online) = 'X'.
 
"SELECT single LOOBJ1 FROM DFKKLOCKS INTO @DATA(ld_i_loobj1).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_ix_check_authority).
DATA(ld_ix_check_authority) = 'X'.
 
 
 
"SELECT single LOCKT FROM FKK_ENH_LOCKT INTO @DATA(ld_i_lockt).
 
"SELECT single GPART FROM DFKKLOCKS INTO @DATA(ld_i_gpart).
 
 
 
"SELECT single VKONT FROM DFKKLOCKS INTO @DATA(ld_i_vkont).
 
 
"SELECT single PROID FROM DFKKLOCKS INTO @DATA(ld_i_proid).
 
 
"SELECT single LOTYP FROM DFKKLOCKS INTO @DATA(ld_i_lotyp).
 
"SELECT single LOCKR FROM DFKKLOCKS INTO @DATA(ld_i_lockr).
 
"SELECT single FDATE FROM DFKKLOCKS INTO @DATA(ld_i_fdate).
 
"SELECT single TDATE FROM DFKKLOCKS INTO @DATA(ld_i_tdate).
 


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!