Programming a Step-Specific Tab Page
To define your own tab page, you create a
module pool with a screen as a subscreen in the customer namespace.
Screen
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.
All released function modules of the SAP WAPI interface are in the development class