AFTER_IMPORT
This user exit is called after the import of a complete import queue. It can be used e.g. to start any kind of after import activities …
Location for activation
Target System of the import
Template function Module
/RTC/TM_TMPL_AFTER_IMP
Interface
Import Parameters
Structure LW_SCPT
Field | Description |
---|---|
TRKORR | Transport Request |
R3_SID | Target System of the import |
R3_CLIENT | Target Client of the import |
LEVEL_NAME | Transport level of the target system |
RETCODE | Return code of the tp execution |
SCPT_DATE | Import date |
SCPT_TIME | Import time |
Additional Import Parameters
Parameter | Type | Shorttext |
---|---|---|
LV_TTYPE | CHAR 1 | Used import process P: Personal Queue |
Export Parameters
None
Example
Raise an event to trigger After-Import-Activities if the highest return code was < 8.
Step 1 | Copy the function module /RTC/TM_TMPL_AFTER_IMP to a new function module |
Add the following code to the section “Begin of customer implementation”:
FIELD-SYMBOLS: <lw_import_info>.
LOOP AT lt_scpt TRANSPORTING NO-FIELDS WHERE retcode GE 8.
EXIT.
ENDLOOP.
IF SY-SUBRC NE 0.
CALL FUNCTION ‘BP_RAISE_EVENT’
…..
ENDIF.