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

Function FVD_DEFCAP_OL_SET 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_DEFCAP_OL_SET'"Save Payment Agreement.
EXPORTING
I_OKCODE = "Screens, Function Code That Triggered PAI
I_TAB_RBOBEPP = "Business Transaction Flows
I_TAB_VZZBEPP_NO_DEFCAP = "Current Cash Flow
I_TAB_VZZBEPP_DEFCAP = "Finanzstrom mit GV
I_TAB_VZZBEPP_ACTUAL = "Current Cash Flow
* I_STR_VZZKOKO_DEFCAP = "Konditionskopf mit GV
* I_TAB_VVZZKOPO_DEFCAP = "Konditionspositionen mit GV
* I_STR_POST_INFO = "DEFCAP: Control Data for Posting
IMPORTING
E_RBO = "Business operation number (loans)
CHANGING
C_STR_VDARL = "Loan
C_STR_RDEFCAP = "Oberflächenstruktur und Steuerdaten Stundung/Kapitalisierun
C_STR_RBOHEAD = "Business Operation: Header
C_TAB_ITEMS_LIST = "Items Liste
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for FVD_DEFCAP_OL_SET
I_OKCODE - Screens, Function Code That Triggered PAI
Data type: SYUCOMMOptional: No
Call by Reference: Yes
I_TAB_RBOBEPP - Business Transaction Flows
Data type: TRTY_RBOBEPPOptional: No
Call by Reference: Yes
I_TAB_VZZBEPP_NO_DEFCAP - Current Cash Flow
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
I_TAB_VZZBEPP_DEFCAP - Finanzstrom mit GV
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
I_TAB_VZZBEPP_ACTUAL - Current Cash Flow
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
I_STR_VZZKOKO_DEFCAP - Konditionskopf mit GV
Data type: VZZKOKOOptional: Yes
Call by Reference: Yes
I_TAB_VVZZKOPO_DEFCAP - Konditionspositionen mit GV
Data type: TRTY_VVZZKOPOOptional: Yes
Call by Reference: Yes
I_STR_POST_INFO - DEFCAP: Control Data for Posting
Data type: RDEFCAP_POSTOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_DEFCAP_OL_SET
E_RBO - Business operation number (loans)
Data type: VDBOHEAD-RBOOptional: No
Call by Reference: Yes
CHANGING Parameters details for FVD_DEFCAP_OL_SET
C_STR_VDARL - Loan
Data type: VDARLOptional: No
Call by Reference: Yes
C_STR_RDEFCAP - Oberflächenstruktur und Steuerdaten Stundung/Kapitalisierun
Data type: RDEFCAPOptional: No
Call by Reference: Yes
C_STR_RBOHEAD - Business Operation: Header
Data type: VDBOHEADOptional: No
Call by Reference: Yes
C_TAB_ITEMS_LIST - Items Liste
Data type: TRTY_RVZZBEPPOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR - Error when Saving
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_DEFCAP_OL_SET 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_e_rbo | TYPE VDBOHEAD-RBO, " | |||
| lv_i_okcode | TYPE SYUCOMM, " | |||
| lv_c_str_vdarl | TYPE VDARL, " | |||
| lv_c_str_rdefcap | TYPE RDEFCAP, " | |||
| lv_i_tab_rbobepp | TYPE TRTY_RBOBEPP, " | |||
| lv_c_str_rbohead | TYPE VDBOHEAD, " | |||
| lv_i_tab_vzzbepp_no_defcap | TYPE TRTY_VZZBEPP, " | |||
| lv_c_tab_items_list | TYPE TRTY_RVZZBEPP, " | |||
| lv_i_tab_vzzbepp_defcap | TYPE TRTY_VZZBEPP, " | |||
| lv_i_tab_vzzbepp_actual | TYPE TRTY_VZZBEPP, " | |||
| lv_i_str_vzzkoko_defcap | TYPE VZZKOKO, " | |||
| lv_i_tab_vvzzkopo_defcap | TYPE TRTY_VVZZKOPO, " | |||
| lv_i_str_post_info | TYPE RDEFCAP_POST. " |
|   CALL FUNCTION 'FVD_DEFCAP_OL_SET' "Save Payment Agreement |
| EXPORTING | ||
| I_OKCODE | = lv_i_okcode | |
| I_TAB_RBOBEPP | = lv_i_tab_rbobepp | |
| I_TAB_VZZBEPP_NO_DEFCAP | = lv_i_tab_vzzbepp_no_defcap | |
| I_TAB_VZZBEPP_DEFCAP | = lv_i_tab_vzzbepp_defcap | |
| I_TAB_VZZBEPP_ACTUAL | = lv_i_tab_vzzbepp_actual | |
| I_STR_VZZKOKO_DEFCAP | = lv_i_str_vzzkoko_defcap | |
| I_TAB_VVZZKOPO_DEFCAP | = lv_i_tab_vvzzkopo_defcap | |
| I_STR_POST_INFO | = lv_i_str_post_info | |
| IMPORTING | ||
| E_RBO | = lv_e_rbo | |
| CHANGING | ||
| C_STR_VDARL | = lv_c_str_vdarl | |
| C_STR_RDEFCAP | = lv_c_str_rdefcap | |
| C_STR_RBOHEAD | = lv_c_str_rbohead | |
| C_TAB_ITEMS_LIST | = lv_c_tab_items_list | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " FVD_DEFCAP_OL_SET | ||
ABAP code using 7.40 inline data declarations to call FM FVD_DEFCAP_OL_SET
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 RBO FROM VDBOHEAD INTO @DATA(ld_e_rbo). | ||||
Search for further information about these or an SAP related objects