11-16-2010 11:13 AM
Hello ,
I created simple rapport that should run in background. When I execute background job (sm37) I noticed that the spool exists only
for when the some data is found. When data is not found for any reason I do not have spool , and I need one saying
'records passed 0'. I am not sure what I can do about it. I saw insome programs that is possible but I cannot find how it was done. Please advice .
Krsto
11-16-2010 11:33 AM
Hi,
when no record is found then write something tothe output.In this way spoolwill get created.
Thanks
Nabheet
11-16-2010 11:59 AM
Hi,
You might be checking if the Final Internal table has data in it or not (May be in END-OF-SELECTION). If you are not do have check on this and simple code a write statement like below.
IF IT_FINAL IS NOT INITIAL.
CREATING A SPOOL.
ELSE.
WRITE : / 'Records Passed are 0'.
ENDIF.
Let me know if you need any further help on this.
Regards,
SRinivas