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

Function FVD_DEFERRAL_API_ACTIVATE 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_DEFERRAL_API_ACTIVATE'"Activate Deferral.
EXPORTING
IS_BO_KEY = "bo key data input
* IS_BPCA = "Business Process Chain Assignment
* IF_TESTRUN = ' ' "Switch to Simulation Session for deferral
* IF_NO_CONFIRMATION = ' ' "If set as 'X', suppress release
* IV_CALLN_APPLN = 'INT' "Calling Application
IMPORTING
ES_RDEFERRAL = "Deferral Data
ET_BAPIERR = "Table Types for Error Handling
ES_VDBOHEAD = "Business Operation: Header
ET_ADDFLOWS = "Table Category for RBOBEPP (Standard)
ET_DEF_INSTLM = "Deferral Installment
ET_OPEN_ITEMS = "Table Type for Structure RVZZBEPP
ET_PLANNED_ITEMS = "Table Type for Structure RVZZBEPP
ET_VZZBEPP_DEFCAP = "Table Type for Structure VZZBEPP
ET_VZZBEPP_NO_DEFCAP = "Table Type for Structure VZZBEPP
ET_VZZBEPP_ACTUAL = "Table Type for Structure VZZBEPP
EXCEPTIONS
FATAL_ERROR = 1 MANDATE_NOT_VALID = 2
IMPORTING Parameters details for FVD_DEFERRAL_API_ACTIVATE
IS_BO_KEY - bo key data input
Data type: FVD_BO_KEYOptional: No
Call by Reference: Yes
IS_BPCA - Business Process Chain Assignment
Data type: FVD_STR_BPCAOptional: Yes
Call by Reference: Yes
IF_TESTRUN - Switch to Simulation Session for deferral
Data type: TESTRUNDefault: SPACE
Optional: Yes
Call by Reference: Yes
IF_NO_CONFIRMATION - If set as 'X', suppress release
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
IV_CALLN_APPLN - Calling Application
Data type: TB_CALLNG_APPLNDefault: 'INT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVD_DEFERRAL_API_ACTIVATE
ES_RDEFERRAL - Deferral Data
Data type: VDDEFERRALOptional: No
Call by Reference: Yes
ET_BAPIERR - Table Types for Error Handling
Data type: BAPIERR_TOptional: No
Call by Reference: Yes
ES_VDBOHEAD - Business Operation: Header
Data type: VDBOHEADOptional: No
Call by Reference: Yes
ET_ADDFLOWS - Table Category for RBOBEPP (Standard)
Data type: TRTY_RBOBEPPOptional: No
Call by Reference: Yes
ET_DEF_INSTLM - Deferral Installment
Data type: TRTY_DEF_INSTLMOptional: No
Call by Reference: Yes
ET_OPEN_ITEMS - Table Type for Structure RVZZBEPP
Data type: TRTY_RVZZBEPPOptional: No
Call by Reference: Yes
ET_PLANNED_ITEMS - Table Type for Structure RVZZBEPP
Data type: TRTY_RVZZBEPPOptional: No
Call by Reference: Yes
ET_VZZBEPP_DEFCAP - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
ET_VZZBEPP_NO_DEFCAP - 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
EXCEPTIONS details
FATAL_ERROR - Serious error has occurred
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
MANDATE_NOT_VALID - Invalid SEPA Mandate for a EDD payment method
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVD_DEFERRAL_API_ACTIVATE 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_is_bo_key | TYPE FVD_BO_KEY, " | |||
| lv_fatal_error | TYPE FVD_BO_KEY, " | |||
| lv_es_rdeferral | TYPE VDDEFERRAL, " | |||
| lv_et_bapierr | TYPE BAPIERR_T, " | |||
| lv_is_bpca | TYPE FVD_STR_BPCA, " | |||
| lv_es_vdbohead | TYPE VDBOHEAD, " | |||
| lv_mandate_not_valid | TYPE VDBOHEAD, " | |||
| lv_if_testrun | TYPE TESTRUN, " SPACE | |||
| lv_et_addflows | TYPE TRTY_RBOBEPP, " | |||
| lv_et_def_instlm | TYPE TRTY_DEF_INSTLM, " | |||
| lv_if_no_confirmation | TYPE XFELD, " SPACE | |||
| lv_et_open_items | TYPE TRTY_RVZZBEPP, " | |||
| lv_iv_calln_appln | TYPE TB_CALLNG_APPLN, " 'INT' | |||
| lv_et_planned_items | TYPE TRTY_RVZZBEPP, " | |||
| lv_et_vzzbepp_defcap | TYPE TRTY_VZZBEPP, " | |||
| lv_et_vzzbepp_no_defcap | TYPE TRTY_VZZBEPP, " | |||
| lv_et_vzzbepp_actual | TYPE TRTY_VZZBEPP. " |
|   CALL FUNCTION 'FVD_DEFERRAL_API_ACTIVATE' "Activate Deferral |
| EXPORTING | ||
| IS_BO_KEY | = lv_is_bo_key | |
| IS_BPCA | = lv_is_bpca | |
| IF_TESTRUN | = lv_if_testrun | |
| IF_NO_CONFIRMATION | = lv_if_no_confirmation | |
| IV_CALLN_APPLN | = lv_iv_calln_appln | |
| IMPORTING | ||
| ES_RDEFERRAL | = lv_es_rdeferral | |
| ET_BAPIERR | = lv_et_bapierr | |
| ES_VDBOHEAD | = lv_es_vdbohead | |
| ET_ADDFLOWS | = lv_et_addflows | |
| ET_DEF_INSTLM | = lv_et_def_instlm | |
| ET_OPEN_ITEMS | = lv_et_open_items | |
| ET_PLANNED_ITEMS | = lv_et_planned_items | |
| ET_VZZBEPP_DEFCAP | = lv_et_vzzbepp_defcap | |
| ET_VZZBEPP_NO_DEFCAP | = lv_et_vzzbepp_no_defcap | |
| ET_VZZBEPP_ACTUAL | = lv_et_vzzbepp_actual | |
| EXCEPTIONS | ||
| FATAL_ERROR = 1 | ||
| MANDATE_NOT_VALID = 2 | ||
| . " FVD_DEFERRAL_API_ACTIVATE | ||
ABAP code using 7.40 inline data declarations to call FM FVD_DEFERRAL_API_ACTIVATE
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_if_testrun) | = ' '. | |||
| DATA(ld_if_no_confirmation) | = ' '. | |||
| DATA(ld_iv_calln_appln) | = 'INT'. | |||
Search for further information about these or an SAP related objects