08-29-2006 6:47 PM
I need to generate an invoice output(Sapscript or smartform output) pragrammatically by input an invoice number and then I can obtain its spool number.I have known how to get its spool number already. Now my concern is how to generate an invoice output programmatically. Who can give me some hints here? Thank you very much.
09-01-2006 10:25 PM
08-29-2006 7:29 PM
Do a SUBMIT AND RETURN on the program RSNAST00 with the invoice number and the output type. This will generate a spool.
08-29-2006 9:24 PM
Thanks. I am trying it now. I would respond it again as I get any results
08-29-2006 9:37 PM
Hi Sudhir, in program RSNAST00, which field is corresponding to invoice number? Is it Object key (NAST-OBJKY)?
Thanks.
Jack
08-29-2006 7:36 PM
08-29-2006 9:52 PM
Yes. The invoice number will be stored in NAST-OBJKY..
Thanks,
Naren
08-31-2006 7:20 PM
Thanks all. I still meet a problem that is when I try to run RSNAST00 with input an existed object number and output type, I always get "0 output were processed in total." So I couldn't see the proper results. ( I can see the invoice output with this object number and output type by using VF31).
Could you please tell me what the problem is when I run RSNAST00? Thanks a lot.
08-31-2006 7:23 PM
For you to be able to reprocess an already processed output, your output type should be configured to allow repeat output. Otherwise, you cannot do it.
08-31-2006 7:35 PM
Your output type should be configured to repeat output and you should select the check box Send again in the selection screen of program RSNAST00.
08-31-2006 7:54 PM
Thanks a lot, Sudhir. I am still new in SAP.
I just updated the output type which is set to "multiple issuing" (does it mean "repeat output you mentioned?), and selected "Send again" in the selection screen of RSNAST00, but I still got "0 output were processed in total". Need I do anything else?
08-31-2006 8:47 PM
In the condition records for the output type change the Dispatch Time to 1.
09-01-2006 7:23 PM
Hi Sudhir, I am still struggling to this issue. Well, your very helpful information make me approach the goal...however I haven't found where to modify dispatch time (NAST-VSZTP) to 1 or 2 so that I can see the result as running RSNAST00. Please give me information in detail as much as possible.
Thanks a lot.
09-01-2006 7:41 PM
In the condition records for the output type there are
fields like Medium, Dispatch Time, Language in the end.
Change the dispatch time to 1.
09-01-2006 10:05 PM
Hi Sudhir, Thanks for your helps. But I think I may in a wrong way for my issue. Though RSNAST00 cannot process those existed invoices due to their dispatch time (NAST-VSZTP) or status (NAST-VSTAT), while those invoices could still be printout by using VF31, I may NOT SUBMIT RSNAST00 in my function module, instead I should look for other proper print program to be submit. My function module should process those existed invoices as well without changing their NAST date.
So if you have any suggestion to other print program (maybe some program above RSNAST00), please advice.
Thanks and have a great long weekend.
Jack
09-01-2006 10:25 PM
09-05-2006 3:29 PM
Yes, this SD70AV3A is the right one for my issue. I've got the right results. Thanks!