Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Capture billing document on spool request

Former Member
0 Likes
1,646

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

5 REPLIES 5
Read only

former_member189779
Active Contributor
0 Likes
1,041

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.

Read only

0 Likes
1,041

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

Read only

madhu_vadlamani
Active Contributor
0 Likes
1,041

Hi,

There are some standard tables available on this.

Regards,

Madhu.

Read only

Former Member
0 Likes
1,041

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,

Read only

0 Likes
1,041

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