Application Development 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: 

Background job not generating spool

Former Member
0 Kudos

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

abdul_hakim
Active Contributor
0 Kudos

Hi

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

Cheers

Hakim

0 Kudos

HI ,

I have write statements. In the output report.

0 Kudos

>

> 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

Former Member
0 Kudos

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 .

former_member223537
Active Contributor
0 Kudos

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

0 Kudos

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.