07-29-2010 1:00 PM
I have created Program A which calls internally Program B or C based on the condition. When I run the program B or C independently in Background it generates the spool on completion. But When I run the program A in Background, Spool is not getting generated.
My requirement is that Spool should be generated when Program A is executed in Background.
Below is the code of program A:
PROGRAM A.
IF p_cons = 'X'.
*-->Detailed Details of Interim or Final Settlement
SUBMIT B WITH p_vtnr EQ p_vtnr
WITH p_setqty EQ p_setqty
WITH p_test EQ p_test
WITH s_abrdat IN s_abrdat
WITH r2 EQ r2
WITH r1 EQ r1
AND RETURN.
ELSE.
*-->Summary Details of Interim or Final Settlement
SUBMIT C WITH p_vtnr EQ p_vtnr
WITH p_setqty EQ p_setqty
WITH p_test EQ p_test
WITH s_abrdat IN s_abrdat
WITH r2 EQ r2
WITH r1 EQ r1
AND RETURN.
ENDIF.
Please guide me on this.
Regards,
Naveen
07-29-2010 1:06 PM
Hi Naveen,
Check this
Submit report to job
submit ztest via job l_jobname
number l_jobcount
to sap-spool without spool dynpro
spool parameters ls_params
and return.
07-29-2010 1:06 PM
Hi Naveen,
Check this
Submit report to job
submit ztest via job l_jobname
number l_jobcount
to sap-spool without spool dynpro
spool parameters ls_params
and return.