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

Spool not getting created while executed a program in background

Former Member
0 Likes
711

Hi All,

I have executed a program in background using program---> execute in background options. This main program will call another program using submit 'program name' and return. The second program is having alv ouput. and the main program does not have any output.

after executed in back ground, it is giving status as finished but no spool is generated. Please let me know the reason why the spool is not generated and how to resolve this.

When i executed the main program in foreground, i'm getting the alv output as expected.

Thanks in advance,

Srilakshmi.

5 REPLIES 5
Read only

Former Member
0 Likes
574

Have you used AND RETURN with SUBMIT

For. e.g.


SUBMIT (W_REPID) TO SAP-SPOOL WITHOUT SPOOL DYNPRO
    SPOOL PARAMETERS MSTR_PRINT_PARMS
    USING SELECTION-SCREEN 1000
    WITH S_PERIOD IN S_PERIOD
    WITH S_DEALID IN S_DEALID
    AND RETURN.

Read only

0 Likes
574

Hi Tripat,

Thanks for your reply.

When executed in background, Spool is getting created when i give submit 'program name' TO SAP-SPOOL WITHOUT SPOOL DYNPRO and return. But now when i executed in foreground ,it is not giving the output. it remains in the same selection screen.

Read only

0 Likes
574

When executed in Background you cannot see result directly. Coz the spool was generated in background.

Go to SM37 and see spool output there....

Ask if u need more clarification, but check out SM37 first.

Read only

Former Member
0 Likes
574

It was helpful

Read only

0 Likes
574

Hi Srilakshmi

What was the problem, did you solve it? (how?)

Thx