cancel
Showing results for 
Search instead for 
Did you mean: 

How the odata service generated in S4Hana Cloud?

former_member588112
Discoverer

In S4Hana Cloud, how the odata service generated?

For example of the scenario "SAP_COM_0106", when I new a communication agreement,

scenario like "SAP_COM_0XXX" can be selected from scenario select dialog, but how these scenario generated? (Except custom scenario).

Are they generated by SAP self?

. The point is:

I want consume an OData service (not customized) in my SapUI5 app, but the odata service's $metadata that returned with all properties of entity's are not filterable.

eg. <Property Name="DeliveryDocument" Type="Edm.String" sap:filterable="false"/>

But I want the "sap:filterable" property "true" or default(null) that show the property on my form for a search condition.

Anyone can help, please?

former_member588112
Discoverer
0 Kudos

As I see, the "SAP_COM_0XXX" service is generated by S4HC system, and not allowed to update the service options.

By custom CDS view, community scenario, community aggrements etc, I can consume the custom CDS view by my SapUI5 apps.

But how to update an entity by my custom CDS view?

It seems that imporsable.

Accepted Solutions (1)

Accepted Solutions (1)

Hello Wj,

In order to filter the results returned by the OData service, you can use the $filter parameter.

More details on how to do this here.


If you want to select a given entity and not just apply a filter, you can use a call similar to:

/A_OutbDeliveryItem(DeliveryDocument='{DeliveryDocument}',DeliveryDocumentItem='{DeliveryDocumentItem}')
See the details on how to do this kind of calls on the API Hub.

There is only a restricted set of changes allowed on the OData services delivered by SAP.

Also, no writing capabilities are allowed via Custom CDS Views as per 1808.

If you need extra details, let me know.

Regards,

Adriana

Answers (0)