SAP FVD_DEFERRAL_MAPI_CREATE Function Module for Wrapper API for Create Deferral









FVD_DEFERRAL_MAPI_CREATE is a standard fvd deferral mapi create SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Wrapper API for Create 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 mapi create FM, simply by entering the name FVD_DEFERRAL_MAPI_CREATE 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_MAPI_CREATE 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_MAPI_CREATE'"Wrapper API for Create Deferral
EXPORTING
IS_RDEFERRAL = "Interface Structure and Ctrl Data - Deferral/Capitalization
* IF_NO_CONFIRMATION = "If set as 'X', supress release
* IV_BUDAT = "Posting Date in the Document
* IS_BPCA = "Business Process Chain Assignment
* IT_ADDFLOWS = "Table Type for RBOBEPP_API (Standard)
* IT_DEF_INSTLM = "Deferral Installment
* IT_OPEN_ITEMS = "Open Items
* IT_PLANNED_ITEMS = "Planned Items
* IF_SIM = ' ' "Simulation flag for Deferral
* IF_COMPLETION_REQ = ' ' "General Flag
* IF_ACTIVATION_REQ = ' ' "General Flag

IMPORTING
ES_VDBOHEAD = "Business Operation: Header
ET_VDBEPI = "Table Type for Table VDBEPI
ET_VDBEKI = "Table Type for Table VDBEKI
ET_BAPIERR = "Table Types for Error Handling
ES_RDEFERRAL = "Deferral Data
ET_ADDFLOWS = "Table Category for RBOBEPP (Standard)
ET_DEF_INSTLM = "Table Type for Structure RDEF_INSTLM (Deferral Installments)
ET_PLANNED_ITEMS = "Table Type for Structure RVZZBEPP
ET_OPEN_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_MAPI_CREATE

IS_RDEFERRAL - Interface Structure and Ctrl Data - Deferral/Capitalization

Data type: RDEFERRAL_API
Optional: No
Call by Reference: Yes

IF_NO_CONFIRMATION - If set as 'X', supress release

Data type: FLAG
Optional: Yes
Call by Reference: Yes

IV_BUDAT - Posting Date in the Document

Data type: BUDAT
Optional: Yes
Call by Reference: Yes

IS_BPCA - Business Process Chain Assignment

Data type: FVD_STR_BPCA
Optional: Yes
Call by Reference: Yes

IT_ADDFLOWS - Table Type for RBOBEPP_API (Standard)

Data type: TRTY_RBOBEPP_API
Optional: Yes
Call by Reference: Yes

IT_DEF_INSTLM - Deferral Installment

Data type: TRTY_DEF_INSTLM
Optional: Yes
Call by Reference: Yes

IT_OPEN_ITEMS - Open Items

Data type: TRTY_WITHHOLD_OPENITEM
Optional: Yes
Call by Reference: Yes

IT_PLANNED_ITEMS - Planned Items

Data type: TRTY_BEPP_KEY
Optional: Yes
Call by Reference: Yes

IF_SIM - Simulation flag for Deferral

Data type: TESTRUN
Default: SPACE
Optional: No
Call by Reference: Yes

IF_COMPLETION_REQ - General Flag

Data type: FLAG
Default: SPACE
Optional: No
Call by Reference: Yes

IF_ACTIVATION_REQ - General Flag

Data type: FLAG
Default: SPACE
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for FVD_DEFERRAL_MAPI_CREATE

ES_VDBOHEAD - Business Operation: Header

Data type: VDBOHEAD
Optional: No
Call by Reference: Yes

ET_VDBEPI - Table Type for Table VDBEPI

Data type: TRTY_VDBEPI
Optional: No
Call by Reference: Yes

ET_VDBEKI - Table Type for Table VDBEKI

Data type: TRTY_VDBEKI
Optional: No
Call by Reference: Yes

ET_BAPIERR - Table Types for Error Handling

Data type: BAPIERR_T
Optional: No
Call by Reference: Yes

ES_RDEFERRAL - Deferral Data

Data type: VDDEFERRAL
Optional: No
Call by Reference: Yes

ET_ADDFLOWS - Table Category for RBOBEPP (Standard)

Data type: TRTY_RBOBEPP
Optional: No
Call by Reference: Yes

ET_DEF_INSTLM - Table Type for Structure RDEF_INSTLM (Deferral Installments)

Data type: TRTY_DEF_INSTLM
Optional: No
Call by Reference: Yes

ET_PLANNED_ITEMS - Table Type for Structure RVZZBEPP

