SAP FKK_DB_LOCK_SINGLE Function Module for









FKK_DB_LOCK_SINGLE is a standard fkk db lock single 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 db lock single FM, simply by entering the name FKK_DB_LOCK_SINGLE into the relevant SAP transaction such as SE37 or SE38.

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



Function FKK_DB_LOCK_SINGLE 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_DB_LOCK_SINGLE'"
EXPORTING
I_LOOBJ1 = "
I_PROID = "
I_LOTYP = "
I_LOCKR = "
* I_FDATE = "
* I_TDATE = "
I_WMODE = "
* I_ACTIVE = ' ' "

IMPORTING
E_LOCKS = "
ET_EXP_GPART = "
ET_EXP_VKONT = "

TABLES
* IT_FKKR_FDATE = "
* IT_FKKR_TDATE = "

EXCEPTIONS
NOT_FOUND = 1 NOT_UNIQUE = 2 ALREADY_EXIST = 3
.



IMPORTING Parameters details for FKK_DB_LOCK_SINGLE

I_LOOBJ1 -

Data type: DFKKLOCKS-LOOBJ1
Optional: No
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: Yes
Call by Reference: No ( called with pass by value option)

I_TDATE -

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

I_WMODE -

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

I_ACTIVE -

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

EXPORTING Parameters details for FKK_DB_LOCK_SINGLE

E_LOCKS -

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

ET_EXP_GPART -

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

ET_EXP_VKONT -

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

TABLES Parameters details for FKK_DB_LOCK_SINGLE

IT_FKKR_FDATE -

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

IT_FKKR_TDATE -

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

EXCEPTIONS details

NOT_FOUND -

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

NOT_UNIQUE -

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

ALREADY_EXIST -

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

Copy and paste ABAP code example for FKK_DB_LOCK_SINGLE 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_e_locks  TYPE DFKKLOCKS, "   
lv_i_loobj1  TYPE DFKKLOCKS-LOOBJ1, "   
lv_not_found  TYPE DFKKLOCKS, "   
lt_it_fkkr_fdate  TYPE STANDARD TABLE OF FKKR_FDATE, "   
lv_i_proid  TYPE DFKKLOCKS-PROID, "   
lv_not_unique  TYPE DFKKLOCKS, "   
lv_et_exp_gpart  TYPE FKLOC_EXP_GPART, "   
lt_it_fkkr_tdate  TYPE STANDARD TABLE OF FKKR_TDATE, "   
lv_i_lotyp  TYPE DFKKLOCKS-LOTYP, "   
lv_et_exp_vkont  TYPE FKLOC_EXP_VKONT, "   
lv_already_exist  TYPE FKLOC_EXP_VKONT, "   
lv_i_lockr  TYPE DFKKLOCKS-LOCKR, "   
lv_i_fdate  TYPE DFKKLOCKS-FDATE, "   
lv_i_tdate  TYPE DFKKLOCKS-TDATE, "   
lv_i_wmode  TYPE FKKOOGEN-WMODE, "   
lv_i_active  TYPE XFELD. "   SPACE

  CALL FUNCTION 'FKK_DB_LOCK_SINGLE'  "
    EXPORTING
         I_LOOBJ1 = lv_i_loobj1
         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
         I_WMODE = lv_i_wmode
         I_ACTIVE = lv_i_active
    IMPORTING
         E_LOCKS = lv_e_locks
         ET_EXP_GPART = lv_et_exp_gpart
         ET_EXP_VKONT = lv_et_exp_vkont
    TABLES
         IT_FKKR_FDATE = lt_it_fkkr_fdate
         IT_FKKR_TDATE = lt_it_fkkr_tdate
    EXCEPTIONS
        NOT_FOUND = 1
        NOT_UNIQUE = 2
        ALREADY_EXIST = 3
. " FKK_DB_LOCK_SINGLE




ABAP code using 7.40 inline data declarations to call FM FKK_DB_LOCK_SINGLE

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 LOOBJ1 FROM DFKKLOCKS INTO @DATA(ld_i_loobj1).
 
 
 
"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).
 
"SELECT single WMODE FROM FKKOOGEN INTO @DATA(ld_i_wmode).
 
DATA(ld_i_active) = ' '.
 


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!