
Getting the ID of the Current Work Item
Use
In order to read work item data or execute functions on the work item on your tab page, you need the ID of the work item currently displayed.
This ID must be requested from the SAP main screen.
Features
The relevant macro is:
SWL_WIDISP_GET_WI_ID
The macro could be implemented as follows:
[...]
clear g_wi_id.
swl_widisp_get_wi_id g_wi_id.
[...]