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

Getting error while running Fiori app on HANA cloud with MII data

Former Member
0 Likes
291

Hello Experts,

          I am trying to retrieve MII data on to HANA cloud.Following blog published in SCN.(Creating Fiori App running on HANA cloud platform with data from SAP MII)

I have few doubts in using that.

  • As mentioned in blog in Components file I am not getting any Config -> Service URL to change the path of my destination.
  • getting error as " Unexpected Namespace f" ," Unexpected Namespace core" if  I am using same code as mentioned in blog  in "Detail.view.xml".
  • In "neo-app.json" file which path variable should change as "MII destination".

other than using Fiori app templates ,is there any other procedures available to fetch MII data to HCP.

Thanks & Regards,

Rajee.

Accepted Solutions (0)

Answers (1)

Answers (1)

salvatore_castro
Product and Topic Expert
Product and Topic Expert
0 Likes

Have a look at this:

There is also an upcoming feature pack in November for MII 15.1 where we are planning to update the OData structure to be more compatible with HCP.

Sam

Former Member
0 Likes

Hi Salvatore Castro,

I am following same blog mentioned by you.

Then also I am facing above issues as I mentioned in my query.

in blog mentioned as in Component.js file I have to provide my Query path.But I am not getting any "config --> Service URL"  in component.js.

Not Understanding where I am doing mistake.

Please help

Regards,

Rajee.

salvatore_castro
Product and Topic Expert
Product and Topic Expert
0 Likes

Rajee,

I believe what you are after is this:

Registering Component Resources

Which comes from this higher level documentation about the Components.js structure and definition:

SAPUI5 SDK - Demo Kit

Hope this helps,

Sam

Former Member
0 Likes

Thanks Salvatore..

my doubts got clarified now.

But I am getting error related to accessing resources while running my app on cloud platform.

Error is :

Note : In image Masked parts are destination in cloud  and Virtual host details in cloud connector.

while running same Query  from browser asking for MII credentials,so where should I provide my credentials while accessing from cloud.

How to access MII resources?.

Please help

Thanks,

Rajee

salvatore_castro
Product and Topic Expert
Product and Topic Expert
0 Likes

My guess is that it could be related to crossdomain or CORS setup (http://www.html5rocks.com/en/tutorials/cors/)...SAP MII does support this and this is outlined in the following notes:

Ranking

Application Area

Number

Short text

Released On

  1. 0.600

MFG-MII

2158379

Adding support for cross origin resource sharing(CORS)

05/04/2015

  1. 0.590

MFG-MII

2169416

Support for CORS headers

07/07/2015

  1. 0.590

MFG-MII

2263727

Overly permissive CORS policy allowed in MII

02/02/2016

  1. 0.430

MFG-MII

2206302

Support for CORS preflight request

09/01/2015

  1. 0.310

MFG-MII

2213270

CORS system properties look mangled on screen

10/12/2015

You may have additional credential and security management on the HCP side but the authorization error isn't detailed enough to show which layer generated the 401 response.

Sam

Former Member
0 Likes

Hi Salvatore,

Thanks for sharing links related to CORS.

This feature is available from MII 14.0 SP06 and 15.0 SP05 onwards.

But in the blog which I am reffering

http://scn.sap.com/community/manufacturing/mii/blog/2015/08/17/creating-fiori-app-running-on-hana-cl...

mentioned MII 14.0 SP04 itself we can achieve.

I think CORS might not be a reason for my issue.

Please correct me if I am wrong.

MII vesrsion which we are using is 15.0 SP04.

Regards,

Rajee.