cancel
Showing results for 
Search instead for 
Did you mean: 

Where invoice print pgm is called when nast msg is to process immediately?

Former Member
0 Kudos

I have an invoice print program that send an email invoice immediately at the time billing is created. How does this print program is called and from where at the time of billing? I went thru debug mode when I create sales order, billing and save the billing document but It never going to my print program. But everything is printed correctly as specified in my print program.

The invoice being print immediately at the time of billing is slightly different if I reprint again when the billing already exist. If I print again, or if I issue output preview, my print program is called from RSNAST00 in routine tnapr-ronam with the program name as tnapr-pgnam which I configured and I can see via transaction NACE.

For example, I have a code line check if payer account group is a deposit account, I print the text line: "PAID FROM DEPOSIT ACCOUNT' at the bottom of the invoice.

When I send email OR even print immediately at the time of billing, the text line PAID FROM deposit account does not show up.

It seems like at the time the billing is created and before saved, my selection for account group does not work but I could not even get in debug mode to my print program. Where does the print program being called to print invoice at the time of billing?

The SAP program that process billing document is SAPMV60A.

Thanks for your help.

PS: I use SapScript to produce invoice.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

To debug these kind of update tasks you should activate Update debugging and system debugging.

try to keep a break point in program RSNAST00 where it calls your program.(in the DO 5 times loop).

during creation of document before pressing the SAVE button just put '/h' in the transaction menu and press save .

it will take you to debugging screen, there goto settings and click on Update debugging, similarly do it for system debugging also.

and then proced till the RSNAST00.. it should stop there.

hope this helps...

Former Member
0 Kudos

Hello A ,

if u want to debug ur driver program ....try from transaction VF02.

while creating billing docment , these programs are in update task , so it wont allow to debug.

regards

prabhu