SAP OVERDUE_ITEMS_GET_SUM Function Module for Calculation of Overdue Items for Evaluations
OVERDUE_ITEMS_GET_SUM is a standard overdue items get sum SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculation of Overdue Items for Evaluations 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 overdue items get sum FM, simply by entering the name OVERDUE_ITEMS_GET_SUM into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD5
Program Name: SAPLFVD5
Main Program: SAPLFVD5
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function OVERDUE_ITEMS_GET_SUM 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 'OVERDUE_ITEMS_GET_SUM'"Calculation of Overdue Items for Evaluations.
EXPORTING
I_VDARL = "Loan
I_DTO = "To-Date
* I_RSTICH = '1' "Kennzeichen Stichtag (1=Buchungsdatum,4=Valuta)
IMPORTING
E_OVERDUE = "Leistungsrückstand Gesamt (in Vertragswährung)
E_BINTEREST_DUE = "Leistungsrückstand Zinsen (in Vertragswährung)
E_BREPAYMENT_DUE = "Leistungsrückstand Tilgungen (in Vertragswährung)
E_BVARIOUS_DUE = "Leistungsrückstand Verschiedenes (in Vertragswährung)
TABLES
IT_VZZBEPP = "Belegposition im vzzbepp-Format
* IT_TZB0A = "Flow Types
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for OVERDUE_ITEMS_GET_SUM
I_VDARL - Loan
Data type: VDARLOptional: No
Call by Reference: No ( called with pass by value option)
I_DTO - To-Date
Data type: DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_RSTICH - Kennzeichen Stichtag (1=Buchungsdatum,4=Valuta)
Data type: RSTICHDefault: '1'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OVERDUE_ITEMS_GET_SUM
E_OVERDUE - Leistungsrückstand Gesamt (in Vertragswährung)
Data type: BBWHROptional: No
Call by Reference: No ( called with pass by value option)
E_BINTEREST_DUE - Leistungsrückstand Zinsen (in Vertragswährung)
Data type: BBWHROptional: No
Call by Reference: Yes
E_BREPAYMENT_DUE - Leistungsrückstand Tilgungen (in Vertragswährung)
Data type: BBWHROptional: No
Call by Reference: Yes
E_BVARIOUS_DUE - Leistungsrückstand Verschiedenes (in Vertragswährung)
Data type: BBWHROptional: No
Call by Reference: Yes
TABLES Parameters details for OVERDUE_ITEMS_GET_SUM
IT_VZZBEPP - Belegposition im vzzbepp-Format
Data type: VZZBEPPOptional: No
Call by Reference: No ( called with pass by value option)
IT_TZB0A - Flow Types
Data type: TZB0AOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
ERROR - Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OVERDUE_ITEMS_GET_SUM 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_error | TYPE STRING, " | |||
lv_i_vdarl | TYPE VDARL, " | |||
lv_e_overdue | TYPE BBWHR, " | |||
lt_it_vzzbepp | TYPE STANDARD TABLE OF VZZBEPP, " | |||
lv_i_dto | TYPE DATUM, " | |||
lt_it_tzb0a | TYPE STANDARD TABLE OF TZB0A, " | |||
lv_e_binterest_due | TYPE BBWHR, " | |||
lv_i_rstich | TYPE RSTICH, " '1' | |||
lv_e_brepayment_due | TYPE BBWHR, " | |||
lv_e_bvarious_due | TYPE BBWHR. " |
  CALL FUNCTION 'OVERDUE_ITEMS_GET_SUM' "Calculation of Overdue Items for Evaluations |
EXPORTING | ||
I_VDARL | = lv_i_vdarl | |
I_DTO | = lv_i_dto | |
I_RSTICH | = lv_i_rstich | |
IMPORTING | ||
E_OVERDUE | = lv_e_overdue | |
E_BINTEREST_DUE | = lv_e_binterest_due | |
E_BREPAYMENT_DUE | = lv_e_brepayment_due | |
E_BVARIOUS_DUE | = lv_e_bvarious_due | |
TABLES | ||
IT_VZZBEPP | = lt_it_vzzbepp | |
IT_TZB0A | = lt_it_tzb0a | |
EXCEPTIONS | ||
ERROR = 1 | ||
. " OVERDUE_ITEMS_GET_SUM |
ABAP code using 7.40 inline data declarations to call FM OVERDUE_ITEMS_GET_SUM
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.DATA(ld_i_rstich) | = '1'. | |||
Search for further information about these or an SAP related objects