SAP FVD_REPAY_OL_GET_GP_AMOUNT Function Module for Determine Gross Full Payoff Amount Incl. Check for Existing Payoff
FVD_REPAY_OL_GET_GP_AMOUNT is a standard fvd repay ol get gp amount SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determine Gross Full Payoff Amount Incl. Check for Existing Payoff 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 fvd repay ol get gp amount FM, simply by entering the name FVD_REPAY_OL_GET_GP_AMOUNT into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_REPAY_OL
Program Name: SAPLFVD_REPAY_OL
Main Program: SAPLFVD_REPAY_OL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_REPAY_OL_GET_GP_AMOUNT 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 'FVD_REPAY_OL_GET_GP_AMOUNT'"Determine Gross Full Payoff Amount Incl. Check for Existing Payoff.
EXPORTING
I_BUKRS = "Company Code
I_RANL = "Contract Number
* I_DATE = "Date and Time, Current (Application Server) Date
I_SINCL = "Inclusive Indicator for Due Date
* I_SVULT = "Month-End Indicator for Due Date
* I_S_REPAY_API = "Fields for the Payoff in the API - Call
* I_OP_SIM = "OP als nicht gesperrt simulieren
* I_FLG_DISCHARGE = "Flag Aufruf aus Ablösung
IMPORTING
E_S_CLAIM_SUM = "Overview of Receivables List
E_TAB_BAPIERR = "Table Types for Error Handling
E_TAB_VZZBEPP_REG = "Regular payments
E_TAB_OPEN_ITEMS_SEL = "Table Type for Structure RVZZBEPP
CHANGING
C_LOGHANDLE = "Application Log: Log Handle
EXCEPTIONS
FATAL_ERROR = 1 OTHERS = 2
Customer Function user exits
Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.EXIT_SAPLFVD_REPAY_OL_001 User Exit for Flow Data
EXIT_SAPLFVD_REPAY_OL_002 User Exit for Amounts
EXIT_SAPLFVD_REPAY_OL_003 User Exit: Plausiblity Check for Payoff Data
EXIT_SAPLFVD_REPAY_OL_004 User Exit Flow Type Determination
EXIT_SAPLFVD_REPAY_OL_005 User Exit Transfer of all Relevant Data
IMPORTING Parameters details for FVD_REPAY_OL_GET_GP_AMOUNT
I_BUKRS - Company Code
Data type: VDARL-BUKRSOptional: No
Call by Reference: Yes
I_RANL - Contract Number
Data type: VDARL-RANLOptional: No
Call by Reference: Yes
I_DATE - Date and Time, Current (Application Server) Date
Data type: SY-DATUMOptional: Yes
Call by Reference: Yes
I_SINCL - Inclusive Indicator for Due Date
Data type: TB_SINCLOptional: No
Call by Reference: Yes
I_SVULT - Month-End Indicator for Due Date
Data type: TB_SVULTOptional: Yes
Call by Reference: Yes
I_S_REPAY_API - Fields for the Payoff in the API - Call
Data type: REPAY_API_STRUCOptional: Yes
Call by Reference: No ( called with pass by value option)
I_OP_SIM - OP als nicht gesperrt simulieren
Data type: FLAGOptional: Yes
Call by Reference: Yes
I_FLG_DISCHARGE - Flag Aufruf aus Ablösung
Data type: FLAGOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_REPAY_OL_GET_GP_AMOUNT
E_S_CLAIM_SUM - Overview of Receivables List
Data type: FVD_REPAY_CLAIM_SUMOptional: No
Call by Reference: Yes
E_TAB_BAPIERR - Table Types for Error Handling
Data type: BAPIERR_TOptional: No
Call by Reference: Yes
E_TAB_VZZBEPP_REG - Regular payments
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
E_TAB_OPEN_ITEMS_SEL - Table Type for Structure RVZZBEPP
Data type: TRTY_RVZZBEPPOptional: No
Call by Reference: Yes
CHANGING Parameters details for FVD_REPAY_OL_GET_GP_AMOUNT
C_LOGHANDLE - Application Log: Log Handle
Data type: BALLOGHNDLOptional: No
Call by Reference: Yes
EXCEPTIONS details
FATAL_ERROR - Fatal Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHERS - Other Problems
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVD_REPAY_OL_GET_GP_AMOUNT 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_bukrs | TYPE VDARL-BUKRS, " | |||
| lv_c_loghandle | TYPE BALLOGHNDL, " | |||
| lv_fatal_error | TYPE BALLOGHNDL, " | |||
| lv_e_s_claim_sum | TYPE FVD_REPAY_CLAIM_SUM, " | |||
| lv_i_ranl | TYPE VDARL-RANL, " | |||
| lv_others | TYPE VDARL, " | |||
| lv_e_tab_bapierr | TYPE BAPIERR_T, " | |||
| lv_i_date | TYPE SY-DATUM, " | |||
| lv_e_tab_vzzbepp_reg | TYPE TRTY_VZZBEPP, " | |||
| lv_i_sincl | TYPE TB_SINCL, " | |||
| lv_e_tab_open_items_sel | TYPE TRTY_RVZZBEPP, " | |||
| lv_i_svult | TYPE TB_SVULT, " | |||
| lv_i_s_repay_api | TYPE REPAY_API_STRUC, " | |||
| lv_i_op_sim | TYPE FLAG, " | |||
| lv_i_flg_discharge | TYPE FLAG. " |
|   CALL FUNCTION 'FVD_REPAY_OL_GET_GP_AMOUNT' "Determine Gross Full Payoff Amount Incl. Check for Existing Payoff |
| EXPORTING | ||
| I_BUKRS | = lv_i_bukrs | |
| I_RANL | = lv_i_ranl | |
| I_DATE | = lv_i_date | |
| I_SINCL | = lv_i_sincl | |
| I_SVULT | = lv_i_svult | |
| I_S_REPAY_API | = lv_i_s_repay_api | |
| I_OP_SIM | = lv_i_op_sim | |
| I_FLG_DISCHARGE | = lv_i_flg_discharge | |
| IMPORTING | ||
| E_S_CLAIM_SUM | = lv_e_s_claim_sum | |
| E_TAB_BAPIERR | = lv_e_tab_bapierr | |
| E_TAB_VZZBEPP_REG | = lv_e_tab_vzzbepp_reg | |
| E_TAB_OPEN_ITEMS_SEL | = lv_e_tab_open_items_sel | |
| CHANGING | ||
| C_LOGHANDLE | = lv_c_loghandle | |
| EXCEPTIONS | ||
| FATAL_ERROR = 1 | ||
| OTHERS = 2 | ||
| . " FVD_REPAY_OL_GET_GP_AMOUNT | ||
ABAP code using 7.40 inline data declarations to call FM FVD_REPAY_OL_GET_GP_AMOUNT
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 BUKRS FROM VDARL INTO @DATA(ld_i_bukrs). | ||||
| "SELECT single RANL FROM VDARL INTO @DATA(ld_i_ranl). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date). | ||||
Search for further information about these or an SAP related objects