I identified an issue when our billing batch RV60SBAT is processed: sometimes, one of the output type (invoice mail output) is not processed after the creation of the billing document, although all the condition of its processing is met. The ouput is only processed if i enter in the billing doc in VF02 and save it.
I identified that the error depends on a very specific pattern:
If the billing batch creates two billing documents for the same customer in sequence:
The invoice mail output type will not be generated for the billing doc 1 B)
The invoice mail output type will be generated for the billing doc 1 even though it is not required.
The invoice mail output type will be properly generated for the billing doc 2
It seems SAP applies the output type of the next document to the current one.
Output type of document 2 is applied to document 1
Output type of document 3 is applied to document 2
Output type of document 4 is applied to document 3
My first question is: do you think my diagnosis is correct and have you ever seen this kind of bug in the billing batch RV60SBAT?
I am trying to find a way to sidestep the problem. Do you know if there is a way to separate invoicing by sales document type in the standard batch program RV60SBAT?
Thank you in advance for your precious help.