Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Background job not generating spool

Former Member
0 Likes
4,635

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.

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.

6 REPLIES 6
Read only

abdul_hakim
Active Contributor
0 Likes
1,723

Hi

Ensure that you have the output statments in the report that you are calling.

Cheers

Hakim

Read only

0 Likes
1,723

HI ,

I have write statements. In the output report.

Read only

0 Likes
1,723

>

> 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

Read only

Former Member
0 Likes
1,723

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 .

Read only

Former Member
0 Likes
1,723

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

Read only

0 Likes
1,723

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.