IMPORT_MAIL
This user exit can be used to change the subject and/or content of mails which are sent out after the import of a request.
Location for activation
TM Server
Template function Module
/RTC/TM_TMPL_IMPORT_MAIL
Interface
Import Parameters
Internal table TT_IMPORT_PARAMS
This table contains name/value pairs with the required information…
NAME | VALUE |
---|---|
SYSTEM | System that has initiated the mail |
TRKORR | Transport Request |
OWNER | Author of the Transport Request |
PJ_NAME | Project that is assigned to the Transport Request |
SHORTTEXT | Short text of the Transport Request |
SUBJECT | Subject of the mail |
CONTENT | Content of the mail (there can be multiple records with NAME=CONTENT) |
Export Parameters
Internal table TT_EXPORT_PARAMS
You can set name/value pairs for that table to control the further notification flow…
NAME | VALUE |
---|---|
MODIFY_CONTENT | ‘REPLACE’: The original content of the mail will be replaced by the text provided by TT_EXPORT_PARAMS records with NAME=CONTENT ‘SUPPLEMENT’: The original content of the mail will be extended by the text provided by records with NAME=CONTENT |
CONTENT | <Any text>: Depending on the value for MODIFY_CONTENT this text will replace the original content or it will be added to the original content (There can be multiple records with NAME=CONTENT) |
MODIFY_SUBJECT | ‘X’: Subject will be replaced with the text provided by TT_EXPORT_PARAMS record with NAME=SUBJECT |
SUBJECT | <Any text>: If MODIFY_SUBJECT is set to ‘X’, the subject will be replaced by this value. |
Example
The customer wants to add a disclaimer to each import notification mail
Step 1 | Copy the function module /RTC/TM_TMPL_ IMPORT_MAIL to a new function module |
Add the following code:
Tt_export_params-name = ‘MODIFY_CONTENT’.
Tt_export_params-value = ‘SUPPLEMENT’.
append tt_export.
Tt_export_params-name = ‘CONTENT’.
Tt_export_params-value = <disclaimer_text1>.
append tt_export.
Tt_export_params-value = <disclaimer_text2>.
append tt_export.