Please check if Segment is set as mandatory at the following setting
Financial Accounting (New) -> General Ledger Accounting (New) -> Business Transactions -> Document Splitting -> Define Document Splitting Characteristics for General Ledger Accounting
If it is set as mandatory. Please remove the check and try executing the posting again.