Start of Content Area

Background documentation Programming a Step-Specific Tab Page  Locate the document in its SAP Library structure

To define your own tab page, you create a module pool with a screen as a subscreen in the customer namespace.

Example

Screen 0100 is provided in program SAPLSWL0 in function group SWL0 . This example shows the most important data for the leave request object and demonstrates the three functions Resubmit approval, Create attachment and Display request. Use this example for an activity that refers to the method APPROVE of the object type FORMABSENC .

The main screen (and the other tab pages) of the work item display are contained in an ABAP module pool. Communication between the main screen and your customer-defined tab page has purposely been kept simple and is easy to implement using a set of macros. Insert the include <widisp> in the top include of your module pool in order to use these macros:

include <widisp>.

Overview of usable macros

Macro

For further information, refer to:

SWL_WIDISP_GET_INIT

Getting the Initial Screen Run

SWL_WIDISP_SET_TITLE

Setting a Tab Page Title

SWL_WIDISP_GET_WI_ID

Getting the ID of the Work Item Currently Displayed

SWL_WIDISP_GET_OKCODE

Getting the Function Code Currently Selected

SWL_USER_WIDISP_SET_OKCODE

Setting a Function Code

SWL_WIDISP_CLEAR_OKCODE

Deleting a Function Code

SWL_WIDISP_SET_DIRTY

Setting a "Dirty Flag"

SWL_WIDISP_GET_DIRTY

Getting a "Dirty Flag"

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

Note

All released function modules of the SAP WAPI interface are in the development class SWR .