ABAP OO Class Methods


IF_WB2_BL_ENHANCEMENTS 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_WB2_BL_ENHANCEMENTS~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_WB2_BL_ENHANCEMENTS 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


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...

AT_FIELD_SELECTION - Field Selection
AT_ITEM_DELETION - Carry Out Deletion of an Item
AT_READ - Prepare Data After Reading
CHANGE_AT_UPDATE - Prepare Data for Saving
CHANGE_BEFORE_UPDATE - Adjust Data Before Saving
CHANGE_BUSINESS_DATA - Change Business Data
CHANGE_HEADER_DATA - Change Header Data
CHANGE_ITEM_DATA - Change Item Data
CHANGE_PRICING_HEADER - Extend Communication Structure KOMK
CHANGE_PRICING_ITEM - Extend Communication Structure KOMP
CHANGE_SCHEDULE_DATA - Change Schedule Lines
CHECK_AT_UPDATE - Last Checks for Saving after number change
CHECK_BEFORE_UPDATE - Last Checks for Saving
CHECK_BUSINESS_DATA - Check Business Data
CHECK_DELETE_TC_ITEM - Check Deletion of an Item
CHECK_HEADER_DATA - Check Header Data
CHECK_ITEM_DATA - Check Item Data
CHECK_RELEASE_MM - Check if New Release is Necessary - MM Side
CHECK_RELEASE_SD - Check if New Release is Necessary - SD Side
CHECK_SCHEDULE_DATA - Check Schedule Lines
DATALOSS_CHECK - Check Loss of Data
DELETION_CHECK - Check if Document Can Be Deleted
FINAL_CHANGE_AT_UPDATE - Last data Adjustments before Saving
LOCK_FOLLOW_ON_DOCS_FROM_TC - Locking of follow-on Document
NUMBER_CHANGE - Switch Document Numbers
REFRESH - Reset Data
SAVE_CHECK - Check Save
SWU_OBJECT_PUBLISH - Publish Business Object


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

Events of the Class IF_WB2_BL_ENHANCEMENTS

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...