FVD_CFA_CALCULATION_CONTROL is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name FVD_CFA_CALCULATION_CONTROL into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
FVD_CFA_CALCULATION
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'FVD_CFA_CALCULATION_CONTROL' "
EXPORTING
i_cfa_keydate = " tb_cfa_keydate
* i_cfa_startdate = " tb_cfa_startdate
* i_cfa_ze_simulation = SPACE " tb_cfa_y_or_n
i_vdarl = " vdarl
i_tab_vzzkoko = " trty_vzzkoko
i_tab_vzzkopo_new = " trty_vzzkopo
i_tab_vzzkopo_old = " trty_vzzkopo
i_tab_vvzzkopo_new = " trty_vvzzkopo
i_tab_vvzzkopo_old = " trty_vvzzkopo
i_tab_vzzbepp = " trty_vzzbepp
i_log_handle = " balloghndl
IMPORTING
e_rc = " sy-subrc
e_tab_vzzbepp_new = " trty_vzzbepp
e_tab_vzzbepp_old = " trty_vzzbepp
e_rloam_new = " rloam
e_rloam_old = " rloam
e_loans_1_2_capitals = " rcfa_loans_1_2_and_capitals
e_flows_capitals_1_2 = " rcfa_flows_and_capitals_1_2
e_tab_flows_1_2 = " trty_rcfa_flows_1_2
e_tab_capitals_1_2 = " trty_rcfa_capitals_1_2
EXCEPTIONS
MISSING_KEYDATE = 1 "
ERROR_IN_CASHFLOW_CALCULATION = 2 "
. " FVD_CFA_CALCULATION_CONTROL
The ABAP code below is a full code listing to execute function module FVD_CFA_CALCULATION_CONTROL including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| ld_e_rc | TYPE SY-SUBRC , |
| ld_e_tab_vzzbepp_new | TYPE TRTY_VZZBEPP , |
| ld_e_tab_vzzbepp_old | TYPE TRTY_VZZBEPP , |
| ld_e_rloam_new | TYPE RLOAM , |
| ld_e_rloam_old | TYPE RLOAM , |
| ld_e_loans_1_2_capitals | TYPE RCFA_LOANS_1_2_AND_CAPITALS , |
| ld_e_flows_capitals_1_2 | TYPE RCFA_FLOWS_AND_CAPITALS_1_2 , |
| ld_e_tab_flows_1_2 | TYPE TRTY_RCFA_FLOWS_1_2 , |
| ld_e_tab_capitals_1_2 | TYPE TRTY_RCFA_CAPITALS_1_2 . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_e_rc | TYPE SY-SUBRC , |
| ld_i_cfa_keydate | TYPE TB_CFA_KEYDATE , |
| ld_i_cfa_startdate | TYPE TB_CFA_STARTDATE , |
| ld_e_tab_vzzbepp_new | TYPE TRTY_VZZBEPP , |
| ld_i_cfa_ze_simulation | TYPE TB_CFA_Y_OR_N , |
| ld_e_tab_vzzbepp_old | TYPE TRTY_VZZBEPP , |
| ld_e_rloam_new | TYPE RLOAM , |
| ld_i_vdarl | TYPE VDARL , |
| ld_e_rloam_old | TYPE RLOAM , |
| ld_i_tab_vzzkoko | TYPE TRTY_VZZKOKO , |
| ld_e_loans_1_2_capitals | TYPE RCFA_LOANS_1_2_AND_CAPITALS , |
| ld_i_tab_vzzkopo_new | TYPE TRTY_VZZKOPO , |
| ld_e_flows_capitals_1_2 | TYPE RCFA_FLOWS_AND_CAPITALS_1_2 , |
| ld_i_tab_vzzkopo_old | TYPE TRTY_VZZKOPO , |
| ld_e_tab_flows_1_2 | TYPE TRTY_RCFA_FLOWS_1_2 , |
| ld_i_tab_vvzzkopo_new | TYPE TRTY_VVZZKOPO , |
| ld_e_tab_capitals_1_2 | TYPE TRTY_RCFA_CAPITALS_1_2 , |
| ld_i_tab_vvzzkopo_old | TYPE TRTY_VVZZKOPO , |
| ld_i_tab_vzzbepp | TYPE TRTY_VZZBEPP , |
| ld_i_log_handle | TYPE BALLOGHNDL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FVD_CFA_CALCULATION_CONTROL or its description.