SCRIPT: second page is not print but need spool number
I'm creating a script. It has only one page. if the line item is exceeds in main window then it automatically print the next page.
now my requirement isgiven below
I need to print the first page and the second page should not print. But i need seperate spool request for 2nd page. whenever the user wants second page at that time he use the 2nd page spool number to take the print.
is there any solution or alternative method?
Thanks in Advance.
Hmmm if i knew your exact requirement i would be able to propose something better i guess, since this seems a little weird to be honest.
E.G. having a own output type for your page 2.
Anyway, returning to what you asked. You opened your form using FM OPEN_FORM. and when you are ready you use CLOSE_FORM to close it again.
You could make use of END_FORM followed by START_FORM when page 2 is to be printed.
This will give you page 1 and page in seperate spools.
you could as well close your form and open it again with ITCPO-TDNEWID = 'X' inmstead of using end_form and start_form.
But still i highly doubt that complete scenario.