Symptom
You create a custom field for production order operation level. The custom field value is updated either manually or via BADI, however, after saving the production order, the custom field value is not saved.
Environment
SAP S/4HANA Cloud Public Edition
Cause
BADI BD_COBADICFL_MFGORDER_OPR is implemented and below code line is missing:
"Mandatory: Take over already existing custom fields
<ls_opr_changed>-custom_fields = <ls_mfgorderoperation>-custom_fields.
As a result, the existing value of the custom field will not be considered and the new value will be empty.
The same logic also applies to the header level (BADI BD_COBADICFL_MFGORDER_HDR) and component level (BADI BD_COBADICFL_MFGORDER_CMP).
Resolution
Make sure the code line is included in the implementation.
Keywords
custom field, production order, BD_COBADICFL_MFGORDER_CMP, BD_COBADICFL_MFGORDER_OPR, BD_COBADICFL_MFGORDER_HDR, not saved, empty, manually , KBA , PP-SFC-2CL , Production Orders (Public Cloud) , Problem
SAP Knowledge Base Article - Public