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 |
|
|
SWL_WIDISP_SET_TITLE |
|
|
SWL_WIDISP_GET_WI_ID |
|
|
SWL_WIDISP_GET_OKCODE |
|
|
SWL_USER_WIDISP_SET_OKCODE |
|
|
SWL_WIDISP_CLEAR_OKCODE |
|
|
SWL_WIDISP_SET_DIRTY |
|
|
SWL_WIDISP_GET_DIRTY |
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.