SAP FKK_DB_LOCK_SELECT Function Module for









FKK_DB_LOCK_SELECT is a standard fkk db lock select 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 select FM, simply by entering the name FKK_DB_LOCK_SELECT 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_SELECT 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_SELECT'"
EXPORTING
* I_GPART = "
* I_X_USE_FIELDLIST = ' ' "
* I_VKONT = "
* I_LOOBJ1 = "
* I_PROID = "
* I_LOTYP = "
* I_LOCKR = "
* I_FDATE = "
* I_TDATE = "
* I_X_HIST = ' ' "

TABLES
* IT_FKKR_GPART = "
* ET_LOCKSH = "
* IT_FKKR_VKONT = "
* IT_FKKR_LOOBJ1 = "
* IT_FKKR_PROID = "
* IT_FKKR_LOTYP = "
* IT_FKKR_LOCKR = "
* IT_FKKR_FDATE = "
* IT_FKKR_TDATE = "
* ET_LOCKS = "
.



IMPORTING Parameters details for FKK_DB_LOCK_SELECT

I_GPART -

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

I_X_USE_FIELDLIST -

Data type: BOOLE-BOOLE
Default: SPACE
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_LOOBJ1 -

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

I_PROID -

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

I_LOTYP -

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

I_LOCKR -

Data type: DFKKLOCKS-LOCKR
Optional: Yes
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_X_HIST -

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

TABLES Parameters details for FKK_DB_LOCK_SELECT

IT_FKKR_GPART -

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

ET_LOCKSH -

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

IT_FKKR_VKONT -

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

IT_FKKR_LOOBJ1 -

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

IT_FKKR_PROID -

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

IT_FKKR_LOTYP -

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

IT_FKKR_LOCKR -

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

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)

ET_LOCKS -

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

Copy and paste ABAP code example for FKK_DB_LOCK_SELECT 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_i_gpart  TYPE DFKKLOCKS-GPART, "   
lt_it_fkkr_gpart  TYPE STANDARD TABLE OF FKKR_GPART, "   
lt_et_locksh  TYPE STANDARD TABLE OF DFKKLOCKSH, "   
lv_i_x_use_fieldlist  TYPE BOOLE-BOOLE, "   SPACE
lv_i_vkont  TYPE DFKKLOCKS-VKONT, "   
lt_it_fkkr_vkont  TYPE STANDARD TABLE OF FKKR_VKONT, "   
lv_i_loobj1  TYPE DFKKLOCKS-LOOBJ1, "   
lt_it_fkkr_loobj1  TYPE STANDARD TABLE OF FKKR_LOOBJ, "   
lv_i_proid  TYPE DFKKLOCKS-PROID, "   
lt_it_fkkr_proid  TYPE STANDARD TABLE OF FKKR_PROID, "   
lv_i_lotyp  TYPE DFKKLOCKS-LOTYP, "   
lt_it_fkkr_lotyp  TYPE STANDARD TABLE OF FKKR_LOTYP, "   
lv_i_lockr  TYPE DFKKLOCKS-LOCKR, "   
lt_it_fkkr_lockr  TYPE STANDARD TABLE OF FKKR_LOCKR, "   
lv_i_fdate  TYPE DFKKLOCKS-FDATE, "   
lt_it_fkkr_fdate  TYPE STANDARD TABLE OF FKKR_FDATE, "   
lv_i_tdate  TYPE DFKKLOCKS-TDATE, "   
lt_it_fkkr_tdate  TYPE STANDARD TABLE OF FKKR_TDATE, "   
lt_et_locks  TYPE STANDARD TABLE OF DFKKLOCKS, "   
lv_i_x_hist  TYPE BOOLE-BOOLE. "   SPACE

  CALL FUNCTION 'FKK_DB_LOCK_SELECT'  "
    EXPORTING
         I_GPART = lv_i_gpart
         I_X_USE_FIELDLIST = lv_i_x_use_fieldlist
         I_VKONT = lv_i_vkont
         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_X_HIST = lv_i_x_hist
    TABLES
         IT_FKKR_GPART = lt_it_fkkr_gpart
         ET_LOCKSH = lt_et_locksh
         IT_FKKR_VKONT = lt_it_fkkr_vkont
         IT_FKKR_LOOBJ1 = lt_it_fkkr_loobj1
         IT_FKKR_PROID = lt_it_fkkr_proid
         IT_FKKR_LOTYP = lt_it_fkkr_lotyp
         IT_FKKR_LOCKR = lt_it_fkkr_lockr
         IT_FKKR_FDATE = lt_it_fkkr_fdate
         IT_FKKR_TDATE = lt_it_fkkr_tdate
         ET_LOCKS = lt_et_locks
. " FKK_DB_LOCK_SELECT




ABAP code using 7.40 inline data declarations to call FM FKK_DB_LOCK_SELECT

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 GPART FROM DFKKLOCKS INTO @DATA(ld_i_gpart).
 
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_x_use_fieldlist).
DATA(ld_i_x_use_fieldlist) = ' '.
 
"SELECT single VKONT FROM DFKKLOCKS INTO @DATA(ld_i_vkont).
 
 
"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 BOOLE FROM BOOLE INTO @DATA(ld_i_x_hist).
DATA(ld_i_x_hist) = ' '.
 


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!