Skip to Content
0
Oct 04, 2009 at 03:05 PM

JOB and INSERT

52 Views

Hi all again.

I'm practicing JOBS, and I have a program that insert 3 records in a Z table What I do is:

1. Loop to my internal table and then record by record I user the clause INSERT, if sy-subrc eq 0, then COMMIT and write:/ Record added, ELSE. rollback work and write:/ Record not added.

2. When i execute the job via SUBMIT clause, and then I go to the SM37 trx, I can't see the spool list. This happens when I try to add records which were added previously, but if there are new records, I can see the spool list and I don't have problems.

Whys is this happening? I assume that the insert is not possible when the record exist in the Z Table, but I have the rollback and the write, why I can't see the writes?

Can someone explain to me, and let me know how I can solve it?

Thanks

Gaby