SAP Function Modules

FVD_CFA_CALCULATION_CONTROL SAP Function module







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
Normal function module settings


Pattern for FM FVD_CFA_CALCULATION_CONTROL - FVD CFA CALCULATION CONTROL





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

ABAP code example for Function Module 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).

DATA:
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 .

DATA(ld_i_cfa_keydate) = 'Check type of data required'.
DATA(ld_i_cfa_startdate) = 'Check type of data required'.
DATA(ld_i_cfa_ze_simulation) = 'Check type of data required'.
DATA(ld_i_vdarl) = 'Check type of data required'.
DATA(ld_i_tab_vzzkoko) = 'Check type of data required'.
DATA(ld_i_tab_vzzkopo_new) = 'Check type of data required'.
DATA(ld_i_tab_vzzkopo_old) = 'Check type of data required'.
DATA(ld_i_tab_vvzzkopo_new) = 'Check type of data required'.
DATA(ld_i_tab_vvzzkopo_old) = 'Check type of data required'.
DATA(ld_i_tab_vzzbepp) = 'Check type of data required'.
DATA(ld_i_log_handle) = 'Check type of data required'. . CALL FUNCTION 'FVD_CFA_CALCULATION_CONTROL' EXPORTING i_cfa_keydate = ld_i_cfa_keydate * i_cfa_startdate = ld_i_cfa_startdate * i_cfa_ze_simulation = ld_i_cfa_ze_simulation i_vdarl = ld_i_vdarl i_tab_vzzkoko = ld_i_tab_vzzkoko i_tab_vzzkopo_new = ld_i_tab_vzzkopo_new i_tab_vzzkopo_old = ld_i_tab_vzzkopo_old i_tab_vvzzkopo_new = ld_i_tab_vvzzkopo_new i_tab_vvzzkopo_old = ld_i_tab_vvzzkopo_old i_tab_vzzbepp = ld_i_tab_vzzbepp i_log_handle = ld_i_log_handle IMPORTING e_rc = ld_e_rc e_tab_vzzbepp_new = ld_e_tab_vzzbepp_new e_tab_vzzbepp_old = ld_e_tab_vzzbepp_old e_rloam_new = ld_e_rloam_new e_rloam_old = ld_e_rloam_old e_loans_1_2_capitals = ld_e_loans_1_2_capitals e_flows_capitals_1_2 = ld_e_flows_capitals_1_2 e_tab_flows_1_2 = ld_e_tab_flows_1_2 e_tab_capitals_1_2 = ld_e_tab_capitals_1_2 EXCEPTIONS MISSING_KEYDATE = 1 ERROR_IN_CASHFLOW_CALCULATION = 2 . " FVD_CFA_CALCULATION_CONTROL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .

ld_i_cfa_keydate = 'Check type of data required'.
ld_i_cfa_startdate = 'Check type of data required'.
ld_i_cfa_ze_simulation = 'Check type of data required'.
ld_i_vdarl = 'Check type of data required'.
ld_i_tab_vzzkoko = 'Check type of data required'.
ld_i_tab_vzzkopo_new = 'Check type of data required'.
ld_i_tab_vzzkopo_old = 'Check type of data required'.
ld_i_tab_vvzzkopo_new = 'Check type of data required'.
ld_i_tab_vvzzkopo_old = 'Check type of data required'.
ld_i_tab_vzzbepp = 'Check type of data required'.
ld_i_log_handle = 'Check type of data required'.

Contribute (Add Comments)

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.