SAP LOAN_OPEN_ITEM_CHECK_LOCK Function Module for FMs for Checking Items for Locks
LOAN_OPEN_ITEM_CHECK_LOCK is a standard loan open item check lock SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for FMs for Checking Items for Locks 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 loan open item check lock FM, simply by entering the name LOAN_OPEN_ITEM_CHECK_LOCK into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD0A
Program Name: SAPLFVD0A
Main Program: SAPLFVD0A
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function LOAN_OPEN_ITEM_CHECK_LOCK 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 'LOAN_OPEN_ITEM_CHECK_LOCK'"FMs for Checking Items for Locks.
EXPORTING
I_APPLICATION = "Application Name
* I_RBO = "Business operation number (loans)
S_RVZZBEPP = "Structure for Data Transfer to Open Item Display Funct. Mod.
IMPORTING
E_LOCK = "In Sperrtabelle enthalten
E_MARK = "Durch aufruefende Appl. gesperrt
E_APPLICATION = "Application Name
E_RBO = "Business operation number (loans)
E_RERF = "Date of Initial Entry
IMPORTING Parameters details for LOAN_OPEN_ITEM_CHECK_LOCK
I_APPLICATION - Application Name
Data type: LOANREF_O-APPLICATIONOptional: No
Call by Reference: Yes
I_RBO - Business operation number (loans)
Data type: LOANREF_O-RBOOptional: Yes
Call by Reference: Yes
S_RVZZBEPP - Structure for Data Transfer to Open Item Display Funct. Mod.
Data type: RVZZBEPPOptional: No
Call by Reference: Yes
EXPORTING Parameters details for LOAN_OPEN_ITEM_CHECK_LOCK
E_LOCK - In Sperrtabelle enthalten
Data type: CHECK_1Optional: No
Call by Reference: Yes
E_MARK - Durch aufruefende Appl. gesperrt
Data type: CHECK_1Optional: No
Call by Reference: Yes
E_APPLICATION - Application Name
Data type: LOANREF_O-APPLICATIONOptional: No
Call by Reference: Yes
E_RBO - Business operation number (loans)
Data type: LOANREF_O-RBOOptional: No
Call by Reference: Yes
E_RERF - Date of Initial Entry
Data type: LOANREF_O-RERFOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for LOAN_OPEN_ITEM_CHECK_LOCK 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_lock | TYPE CHECK_1, " | |||
| lv_i_application | TYPE LOANREF_O-APPLICATION, " | |||
| lv_i_rbo | TYPE LOANREF_O-RBO, " | |||
| lv_e_mark | TYPE CHECK_1, " | |||
| lv_s_rvzzbepp | TYPE RVZZBEPP, " | |||
| lv_e_application | TYPE LOANREF_O-APPLICATION, " | |||
| lv_e_rbo | TYPE LOANREF_O-RBO, " | |||
| lv_e_rerf | TYPE LOANREF_O-RERF. " |
|   CALL FUNCTION 'LOAN_OPEN_ITEM_CHECK_LOCK' "FMs for Checking Items for Locks |
| EXPORTING | ||
| I_APPLICATION | = lv_i_application | |
| I_RBO | = lv_i_rbo | |
| S_RVZZBEPP | = lv_s_rvzzbepp | |
| IMPORTING | ||
| E_LOCK | = lv_e_lock | |
| E_MARK | = lv_e_mark | |
| E_APPLICATION | = lv_e_application | |
| E_RBO | = lv_e_rbo | |
| E_RERF | = lv_e_rerf | |
| . " LOAN_OPEN_ITEM_CHECK_LOCK | ||
ABAP code using 7.40 inline data declarations to call FM LOAN_OPEN_ITEM_CHECK_LOCK
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 APPLICATION FROM LOANREF_O INTO @DATA(ld_i_application). | ||||
| "SELECT single RBO FROM LOANREF_O INTO @DATA(ld_i_rbo). | ||||
| "SELECT single APPLICATION FROM LOANREF_O INTO @DATA(ld_e_application). | ||||
| "SELECT single RBO FROM LOANREF_O INTO @DATA(ld_e_rbo). | ||||
| "SELECT single RERF FROM LOANREF_O INTO @DATA(ld_e_rerf). | ||||
Search for further information about these or an SAP related objects