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

Message after submit report

Former Member
0 Likes
1,155

Hello all,

I have a program that submits a report. This report sends the output to the spool. When the process executes the submit command I get the following message:

Spool request (number &) created without immediate output.

I need the spool request number for further processing. Does anybody know how to get the message and the spool request number at runtime? Kind of like the messages we get with a call transaction into the message table. By the way, the message is NOT available in the system structure SY(SYST).

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
670

The table "tsp01" contain all the spool request.

Can you try to extract data from this table with report name, owner, date and title?

Gianluca

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
670

Here is what I've done in the past.

1) in the submitted program, export the sy-spono to a memory id. This should be the very last statement of the program.

2) in the calling program, after the SUBMIT statment, import the spool number into memory id.

3) do what ever you need to do with the sy-spono.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
671

The table "tsp01" contain all the spool request.

Can you try to extract data from this table with report name, owner, date and title?

Gianluca

Read only

0 Likes
670

Thanks Rich and Simeone for the prompt answers. I do not want to export to memory because that means I will have to modify ALL the reports that need to be submitted with the program in question. Anyway I have a work around but it is not clean and I was hoping somebody would have a better idea.

Read only

0 Likes
670

Hi Enrique,

maybe I missed the problem, but did you try SY-MSGV1 (or maybe SY-MSGV2)? If a message is displayed, system variables should be filled.

Regards,

Christian

Read only

0 Likes
670

did you try the sy-spono immediately after returning to the main program?

Regards

Raja