Programming a Step-Specific Tab Page

Use

To define your own tab page, you 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 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>.

include <widisp>.
         

Macro

More information:

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 Current Work Item

SWL_WIDISP_GET_OKCODE

Getting the Selected Function Code

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, see Importing the Leading Object.