BADI_PACKAGE_INFO

This user exit can be used to provide one extra column with customer specific information in the selection screen for packages (before export)

Location for activation

Development system

Template function Module

/RTC/TM_TMPL_ BADI_PACKAGE_INFO

Interface

Import Parameters

Internal Table LT_TRKORR

Field

Description

Field

Description

TRKORR

Package Name

OWNER

Owner of the package

PJ_NAME

Project of the package

DESTI_NAME

Destination of the package

LEVEL_NAME

Current transport level of the package

 

Export Parameters

Parameter

Type

Shorttext

Parameter

Type

Shorttext

LV_COL_HEADER

CHAR30

Header name of the additional column

LV_TEXT

/rtc/tm_param-value

Text/Value for the additional field

 
Example

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

Step 1

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

Add the following code:

FIELD-SYMBOLS: <lw_trkorr>. DATA: lv_count TYPE i. * 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. * In central workflow scenarios, the select must be realized by a remote function call * to the central TM Server!!! ENDLOOP.