SAP FVD_INV_ACC_API_PAYOFF Function Module for Investor Contract: Buy Back Assets or Payment Default
FVD_INV_ACC_API_PAYOFF is a standard fvd inv acc api payoff SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Investor Contract: Buy Back Assets or Payment Default 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 inv acc api payoff FM, simply by entering the name FVD_INV_ACC_API_PAYOFF into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_INV_ACC_API
Program Name: SAPLFVD_INV_ACC_API
Main Program: SAPLFVD_INV_ACC_API
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_INV_ACC_API_PAYOFF 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_INV_ACC_API_PAYOFF'"Investor Contract: Buy Back Assets or Payment Default.
EXPORTING
I_CONTRACT_NO = "Contract Number
* I_FLG_AVOID_INNER_JOIN = ' ' "Checkbox
I_COMP_CODE = "Company Code
I_KEY_DATE = "Stichtag der Rückzahlung
* I_POST_DATE = SY-DATUM "Buchungsdatum der Rückzahlung
* I_POST_TXT = "Posting Text
I_SBOTERM = "Kennzeichen Art der Teilrückzahlung
I_TAB_POST_RECORDS = "zu buchende Plansätze bei Rückzahlung Darlehen
* I_FLG_FULL_PAYOFF = "Kennzeichen Vollrückzahlung
* I_FLG_TESTRUN = "Switch to Simulation Mode for Write BAPIs
IMPORTING
E_STR_VDARL = "Loan
E_TAB_BAPIERR = "Data of Application Log
E_FLG_ERROR = "Error Indicator
CHANGING
* C_TAB_PLANNED_RECORDS = "NEW Zustand ALLE Plansätze des Darlehens
EXCEPTIONS
FATAL_ERROR = 1 IMPORT_PARAM = 2
IMPORTING Parameters details for FVD_INV_ACC_API_PAYOFF
I_CONTRACT_NO - Contract Number
Data type: RANLOptional: No
Call by Reference: Yes
I_FLG_AVOID_INNER_JOIN - Checkbox
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_COMP_CODE - Company Code
Data type: BUKRSOptional: No
Call by Reference: Yes
I_KEY_DATE - Stichtag der Rückzahlung
Data type: DATSOptional: No
Call by Reference: Yes
I_POST_DATE - Buchungsdatum der Rückzahlung
Data type: TB_POSTDATEDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
I_POST_TXT - Posting Text
Data type: TB_POST_TXTOptional: Yes
Call by Reference: Yes
I_SBOTERM - Kennzeichen Art der Teilrückzahlung
Data type: SBOTERMOptional: No
Call by Reference: Yes
I_TAB_POST_RECORDS - zu buchende Plansätze bei Rückzahlung Darlehen
Data type: TRTY_VDBEPPOptional: No
Call by Reference: Yes
I_FLG_FULL_PAYOFF - Kennzeichen Vollrückzahlung
Data type: FLAGOptional: Yes
Call by Reference: Yes
I_FLG_TESTRUN - Switch to Simulation Mode for Write BAPIs
Data type: TESTRUNOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_INV_ACC_API_PAYOFF
E_STR_VDARL - Loan
Data type: VDARLOptional: No
Call by Reference: Yes
E_TAB_BAPIERR - Data of Application Log
Data type: BAPIERR_TOptional: No
Call by Reference: Yes
E_FLG_ERROR - Error Indicator
Data type: FLAGOptional: No
Call by Reference: Yes
CHANGING Parameters details for FVD_INV_ACC_API_PAYOFF
C_TAB_PLANNED_RECORDS - NEW Zustand ALLE Plansätze des Darlehens
Data type: TRTY_VDBEPPOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
FATAL_ERROR - Serious error has occurred
Data type:Optional: No
Call by Reference: Yes
IMPORT_PARAM - Falscher Aufruf der Importparameter
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_INV_ACC_API_PAYOFF 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_e_str_vdarl | TYPE VDARL, " | |||
| lv_fatal_error | TYPE VDARL, " | |||
| lv_i_contract_no | TYPE RANL, " | |||
| lv_c_tab_planned_records | TYPE TRTY_VDBEPP, " | |||
| lv_i_flg_avoid_inner_join | TYPE XFELD, " SPACE | |||
| lv_i_comp_code | TYPE BUKRS, " | |||
| lv_import_param | TYPE BUKRS, " | |||
| lv_e_tab_bapierr | TYPE BAPIERR_T, " | |||
| lv_i_key_date | TYPE DATS, " | |||
| lv_e_flg_error | TYPE FLAG, " | |||
| lv_i_post_date | TYPE TB_POSTDATE, " SY-DATUM | |||
| lv_i_post_txt | TYPE TB_POST_TXT, " | |||
| lv_i_sboterm | TYPE SBOTERM, " | |||
| lv_i_tab_post_records | TYPE TRTY_VDBEPP, " | |||
| lv_i_flg_full_payoff | TYPE FLAG, " | |||
| lv_i_flg_testrun | TYPE TESTRUN. " |
|   CALL FUNCTION 'FVD_INV_ACC_API_PAYOFF' "Investor Contract: Buy Back Assets or Payment Default |
| EXPORTING | ||
| I_CONTRACT_NO | = lv_i_contract_no | |
| I_FLG_AVOID_INNER_JOIN | = lv_i_flg_avoid_inner_join | |
| I_COMP_CODE | = lv_i_comp_code | |
| I_KEY_DATE | = lv_i_key_date | |
| I_POST_DATE | = lv_i_post_date | |
| I_POST_TXT | = lv_i_post_txt | |
| I_SBOTERM | = lv_i_sboterm | |
| I_TAB_POST_RECORDS | = lv_i_tab_post_records | |
| I_FLG_FULL_PAYOFF | = lv_i_flg_full_payoff | |
| I_FLG_TESTRUN | = lv_i_flg_testrun | |
| IMPORTING | ||
| E_STR_VDARL | = lv_e_str_vdarl | |
| E_TAB_BAPIERR | = lv_e_tab_bapierr | |
| E_FLG_ERROR | = lv_e_flg_error | |
| CHANGING | ||
| C_TAB_PLANNED_RECORDS | = lv_c_tab_planned_records | |
| EXCEPTIONS | ||
| FATAL_ERROR = 1 | ||
| IMPORT_PARAM = 2 | ||
| . " FVD_INV_ACC_API_PAYOFF | ||
ABAP code using 7.40 inline data declarations to call FM FVD_INV_ACC_API_PAYOFF
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_flg_avoid_inner_join) | = ' '. | |||
| DATA(ld_i_post_date) | = SY-DATUM. | |||
Search for further information about these or an SAP related objects