cancel
Showing results for 
Search instead for 
Did you mean: 
markushaug
Employee
Employee

Hi all,

let me kick off the touchpoint for the Building side-by-side extensions on SAP BTP learning journey.
I’d first like to welcome everyone and introduce me on all matters regarding the 
SAP Learning Jounrey Building side-by-side extensions on SAP BTP

markushaug_0-1677504594947.jpeg

Markus Haug, Product Learning Specialist @ SAP

At SAP Learning, I'm a strong advisor, advocate, and partner for our developers, customers, and partners. I bring a unique combination of technical expertise, product knowledge, and speaking skills to help developers learn the basics, overcome challenges, and pass SAP certifications worldwide.

My current focus is on building world-class online content and learning experiences for developers of the SAP Business Technology Platform (SAP BTP) in cloud-native application/extension development.

All our Touchpoints are collaborative environment designed to get support your learnings.
Here you can share your expectation and exchange.
I would like to encourage you to introduce yourself and let us know your motivations and expectation.

If you have a question or comments, this is the right place for you!
No question is too simple or complex – we look forward to hearing from you.

Happy learning!

13 Comments
Benny_Bu
Stellar 2
Stellar 2

Hi Markus,

I'm not sure if I'm correct here, but I would like to know if BTP is ready for SAP Business One now? We are very unsure if we should get certified for BTP platform if it is not ready for SBO yet.

Can you help me with this problem?

With kind regards,

Benjamin

JTR
Employee
Employee

Hello Markus,

In the manual deployment step, where the "oauth-configuration" attribute is added on the XSUAA resource, it mentions we should add the approuter URL. This also stated in the SAP Note in case there is an error with the domain. However, the learning course does not explain where should we pick the approuter URL or if we should add ourselves based on the app name + domain name from the BTP region and account. 

Can you share what should be done in this part? 

Thank you

VinayKumawat
Employee
Employee

  @JTR refer the redirect URI

you can use wildcard in the URI: 

        oauth2-configuration:
          redirect-uris:
          - https://*.cfapps.us10-001.hana.ondemand.com/login/callback

 

 

emmanuelt
Galactic 1
Galactic 1

Hi Markus,

I'm getting an error during Manual deployment. Can you please help? Please see attached image for the said error. 

Thanks,

EmmanManual deployment error.jpg

VinayKumawat
Employee
Employee

@emmanuelt  Please make sure the subaccount has all the service and respective plan assigned in 'Entitlements':

for example: one of the error is for offering "hana" and plan "hdi-shared":

VinayKumawat_0-1679395494229.png

similarly for 'xsuaa' and plan "application":

VinayKumawat_1-1679395776492.png

Regards,

Vinay

 

emmanuelt
Galactic 1
Galactic 1

Hi @VinayKumawat,

Your solution works. Thanks! 

However, I'm still getting another error: Error creating or updating application "risk-management": Controller operation failed: 422 Unprocessable Entity: CF-UnprocessableEntity(10008): Routes quota exceeded for organization 'xxxxxxxtrial_trial-us-xxxxxxxx'.

I checked my space and it says "100% of memory quota used". I Appreciate your help, thanks.Quota Plans.jpgdev space.jpg

Best Regards,

Emman

 

 

VinayKumawat
Employee
Employee

@emmanuelt  for this this learning journey please check in global account and assign maximum units for cloud foundry to your subaccount:

VinayKumawat_0-1679410431983.png

then check your subaccount for the quota if it is assigned to your Cloud foundry space.

Regards,

Vinay

emmanuelt
Galactic 1
Galactic 1

Hi @VinayKumawat

I was able to successfully deployed it now. Thanks for your help. Though, I still have one more problem after the deployment. I kept getting "Authorization Request Error. There was an error. The request for authorization was invalid" when trying to open the app.  error.jpg

Best Regards,

Emman

JTR
Employee
Employee

@emmanuelt I'm having the same problem after successful deployment. 

But there was one time i removed the app-router URL in the "redirect-uris" parameters and this problem disappeared. 

Then, i just experienced an error "Forbidden" when executing the get call to retrieve the info in the application but i interpreted as being connected to the roles as i haven't yet assigned to myself. 

Still need to figure out this part. 

VinayKumawat
Employee
Employee

@emmanuelt 

refer the redirect URI

you can use wildcard in the URI: 

        oauth2-configuration:
          redirect-uris:
          - https://*.cfapps.us10-001.hana.ondemand.com/login/callback
JTR
Employee
Employee

@VinayKumawat 

In regards to your comment, this is one of the questions i had and was confused. 

Documentation in Help SAP, aligned with your comment, indicates this property should be maintained on the xs-security.jon but the exercise steps indicate it should be added on the mta.yaml file. 

Can they be added on both? Should they be added on both? 

On an additional level, i understand the usage of wildcard but the exercise also states "-app-router" in the URI. Is this supposed to be the final URI that will be the application which is consumed by the user? And in SAP BTP DEV space will include another URL from the approuter which then redirects to the defined URI on oauth2 parameter? 

 

JTR_0-1679487272915.png

Anyway, i haven't done a new deployment the past days but it's working now fine for me. Even the odata calls to each service. 

Thank you @VinayKumawat 

emmanuelt
Galactic 1
Galactic 1

Hi @JTR, thank you for pointing it out. I have added the "redirect-uris" code in xs-security.json instead of mta.yaml file. Unfortunately, I'm getting "Not Found" page after I access the app.  I have already redeployed this. 

Hi @VinayKumawat, kindly advise. Thanks 

xs-security.json.jpg

Not found.jpg

VinayKumawat
Employee
Employee

@emmanuelt @JTR  please add into mta.yaml

VinayKumawat_0-1679494825509.png

you can construct this URL by looking at the API endpoint in subaccount:

VinayKumawat_1-1679495063285.png

it is https://api.cf.us10-001.hana.ondemand.com so rediect uri can be:

https://*.cfapps.us10-001.hana.ondemand.com/login/callback

for more details refer 2864831 - "The redirect_uri has an invalid domain" error when using a custom domain in Cloud Foundry...