SAP Function Modules

FTR_FX_CASHSETTL_OPT_PLAN SAP Function module - Creates a Planned Record for Cash Settlement Flow







FTR_FX_CASHSETTL_OPT_PLAN 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 FTR_FX_CASHSETTL_OPT_PLAN into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FTR_FX
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FTR_FX_CASHSETTL_OPT_PLAN - FTR FX CASHSETTL OPT PLAN





CALL FUNCTION 'FTR_FX_CASHSETTL_OPT_PLAN' "Creates a Planned Record for Cash Settlement Flow
  EXPORTING
    i_vtbfha =                  " vtbfha        Financial Transaction
*   i_vtbfhazu =                " vtbfhazu      Transaction Activity
*   i_vtiof =                   " vtiof         Additional Option Data
    modus =                     " tact-actvt    Activity
*   calc_hw =                   " boolean       Boolean Variable (X=True, -=False, Space=Unknown)
*   i_ratetype =                " kurst_curr    Exchange Rate Type
*   i_evaltype =                " jbreval_d     ID of Risk Management Evaluation
* TABLES
*   t_vtifhazu =                " vtifhazu      Underlying Transaction Status Table
*   t_vtifhapo =                " vtifhapo      Underlying Transaction Flows
    .  "  FTR_FX_CASHSETTL_OPT_PLAN

ABAP code example for Function Module FTR_FX_CASHSETTL_OPT_PLAN





The ABAP code below is a full code listing to execute function module FTR_FX_CASHSETTL_OPT_PLAN 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:
it_t_vtifhazu  TYPE STANDARD TABLE OF VTIFHAZU,"TABLES PARAM
wa_t_vtifhazu  LIKE LINE OF it_t_vtifhazu ,
it_t_vtifhapo  TYPE STANDARD TABLE OF VTIFHAPO,"TABLES PARAM
wa_t_vtifhapo  LIKE LINE OF it_t_vtifhapo .

DATA(ld_i_vtbfha) = 'Check type of data required'.
DATA(ld_i_vtbfhazu) = 'Check type of data required'.
DATA(ld_i_vtiof) = 'Check type of data required'.

SELECT single ACTVT
FROM TACT
INTO @DATA(ld_modus).

DATA(ld_calc_hw) = 'Check type of data required'.
DATA(ld_i_ratetype) = 'Check type of data required'.
DATA(ld_i_evaltype) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_vtifhazu to it_t_vtifhazu.

"populate fields of struture and append to itab
append wa_t_vtifhapo to it_t_vtifhapo. . CALL FUNCTION 'FTR_FX_CASHSETTL_OPT_PLAN' EXPORTING i_vtbfha = ld_i_vtbfha * i_vtbfhazu = ld_i_vtbfhazu * i_vtiof = ld_i_vtiof modus = ld_modus * calc_hw = ld_calc_hw * i_ratetype = ld_i_ratetype * i_evaltype = ld_i_evaltype * TABLES * t_vtifhazu = it_t_vtifhazu * t_vtifhapo = it_t_vtifhapo . " FTR_FX_CASHSETTL_OPT_PLAN
IF SY-SUBRC EQ 0. "All OK 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_i_vtbfha  TYPE VTBFHA ,
it_t_vtifhazu  TYPE STANDARD TABLE OF VTIFHAZU ,
wa_t_vtifhazu  LIKE LINE OF it_t_vtifhazu,
ld_i_vtbfhazu  TYPE VTBFHAZU ,
it_t_vtifhapo  TYPE STANDARD TABLE OF VTIFHAPO ,
wa_t_vtifhapo  LIKE LINE OF it_t_vtifhapo,
ld_i_vtiof  TYPE VTIOF ,
ld_modus  TYPE TACT-ACTVT ,
ld_calc_hw  TYPE BOOLEAN ,
ld_i_ratetype  TYPE KURST_CURR ,
ld_i_evaltype  TYPE JBREVAL_D .

ld_i_vtbfha = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_vtifhazu to it_t_vtifhazu.
ld_i_vtbfhazu = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_t_vtifhapo to it_t_vtifhapo.
ld_i_vtiof = 'Check type of data required'.

SELECT single ACTVT
FROM TACT
INTO ld_modus.

ld_calc_hw = 'Check type of data required'.
ld_i_ratetype = 'Check type of data required'.
ld_i_evaltype = '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 FTR_FX_CASHSETTL_OPT_PLAN or its description.