on 03-12-2021 12:50 PM
Hello SAP Mobile Cards experts,
We are trying to connect from a cloud foundry trial account our mobile cards with an odata of the ES5 Demo Gateway System. We have the destination created in the subaccount as follows:
In the SAP Mobile service, in the Mobile Connectivity Features the destination is defined as follows:
Testing with the Launch in Browser functionality we can correctly access the odata query defined in the Card:
But developing in SAP Business Application Studio, once the connection to the service is created, retrieved the connections to services and defined the destination and the query in the metadata.json file. When we execute "Mobile Cards Retrieve Data" we are getting the following error:
The following appears in the Mobile Service logs:
It seems that something is worng when trying to connect from the Card in BAS with the destination of the subaccount through the service, and we do not know what it could be or if we are missing some property in the destination to be able to use it in this way (we do not find any information about this in the oficial documentation). We have tried to connect against other systems, an S/4HANA on premise with cloud connector and a CAP application, and the same error always appears in BAS and in the service log.
Thank you in advance for your help!!
Alejandro
I tested it with business role, retrieved data OK, with platform role I get same result with you ,so you need business role instead of platform role. the steps as below,
1. Create destination
In Admin UI, Mobile Applications – SAP Mobile Cards – APIs
Get the information for destination as below
In cockpit, Subaccount – Connectivity – Destinations – New Destination
Client Secret can be any characters or empty
HTML5.DynamicDestination and WebIDEEnabled properties are necessary
2. Add CardAdministrator role(or Administrator role)
In cockpit, Subaccount – Security – Role Collections , use existed Role Collection or create a new one, edit it.
Add Role
Select Application Identifier from dropdown list first,
if has CardAdministrator, select CardAdministrator, then select Administrator.
Add you user id if not exists.
3. In BAS, View/Find Command.., select "Mobile Cards: Create Mobile Services Connection", select the destination name you created on cockpit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how about creating the destination ref to https://sapes5.sapdevcenter.com in SAP Mobile Service/Mobile Connectivity Features directly, it seems the way of destination needs more complex roles.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shen Wang,
I followed the steps as described by you. But still i am facing sane issues.
Can u elaborate about step 3 i.e In BAS, View/Find Command.., select "Mobile Cards: Create Mobile Services Connection", select the destination name you created on cockpit" as doing this step ask me for new mobile service name and service endpoint.
where do i select destination that u mentioned in BAS.
Are you referring to BTP destination or Mobile connectivity.
Regards
Shadan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.