Check the error message from error ribbon.

Step-by-step guide

Case 1: missing setting of the record.

  1. This message shows Gen. Prod. Posting Group setting was missing at PO line.
    Find the related record (Line 20000 and check the setting.
  2. The account allow direct posting. But, it missing Gen. Prod. Posting Group.