SAP RS_DME_DTP_PREDICT_STRUCTURE Function Module for Predict Class
RS_DME_DTP_PREDICT_STRUCTURE is a standard rs dme dtp predict structure SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Predict Class processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for rs dme dtp predict structure FM, simply by entering the name RS_DME_DTP_PREDICT_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RS_DME_DECISION_TREE_PRED
Program Name: SAPLRS_DME_DECISION_TREE_PRED
Main Program: SAPLRS_DME_DECISION_TREE_PRED
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RS_DME_DTP_PREDICT_STRUCTURE pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'RS_DME_DTP_PREDICT_STRUCTURE'"Predict Class.
EXPORTING
I_INPUTDATA = "
I_FRACTION = "Cumulative Weights
I_STRUCTURE_NAME = "Table name
I_NODE = "Node Identifier
IMPORTING
E_CLASS_ID = "Enumerated Value
E_PRED_BY = "Node which predicted the case
TABLES
E_T_CLASS = "Leaf Details
EXCEPTIONS
ITEM_CANNOT_BE_CLASSIFIED = 1
IMPORTING Parameters details for RS_DME_DTP_PREDICT_STRUCTURE
I_INPUTDATA -
Data type: ANYOptional: No
Call by Reference: Yes
I_FRACTION - Cumulative Weights
Data type: RSDMEM_WT_INDOptional: No
Call by Reference: Yes
I_STRUCTURE_NAME - Table name
Data type: RSDMEM_DATA_STOREOptional: No
Call by Reference: Yes
I_NODE - Node Identifier
Data type: RSDMED_NODEIDOptional: No
Call by Reference: Yes
EXPORTING Parameters details for RS_DME_DTP_PREDICT_STRUCTURE
E_CLASS_ID - Enumerated Value
Data type: RSDMED_ENUMIDOptional: No
Call by Reference: Yes
E_PRED_BY - Node which predicted the case
Data type: RSDMED_NODEIDOptional: No
Call by Reference: Yes
TABLES Parameters details for RS_DME_DTP_PREDICT_STRUCTURE
E_T_CLASS - Leaf Details
Data type: RSDMSD_CLASS_FREQOptional: No
Call by Reference: Yes
EXCEPTIONS details
ITEM_CANNOT_BE_CLASSIFIED - Item Cannot be classified
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RS_DME_DTP_PREDICT_STRUCTURE Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_e_t_class | TYPE STANDARD TABLE OF RSDMSD_CLASS_FREQ, " | |||
| lv_e_class_id | TYPE RSDMED_ENUMID, " | |||
| lv_i_inputdata | TYPE ANY, " | |||
| lv_item_cannot_be_classified | TYPE ANY, " | |||
| lv_e_pred_by | TYPE RSDMED_NODEID, " | |||
| lv_i_fraction | TYPE RSDMEM_WT_IND, " | |||
| lv_i_structure_name | TYPE RSDMEM_DATA_STORE, " | |||
| lv_i_node | TYPE RSDMED_NODEID. " |
|   CALL FUNCTION 'RS_DME_DTP_PREDICT_STRUCTURE' "Predict Class |
| EXPORTING | ||
| I_INPUTDATA | = lv_i_inputdata | |
| I_FRACTION | = lv_i_fraction | |
| I_STRUCTURE_NAME | = lv_i_structure_name | |
| I_NODE | = lv_i_node | |
| IMPORTING | ||
| E_CLASS_ID | = lv_e_class_id | |
| E_PRED_BY | = lv_e_pred_by | |
| TABLES | ||
| E_T_CLASS | = lt_e_t_class | |
| EXCEPTIONS | ||
| ITEM_CANNOT_BE_CLASSIFIED = 1 | ||
| . " RS_DME_DTP_PREDICT_STRUCTURE | ||
ABAP code using 7.40 inline data declarations to call FM RS_DME_DTP_PREDICT_STRUCTURE
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects