SAP Knowledge Base Article - Public

3643076 - Custom Business Object publishing failed due to field referenced in a Custom CDS View - SAP S/4HANA Cloud Public Edition

Symptom

  • Custom business object failed to publish.
  • When checking using transaction code SLG1 the following message is displayed for the failing Custom Business Object "Field <YY1_Field_Name> is still being used as a view field in view <YY1_Object_Name>."

Environment

SAP S/4HANA Cloud Public Edition

Reproducing the Issue

  1. Open the Custom Business Objects app.
  2. Search for the Custom Business Object "YY1_ObjectName".
  3. Click on the "Publish" button.
  4. Observe that the publishing process fails.

Cause

  • There is a field being referenced in a Custom CDS View that is preventing the Custom Business Object to publish.
  • The CBO cannot be published if the field is referenced by another extensibility object.

Resolution

  1. Open the Custom CDS View that contains the field that is causing the Custom Business Object to fail.
  2. Locate the field in the elements tab.
  3. Remove the field from the Custom CDS View.
  4. Save and Republish the Custom CDS View.
  5. Attempt to publish the Custom Business Object again.

Keywords

custom business object, publishing failed, YY1, field, custom cds view, field reference, extensibility object, publish error, sap s/4hana cloud, elements , KBA , BC-SRV-APS-EXT-BO , Custom Tables and Nodes , How To

Product

SAP S/4HANA Cloud Public Edition all versions