12-22-2008 5:34 AM
Hi all,
I am calling a report from another report. The called report will display the final output list.
Here, the called report will be executed in background.
here the job is completing but the spool is not generated.
12-22-2008 5:37 AM
Hi
Ensure that you have the output statments in the report that you are calling.
Cheers
Hakim
12-22-2008 5:41 AM
12-22-2008 6:46 AM
>
> HI ,
> I have write statements. In the output report.
Hi Praveen ,
Either you get the write statement result in the ALV format or create a spool request in the prog.
The Background job does not create spool for the write statement output .
Thnks
Sahil
12-22-2008 6:17 AM
Hi,
Just check ur submission of the program like this,
v_prog = (Ur called program).
SUBMIT (v_prog) WITH so_matnr IN r_matnr
WITH so_werks IN r_werks
WITH p_date EQ p_date
TO SAP-SPOOL
SPOOL PARAMETERS v_params
WITHOUT SPOOL DYNPRO
USER sy-uname VIA JOB v_jobname NUMBER v_jobcount
AND RETURN.
just try this .
12-22-2008 6:21 AM
Hi,
It seems that the final internal table which has the output data is empty & hence write statements are not executed ( assuming all the write statements are inside a loop).
Place one write statement outside loop like
write 😕 'Following is the result :'.
& check whether spool is generated. If yes, then the problem is of empty internal table.
You can select the job in SM37 & type JDBG in command prompt to debug a background job.
Debug & check the issue.
Best regards,
Prashant
12-22-2008 6:33 AM
HI ,
I tried using the following statement, still i am not getting the spool generated.
v_prog = (Ur called program).
SUBMIT (v_prog) WITH so_matnr IN r_matnr
WITH so_werks IN r_werks
WITH p_date EQ p_date
TO SAP-SPOOL
SPOOL PARAMETERS v_params
WITHOUT SPOOL DYNPRO
USER sy-uname VIA JOB v_jobname NUMBER v_jobcount
AND RETURN.
just try this .
Another in my internal table i have 16 entries. I checked using JDBG.
Still i not getting the spool generated.