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

Writing to Multiple spool

Former Member
0 Likes
587

Hello,

I have a report program which generate 3 diffrent report. Intead of writing it to the same spool one after another I want to split this in to three spool with the report title dispaly as spool title in SM37 to identify the report. Can this be done ?

Thanks

Manoranjan

Hello,

I have a report program which generate 3 diffrent report. Intead of writing it to the same spool one after another I want to split this in to three spool with the report title dispaly as spool title in SM37 to identify the report. Can this be done ?

Thanks

Manoranjan

3 REPLIES 3
Read only

Former Member
0 Likes
460

Hi,

Yes, this can be done. One way is to use NEW-PAGE PRINT ON and NEW-PAGE PRINT OFF within your program to create the three different spools during a single report run. You will probably want to use the NO DIALOG option, so you'll need to take care of assigning the print parameters yourself using f.m. 'GET_PRINT_PARAMETERS'. You should also be aware of the obsolete additions of NEW-PAGE PRINT ON. The ABAP keyword help for NEW-PAGE describes how to use this keyword in detail.

Regards,

Jamie

Read only

0 Likes
460

Thank you Jamie for the answer.

Is there any way I can list the multiple spools generated by a single report program using SM37. In most of the case I saw a report has only on spool.

The suggestion you have given seem to be good in case we want to send the report directly to the diffrent printer. Will the suggeted method show multiple spool in in SM37 ? if you have any example ?

My requirement is like, the report will be executed in background and after the job finish I want to see three spools in SM37 from the same program in sm37. This report need not go to a printer, this is just for viewing on screen.

Thanks again

Manoranjan

Read only

0 Likes
460

Hello,

i have already encoutered this problem. I do not found a solution in this forum.

Each step of your background job can create several spool. But you can only see, per each step, one spool in SM37.

There is an OSS note "Note 735379 - Not all spool lists of a job step are sent" that you can refer to.

There is also an other thread :

[|]

Cordialement,

Chaouki.