‎2006 Mar 01 5:29 PM
Hi friends,
I am writing an Z program to convert SD documents, Quote/Order/Invoice Etc to PDF.
the problem is that, it is not creating New spool request everytime I make a call to processing program(printing program defined in configuration).
I am finding the processing program and then calling the FORM with that program e.g.
PERFORM (tnapr-ronam) IN PROGRAM (tnapr-pgnam)
USING wa_subrc wa_screen IF FOUND.
This create a New spool request for the first time. but if tried to re-print same document , same spool request is used.
Please Help me.
Thanks
‎2006 Mar 01 5:45 PM
It sounds like the field ITCPO-TDNEWID has to be set to 'X'. This will give you a new spool request even if another is open with the same characteristics.
‎2006 Mar 01 5:59 PM
I knew about this that I had to pass ITCPO-TDNEWID with 'X' for New Spool request,
but where in the printing program I can pass usder defined print parameters.
‎2006 Mar 01 7:06 PM
Not sure how you can set it with your defined scenario.
Are you populating the NAST structure before your PERFORM to the print routine? You might be able to fake out the system by thinking you are generating a unique spool request. If it is unique, it won't merge with the existing open request.
Can't remember the exact fields that make the request unique. I think they include NAST-DSUF1 and NAST-DSUF2. Try putting a unique value (like a timestamp) in NAST-DSUF2 before the call.