Skip to Content
author's profile photo Former Member
Former Member

Background job not generating spool

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Dec 22, 2008 at 05:37 AM

    Hi

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

    Cheers

    Hakim

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      >

      > 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

  • author's profile photo Former Member
    Former Member
    Posted on Dec 22, 2008 at 06: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 .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 22, 2008 at 06: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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.