SAP ABAP Class CL_WER_RULE (Rule object consisting of an entry condition and an action)
Hierarchy
SAP_APPL (Software Component) Logistics and Accounting
   LO-MD-MM (Application Component) Material Master
     WER_BUSINESS (Package) Business Layer
Meta Relationship - Using
# Relationship type Using Short Description Created on
1 Inheritance (c INHERITING FROM c_ref)  CL_WER_ELEMENT Implementation base for FDT adapters 20060818
Properties
Class CL_WER_RULE  
Short Description Rule object consisting of an entry condition and an action    
Super Class CL_WER_ELEMENT Implementation base for FDT adapters 
Instantiability of a Class 2  Public 
Final    
General Data
Message Class    
Program status     
Category 0   
Package WER_BUSINESS   Business Layer 
Created 20060710   SAP 
Last change 20100310   SAP 
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_FDT_TYPES Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_WER_RULE has no interface implemented.
Friends
Class CL_WER_RULE has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 C_ATTRIBUTE_CONDITION Constant Public Type reference (TYPE) WER_ATTRIBUTE_NAME 'RULE_CONDITION' Name of attribute: mr_condition 20061020
2 C_ATTRIBUTE_FALSE_ACTION Constant Public Type reference (TYPE) WER_ATTRIBUTE_NAME 'RULE_FALSE_ACTION' Name of attribute: mr_false_action 20061020
3 C_ATTRIBUTE_PROCESS_STATUS Constant Public Type reference (TYPE) WER_ATTRIBUTE_NAME 'PROCESS_STATUS' Name of attribute: mr_process_status 20061024
4 C_ATTRIBUTE_TRUE_ACTION Constant Public Type reference (TYPE) WER_ATTRIBUTE_NAME 'RULE_TRUE_ACTION' Name of attribute: mr_true_action 20061020
5 C_ATTRIBUTE_WORKITEM_KEY Constant Public Type reference (TYPE) WER_ATTRIBUTE_NAME 'RULE_ITEM_KEY' Name of attribute: m_item_field_key 20061107
6 MR_CONDITION Instance attribute Private Object reference (TYPE REF TO) CL_WER_CONDITION Condition of the rule 20060914
7 MR_CONDITION_DB Instance attribute Private Object reference (TYPE REF TO) CL_WER_CONDITION DB Vesrion of the condition 20061001
8 MR_FALSE_ACTION Instance attribute Private Object reference (TYPE REF TO) IF_WER_ACTION Action processed if the condition is false 20061019
9 MR_FALSE_ACTION_DB Instance attribute Private Object reference (TYPE REF TO) IF_WER_ACTION DB version of the false action 20061019
10 MR_RULE Instance attribute Private Object reference (TYPE REF TO) IF_FDT_RULE FDT: Rule 20060914
11 MR_TRUE_ACTION Instance attribute Private Object reference (TYPE REF TO) IF_WER_ACTION Action processed if the condition is true 20061019
12 MR_TRUE_ACTION_DB Instance attribute Private Object reference (TYPE REF TO) IF_WER_ACTION DB version of the true action 20061019
13 MT_TEMPLATE_REFERENCE Instance attribute Private Type reference (TYPE) WER_TEMPLATE_REFERENCE_TTY List of template references 20070109
14 M_ITEM Instance attribute Private Type reference (TYPE) WER_ITEM_ID Workitem used in the rule elements 20061001
15 M_ITEM_DB Instance attribute Private Type reference (TYPE) WER_ITEM_ID DB value of the used workitem 20061017
16 M_ITEM_EDITABLE Instance attribute Private Type reference (TYPE) WER_BOOL If True(X), work item is editable 20061023
17 M_ITEM_KEY_FIELD Instance attribute Private Type reference (TYPE) WER_ELEMENT_ID Element unique identifier 20061107
18 M_ITEM_KEY_FIELD_DB Instance attribute Private Type reference (TYPE) WER_ELEMENT_ID Element unique identifier 20061107
19 M_TRUE_ACTION_PROCESS_STATUS Instance attribute Private Type reference (TYPE) WER_PROCESS_STATUS Status of a process: correct, item error or general error 20070301
Methods
# Method Level Visibility Method type Description Created on
1 CHECK_ITEM Instance method Public Method Check whether a work item can be assigned to the rule 20061017
2 CLONE_RULE_ELEMENT Instance method Private Method Returns a clone of a rule element 20060922
3 CONSTRUCTOR Instance method Public Constructor 20060818
4 DELETE_UNUSED_OBJECTS Instance method Private Method Delete all the unused rule objects 20061024
5 GET_ASSIGNMENT_MAPPING Instance method Public Method Get the assignment to data object mappings 20061013
6 GET_CONDITION Instance method Public Method Returns the reference to the condition object 20061019
7 GET_ELEMENT_OBJECTS Instance method Private Method Returns the element objects 20070123
8 GET_FALSE_ACTION Instance method Public Method Returns the reference to the false action object 20061019
9 GET_ITEM Instance method Public Method Returns work item used in the rule 20060918
10 GET_ITEM_KEY Instance method Public Method Returns the item key field id 20061107
11 GET_TRUE_ACTION Instance method Public Method Returns the reference to the true action object 20061019
12 GET_TRUE_ACTION_PROCESS_STATUS Instance method Public Method Set true action process status 20061107
13 GET_USED_DATA_OBJECTS Instance method Public Method Returns the list of used data objects 20061025
14 HAS_CONDITION Instance method Public Method Returns true if the rule has a condition 20061019
15 HAS_FALSE_ACTION Instance method Public Method Returns true if the rule has a false action 20061019
16 HAS_TRUE_ACTION Instance method Public Method Returns true if the rule has a true action 20061019
17 IS_ACTIVE Instance method Private Method Returns true if the rule has an active version 20070222
18 ITEM_CHANGED Instance method Public Method Returns true if the work item field has changed 20061018
19 ITEM_KEY_CHANGED Instance method Public Method Returns true if the work item field has changed 20061107
20 LOAD_DATA Instance method Private Method Load data 20060914
21 ON_ASSIGNMENT_CHANGED Instance method Private Event handling method Handles on assignment change events (condition, action) 20061023
22 PROCESS Instance method Public Method Calls for the processing of the FDT rule 20061024
23 REMOVE_ITEM_KEY Instance method Public Method Removes the item key field 20070109
24 SET_CONDITION_BY_NAME Instance method Public Method Set the rule condition using a reference to a condition 20060922
25 SET_CONDITION_BY_REFERENCE Instance method Public Method Set the rule true condition uisng a condition name 20060922
26 SET_FALSE_ACTION_BY_NAME Instance method Public Method Set the rule false action using an action name 20061019
27 SET_FALSE_ACTION_BY_REFERENCE Instance method Public Method Set the rule false action using a reference to an action 20061019
28 SET_ITEM Instance method Public Method Set work item used in the rule 20060918
29 SET_ITEM_KEY Instance method Public Method Sets the item key field id 20061107
30 SET_TRUE_ACTION_BY_NAME Instance method Public Method Set the rule true action using an action name 20060922
31 SET_TRUE_ACTION_BY_REFERENCE Instance method Public Method Set the rule true action using a reference to an action 20060922
32 SET_TRUE_ACTION_PROCESS_STATUS Instance method Public Method Set true action process status 20061107
33 UPDATE_ASSIGNMENT_STATUS Instance method Private Method Delete all the unused rule elements 20061024
34 UPDATE_ITEM_EDIT_STATUS Instance method Public Method Updates the item edit status 20061023
Events
# Event Type Visibility Description Created on
1 ASSIGNMENT_CHANGED Instance Event
(0)
Public
(2)
Event is raised when an assignment change is made 20061107
Types
Class CL_WER_RULE has no local type.
Method Signatures