Data type: TRTY_RVZZBEPP
Optional: No
Call by Reference: Yes

ET_OPEN_ITEMS - Table Type for Structure RVZZBEPP

Data type: TRTY_RVZZBEPP
Optional: No
Call by Reference: Yes

ET_VZZBEPP_DEFCAP - Table Type for Structure VZZBEPP

Data type: TRTY_VZZBEPP
Optional: No
Call by Reference: Yes

ET_VZZBEPP_NO_DEFCAP - Table Type for Structure VZZBEPP

Data type: TRTY_VZZBEPP
Optional: No
Call by Reference: Yes

ET_VZZBEPP_ACTUAL - Table Type for Structure VZZBEPP

Data type: TRTY_VZZBEPP
Optional: No
Call by Reference: Yes

EXCEPTIONS details

FATAL_ERROR - Serious error has occurred

Data type:
Optional: No
Call by Reference: Yes

MANDATE_NOT_VALID - Invalid SEPA Mandate for a EDD payment method

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FVD_DEFERRAL_MAPI_CREATE 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_es_vdbohead  TYPE VDBOHEAD, "   
lv_fatal_error  TYPE VDBOHEAD, "   
lv_is_rdeferral  TYPE RDEFERRAL_API, "   
lv_et_vdbepi  TYPE TRTY_VDBEPI, "   
lv_if_no_confirmation  TYPE FLAG, "   
lv_iv_budat  TYPE BUDAT, "   
lv_et_vdbeki  TYPE TRTY_VDBEKI, "   
lv_et_bapierr  TYPE BAPIERR_T, "   
lv_is_bpca  TYPE FVD_STR_BPCA, "   
lv_es_rdeferral  TYPE VDDEFERRAL, "   
lv_mandate_not_valid  TYPE VDDEFERRAL, "   
lv_et_addflows  TYPE TRTY_RBOBEPP, "   
lv_it_addflows  TYPE TRTY_RBOBEPP_API, "   
lv_et_def_instlm  TYPE TRTY_DEF_INSTLM, "   
lv_it_def_instlm  TYPE TRTY_DEF_INSTLM, "   
lv_it_open_items  TYPE TRTY_WITHHOLD_OPENITEM, "   
lv_et_planned_items  TYPE TRTY_RVZZBEPP, "   
lv_et_open_items  TYPE TRTY_RVZZBEPP, "   
lv_it_planned_items  TYPE TRTY_BEPP_KEY, "   
lv_if_sim  TYPE TESTRUN, "   SPACE
lv_et_vzzbepp_defcap  TYPE TRTY_VZZBEPP, "   
lv_if_completion_req  TYPE FLAG, "   SPACE
lv_et_vzzbepp_no_defcap  TYPE TRTY_VZZBEPP, "   
lv_et_vzzbepp_actual  TYPE TRTY_VZZBEPP, "   
lv_if_activation_req  TYPE FLAG. "   SPACE

  CALL FUNCTION 'FVD_DEFERRAL_MAPI_CREATE'  "Wrapper API for Create Deferral
    EXPORTING
         IS_RDEFERRAL = lv_is_rdeferral
         IF_NO_CONFIRMATION = lv_if_no_confirmation
         IV_BUDAT = lv_iv_budat
         IS_BPCA = lv_is_bpca
         IT_ADDFLOWS = lv_it_addflows
         IT_DEF_INSTLM = lv_it_def_instlm
         IT_OPEN_ITEMS = lv_it_open_items
         IT_PLANNED_ITEMS = lv_it_planned_items
         IF_SIM = lv_if_sim
         IF_COMPLETION_REQ = lv_if_completion_req
         IF_ACTIVATION_REQ = lv_if_activation_req
    IMPORTING
         ES_VDBOHEAD = lv_es_vdbohead
         ET_VDBEPI = lv_et_vdbepi
         ET_VDBEKI = lv_et_vdbeki
         ET_BAPIERR = lv_et_bapierr
         ES_RDEFERRAL = lv_es_rdeferral
         ET_ADDFLOWS = lv_et_addflows
         ET_DEF_INSTLM = lv_et_def_instlm
         ET_PLANNED_ITEMS = lv_et_planned_items
         ET_OPEN_ITEMS = lv_et_open_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_MAPI_CREATE




ABAP code using 7.40 inline data declarations to call FM FVD_DEFERRAL_MAPI_CREATE

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_sim) = ' '.
 
 
DATA(ld_if_completion_req) = ' '.
 
 
 
DATA(ld_if_activation_req) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!