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: 

Spooling

former_member202335
Participant
0 Kudos
134

Hi,

I have never done anything related to spooling. So, I have some very basic questions about it.

I have some documents that I process in a program. After the processing is over, I display the documents in the form of an ALV report. Now, I need to create a spool so that the data in the ALV can be accessed at a future date.

As you might have gussed from my question, I have little idea bout spooling. Please provide me detailed description on the apporach to this problem.

Regards,

Divyaman

4 REPLIES 4

santhosh_patil
Contributor
0 Kudos
86

Hi ,

In the ALV there is an option to print the ALV list directly...without displaying , for this u have to set the parameter IS_PRINT.

IS_PRINT-print = 'X'.

When u do this, the Print screen list.. . here u select new spool request....

Hope this will help U..

-


Patil

0 Kudos
86

Hi Santosh,

Thanks for your response. I tried what you had recommended. What is happening now is that the report is not getting displayed. Instead, I get an output asking for the output device. So, a spooling request is being created.

What I want to do is the following: -

I want the report to be displayed on the screen and at the same time I want a spooling request to be generated for it as well (not the output request). and I want all this to happen programatically. So, that the user can see the ALV report on the screen and also view it at a later stage from the output controller.

Please let me know if this is feasible. Also, let me know the detailed steps for this.

Thanks in advance,

Divyaman

former_member182354
Contributor
0 Kudos
86

Hi Divyaman,

Create a background job for that ALV report and schedule it when u want it to get executed. Automatically you will get a spool output from where you can check the output.

Raghav

0 Kudos
86

Execute a report using the Execute and print function

Switch on printing in a report using the ABAP statement NEW-PAGE PRINT ON.

Call a report using the statement SUBMIT rep TO SAP-SPOOL

Schedule a report as a background job using the statement SUBMIT rep USER user VIA JOB job NUMBER n TO SAP-SPOOL. When the report runs, the system writes the output to the spool system.

Schedule a report as a background job using the function module JOB_SUBMIT. When the report runs, the sytsem writes the output to the spool system.