Symptom
When trying to post a billing document you receive error message: "Value & of field CODE is not valid".
Environment
SAP S/4HANA Cloud
Reproducing the Issue
1. Manage Billing documents app.
2. Search for your billing document and select.
*Status: 'To be posted' will be followed with a red error icon which brings the message: "Value 0 of field CODE is not valid".
3. Click on 'Post'.
*You will not be able to post.
Cause
Error message "Value & of field CODE is not valid" gets triggered while checking validity of extension fields of 'code list' type in Business Context: Journal Entry Item. Fields of type 'code list' have check tables, this means that you must only fill them with code values that exist in the corresponding check table.
Resolution
You can either maintain check table of your custom field of code list type or maintain Journal Entry Item Extension Fields Substitution Custom Logic. You must ensure that the value of the field in the Billing document matchs with the values maintained in the code list table checks of your custom field.
Keywords
Custom, field, code, list, type, value, table, check; , KBA , SD-FIO-BIL , Fiori UIs for Billing , SD-FIO-BIL-2CL , Fiori UIs for Billing (Public Cloud) , Problem