SAP Knowledge Base Article - Public

3734583 - Error KO509 during production order closing - SAP S/4HANA Cloud Public Edition

Symptom

When trying to close the order, the error KO509 "Balance in ledger 0L is not zero" is triggered. 
However, the order balance in company code currency and global currency are all zero. 

Environment

SAP S/4HANA Cloud Public Edition

Cause

In the app "Postprocess Event-Based Postings - Product Costing", select the relevant order in the filter, the item to post is displayed. 
In view setting, select other currencies such as 'Freely Defined Currency 1' and notice there is amount in these currencies. 

Resolution

Simulate then Post the relevant order in the app "Postprocess Event-Based Postings - Product Costing" for postprocessing. 

Keywords

production order close, close order, KO509, Balance in ledger 0L is not zero, Freely Defined Currency 1, Postprocess Event-Based Postings - Product Costing , KBA , CO-PC-OBJ-2CL , Cost Object Controlling (Public Cloud) , Problem

Product

SAP S/4HANA Cloud Public Edition all versions