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

How to create a spool request

Former Member
0 Likes
596

Hi all,

Can anybody tell me how to create a spool request for a background job programatically

Regards

Yathish

Message was edited by: Yathish

Rich thanks for your reply,

But there is no write statement in the backbround job. Can u please explain me how to do it in detail

Thanks in advance

Yathish

Yathish Gundlupet

4 REPLIES 4
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
560

The program running in the background job simply needs to have a WRITE statement in it. That's it.

Regards,

Rich Heilman

Read only

0 Likes
560

Hi Rich,

Can u please explain me the process in detail.

Regards

Yathish

Read only

Former Member
0 Likes
560

HI Yathish

If the program gives an output, then you will have spool request generated when executed in background.

Kind Regards

Eswar

Read only

0 Likes
560

That's right, in order for a program to produce a spool request, it either must create a list output using WRITE statements, or it must produce a sapscript or smartform output.

In the first case, a simply WRITE statement at the end of your program will work.


WRITE:/ 'Program has completed successfully'.

Regards,

Rich Heilman