SAP LOAN_ITEM_DEQUEUE Function Module for Block Planned and Actual Records
LOAN_ITEM_DEQUEUE is a standard loan item dequeue 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 dequeue FM, simply by entering the name LOAN_ITEM_DEQUEUE 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_DEQUEUE 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_DEQUEUE'"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' "Plansatz auf Datenbank vorhanden
CHANGING
ALL_RVZZBEPP = "Alle angezeigten Posten
SEL_RVZZBEPP = "Table Type for Structure RVZZBEPP
EXCEPTIONS
NO_ITEMS = 1 UNLOCKING_IMPOSSIBLE = 2
IMPORTING Parameters details for LOAN_ITEM_DEQUEUE
I_APPLICATION - CML: Application Name for Open Item Blocking Tool
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
I_BEPP_ON_DB - Plansatz auf Datenbank vorhanden
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: Yes
CHANGING Parameters details for LOAN_ITEM_DEQUEUE
ALL_RVZZBEPP - Alle angezeigten Posten
Data type: TRTY_RVZZBEPPOptional: No
Call by Reference: Yes
SEL_RVZZBEPP - Table Type for Structure RVZZBEPP
Data type: TRTY_RVZZBEPPOptional: No
Call by Reference: Yes
EXCEPTIONS details
NO_ITEMS - Keine Einträge zum Entsperren
Data type:Optional: No
Call by Reference: Yes
UNLOCKING_IMPOSSIBLE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for LOAN_ITEM_DEQUEUE 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_unlocking_impossible | TYPE TRTY_RVZZBEPP, " | |||
| lv_i_bepp_on_db | TYPE CHAR1. " 'X' |
|   CALL FUNCTION 'LOAN_ITEM_DEQUEUE' "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 | ||
| UNLOCKING_IMPOSSIBLE = 2 | ||
| . " LOAN_ITEM_DEQUEUE | ||
ABAP code using 7.40 inline data declarations to call FM LOAN_ITEM_DEQUEUE
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