AFTER_EACH_IMPORT

This user exit is called after each import on the target system. It can be used to check specific conditions and depending on the result, the running import queues can be stopped.

Location for activation

Target System of the import

Template function Module

/RTC/TM_TMPL_AFTER_EACH_IMP

Interface

Import Parameters

Structure LW_TRKORR

Field

Description

Field

Description

TRKORR

Transport Request

LEVEL_NAME

Transport level of the target system

R3_SID

Target System of the import

R3_CLIENT

Target Client of the import

IMP_DATE

Import date

IMP_TIME

Import time

RETCODE

Return code of the tp execution

 

Additional Import Parameters

Parameter

Type

Shorttext

Parameter

Type

Shorttext

LV_TTYPE

CHAR 1

Used import process
S: System Queue

P: Personal Queue

 

Export Parameters

Parameter

Type

Shorttext

Parameter

Type

Shorttext

LV_STOP_IMPORTS

CHAR 1

Space: Don’t stop running import queue
‘X’: Stop running import queue

LV_LOCK_QUEUE

CHAR 1

Space: Import queue is not locked
‘X’: Import queue is locked

Example

After a failed import of specific critical objects, the customer wants to stop the running import queue

Step 1

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

 

Add the following code to the section “Begin of customer implementation”:

Add the following code to the section “Begin of customer implementation”: FIELD-SYMBOLS: <lw_import_info>. LOOP AT lt_import_info ASSIGNING <lw_import_info>. * Copy field information, customer needs to own work area to provide data to * customer own table ENDLOOP.