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: 

Wrapper program when run in background not generating SPOOL

Former Member
0 Kudos

I have created Program A which calls internally Program B or C based on the condition. When I run the program B or C independently in Background it generates the spool on completion. But When I run the program A in Background, Spool is not getting generated.

My requirement is that Spool should be generated when Program A is executed in Background.

Below is the code of program A:

PROGRAM A.

    IF p_cons = 'X'.
*-->Detailed Details of Interim or Final Settlement
      SUBMIT B               WITH  p_vtnr   EQ p_vtnr
                             WITH  p_setqty EQ p_setqty
                             WITH  p_test   EQ p_test
                             WITH  s_abrdat IN s_abrdat
                             WITH  r2       EQ r2
                             WITH  r1       EQ r1
                             AND RETURN.
    ELSE.
*-->Summary Details of Interim or Final Settlement
      SUBMIT C                   WITH  p_vtnr   EQ p_vtnr
                                 WITH  p_setqty EQ p_setqty
                                 WITH  p_test   EQ p_test
                                 WITH  s_abrdat IN s_abrdat
                                 WITH  r2       EQ r2
                                 WITH  r1       EQ r1
                                 AND RETURN.
    ENDIF.

Please guide me on this.

Regards,

Naveen

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Naveen,

Check this

  • Submit report to job

submit ztest via job l_jobname

number l_jobcount

to sap-spool without spool dynpro

spool parameters ls_params

and return.

1 REPLY 1

Former Member
0 Kudos

Hi Naveen,

Check this

  • Submit report to job

submit ztest via job l_jobname

number l_jobcount

to sap-spool without spool dynpro

spool parameters ls_params

and return.