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.
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.