This user exit can be used e.g. to force developers to provide mandatory information for a transport request before it can be exported via SE01, SE09, SE10. It is called after the selection of the project/destination for the request.
Location for activation
DEVELOPMENT SYSTEM
Template function Module
/RTC/TM_TMPL_ AFTER_WF_ASSIGNM
Interface
Import Parameters
Internal Table LT_TRKORR
(only contains 1 record)
Field
Description
TRKORR
Transport Request
TRFUNCTION
Type of the Transport Request (e.g. ‘K’=Workbench, ‘W’=Customizing, ‘T’=Transport of Copies)
TRSTATUS
Status of the transport request following E070-TRSTATUS
TARSYSTEM
Target system of the request in SAP TMS
KORRDEV
‚SYST’ = Workbench, ‚CUST’ = Customizing
AS4USER
Owner of the request
AS4DATE
Last changed date
AS4TIME
Last changed time
STRKORR
If TRKORR is a task, STRKORR contains the transport request the task is assigned to
TEXT
Short text
PROJECT
Project that is assigned to the Request
DESTINATION
Destination that is assigned to the Request
PACKAGE
Package, the request belongs to
SCLIENT
Source client of the Request
Internal Table LT_E070A
Field
Description
TRKORR
Transport Request
ATTRIBUTE
SAP Attributes, that is assigned to the Request
REFERENCE
SAP Attribute value, that is assigned to the Request
POS
Position of the SAP Attribute
Export Parameters
Parameter
Type
Shorttext
LV_RETCODE
SY-SUBRC
0: Export process continues > 0: Export process is cancelled
LV_MSGTEXT
/rtc/tm_param-value
Message, that should appear in case of sending return code > 0.
Example
Some additional checks should be executed if the request is assigned to project HR_01
Step 1
Copy the function module /RTC/TM_TMPL_ AFTER_WF_ASSIGNM to a new function module
Add the following code to the section “Begin of customer implementation”:
IF lt_trkorr-project = ‘HR_01’.
* Do the check
ENDIF.
IF lv_check_rc > 0.
Lv_retcode = 8.
Lv_msgtext = ‘Check failed.’.
ENDIF.