ABAP OO Class Methods

IF_LRM_RE_EXEC SAP Interface - IRM: Rule Execution







IF_LRM_RE_EXEC is a standard SAP interface, see below for any documentation including details of methods, attributes, events etc. Interfaces are defined much the same as a class using the same transactions but act a bit like a template (in none OO terms). For example, a class would implement the interface and then inherit all of the methods etc from it. This provides a mechanism for unrelated objects to use a set of common behaviours and functionality.


You may have seen this already without knowing what it was, within SAP have you ever seen the method name prefixed by the name of an interface such as IF_LRM_RE_EXEC~METHOD_NAME . This means that the class has implemented an interface and that this method has been inherited from it.


For further relevant information about this interface enter IF_LRM_RE_EXEC into the relevant SAP transactions such as SE24, SE80. Also see the Resource section below to view other useful tips, screenshots, links and general information related to this SAP interface and its methods. Or even add your own for future reference



Methods of IF_LRM_RE_EXEC





A method is a coding block that performs a certain procedure (i.e. ABAP functionality) on an object within the overall SAP class. In simple terms if the object is an SAP database table a method could be the procedure to add a record or to delete a record. If you are new to OO in many respects, the implementation of a method is similar to a function module and can be called in a very similar way using CALL METHOD.

Instead of "CALL FUNCTION", Methods are referenced using the following syntax: CALL METHOD CL_ABAP_CHAR_UTILITIES=>methodname EXPORTING/IMPORTING...



DELETE_DEC_TAB_FOR_POLICY - Delete Decision Table for a Policy
EXECUTE - Execute Calculation and Output Results
GET_CONDITIONS_FOR_RULE - Output All Available Conditions for a Rule
GET_POLICY_NAME - Determine Name of Policy of this Instance
GET_RULES_FOR_POLICY - Output All Available Rules for a Policy
GET_RULE_STRUCTURE - Determine Field Name(s) and Corr. Type Information for Rule
SET_CONDITIONS_FOR_RULE - Change, Insert, Delete Conditions for a Rule
SET_FIELD_VALUE_TAB - Set Values for Which the Rule Is to Be Determined
SET_RULES_FOR_POLICY - Change, Insert, Delete Rules for a Policy
TRANSPORT_DEC_TAB_FOR_POLICY - Transport Decision Table for a Policy


IF_LRM_RE_EXEC Attributes

List of attributes within class IF_LRM_RE_EXEC. These can be referenced using the following syntax IF_LRM_RE_EXEC=>. Although depending on where you are inserting the ABAP code you do need to check if the attribute is public or private.


NameDescriptionInitial Value
MV_ARCHIVE_KEY Key for Archive File
MV_COND_TABNAME Table Name
MV_OBJECT_CATEGORY IRM: Object Category
MV_OBJECT_TYPE IRM: Object Type Name
MV_POLICY_CATEGORY IRM: Policy Category
MV_POLICY_ORIGIN IRM: Policy Origin
MV_POLICY_TYPE IRM: Policy Type
MV_RESULT_STRUCTURE Table Name
MV_RULE_TABNAME Table Name




Events of the Class IF_LRM_RE_EXEC

Events are created within your class using special event handler methods. These must be registered at runtime for the event and can then be triggered using the ABAP syntax: RAISE EVENT EXPOTING...