Method CHECK_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ITEM Call by reference Type reference (TYPE) WER_ITEM_ID Unique work item identifier (GUID) 20061017
# Exception Resumable Description Created on
1 CX_WER_DATA_INVALID Invalid data supplied 20061019
2 CX_WER_DATA_NOT_FOUND Value does not exist 20061019

Method CLONE_RULE_ELEMENT Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_NAME Call by reference Type reference (TYPE) WER_ELEMENT_NAME Element name 20060922
2 Importing I_TYPE Call by reference Type reference (TYPE) WER_ELEMENT_TYPE Element type 20060922
3 Returning RR_CLONE Value transfer Object reference (TYPE REF TO) IF_WER_RULE_ELEMENT Rule element base 20060922
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Authorization error 20061001
2 CX_WER_DATA_INVALID Invalid data supplied 20061001
3 CX_WER_DATA_NOT_FOUND Value does not exist 20061001
4 CX_WER_OPERATION_FAILED Operation failed exception 20061001

Method CONSTRUCTOR Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_RULE Call by reference Object reference (TYPE REF TO) IF_FDT_RULE FDT: Rule 20060914
2 Importing I_CONFIGURATION Call by reference Type reference (TYPE) WER_BOOL Boolean: true = X and false = SPACE 20060818
3 Importing I_SYSTEM_ELEMENT Call by reference Type reference (TYPE) WER_BOOL [Obsolete] Boolean: true = X and false = SPACE 20060818

Method CONSTRUCTOR on class CL_WER_RULE has no exception.

