SAP LOAN_ITEM_ENQUEUE Function Module for Block Planned and Actual Records









LOAN_ITEM_ENQUEUE is a standard loan item enqueue SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Block Planned and Actual Records 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 item enqueue FM, simply by entering the name LOAN_ITEM_ENQUEUE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FVD0A_PLAN
Program Name: SAPLFVD0A_PLAN
Main Program: SAPLFVD0A_PLAN
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function LOAN_ITEM_ENQUEUE 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_ITEM_ENQUEUE'"Block Planned and Actual Records
EXPORTING
I_APPLICATION = "CML: Application Name for Open Item Blocking Tool
* I_RBO = "Business operation number (loans)
* I_BEPP_ON_DB = 'X' "Plansätze sind auf DB vorhanden

CHANGING
ALL_RVZZBEPP = "Alle angezeigte Posten
SEL_RVZZBEPP = "Zu sperrenden Posten

EXCEPTIONS
NO_ITEMS = 1 ALREADY_LOCKED = 2 NO_PAYMENTBLOCK = 3
.



IMPORTING Parameters details for LOAN_ITEM_ENQUEUE

I_APPLICATION - CML: Application Name for Open Item Blocking Tool

Data type: LOANREF_O-APPLICATION
Optional: No
Call by Reference: Yes

I_RBO - Business operation number (loans)

Data type: LOANREF_O-RBO
Optional: Yes
Call by Reference: Yes

I_BEPP_ON_DB - Plansätze sind auf DB vorhanden

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: Yes

CHANGING Parameters details for LOAN_ITEM_ENQUEUE

ALL_RVZZBEPP - Alle angezeigte Posten

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

SEL_RVZZBEPP - Zu sperrenden Posten

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

EXCEPTIONS details

NO_ITEMS - Keine Einträge zum Sperren

Data type:
Optional: No
Call by Reference: Yes

ALREADY_LOCKED -

Data type:
Optional: No
Call by Reference: Yes

NO_PAYMENTBLOCK - Keine techn. Zahlsperren definiert

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for LOAN_ITEM_ENQUEUE 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_no_items  TYPE STRING, "   
lv_all_rvzzbepp  TYPE TRTY_RVZZBEPP, "   
lv_i_application  TYPE LOANREF_O-APPLICATION, "   
lv_i_rbo  TYPE LOANREF_O-RBO, "   
lv_sel_rvzzbepp  TYPE TRTY_RVZZBEPP, "   
lv_already_locked  TYPE TRTY_RVZZBEPP, "   
lv_i_bepp_on_db  TYPE CHAR1, "   'X'
lv_no_paymentblock  TYPE CHAR1. "   

  CALL FUNCTION 'LOAN_ITEM_ENQUEUE'  "Block Planned and Actual Records
    EXPORTING
         I_APPLICATION = lv_i_application
         I_RBO = lv_i_rbo
         I_BEPP_ON_DB = lv_i_bepp_on_db
    CHANGING
         ALL_RVZZBEPP = lv_all_rvzzbepp
         SEL_RVZZBEPP = lv_sel_rvzzbepp
    EXCEPTIONS
        NO_ITEMS = 1
        ALREADY_LOCKED = 2
        NO_PAYMENTBLOCK = 3
. " LOAN_ITEM_ENQUEUE




ABAP code using 7.40 inline data declarations to call FM LOAN_ITEM_ENQUEUE

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).
 
 
 
DATA(ld_i_bepp_on_db) = 'X'.
 
 


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!