AFTER_ADD2_WFH
This user exit is called at every time after a request has been moved to the Transport Management workflow history, either through deletion or through status switch
Location for activation
TM Server
Template function Module
/RTC/TM_TMPL_ADD_TO_WORKFLOW_H
Interface
Import Parameters
Internal table LT_TRKORR
Field | Description |
---|---|
ACTION | ‘Delete’: Request was deleted from workflow |
TRKORR | Transport Request |
OWNER | Request Owner |
PJ_NAME | Project that is assigned to the Transport Request |
DESTI_NAME | Destination that is assigned to the Transport Request |
LEVEL_NAME | Name of the initial transport level after insertion |
Export Parameters
Parameter | Type | Shorttext |
---|---|---|
LV_RETCODE | SY-SUBRC | No effect here |
LV_MSGTEXT | /rtc/tm_param-value | No effect here |
Example
The IT Manager wants to be notified at every time, someone deletes a request from the TM workflow (as this is a critical activity, this makes sense )
Step 1 | Copy the function module /RTC/TM_TMPL_ADD_TO_WORKFLOW_H to a new function module |
Add the following code to the section “Begin of customer implementation”:
FIELD-SYMBOLS: <lw_trkorr>.
LOOP AT lt_trkorr ASSIGNING <lw_trkorr> WHERE action = ‘Deleted’.
* The email notification using <lw_trkorr>-trkorr
* End of notification
* Note: The short text of a request is not provided here. If needed for the mail text:
* SELECT SINGLE as4text FROM /RTC/TM_IMREQ INTO lv_as4text
* WHERE trkorr = <lw_trkorr>-trkorr.
ENDLOOP.