SAP Function Modules

WFA_TREE_FCST_OBJECT SAP Function module - Descriptive data of forecast objects







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

Associated Function Group: WFA_UI_RFCS
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM WFA_TREE_FCST_OBJECT - WFA TREE FCST OBJECT





CALL FUNCTION 'WFA_TREE_FCST_OBJECT' "Descriptive data of forecast objects
  EXPORTING
    iv_org =                    " hrobjid       Organization
    iv_eff_date =               " datum         Effective date
    iv_rtype =                  " char3         Object type
*   iv_key =                    " char20        Object key
*   iv_guid =                   " char32        Object GUID
  IMPORTING
    rt_table =                  " wfafct_tree_string  Table of strings
    .  "  WFA_TREE_FCST_OBJECT

ABAP code example for Function Module WFA_TREE_FCST_OBJECT





The ABAP code below is a full code listing to execute function module WFA_TREE_FCST_OBJECT 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_rt_table  TYPE WFAFCT_TREE_STRING .

DATA(ld_iv_org) = 'Check type of data required'.
DATA(ld_iv_eff_date) = 'Check type of data required'.
DATA(ld_iv_rtype) = 'Check type of data required'.
DATA(ld_iv_key) = 'Check type of data required'.
DATA(ld_iv_guid) = 'Check type of data required'. . CALL FUNCTION 'WFA_TREE_FCST_OBJECT' EXPORTING iv_org = ld_iv_org iv_eff_date = ld_iv_eff_date iv_rtype = ld_iv_rtype * iv_key = ld_iv_key * iv_guid = ld_iv_guid IMPORTING rt_table = ld_rt_table . " WFA_TREE_FCST_OBJECT
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_rt_table  TYPE WFAFCT_TREE_STRING ,
ld_iv_org  TYPE HROBJID ,
ld_iv_eff_date  TYPE DATUM ,
ld_iv_rtype  TYPE CHAR3 ,
ld_iv_key  TYPE CHAR20 ,
ld_iv_guid  TYPE CHAR32 .

ld_iv_org = 'Check type of data required'.
ld_iv_eff_date = 'Check type of data required'.
ld_iv_rtype = 'Check type of data required'.
ld_iv_key = 'Check type of data required'.
ld_iv_guid = '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 WFA_TREE_FCST_OBJECT or its description.