‎2012 Apr 11 11:01 AM
Hi experts,
My requirement is to generate a new Printing sequence number (just like the spool request number) upon printing a form. At the same time, capture the the billing document that's been used as a reference to it. In total. On this transaction, when I click the standard print button, I must save the generated print number and the billing document used to a customized table. This is to monitor the billing documents that has been already printed.
Please suggest.
Thank you
‎2012 Apr 11 1:06 PM
You already have this in NAST table.
Check for your output type. Check field "Processing status" Not sure why you require Z Table for this.
‎2012 Apr 11 1:44 PM
Hi,
Check NAST table for the Billing document and TSP01 for the spool number after executing the printing. Access the table TSP01 providing the user who executed the printing in RQOWNER field.
Thanks & Regards
Bala Krishna
‎2012 Apr 11 1:25 PM
Hi,
There are some standard tables available on this.
Regards,
Madhu.
‎2012 Apr 12 2:52 AM
Hi,
We are actually using a customized program for printing billing documents. It does not use NAST table. And for the TSP01, we have a monthly deletion of spool scheduled (RSPO0041).
Are there any suggestions that would fit this setup?
Thank you,
‎2012 Apr 12 3:42 AM
Hi,
As you are using customized program to print the Billing Document, you don't require the NAST table access only require to capture the spool number it generated while printing. So print the Billing document by generating a Job number, so it you can easily get the spool number.
Something like
1) Calling function module 'JOB_OPEN' to generate Job number.
2) Existing code to fetch the Billing Document and printing.
3) Calling function module 'JOB_CLOSE' to generate Job number.
4) Call function module 'BP_JOB_READ' to get the Spool attributes.
5) You will the spool number in the above returned tables parameter SPOOL_ATTRIBUTES.
I have attached sample code, try once
Thanks & Regards
Bala Krishna