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: 

How can we put the report which is generated by the program into spool??

Former Member
0 Kudos
240

How can we put the report which is generated by the program into spool??

I had generated a file in Unix which had the report but now the requirement has changed.

Regards,

Shashank.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
209

check the <b>NEW PAGE PRINT-ON</b> statement

11 REPLIES 11

Former Member
0 Kudos
209

Hi Shashank,

If the program is executed in the background and it has the write statement then the spool will automatically generated.

Reward points if useful.

Regards,

Atish

0 Kudos
209

Hi Atish,

I have specially been told to put the report into Spool.

Regards,

Shashank.

0 Kudos
209

Hi Shashank,

Then use the FM BP_JOB_CREATE. you will find lots of sample code for the same on SDN.

Regards,

Atish

Former Member
0 Kudos
209

Hi Shashank,

MAy be you can try eith this function BP_JOB_CREATE.

Reward if useful!

Former Member
0 Kudos
210

check the <b>NEW PAGE PRINT-ON</b> statement

Former Member
0 Kudos
209

HI,

WHEN YOU GENERATE A REPORT THROUGH A PROGRAME . IN THE OUTPUT SCREEN YOU WILL HAVE SYSTEM BUTTON IN TOOL BAR PRESS THAT AND CLICK ON LIST AND CLICK ON PRINT THE SPOOL REQUEST WILL BE GENERATED AUTOMATICALLY

0 Kudos
209

Hi Maruvada,

But how can I check my report,which is generated,in the spool(by what transaction or please tell me the procedure)??

Regards,

Shashank.

0 Kudos
209

Hi Shashank,

write the value of the system field <b>sy-spono</b> in ur report which is the number of the spool request genereated by ur report and check the output of the spool in the transaction <b>SPO1</b> with the spool number generated in ur report.

0 Kudos
209

But Rajesh how can I implement this in my code which is running in the back ground??

take an example:

write:'15658'.

I want to put the output:'15658' into spool....How can I do that??

Regards,

Shashank.

0 Kudos
209

Hi Shashank,

if ur code runs in the background it itself creates a spool, u need not to code anything specific, to know the status/spool of ur job check the transaction SM37.

Former Member
0 Kudos
209

Also check this thread