SAP FVD_REPAY_API_CALCULATE Function Module for Calculate Payoff
FVD_REPAY_API_CALCULATE is a standard fvd repay api calculate SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculate 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 api calculate FM, simply by entering the name FVD_REPAY_API_CALCULATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_REPAY_API
Program Name: SAPLFVD_REPAY_API
Main Program: SAPLFVD_REPAY_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_REPAY_API_CALCULATE 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_API_CALCULATE'"Calculate Payoff.
EXPORTING
IV_BUKRS = "Company Code
IV_RANL = "Contract Number
* IV_RBO = "Business operation number (loans)
IS_RREPAYMENT_API = "Fields for the Payoff in the API - Call
* IT_ADDFLOWS = "Table Category for RBOBEPP (Standard)
* IT_OPEN_ITEMS = "Table Type for Structure RVZZBEPP
* I_NO_ENQUEUE = ' ' "Transfer Enqueue
IMPORTING
ES_VDBOHEAD = "Business Operation: Header
ET_VZZBEPP_NON_REPAY_OLD = "Table Type for Structure VZZBEPP
ET_VZZBEPP_ACTUAL_OLD = "Table Type for Structure VZZBEPP
ET_VDBEPP = "Table Type for Table VDBEPP
ET_BAPIRET2 = "Return parameter table
ES_VDREPAYMENT = "Payoff Master Data
ES_RREPAYMENT = "Screen Fields for Payoff
ET_INC_COSTS = "Table Category for RBOBEPP (Standard)
ET_OPEN_ITEMS = "Table Type for Structure RVZZBEPP
ET_VZZBEPP_REPAY = "Table Type for Structure VZZBEPP
ET_VZZBEPP_NON_REPAY = "Table Type for Structure VZZBEPP
ET_VZZBEPP_ACTUAL = "Table Type for Structure VZZBEPP
ET_VZZBEPP_REPAY_OLD = "Table Type for Structure VZZBEPP
IMPORTING Parameters details for FVD_REPAY_API_CALCULATE
IV_BUKRS - Company Code
Data type: VDARL-BUKRSOptional: No
Call by Reference: Yes
IV_RANL - Contract Number
Data type: VDARL-RANLOptional: No
Call by Reference: Yes
IV_RBO - Business operation number (loans)
Data type: VDBOHEAD-RBOOptional: Yes
Call by Reference: Yes
IS_RREPAYMENT_API - Fields for the Payoff in the API - Call
Data type: REPAY_API_STRUCOptional: No
Call by Reference: Yes
IT_ADDFLOWS - Table Category for RBOBEPP (Standard)
Data type: TRTY_RBOBEPP_APIOptional: Yes
Call by Reference: Yes
IT_OPEN_ITEMS - Table Type for Structure RVZZBEPP
Data type: TRTY_RVZZBEPPOptional: Yes
Call by Reference: Yes
I_NO_ENQUEUE - Transfer Enqueue
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_REPAY_API_CALCULATE
ES_VDBOHEAD - Business Operation: Header
Data type: VDBOHEADOptional: No
Call by Reference: Yes
ET_VZZBEPP_NON_REPAY_OLD - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
ET_VZZBEPP_ACTUAL_OLD - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
ET_VDBEPP - Table Type for Table VDBEPP
Data type: TRTY_VDBEPPOptional: No
Call by Reference: Yes
ET_BAPIRET2 - Return parameter table
Data type: BAPIRET2_TOptional: No
Call by Reference: Yes
ES_VDREPAYMENT - Payoff Master Data
Data type: VDREPAYMENTOptional: No
Call by Reference: Yes
ES_RREPAYMENT - Screen Fields for Payoff
Data type: RREPAYMENTOptional: No
Call by Reference: Yes
ET_INC_COSTS - Table Category for RBOBEPP (Standard)
Data type: TRTY_RBOBEPPOptional: No
Call by Reference: Yes
ET_OPEN_ITEMS - Table Type for Structure RVZZBEPP
Data type: TRTY_RVZZBEPPOptional: No
Call by Reference: Yes
ET_VZZBEPP_REPAY - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
ET_VZZBEPP_NON_REPAY - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
ET_VZZBEPP_ACTUAL - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
ET_VZZBEPP_REPAY_OLD - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_REPAY_API_CALCULATE 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_iv_bukrs | TYPE VDARL-BUKRS, " | |||
| lv_es_vdbohead | TYPE VDBOHEAD, " | |||
| lv_et_vzzbepp_non_repay_old | TYPE TRTY_VZZBEPP, " | |||
| lv_et_vzzbepp_actual_old | TYPE TRTY_VZZBEPP, " | |||
| lv_et_vdbepp | TYPE TRTY_VDBEPP, " | |||
| lv_et_bapiret2 | TYPE BAPIRET2_T, " | |||
| lv_iv_ranl | TYPE VDARL-RANL, " | |||
| lv_es_vdrepayment | TYPE VDREPAYMENT, " | |||
| lv_iv_rbo | TYPE VDBOHEAD-RBO, " | |||
| lv_es_rrepayment | TYPE RREPAYMENT, " | |||
| lv_et_inc_costs | TYPE TRTY_RBOBEPP, " | |||
| lv_is_rrepayment_api | TYPE REPAY_API_STRUC, " | |||
| lv_it_addflows | TYPE TRTY_RBOBEPP_API, " | |||
| lv_et_open_items | TYPE TRTY_RVZZBEPP, " | |||
| lv_it_open_items | TYPE TRTY_RVZZBEPP, " | |||
| lv_et_vzzbepp_repay | TYPE TRTY_VZZBEPP, " | |||
| lv_i_no_enqueue | TYPE FLAG, " SPACE | |||
| lv_et_vzzbepp_non_repay | TYPE TRTY_VZZBEPP, " | |||
| lv_et_vzzbepp_actual | TYPE TRTY_VZZBEPP, " | |||
| lv_et_vzzbepp_repay_old | TYPE TRTY_VZZBEPP. " |
|   CALL FUNCTION 'FVD_REPAY_API_CALCULATE' "Calculate Payoff |
| EXPORTING | ||
| IV_BUKRS | = lv_iv_bukrs | |
| IV_RANL | = lv_iv_ranl | |
| IV_RBO | = lv_iv_rbo | |
| IS_RREPAYMENT_API | = lv_is_rrepayment_api | |
| IT_ADDFLOWS | = lv_it_addflows | |
| IT_OPEN_ITEMS | = lv_it_open_items | |
| I_NO_ENQUEUE | = lv_i_no_enqueue | |
| IMPORTING | ||
| ES_VDBOHEAD | = lv_es_vdbohead | |
| ET_VZZBEPP_NON_REPAY_OLD | = lv_et_vzzbepp_non_repay_old | |
| ET_VZZBEPP_ACTUAL_OLD | = lv_et_vzzbepp_actual_old | |
| ET_VDBEPP | = lv_et_vdbepp | |
| ET_BAPIRET2 | = lv_et_bapiret2 | |
| ES_VDREPAYMENT | = lv_es_vdrepayment | |
| ES_RREPAYMENT | = lv_es_rrepayment | |
| ET_INC_COSTS | = lv_et_inc_costs | |
| ET_OPEN_ITEMS | = lv_et_open_items | |
| ET_VZZBEPP_REPAY | = lv_et_vzzbepp_repay | |
| ET_VZZBEPP_NON_REPAY | = lv_et_vzzbepp_non_repay | |
| ET_VZZBEPP_ACTUAL | = lv_et_vzzbepp_actual | |
| ET_VZZBEPP_REPAY_OLD | = lv_et_vzzbepp_repay_old | |
| . " FVD_REPAY_API_CALCULATE | ||
ABAP code using 7.40 inline data declarations to call FM FVD_REPAY_API_CALCULATE
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_iv_bukrs). | ||||
| "SELECT single RANL FROM VDARL INTO @DATA(ld_iv_ranl). | ||||
| "SELECT single RBO FROM VDBOHEAD INTO @DATA(ld_iv_rbo). | ||||
| DATA(ld_i_no_enqueue) | = ' '. | |||
Search for further information about these or an SAP related objects