Check the error message from error ribbon.
Step-by-step guide
Case 1: missing setting of the record.
- This message shows Gen. Prod. Posting Group setting was missing at PO line.
Find the related record (Line 20000 and check the setting. - The account allow direct posting. But, it missing Gen. Prod. Posting Group.