SAP RS_DME_ADO_GET_RULES_CHECK1 Function Module for Retreiving association rules









RS_DME_ADO_GET_RULES_CHECK1 is a standard rs dme ado get rules check1 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Retreiving association rules 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 ado get rules check1 FM, simply by entering the name RS_DME_ADO_GET_RULES_CHECK1 into the relevant SAP transaction such as SE37 or SE38.

Function Group: RS_DME_ASSO_DISC_OUT
Program Name: SAPLRS_DME_ASSO_DISC_OUT
Main Program: SAPLRS_DME_ASSO_DISC_OUT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RS_DME_ADO_GET_RULES_CHECK1 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_ADO_GET_RULES_CHECK1'"Retreiving association rules
EXPORTING
IV_MODEL_ID = "Analytical Mining Model GUID
* IV_SUP = "Support of the Itemset
* IV_CONF = "Confidence of the association rule
* IV_LIFT = "Lift of the association rule
* IV_N = 1000 "Top N
* IV_LEAD_DEPTH = "Maximum no. of leading items
* IV_DEPN_DEPTH = "Maximum no. of depending items
* IV_MAX_RULES = 10000 "

IMPORTING
EV_NO_RULES = "

CHANGING
* CV_CURR_RULE_NO = "Association rule ID

TABLES
* IT_LEAD_ITEMS = "Strucrure for Itemset
* IT_DEPN_ITEMS = "Strucrure for Itemset
ET_RULES = "Association rules
ET_LEAD_DET = "Leading items
ET_DEPN_DET = "Depending Items
ET_RETURN = "Return parameter
* IT_SORT_COLS = "Mining columns
.



IMPORTING Parameters details for RS_DME_ADO_GET_RULES_CHECK1

IV_MODEL_ID - Analytical Mining Model GUID

Data type: RSDMEM_MODEL
Optional: No
Call by Reference: No ( called with pass by value option)

IV_SUP - Support of the Itemset

Data type: RSDMEA_SUPPORT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_CONF - Confidence of the association rule

Data type: RSDMEA_CONFIDENCE
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_LIFT - Lift of the association rule

Data type: RSDMEA_LIFT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_N - Top N

Data type: RSDMEA_TOPN
Default: 1000
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_LEAD_DEPTH - Maximum no. of leading items

Data type: RSDMEA_LEAD_DEPTH
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_DEPN_DEPTH - Maximum no. of depending items

Data type: RSDMEA_DEPN_DEPTH
Optional: Yes
Call by Reference: No ( called with pass by value option)

IV_MAX_RULES -

Data type: I
Default: 10000
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RS_DME_ADO_GET_RULES_CHECK1

EV_NO_RULES -

Data type: I
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for RS_DME_ADO_GET_RULES_CHECK1

CV_CURR_RULE_NO - Association rule ID

Data type: RSDMEA_RULE_ID
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RS_DME_ADO_GET_RULES_CHECK1

IT_LEAD_ITEMS - Strucrure for Itemset

Data type: RSDMSA_ITEMSET
Optional: Yes
Call by Reference: Yes

IT_DEPN_ITEMS - Strucrure for Itemset

Data type: RSDMSA_ITEMSET
Optional: Yes
Call by Reference: Yes

ET_RULES - Association rules

Data type: RSDMSA_RULES
Optional: No
Call by Reference: Yes

ET_LEAD_DET - Leading items

Data type: RSDMSA_LEAD_DET
Optional: No
Call by Reference: Yes

ET_DEPN_DET - Depending Items

Data type: RSDMSA_DEPN_DET
Optional: No
Call by Reference: Yes

ET_RETURN - Return parameter

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

IT_SORT_COLS - Mining columns

Data type: RSDMSA_MIN_COLS
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for RS_DME_ADO_GET_RULES_CHECK1 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:
lv_ev_no_rules  TYPE I, "   
lv_iv_model_id  TYPE RSDMEM_MODEL, "   
lt_it_lead_items  TYPE STANDARD TABLE OF RSDMSA_ITEMSET, "   
lv_cv_curr_rule_no  TYPE RSDMEA_RULE_ID, "   
lv_iv_sup  TYPE RSDMEA_SUPPORT, "   
lt_it_depn_items  TYPE STANDARD TABLE OF RSDMSA_ITEMSET, "   
lv_iv_conf  TYPE RSDMEA_CONFIDENCE, "   
lt_et_rules  TYPE STANDARD TABLE OF RSDMSA_RULES, "   
lv_iv_lift  TYPE RSDMEA_LIFT, "   
lt_et_lead_det  TYPE STANDARD TABLE OF RSDMSA_LEAD_DET, "   
lv_iv_n  TYPE RSDMEA_TOPN, "   1000
lt_et_depn_det  TYPE STANDARD TABLE OF RSDMSA_DEPN_DET, "   
lt_et_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lv_iv_lead_depth  TYPE RSDMEA_LEAD_DEPTH, "   
lt_it_sort_cols  TYPE STANDARD TABLE OF RSDMSA_MIN_COLS, "   
lv_iv_depn_depth  TYPE RSDMEA_DEPN_DEPTH, "   
lv_iv_max_rules  TYPE I. "   10000

  CALL FUNCTION 'RS_DME_ADO_GET_RULES_CHECK1'  "Retreiving association rules
    EXPORTING
         IV_MODEL_ID = lv_iv_model_id
         IV_SUP = lv_iv_sup
         IV_CONF = lv_iv_conf
         IV_LIFT = lv_iv_lift
         IV_N = lv_iv_n
         IV_LEAD_DEPTH = lv_iv_lead_depth
         IV_DEPN_DEPTH = lv_iv_depn_depth
         IV_MAX_RULES = lv_iv_max_rules
    IMPORTING
         EV_NO_RULES = lv_ev_no_rules
    CHANGING
         CV_CURR_RULE_NO = lv_cv_curr_rule_no
    TABLES
         IT_LEAD_ITEMS = lt_it_lead_items
         IT_DEPN_ITEMS = lt_it_depn_items
         ET_RULES = lt_et_rules
         ET_LEAD_DET = lt_et_lead_det
         ET_DEPN_DET = lt_et_depn_det
         ET_RETURN = lt_et_return
         IT_SORT_COLS = lt_it_sort_cols
. " RS_DME_ADO_GET_RULES_CHECK1




ABAP code using 7.40 inline data declarations to call FM RS_DME_ADO_GET_RULES_CHECK1

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.

 
 
 
 
 
 
 
 
 
 
DATA(ld_iv_n) = 1000.
 
 
 
 
 
 
DATA(ld_iv_max_rules) = 10000.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!