Miscellaneous topics that do not fit into specific categories.
The error indicates that for line 40000 on the sales order, the system is trying to post a discount and therefore requires a value in the “Gen. Prod. Posting Group” field for that line’s G/L account or item. Even if there is no explicit discount line, invoice or line discounts can still be calculated.
To resolve this, ensure that the G/L account or item used on line 40000 has a valid “Gen. Prod. Posting Group” set up so discounts can be posted. If discounts should never be posted for that line, adjust the setup so that discount posting does not apply to that line type, or remove any implicit discount configuration affecting that line.
References: