SAP FVD_CONTRACT_MAPI_LOAN_CREATE Function Module for Create Master API Contract
FVD_CONTRACT_MAPI_LOAN_CREATE is a standard fvd contract mapi loan 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 Create Master API Contract 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 contract mapi loan create FM, simply by entering the name FVD_CONTRACT_MAPI_LOAN_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_CONTRACT
Program Name: SAPLFVD_CONTRACT
Main Program: SAPLFVD_CONTRACT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_CONTRACT_MAPI_LOAN_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_CONTRACT_MAPI_LOAN_CREATE'"Create Master API Contract.
EXPORTING
LOAN = "Loan
* ENCUMBRANCES = "Table Type for Table VDHGRPF
* OWNRIGHTS = "Table Type for Table VIGBA3
* CORRESPONDENCE = "Print and Dispatch Control Data for VDARL
* USERFIELDS = "Sort Values for Object
* VDSUBFACILITY = "Table Type for VDSUBFACILITY
* VDLINK_DD2SF = "Drawdowns for sub-facility
* CLERKS = "Table Type for Table VDZSB
* TESTRUN = ' ' "Switch to Simulation Mode for Write BAPIs
* REFRESH = ' ' "Refresh Global Settings In Write BAPIS
* STEERING = "Control Parameters for Contract Creation BAPI
PARTNER = "Business Partner Assignment
* I_FLG_AVOID_INNER_JOIN = ' ' "
* I_CALLN_APPLN = 'INT' "Calling Application
* I_FLG_MSG_DISPLAY = 'X' "Message Display
CONDITIONHEADER = "Table Condition Header
CONDITIONS = "Table Type for Table VZZKOPO
* FORMULA = "Table Type for Table VZZKOPA
* RECORDS = "Table Type for Table VDBEPP
* CHGDOC_RECORDS = "'X' = Berücksichtigung der Einträge bei Änderungsbelegen
* OBJECTS = "Table Type Objects VDARLOBJ
* COLLATERALS = "Table Type Collaterals VDARLSIC
IMPORTING
LOANNUMBER = "Contract Number
E_TAB_SUBFACS = "Table Type for VDSUBFACILITY
ERROR = "Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
IMPORTING Parameters details for FVD_CONTRACT_MAPI_LOAN_CREATE
LOAN - Loan
Data type: VDARLOptional: No
Call by Reference: No ( called with pass by value option)
ENCUMBRANCES - Table Type for Table VDHGRPF
Data type: TRTY_VDHGRPFOptional: Yes
Call by Reference: No ( called with pass by value option)
OWNRIGHTS - Table Type for Table VIGBA3
Data type: TRTY_VIGBA3Optional: Yes
Call by Reference: No ( called with pass by value option)
CORRESPONDENCE - Print and Dispatch Control Data for VDARL
Data type: VDARLDVSOptional: Yes
Call by Reference: No ( called with pass by value option)
USERFIELDS - Sort Values for Object
Data type: VZSORTOptional: Yes
Call by Reference: No ( called with pass by value option)
VDSUBFACILITY - Table Type for VDSUBFACILITY
Data type: TRTY_VDSUBFACILITYOptional: Yes
Call by Reference: No ( called with pass by value option)
VDLINK_DD2SF - Drawdowns for sub-facility
Data type: VDLINK_DD2SFOptional: Yes
Call by Reference: No ( called with pass by value option)
CLERKS - Table Type for Table VDZSB
Data type: TRTY_VDZSBOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN - Switch to Simulation Mode for Write BAPIs
Data type: TESTRUNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
REFRESH - Refresh Global Settings In Write BAPIS
Data type: FVD_REFRESHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STEERING - Control Parameters for Contract Creation BAPI
Data type: BAPILOAN_STEERINGOptional: Yes
Call by Reference: No ( called with pass by value option)
PARTNER - Business Partner Assignment
Data type: TRTY_VDGPOOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_AVOID_INNER_JOIN -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CALLN_APPLN - Calling Application
Data type: TB_CALLNG_APPLNDefault: 'INT'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_FLG_MSG_DISPLAY - Message Display
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
CONDITIONHEADER - Table Condition Header
Data type: VZZKOKOOptional: No
Call by Reference: No ( called with pass by value option)
CONDITIONS - Table Type for Table VZZKOPO
Data type: TRTY_VZZKOPOOptional: No
Call by Reference: No ( called with pass by value option)
FORMULA - Table Type for Table VZZKOPA
Data type: TRTY_VZZKOPAOptional: Yes
Call by Reference: No ( called with pass by value option)
RECORDS - Table Type for Table VDBEPP
Data type: TRTY_VDBEPPOptional: Yes
Call by Reference: No ( called with pass by value option)
CHGDOC_RECORDS - 'X' = Berücksichtigung der Einträge bei Änderungsbelegen
Data type: FLAGOptional: Yes
Call by Reference: No ( called with pass by value option)
OBJECTS - Table Type Objects VDARLOBJ
Data type: TRTY_VDARLOBJOptional: Yes
Call by Reference: No ( called with pass by value option)
COLLATERALS - Table Type Collaterals VDARLSIC
Data type: TRTY_VDARLSICOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FVD_CONTRACT_MAPI_LOAN_CREATE
LOANNUMBER - Contract Number
Data type: RANLOptional: No
Call by Reference: No ( called with pass by value option)
E_TAB_SUBFACS - Table Type for VDSUBFACILITY
Data type: TRTY_VDSUBFACILITYOptional: No
Call by Reference: No ( called with pass by value option)
ERROR - Data Element for BOOLE Domain: TRUE (='X') and FALSE (=' ')
Data type: BOOLE-BOOLEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FVD_CONTRACT_MAPI_LOAN_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_loan | TYPE VDARL, " | |||
| lv_loannumber | TYPE RANL, " | |||
| lv_encumbrances | TYPE TRTY_VDHGRPF, " | |||
| lv_ownrights | TYPE TRTY_VIGBA3, " | |||
| lv_correspondence | TYPE VDARLDVS, " | |||
| lv_userfields | TYPE VZSORT, " | |||
| lv_vdsubfacility | TYPE TRTY_VDSUBFACILITY, " | |||
| lv_vdlink_dd2sf | TYPE VDLINK_DD2SF, " | |||
| lv_clerks | TYPE TRTY_VDZSB, " | |||
| lv_testrun | TYPE TESTRUN, " SPACE | |||
| lv_refresh | TYPE FVD_REFRESH, " SPACE | |||
| lv_steering | TYPE BAPILOAN_STEERING, " | |||
| lv_partner | TYPE TRTY_VDGPO, " | |||
| lv_e_tab_subfacs | TYPE TRTY_VDSUBFACILITY, " | |||
| lv_i_flg_avoid_inner_join | TYPE XFELD, " SPACE | |||
| lv_i_calln_appln | TYPE TB_CALLNG_APPLN, " 'INT' | |||
| lv_i_flg_msg_display | TYPE C, " 'X' | |||
| lv_error | TYPE BOOLE-BOOLE, " | |||
| lv_conditionheader | TYPE VZZKOKO, " | |||
| lv_conditions | TYPE TRTY_VZZKOPO, " | |||
| lv_formula | TYPE TRTY_VZZKOPA, " | |||
| lv_records | TYPE TRTY_VDBEPP, " | |||
| lv_chgdoc_records | TYPE FLAG, " | |||
| lv_objects | TYPE TRTY_VDARLOBJ, " | |||
| lv_collaterals | TYPE TRTY_VDARLSIC. " |
|   CALL FUNCTION 'FVD_CONTRACT_MAPI_LOAN_CREATE' "Create Master API Contract |
| EXPORTING | ||
| LOAN | = lv_loan | |
| ENCUMBRANCES | = lv_encumbrances | |
| OWNRIGHTS | = lv_ownrights | |
| CORRESPONDENCE | = lv_correspondence | |
| USERFIELDS | = lv_userfields | |
| VDSUBFACILITY | = lv_vdsubfacility | |
| VDLINK_DD2SF | = lv_vdlink_dd2sf | |
| CLERKS | = lv_clerks | |
| TESTRUN | = lv_testrun | |
| REFRESH | = lv_refresh | |
| STEERING | = lv_steering | |
| PARTNER | = lv_partner | |
| I_FLG_AVOID_INNER_JOIN | = lv_i_flg_avoid_inner_join | |
| I_CALLN_APPLN | = lv_i_calln_appln | |
| I_FLG_MSG_DISPLAY | = lv_i_flg_msg_display | |
| CONDITIONHEADER | = lv_conditionheader | |
| CONDITIONS | = lv_conditions | |
| FORMULA | = lv_formula | |
| RECORDS | = lv_records | |
| CHGDOC_RECORDS | = lv_chgdoc_records | |
| OBJECTS | = lv_objects | |
| COLLATERALS | = lv_collaterals | |
| IMPORTING | ||
| LOANNUMBER | = lv_loannumber | |
| E_TAB_SUBFACS | = lv_e_tab_subfacs | |
| ERROR | = lv_error | |
| . " FVD_CONTRACT_MAPI_LOAN_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM FVD_CONTRACT_MAPI_LOAN_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_testrun) | = ' '. | |||
| DATA(ld_refresh) | = ' '. | |||
| DATA(ld_i_flg_avoid_inner_join) | = ' '. | |||
| DATA(ld_i_calln_appln) | = 'INT'. | |||
| DATA(ld_i_flg_msg_display) | = 'X'. | |||
| "SELECT single BOOLE FROM BOOLE INTO @DATA(ld_error). | ||||
Search for further information about these or an SAP related objects