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

Generate the spool no

Former Member
0 Likes
848

Dear friends,

I have to generate the spool request no by self written code.

I want to creat this against an invoice no. TC : vf02

Can any one help me pelase.

Thanks and Regards

vivek srivastava

Dear friends,

I have to generate the spool request no by self written code.

I want to creat this against an invoice no. TC : vf02

Can any one help me pelase.

Thanks and Regards

vivek srivastava

6 REPLIES 6
Read only

Former Member
0 Likes
831

i am not sure if its gonna help u

RSPO_RPRINT_SPOOLREQ.

but u can try it.

one more thing u can do is configure ur output type and associate a smartform and then supress its preview so only spool gets generated.

u can supress the preview by changing the amsrtform control parameters in the driver program

Read only

0 Likes
831

i think friend, it will work after the spool request generate.

i need the story befor generation of spool request.

Read only

Former Member
0 Likes
831

hi

Before submitting get the latest spool number from TSP01 table(with date,user,latest one),which will store the spool numbers.

after submitting again get the latest spool number from

TSP01 table(with date, user,latest one)and compare both of them previous one and present one.

if they are same then no spool, if they are not same then take the present one as new spool generated.

hope this helps

regards

Aakash Banga

Read only

0 Likes
831

friend, it will work after the spool request generate.

i need the story befor generation of spool request.

Read only

Former Member
0 Likes
831

Hi

You can get the current spool number from TSP01.

select MAX(RQIDENT) into <Variable> from TSP01.

Add 1 to it..that will be your spool number.

Regards

Raj

Read only

Former Member
0 Likes
831

thanks