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: 

Suppress spool in Submit Report

Former Member
0 Kudos

Hi All

I am doing a Submit Report in background in loop.

I can check from the background job if the Submit was successful or not. But if it is successful I dont want any output in spool.

By default it is creating a spool request for every Submit.

But dont want any spool to be created as the submit will be executed no. of times.

Kindly let me know if and how we can suppress the spool request. The code I have written is attached below.

LOOP AT lt_t320a INTO ls_t320a.

           SUBMIT XYZ
                  WITH matnr   IN matnr
                  WITH werks   =  ls_t320a-werks
                  TO SAP-SPOOL SPOOL PARAMETERS print_parameters
                  WITHOUT SPOOL DYNPRO
                  VIA JOB job NUMBER jno
                  AND RETURN .

  ENDLOOP.

Thanks in advance.

Regards

Prafulla

2 REPLIES 2

Former Member
0 Kudos

Hi Praful,

Remove TO SAP-SPOOL addition.

Regards,

Narinder

0 Kudos

Hi Narinder,

I have tried without TO SAP-SPOOL but it doesn't work.

Submit is automatically creating the spool request when run in background mode.

Kind Regards

Prafulla