cancel
Showing results for 
Search instead for 
Did you mean: 

SAPscript - To delete a particular page after printing

Former Member
0 Kudos

Hi Gurus,

I have a small problem...

I will print the line items of the invoice one by one...

then atlast calculate the whole total....and print it..

when the total is negative i need to delete the invoice...

as i have printed the items in the invoice...i culdnt delete the page or the items printed page..when the total is negative....

one solution is I need to check the total first and follow the printing...but here the problem is..the total calculation is a bit complex with respect to line items...

so is there any other solution...to delete the previous pages once i find the total is negative...

Plz provide a suggestion quickly..

many thanks in advance for ur solutions..

Regards,

Ashok

Edited by: Ashokkumar Prithiviraj on Nov 25, 2008 2:49 PM

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

As per standard process, an invoice does not exist with negative total. It will be converted automatically to credit memo. May be I could not understand your requirement clearly. The specification you have given looks not feasible to implement. Could you please transform your requirement again with more details.

Regards,

Prasanth

naimesh_patel
Active Contributor
0 Kudos

If you are generating Invoice output in separate Spool request, you can use the FM RSPO_IDELETE_SPOOLREQ to delete the spool once it gets generated and if it has negative total.

Regards,

Naimesh Patel

Former Member
0 Kudos

I too had a solution like that..

But in my case ..i have a lot of invoices in a single spool...

I need to delete a particular inovoice inside the spool..is it really possible??

Thanks for ur infomation.