SAP FVD_DEFCAP_OL_EXECUTE_DEF Function Module for Obsolete: Do Not Use, Use FVD_DEFCAP_OL_EXECUTE
FVD_DEFCAP_OL_EXECUTE_DEF is a standard fvd defcap ol execute def SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Obsolete: Do Not Use, Use FVD_DEFCAP_OL_EXECUTE 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 execute def FM, simply by entering the name FVD_DEFCAP_OL_EXECUTE_DEF 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_EXECUTE_DEF 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_EXECUTE_DEF'"Obsolete: Do Not Use, Use FVD_DEFCAP_OL_EXECUTE.
EXPORTING
I_S_BO_KEY = "Business Operation Key Structure
* I_S_RDEFERRAL_API = "Interface Structure and Ctrl Data - Deferral/Capitalization
* I_TAB_ADDFLOWS = "Table Type for RBOBEPP_API (Standard)
* I_EOD_FLAG = "End of day flag for posting date
* I_S_BPCA = "Business Process Chain Assignment
I_SWORKID = "Processing Unit in the Business Operations
* I_LOGHANDLE = "Application Log: Log Handle
I_MODUS = "Session for Payment Data
I_OKCODE = "Function Code That Triggered PAI
I_CALL_APPL = "CAPTR: Applications of the Capital Transfer
* I_FLG_TESTRUN = "Switch to Simulation Mode for Write BAPIs
* I_S_POST_INFO = "DEFCAP: Control Data for Posting
* I_S_GDISPLAY_PROFILE = "Application Log: Log Output Format Profile
IMPORTING
E_TAB_VDBEKI = "Table Type for Table VDBEKI
E_TAB_VDBEPI = "Table Type for Table VDBEPI
E_TAB_ADDFLOWS = "Table Category for RBOBEPP (Standard)
E_STR_RDEFERRAL = "Deferral Data
E_STR_VDBOHEAD = "Business Operation: Header
EXCEPTIONS
FAILED = 1 FATAL_ERROR = 2
IMPORTING Parameters details for FVD_DEFCAP_OL_EXECUTE_DEF
I_S_BO_KEY - Business Operation Key Structure
Data type: FVD_BO_KEYOptional: No
Call by Reference: Yes
I_S_RDEFERRAL_API - Interface Structure and Ctrl Data - Deferral/Capitalization
Data type: RDEFERRAL_APIOptional: Yes
Call by Reference: Yes
I_TAB_ADDFLOWS - Table Type for RBOBEPP_API (Standard)
Data type: TRTY_RBOBEPP_APIOptional: Yes
Call by Reference: Yes
I_EOD_FLAG - End of day flag for posting date
Data type: TB_EOD_FLG_CMLCHNOptional: Yes
Call by Reference: Yes
I_S_BPCA - Business Process Chain Assignment
Data type: FVD_STR_BPCAOptional: Yes
Call by Reference: Yes
I_SWORKID - Processing Unit in the Business Operations
Data type: SWORKIDOptional: No
Call by Reference: Yes
I_LOGHANDLE - Application Log: Log Handle
Data type: BALLOGHNDLOptional: Yes
Call by Reference: Yes
I_MODUS - Session for Payment Data
Data type: TB_PAY_MODUSOptional: No
Call by Reference: Yes
I_OKCODE - Function Code That Triggered PAI
Data type: SYUCOMMOptional: No
Call by Reference: Yes
I_CALL_APPL - CAPTR: Applications of the Capital Transfer
Data type: TB_CAPTR_APPLICATIONOptional: No
Call by Reference: Yes
I_FLG_TESTRUN - Switch to Simulation Mode for Write BAPIs
Data type: TESTRUNOptional: Yes
Call by Reference: Yes
I_S_POST_INFO - DEFCAP: Control Data for Posting
Data type: RDEFCAP_POSTOptional: Yes
Call by Reference: Yes
I_S_GDISPLAY_PROFILE - Application Log: Log Output Format Profile
Data type: BAL_S_PROFOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_DEFCAP_OL_EXECUTE_DEF
E_TAB_VDBEKI - Table Type for Table VDBEKI
Data type: TRTY_VDBEKIOptional: No
Call by Reference: Yes
E_TAB_VDBEPI - Table Type for Table VDBEPI
Data type: TRTY_VDBEPIOptional: No
Call by Reference: Yes
E_TAB_ADDFLOWS - Table Category for RBOBEPP (Standard)
Data type: TRTY_RBOBEPPOptional: No
Call by Reference: Yes
E_STR_RDEFERRAL - Deferral Data
Data type: VDDEFERRALOptional: No
Call by Reference: Yes
E_STR_VDBOHEAD - Business Operation: Header
Data type: VDBOHEADOptional: No
Call by Reference: Yes
EXCEPTIONS details
FAILED - Fehler bei Set
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FATAL_ERROR - Internal Error
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVD_DEFCAP_OL_EXECUTE_DEF 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_failed | TYPE STRING, " | |||
| lv_i_s_bo_key | TYPE FVD_BO_KEY, " | |||
| lv_e_tab_vdbeki | TYPE TRTY_VDBEKI, " | |||
| lv_i_s_rdeferral_api | TYPE RDEFERRAL_API, " | |||
| lv_i_tab_addflows | TYPE TRTY_RBOBEPP_API, " | |||
| lv_i_eod_flag | TYPE TB_EOD_FLG_CMLCHN, " | |||
| lv_i_s_bpca | TYPE FVD_STR_BPCA, " | |||
| lv_i_sworkid | TYPE SWORKID, " | |||
| lv_fatal_error | TYPE SWORKID, " | |||
| lv_e_tab_vdbepi | TYPE TRTY_VDBEPI, " | |||
| lv_i_loghandle | TYPE BALLOGHNDL, " | |||
| lv_e_tab_addflows | TYPE TRTY_RBOBEPP, " | |||
| lv_i_modus | TYPE TB_PAY_MODUS, " | |||
| lv_e_str_rdeferral | TYPE VDDEFERRAL, " | |||
| lv_i_okcode | TYPE SYUCOMM, " | |||
| lv_e_str_vdbohead | TYPE VDBOHEAD, " | |||
| lv_i_call_appl | TYPE TB_CAPTR_APPLICATION, " | |||
| lv_i_flg_testrun | TYPE TESTRUN, " | |||
| lv_i_s_post_info | TYPE RDEFCAP_POST, " | |||
| lv_i_s_gdisplay_profile | TYPE BAL_S_PROF. " |
|   CALL FUNCTION 'FVD_DEFCAP_OL_EXECUTE_DEF' "Obsolete: Do Not Use, Use FVD_DEFCAP_OL_EXECUTE |
| EXPORTING | ||
| I_S_BO_KEY | = lv_i_s_bo_key | |
| I_S_RDEFERRAL_API | = lv_i_s_rdeferral_api | |
| I_TAB_ADDFLOWS | = lv_i_tab_addflows | |
| I_EOD_FLAG | = lv_i_eod_flag | |
| I_S_BPCA | = lv_i_s_bpca | |
| I_SWORKID | = lv_i_sworkid | |
| I_LOGHANDLE | = lv_i_loghandle | |
| I_MODUS | = lv_i_modus | |
| I_OKCODE | = lv_i_okcode | |
| I_CALL_APPL | = lv_i_call_appl | |
| I_FLG_TESTRUN | = lv_i_flg_testrun | |
| I_S_POST_INFO | = lv_i_s_post_info | |
| I_S_GDISPLAY_PROFILE | = lv_i_s_gdisplay_profile | |
| IMPORTING | ||
| E_TAB_VDBEKI | = lv_e_tab_vdbeki | |
| E_TAB_VDBEPI | = lv_e_tab_vdbepi | |
| E_TAB_ADDFLOWS | = lv_e_tab_addflows | |
| E_STR_RDEFERRAL | = lv_e_str_rdeferral | |
| E_STR_VDBOHEAD | = lv_e_str_vdbohead | |
| EXCEPTIONS | ||
| FAILED = 1 | ||
| FATAL_ERROR = 2 | ||
| . " FVD_DEFCAP_OL_EXECUTE_DEF | ||
ABAP code using 7.40 inline data declarations to call FM FVD_DEFCAP_OL_EXECUTE_DEF
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.Search for further information about these or an SAP related objects