SAP Function Modules

RS_DME_DTG_NO_WINDOWING_PROC SAP Function module - Windowing Process for Learning the Data







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

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


Pattern for FM RS_DME_DTG_NO_WINDOWING_PROC - RS DME DTG NO WINDOWING PROC





CALL FUNCTION 'RS_DME_DTG_NO_WINDOWING_PROC' "Windowing Process for Learning the Data
  EXPORTING
    i_enum_dbtab =              " rsdmem_data_store  Data Store for Training
    i_totalrecs =               " rsdmem_counts  Counts (Occurences, Frequency Distributions etc)
  IMPORTING
    e_best_tree =               " rsdmed_tree_id  ID for Tree Related IDs
    e_tree_accuracy =           " rsdmed_accuracy  Accuracy of Tree/Rule
    e_rule_accuracy =           " rsdmed_accuracy  Accuracy of Tree/Rule
    e_t_return =                " bapiret2_t    Error List
  TABLES
    i_t_attrlist =              " rsdmsd_attr_list  Attribute List  (for Internal Usage)
    i_t_enuminfo =              " rsdmsd_enuminfo  Enumeration Details for each Attribute-Value Combination
    i_t_enumcardinality =       " rsdmsd_enuminfo_freq  Enumeration Counts
    .  "  RS_DME_DTG_NO_WINDOWING_PROC

ABAP code example for Function Module RS_DME_DTG_NO_WINDOWING_PROC





The ABAP code below is a full code listing to execute function module RS_DME_DTG_NO_WINDOWING_PROC 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_best_tree  TYPE RSDMED_TREE_ID ,
ld_e_tree_accuracy  TYPE RSDMED_ACCURACY ,
ld_e_rule_accuracy  TYPE RSDMED_ACCURACY ,
ld_e_t_return  TYPE BAPIRET2_T ,
it_i_t_attrlist  TYPE STANDARD TABLE OF RSDMSD_ATTR_LIST,"TABLES PARAM
wa_i_t_attrlist  LIKE LINE OF it_i_t_attrlist ,
it_i_t_enuminfo  TYPE STANDARD TABLE OF RSDMSD_ENUMINFO,"TABLES PARAM
wa_i_t_enuminfo  LIKE LINE OF it_i_t_enuminfo ,
it_i_t_enumcardinality  TYPE STANDARD TABLE OF RSDMSD_ENUMINFO_FREQ,"TABLES PARAM
wa_i_t_enumcardinality  LIKE LINE OF it_i_t_enumcardinality .

DATA(ld_i_enum_dbtab) = 'Check type of data required'.
DATA(ld_i_totalrecs) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_attrlist to it_i_t_attrlist.

"populate fields of struture and append to itab
append wa_i_t_enuminfo to it_i_t_enuminfo.

"populate fields of struture and append to itab
append wa_i_t_enumcardinality to it_i_t_enumcardinality. . CALL FUNCTION 'RS_DME_DTG_NO_WINDOWING_PROC' EXPORTING i_enum_dbtab = ld_i_enum_dbtab i_totalrecs = ld_i_totalrecs IMPORTING e_best_tree = ld_e_best_tree e_tree_accuracy = ld_e_tree_accuracy e_rule_accuracy = ld_e_rule_accuracy e_t_return = ld_e_t_return TABLES i_t_attrlist = it_i_t_attrlist i_t_enuminfo = it_i_t_enuminfo i_t_enumcardinality = it_i_t_enumcardinality . " RS_DME_DTG_NO_WINDOWING_PROC
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_e_best_tree  TYPE RSDMED_TREE_ID ,
ld_i_enum_dbtab  TYPE RSDMEM_DATA_STORE ,
it_i_t_attrlist  TYPE STANDARD TABLE OF RSDMSD_ATTR_LIST ,
wa_i_t_attrlist  LIKE LINE OF it_i_t_attrlist,
ld_e_tree_accuracy  TYPE RSDMED_ACCURACY ,
ld_i_totalrecs  TYPE RSDMEM_COUNTS ,
it_i_t_enuminfo  TYPE STANDARD TABLE OF RSDMSD_ENUMINFO ,
wa_i_t_enuminfo  LIKE LINE OF it_i_t_enuminfo,
ld_e_rule_accuracy  TYPE RSDMED_ACCURACY ,
it_i_t_enumcardinality  TYPE STANDARD TABLE OF RSDMSD_ENUMINFO_FREQ ,
wa_i_t_enumcardinality  LIKE LINE OF it_i_t_enumcardinality,
ld_e_t_return  TYPE BAPIRET2_T .

ld_i_enum_dbtab = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_attrlist to it_i_t_attrlist.
ld_i_totalrecs = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_enuminfo to it_i_t_enuminfo.

"populate fields of struture and append to itab
append wa_i_t_enumcardinality to it_i_t_enumcardinality.

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 RS_DME_DTG_NO_WINDOWING_PROC or its description.