03-03-2008 9:35 AM
Hi All
I am doing a Submit Report in background in loop.
I can check from the background job if the Submit was successful or not. But if it is successful I dont want any output in spool.
By default it is creating a spool request for every Submit.
But dont want any spool to be created as the submit will be executed no. of times.
Kindly let me know if and how we can suppress the spool request. The code I have written is attached below.
LOOP AT lt_t320a INTO ls_t320a.
SUBMIT XYZ
WITH matnr IN matnr
WITH werks = ls_t320a-werks
TO SAP-SPOOL SPOOL PARAMETERS print_parameters
WITHOUT SPOOL DYNPRO
VIA JOB job NUMBER jno
AND RETURN .
ENDLOOP.
Thanks in advance.
Regards
Prafulla
03-03-2008 10:24 AM
03-03-2008 10:44 AM
Hi Narinder,
I have tried without TO SAP-SPOOL but it doesn't work.
Submit is automatically creating the spool request when run in background mode.
Kind Regards
Prafulla