cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Business Object: OData Service Not Generated After Enabling Back End Service

kk_19
Discoverer
0 Kudos
92

Issue:

I have created a Custom Business Object (YY1_TABLE_MM_001) in SAP S/4HANA Cloud (Public Edition) and want to expose it as an OData service for API consumption. However, after enabling the necessary settings and publishing the object, the service is not being generated.

Steps to Reproduce:

  1. Open the Custom Business Objects app.
  2. Create or open the object YY1_TABLE_MM_001.
  3. Enable the following options:
    • "Back End Service"
    • "Can Be Associated with UI and Reports"
  4. Click Publish to activate the changes.
  5. Check for the generated OData service name under "Service Generation" – no service appears.
  6. Attempt to call the API endpoint:
    ruby
    CopyEdit
    https://my401583-api.s4hana.cloud.sap/sap/opu/odata/sap/YY1_TABLE_MM_001_CDS
    but receive an error stating that the HTTP method is not allowed.

Expected Behavior:

  • After enabling "Back End Service", publishing the object should generate an OData service.
  • The OData service name should be visible in the Custom Business Object settings.
  • The API should allow POST requests to create new entries.

Questions:

  1. Is there an additional step required to generate the OData service?
  2. Are there any restrictions preventing the service from being created?
  3. How can I verify whether the service is correctly generated and accessible?

Accepted Solutions (0)

Answers (1)

Answers (1)

Pradeep_Reddy
Participant
0 Kudos

Use Custom CDS View app and select a scenario : External API.

Create a communication Scenario and arrangement for that API.