Cr07&Lm10
25th June 2015, 18:07
Hello Expert,

I have a script (AFS) who is calling the session Sales Invoice (tfacr1110s000) to create Sales Invoice and Credit Note. It is working fine if transaction type is Sales Invoice, but if the transaction type is Credit Note then Document (tfacr200.ninv) is not getting generated.

May you please help?

Thanks & Regards
CR

mark_h
26th June 2015, 00:00
This is one that is almost impossible to really assist with - all I really know is different transaction types cause different sessions to run. You can try posting the relevant code pointing to where the session is having the problem. You can also try to layout what steps you do manually. I doubt my 4c4 code would be any help. You can try searching this forum for the session numbers.

bhushanchanda
26th June 2015, 15:00
Hi,

As Mark said, every Transaction type has its own Session and Next session maintained. But in your case, Sales Invoices & Credit Note transaction type should have similar sessions.

First suggestion will be to try to create one manually and check if its working. Also, check the Main Session and Next Session defined for the Credit Note Transaction Type. Check if the series is not full. Once all this is validated, you can have an idea.

Its best to post your code to get a better help.