Skip to Content

How the odata service generated in S4Hana Cloud?

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?

Add a comment
10|10000 characters needed characters exceeded

  • 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.

Related questions

1 Answer

  • Best Answer
    Posted on Oct 01, 2018 at 08:23 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.