As soon as RDDIMPDP recognizes that there is work to do, the job number (generated by SAP background processing) is inserted into the table TRJOB before the corresponding actions are started.

If RDDIMPDP has become active again and has found a running job in TRBAT and an entry in TRJOB, it checks if the job is still running.

If not, the corresponding step ( retcode = 8888 ) is set to 12, and the next step is executed. As soon as the header entry in TRBAT is set to F(inished), the TRJOB entry is deleted.