Method DELETE_UNUSED_OBJECTS Signature

Method DELETE_UNUSED_OBJECTS on class CL_WER_RULE has no parameter.
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Authorization error 20061024
2 CX_WER_OPERATION_FAILED Operation failed exception 20061024

Method GET_ASSIGNMENT_MAPPING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_ITEM_FIELD_MAP Call by reference Type reference (TYPE) WER_ITEM_FIELD_MAP_TTY Mapping of assigned item field and data objects 20061025
2 Exporting ET_RULE_ELEMENT_MAP Call by reference Type reference (TYPE) WER_RULE_ELEMENT_MAP_TTY Mapping of assigned rule element and data objects 20061013

Method GET_ASSIGNMENT_MAPPING on class CL_WER_RULE has no exception.

Method GET_CONDITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RR_CONDITION Value transfer Object reference (TYPE REF TO) CL_WER_CONDITION Adapter for IF_FDT_AND_OR implementors 20061019

Method GET_CONDITION on class CL_WER_RULE has no exception.

Method GET_ELEMENT_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RT_ELEMENT_OBJECT Value transfer Object reference (TYPE REF TO) WER_ELEMENT_OBJECT_TTY List of element objects 20070123

Method GET_ELEMENT_OBJECTS on class CL_WER_RULE has no exception.

Method GET_FALSE_ACTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RR_ACTION Value transfer Object reference (TYPE REF TO) IF_WER_RULE_ELEMENT Rule element 20061019

Method GET_FALSE_ACTION on class CL_WER_RULE has no exception.

Method GET_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_ITEM Value transfer Type reference (TYPE) WER_ITEM_ID Unique work item identifier (GUID) 20060918

Method GET_ITEM on class CL_WER_RULE has no exception.

Method GET_ITEM_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_KEY_FIELD Value transfer Type reference (TYPE) WER_ITEM_FIELD_ID Element unique identifier 20061107

Method GET_ITEM_KEY on class CL_WER_RULE has no exception.

Method GET_TRUE_ACTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RR_ACTION Value transfer Object reference (TYPE REF TO) IF_WER_RULE_ELEMENT Rule element 20061019

Method GET_TRUE_ACTION on class CL_WER_RULE has no exception.

Method GET_TRUE_ACTION_PROCESS_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_PROCESS_STATUS Value transfer Type reference (TYPE) WER_PROCESS_STATUS Status of a process: correct, item error or general error 20061107

Method GET_TRUE_ACTION_PROCESS_STATUS on class CL_WER_RULE has no exception.

Method GET_USED_DATA_OBJECTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RR_DATA_OBJECTS Value transfer Object reference (TYPE REF TO) WER_DATA_OBJECT_TTY List of element identificators 20061025

Method GET_USED_DATA_OBJECTS on class CL_WER_RULE has no exception.

Method HAS_CONDITION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_HAS_CONDITION Value transfer Type reference (TYPE) WER_BOOL Boolean: true = X and false = SPACE 20061019

Method HAS_CONDITION on class CL_WER_RULE has no exception.

Method HAS_FALSE_ACTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_HAS_FALSE_ACTION Value transfer Type reference (TYPE) WER_BOOL Boolean: true = X and false = SPACE 20061019

Method HAS_FALSE_ACTION on class CL_WER_RULE has no exception.

Method HAS_TRUE_ACTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_HAS_TRUE_ACTION Value transfer Type reference (TYPE) WER_BOOL Boolean: true = X and false = SPACE 20061019

Method HAS_TRUE_ACTION on class CL_WER_RULE has no exception.

Method IS_ACTIVE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_ACTIVE Value transfer Type reference (TYPE) WER_BOOL Boolean: true = X and false = SPACE 20070222

Method IS_ACTIVE on class CL_WER_RULE has no exception.

Method ITEM_CHANGED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_CHANGED Value transfer Type reference (TYPE) WER_BOOL Boolean: true = X and false = SPACE 20061018

Method ITEM_CHANGED on class CL_WER_RULE has no exception.

Method ITEM_KEY_CHANGED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning R_CHANGED Value transfer Type reference (TYPE) WER_BOOL Boolean: true = X and false = SPACE 20061107

Method ITEM_KEY_CHANGED on class CL_WER_RULE has no exception.

Method LOAD_DATA Signature

Method LOAD_DATA on class CL_WER_RULE has no parameter.
Method LOAD_DATA on class CL_WER_RULE has no exception.

Method ON_ASSIGNMENT_CHANGED Signature

Method ON_ASSIGNMENT_CHANGED on class CL_WER_RULE has no parameter.
Method ON_ASSIGNMENT_CHANGED on class CL_WER_RULE has no exception.

