Looking at the account document in FB03 related the billing invoice the field sales order(BSEG-VBEL2) and the correspondint item (BSEG-POSN2) is evaluated on some items but is missing on some others. Below the screen shot .
Do you have any advice to replicate the sales order and item information on all item position ?
Thanks in advance
The sales order no is not filled unless you have accounting document created out of a downpayment with reference to a sales order. There could be enhancements or substitution rules created to populate the same in your ERP system There could be a scenario, that the line item is a summarized document (you have summarization active) and as you have mentioned multiple sales order clubbed into one document, it can be an issue
Thanks & Regards
First you need to know if all those items really comes from a sales order, because you could post a FI document and you do not need to add a sales order in that case, so do you really have a sales document in every posting?
Please evaluate where those records come from, and then you could analyze every different case.