cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Consume Odata V2 ord V4 in custom App Fiori deployed on Public Cloud

peppez88
Explorer
0 Likes
813

Good morning,


I am writing this post to try to have some information about the subject of the topic. In particular, I have developed a Custom Fiori application and I wanted to deploy and publish it on the Public Cloud. At the same time, I have activated on the same Public Cloud system an odata of the Business Application Hub via Communication System and Communication Arrangment. When I try to deploy the app with the odata exposed on the system(with the endpoit that i obteined during the configuration), I get an error related to the odata. Is there something I am missing?

The errors that are returned to me are:

The use of Gateway OData V2 Service API_BUSINESS_PARTNER 0001 is not permitted.

The app uses not permitted services for ABAP for Key Users

Solutions or suggestions?


Giuseppe.

Accepted Solutions (1)

Accepted Solutions (1)

Chuma
Active Contributor

Hello @peppez88 

Custom Fiori applications deployed on-stack in S/4HANA Public Cloud are permitted to perform CRUD operations exclusively on proprietary custom services, and not on standard API_* services.

You can’t use standard API_* services in an on-stack custom UI (Public Cloud).
SAP KBA 3445942 states deployment is blocked, citing Note 3424818 for restriction. Use API_* only from BTP side-by-side, not from UI in S/4HANA Cloud. SAP Support Portal-3445942 - UI Development in SAP S/4HANA Cloud Public Edition - Frequently Asked Q...

What you can use for CRUD in an on-stack customised Fiori app:

Key-User path: The Custom Business Object (CBO), along with its generated OData service (service generation can be enabled in the CBO application), is available for custom UIs deployed to the S/4HANA Cloud tenant. SAP Help Portal-Creating Custom Business Objects

Developer path (ABAP Cloud/RAP): A RAP business service (OData V4) is available in the development tenant; custom UIs can access this service and be deployed on-stack.SAP Help Portal-Developer Extensibility

If you need to interact with standard business API_BUSINESS_PARTNER or API_PRODUCT_SRV using CRUD operations:

Develop the UI alongside SAP BTP and access the published S/4 APIs using a Destination or Communication Arrangement. According to the FAQ above, this is the approved method. SAP Support Portal-3445942 - UI Development in SAP S/4HANA Cloud Public Edition - Frequently Asked Q...

SAP Useful documentation

Develop a custom UI on CBO service and deploy to S/4HANA Cloud (tutorial). SAP Develop a Custom UI for an SAP S/4HANA Cloud System

Custom Business Objects app (create BO → generate service/UI). SAP Help Portal-Custom Business Objects

Developer Extensibility overview (RAP services for on-stack UIs). SAP Help Portal-Developer Extensibility

Chuma Ofole

peppez88
Explorer
0 Likes
Hi chuma, thanks for your reply. I had some theories, and you confirmed them with all the documentation in your post

Answers (2)

Answers (2)

Chuma
Active Contributor
0 Likes

Hello @peppez88 ,

You are always welcome! Thank you too for your comment ðŸ˜Š

junwu
SAP Champion
SAP Champion
0 Likes

you are calling service from the same system, i think there is no need to use communication system thing, if I am not wrong.

peppez88
Explorer
0 Likes

Hi junwu, I used the communication system to activate the api on my public cloud production system. After activating it on system I used the endpoint https://myXXXXXX-api.s4hana.cloud.sap/sap/opu/odata/sap/API_PRODUCT_SRV in my custom Fiori Application. When I deploy I get the error mentioned above, what am I doing wrong? Thanks Junwu. Erickgoulardt Thanks also for your support for the topic

junwu
SAP Champion
SAP Champion
peppez88
Explorer
0 Likes

Thanks for the reply. Which standard or custom(how do I develop?) OData with CRUD operations can I use in custom Fiori apps deployed on public cloud?