Method PROCESS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_CONTEXT Call by reference Object reference (TYPE REF TO) IF_WER_CONTEXT Context interface for data reference support 20061024
2 Importing IR_PROCESSOR Call by reference Object reference (TYPE REF TO) IF_FDT_PROCESSOR FDT: Processor 20061024
3 Importing I_TIME_STAMP Call by reference Type reference (TYPE) IF_FDT_TYPES=>TIMESTAMP 20061024
# Exception Resumable Description Created on
1 CX_WER_RUNTIME Rule Engine execution error 20061024

Method REMOVE_ITEM_KEY Signature

Method REMOVE_ITEM_KEY on class CL_WER_RULE has no parameter.
Method REMOVE_ITEM_KEY on class CL_WER_RULE has no exception.

Method SET_CONDITION_BY_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_NAME Call by reference Type reference (TYPE) WER_ELEMENT_NAME 20060922
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Authorization error 20060922
2 CX_WER_DATA_INVALID Invalid data supplied 20061001
3 CX_WER_DATA_NOT_FOUND Value does not exist 20060922
4 CX_WER_OPERATION_FAILED Operation failed exception 20060922

Method SET_CONDITION_BY_REFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_CONDITION Call by reference Object reference (TYPE REF TO) CL_WER_CONDITION Adapter for IF_FDT_AND_OR implementors 20060922
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Authorization error 20061001
2 CX_WER_OPERATION_FAILED Operation failed exception 20061001

Method SET_FALSE_ACTION_BY_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_NAME Call by reference Type reference (TYPE) WER_ELEMENT_NAME Element name 20061019
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Authorization error 20061019
2 CX_WER_DATA_INVALID Invalid data supplied 20061019
3 CX_WER_DATA_NOT_FOUND Value does not exist 20061019
4 CX_WER_OPERATION_FAILED Operation failed exception 20061019

Method SET_FALSE_ACTION_BY_REFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_REFERENCE_ACTION Call by reference Object reference (TYPE REF TO) IF_WER_RULE_ELEMENT Rule element 20061019
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Value does not exist 20061019
2 CX_WER_OPERATION_FAILED Operation failed exception 20061019

Method SET_ITEM Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_ITEM Call by reference Type reference (TYPE) WER_ITEM_ID Unique work item identifier (GUID) 20061001
# Exception Resumable Description Created on
1 CX_WER_DATA_INVALID Invalid data supplied 20061017
2 CX_WER_DATA_NOT_FOUND Value does not exist 20061017

Method SET_ITEM_KEY Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_KEY_FIELD Call by reference Type reference (TYPE) WER_ELEMENT_ID Element unique identifier 20061107
# Exception Resumable Description Created on
1 CX_WER_DATA_NOT_FOUND Value does not exist 20061107
2 CX_WER_OPERATION_FAILED Operation failed exception 20061107

Method SET_TRUE_ACTION_BY_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_NAME Call by reference Type reference (TYPE) WER_ELEMENT_NAME Element name 20060922
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Authorization error 20060922
2 CX_WER_DATA_INVALID Invalid data supplied 20061001
3 CX_WER_DATA_NOT_FOUND Value does not exist 20060922
4 CX_WER_OPERATION_FAILED Operation failed exception 20060922

Method SET_TRUE_ACTION_BY_REFERENCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IR_REFERENCE_ACTION Call by reference Object reference (TYPE REF TO) IF_WER_RULE_ELEMENT Rule element 20060922
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Value does not exist 20061001
2 CX_WER_OPERATION_FAILED Operation failed exception 20061001

Method SET_TRUE_ACTION_PROCESS_STATUS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing I_PROCESS_STATUS Call by reference Type reference (TYPE) WER_PROCESS_STATUS Status of a process: correct, item error or general error 20061107
# Exception Resumable Description Created on
1 CX_WER_DATA_INVALID Invalid data supplied 20061109

Method UPDATE_ASSIGNMENT_STATUS Signature

Method UPDATE_ASSIGNMENT_STATUS on class CL_WER_RULE has no parameter.
# Exception Resumable Description Created on
1 CX_WER_AUTHORIZATION Authorization error 20061024
2 CX_WER_OPERATION_FAILED Operation failed exception 20061024

Method UPDATE_ITEM_EDIT_STATUS Signature

Method UPDATE_ITEM_EDIT_STATUS on class CL_WER_RULE has no parameter.
Method UPDATE_ITEM_EDIT_STATUS on class CL_WER_RULE has no exception.
Event Signatures

Event ASSIGNMENT_CHANGED Signature
Event ASSIGNMENT_CHANGED on class CL_WER_RULE has no parameter.
History
Last changed by/on SAP  20100310 
SAP Release Created in 700