2024 Dec 18 8:04 AM - edited 2024 Dec 19 2:45 PM
I'm on S4 Public Cloud edition.
I've created a custom CDS for seeing Purchase requisition of a requestor (based on user id).
The CDS works fine in Data browser
But I expose the CDS by using communication arrangement with a dedicated user.
I've created a Fiori Element App based on this API but the user taken into account is not the connection user but the user of the arrangement. I've deployed it on Cloud foundry (I have the possibility to deploy it also on Build Work Zone)
If someone has an idea to solve this issue.
Get the user information in the Fiori element and Ask the API with this user ?
As I'm in a public version, I can't develop anything.
Dinu has provided a solution.
Dinu, do you know if I have something to change in the xs-app the use the oauth authentification ?
Request clarification before answering.
Hi @chris_SAP,
OData services created with the Custom CDS view app do not support OAuth. See External API: Exposing a Custom CDS View as OData API: "You can only access the external API with the technical user you have created in the Communication Arrangements app and not with your business user."
Best regards
Kai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Follow the approach described in User Propagation from the Cloud Foundry Environment to SAP S/4HANA Cloud | SAP Help Portal
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.