‎2006 Dec 01 11:52 PM
Hi Group,
I have copied one standard program and customised it and used in another program using Submit and Return command.
Problem:
Those Custom and Standard Programs have wrtting some List on the screen after execution,when I executed my main program in foreground its wroking fine,when I executed in batch I am not getting this List in the Spool(or Job log),Can any body suggest me how to capture this in Spool or Job log when execution mode is batch.
‎2006 Dec 02 1:44 AM
Did you use the SUBMIT statement with the TO SAP-SPOOL option?
~Suresh
‎2006 Dec 02 10:47 AM
‎2006 Dec 02 11:28 AM
Hi
Try out with the below kind of code.
where log is the int tab containing the data
export t_log[] to memory id c_midlog.
if sy-subrc = 0.
submit ysd_psspoollog
to sap-spool
spool parameters w_prntparam
without spool dynpro
and return.
also try & write directly to the spool in the report so that u get the output in spool.
‎2006 Dec 02 1:27 PM
Hi,
compare code and spool handling in foreground and background for original and copy. Is the copy acting differently compared to original?
No: do your enhancements as already proposed in detail.
YES: There must be a significant difference.
Regards,
Clemens
‎2006 Dec 03 4:22 PM
Hi,
Try
1. 'Submit xxx Exporting List To memory And Return'.
2. Then get back the list using the Function Module 'List_From_Memory' into an internal table.
3. Write this internal Table.
This output will be seen in the spool.
regards,
biju
Note: Please reward helpful answers