The work item display covers three tab pages (Basic data, Activities and Available objects) as standard. You can add another, individual tab page, which is displayed as the first tab page when you call the work item display.
You can define an individual tab page for an activity, a document generation or a user decision in a workflow definition. This additional tab page only appears when work items that represent this step are displayed.
This additional tab page can be used for the following purposes, among others:
Every activity, document generation and user decision can have its own customer-defined tab page in the work item display. In some cases, it can be useful to assign the same additional tab page to all activities, document generations and user decisions in a certain business process.
The screen 0100 is provided in the module pool SAPLSWL0 of the function group SWL0 as an example of a customer-specific and process-specific tab page. This example shows the most important data for the object leave request and demonstrates the three functions resubmit approval, add attachment and display request. This tab page is only suitable for an activity with an object of the type FORMABSENC in the container.
To test the functionality of the customer-defined tab page, proceed as follows:
You must have knowledge of programming screens. For further information, refer toScreen Painter.
To define your own tab page, create a module pool with a screen as a subscreen in the customer namespace.
The main screen (and the other tab pages) of the work item display are contained in an SAP module pool. Communication between the main screen and your tab page has been purposely restricted and can be easily implemented using a collection of macros. Insert the include<widisp> in the top include of your module pool in order to use these macros:
You can use the following macro instructions:
You usually want to offer data or functions on your tab page, which refer to the objects that are also referenced in the container of the work item. You can use the function moduleSAP_WAPI_GET_OBJECTS from the SAP WAPI interface to establish the objects associated with the work item. For examples of how to use this function module, refer to Importing the Leading Object.
You will find all of the released function modules of the SAP WAPI interface in the