BEFORE_ADD2_PQ

This user exit can be used to integrate individual checks before a request can be added to the personal queue.

Location for activation

TM Server

Template function Module

/RTC/TM_TMPL_ BEFORE_ADD2_PQ

Interface

Import Parameters

Internal Table LT_TRKORR

Field

Description

Field

Description

TRKORR

Transport Request

R3_SID

Target system for the request

R3_CLIENT

Target client for the request

SHORTTEXT

Short text of the Transport Request

UMODE

Unconditional mode used for the import

PJ_NAME

Project that is assigned to the Transport Request

DESTI_NAME

Destination that is assigned to the Transport Request

LEVEL_NAME

Current transport level after insertion

STATUS

Current status of the request

S_CLIENT

Source client of the Transport Request

EXP_DATE

Reference date assigned to the Transport Request (usually the export date)

EXP_TIME

Reference time assigned to the Transport Request (usually the export time)

EXP_DATE_ORG

Export date of the Transport Request

EXP_TIME_ORG

Export time of the Transport Request

RELATION

“X” = The Request has dependencies to other Requests

 

 

Export Parameters

Field

 

Description

Field

 

Description

LV_RETCODE

SY-SUBRC

0: Request will be added to personal queue
> 0: Request will not be added

LV_MSGTEXT

/rtc/tm_param-value

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

 

Example

Display the number of transport requests which are currently in the respective package…

Step 1

Copy the function module /RTC/TM_TMPL_ BEFORE_ADD2_PQ to a new function module

 Add the following code:

FIELD-SYMBOLS: <lw_trkorr>. DATA: * lt_trkorr can only contain 1 record here LOOP AT lt_trkorr ASSIGNING <lw_trkorr>. SELECT COUNT(*) FROM /RTC/TM_REQ INTO lv_count WHERE tm_package = <lw_trkorr>-trkorr. ENDLOOP.