BEFORE_ADD2_WFH

This user exit can be used to apply additional checks before a request leaves the TM Workflow Monitor by switching it to history

Location for activation

TM Server

Template function Module

/RTC/TM_TMPL_ADD_TO_WORKFLOW_H

Interface

Import Parameters

Internal table LT_TRKORR

Field

Description

Field

Description

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

Parameter

Type

Shorttext

LV_RETCODE

SY-SUBRC

0: Request moved to history
>0: Request will not be moved

LV_MSGTEXT

/rtc/tm_param-value

Message, that should appear in case of sending return code > 0.

 

Example

Requests should not be switched to history if colliding requests with older versions are not yet imported into Production.

Step 1

Copy the function module /RTC/TM_TMPL_ADD_TO_WORKFLOW_H
to a new function module

 Add the following code:

FIELD-SYMBOLS: <lw_trkorr>. DATA: lt_req TYPE TABLE OF /RTC/TM_REQ. * lt_trkorr can only contain 1 record here LOOP AT lt_trkorr ASSIGNING <lw_trkorr>. IF <lw_trkorr>-trkorr(3) = ‘EXT’. “SID of the third party dev system SELECT * FROM /RTC/TM_REQ INTO TABLE lt_req WHERE trkorr LIKE ‘EXT%’. IF sy-subrc = 0. Lv_retcode = 8. Lv_msgtext = ‘Sorry, at least 1 request is still waiting for import’. ENDIF. ENDIF. ENDLOOP.