on 07-31-2009 11:04 PM
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.
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...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.