ABAP OO Class Methods

IF_STW_ACTIVITY SAP Interface - StreamWork Activity







IF_STW_ACTIVITY 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_STW_ACTIVITY~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_STW_ACTIVITY 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_STW_ACTIVITY





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



CREATE_ITEM_INSTANCE - Create Item Instance
CREATE_TASK - Create Task
IF_STW_FEED_RESOURCE~FOLLOW - Follow
GET_CREATED_AT - Get Attribute "Created at"
GET_CREATOR - Get the Creator of an Activity
GET_DUE_DATE - Get Activity Attribute "Due Date"
IF_STW_FEED_RESOURCE~GET_FOLLOWERS - Get Followers
GET_ID - Get the Activity ID
GET_INVITATIONS - Get the Pending Participant Invitations of an Activity
GET_ITEMS - Get Items for the Activity
GET_LINK - Get the Link to an Activity
GET_NAME - Get the Activity Name
GET_OWNER - Get the Owner of the Activity
GET_PARTICIPANTS - Get the Participants of an Activity
GET_PRIVACY - Get Activity Attribute "Privacy"
GET_PURPOSE - Get Activity Description
GET_REMINDER - Get Activity Attribute "Reminder"
IF_STW_FEED_RESOURCE~GET_RESOURCE_FEED - Get Resource Feed
GET_SHARING - Get Activity Attribute "Sharing"
GET_STATUS - Get the Status of an Activity
GET_TAGS - Get Tags
GET_TASKS - Get Tasks
GET_UPDATED_AT - Get Attribute "Updated At"
GET_UPDATE_COUNT - Get Attribute "Update Count"
GET_VISIBILITY - Obsolete: Get Attribute "Visibility"
INVITE_PARTICIPANTS - Invite Participants to an Activity
IF_STW_FEED_RESOURCE~POST_STATUS_UPDATE - Post Status Update
REMOVE_PARTICIPANT - Remove a Participant from an Activity
RESET_EVENT_COUNTER - Reset the Update Counter for an Activity
SET_DUE_DATE - Set Due Date and Reminder of Activity
SET_NAME - Set Name
SET_OWNER - Set the Owner of the Activity
SET_PRIVACY - Set Activity Attribute "Privacy"
SET_SHARING - Set Activity Attribute "Sharing"
SET_STATUS - Set Status
IF_STW_FEED_RESOURCE~UNFOLLOW - Unfollow


IF_STW_ACTIVITY Attributes

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


NameDescriptionInitial Value
GC_DUE_DATE Gc Due Date
GC_INVITABLE num invitable of a activity
GC_PRIVACY Enum Privacy of a activty



GC_REMINDER Gc Reminder
GC_SHARING Enum Sharing of a activity
GC_STATUS Gc Status
GC_URL_TYPE Gc Url Type
GC_VISIBLITY Gc Visiblity




Events of the Class IF_STW_ACTIVITY

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