if you used container then use event handler
Re: Modulepool programming subscreen
Using the Authorization Management API from Hana XS
Hello everyone,
I am currently struggling with calling the Authorization Management API from an XSJS script on the HCP. The goal here is to build an XSJS Service which provides the roles given to a user in an HTML5 Application. The HTML5 frontend then shows different options/layouts depending on the roles the user has.
For this I created a .xshttpdest file
description = "HCP Authorization Management API"; host = "api.hana.ondemand.com"; port = 80; proxyType = http; proxyHost = "proxy"; proxyPort = 8080; useSSL = true; timeout = 30000;
I setup the SSL certificate in the Trust Store as described here: Outbound httpS with HANA XS (part 2) - set up the trust relation
My current XSJS file for testing looks like this:
var destinationPackage = "destinations"; var destinationName = "authorizationManagementAPI"; try { var dest = $.net.http.readDestination(destinationPackage, destinationName); var client = new $.net.http.Client(); var req = new $.web.WebRequest($.net.http.POST, "/oauth2/apitoken/v1?grant_type=client_credentials"); client.request(req, dest); var response = client.getResponse(); $.response.contentType = "application/json"; $.response.setBody(JSON.stringify(response)); $.response.status = $.net.http.OK; } catch (e) { $.response.contentType = "text/plain"; $.response.setBody(e.message); }
Running this file results in a page which loads for a long while and then delivers the following error:
HttpClient.request: request failed: unable to establish connection to api.hana.ondemand.com:80 - IPcon: SSL session failed with error: "SapSSLSessionStart()==SSSLERR_SSL_CONNECT SSL_connnect() failed (0/0x00) Huh?? SSL:SSL_get_state()==0x2120 "SSLv3 read server hello A" SSL NI-hdl 12: local=10.78.117.198:47299 peer=10.78.128.44:8080 cli SSL session PSE "#_MemPSE_#803805521865518491315724" Target Hostname="api.hana.ondemand.com" "
Does anyone know what causes this error and/or could you explain how to call the API from our XSJS Backend?
Regards,
Markus
Re: BOFC SP Upgrade [ERP System Impact]
Hi Senthil,
In terms of impact of ERP, this depends.
FC does not run on the ABAP stack and therefore has no NW layer and I would therefore assume your ERP systems are split from the FC system, and they do not physically run on the same server?
If so, there is 0 impact on ERP by upgrading FC to another OS
Marc
Re: Problem while loading data in Material Attribute Data Source
Hi Gorka/Vengal,
I tried the above option too. But not working in my scenario.
Regards,
Foram
Re: Client Login error Internal Error -1102
I installed SQL native client, but still not working.
Re: Q&A - iPhone emoji is crashing page
Re: How to get oData bound to a vizFrame?
Hi Sai,
Thanks for the reply.
However the last line, oData.getModel().getProperty(oData.getPath()); is not returning anything.
It is undefined. I get all values till oPath. oModelData is undefined.
Re: How to use DAY_Duration data type?
Hi
Even I am wandering how to assign Days I am trying and will post here if it is achievable, If you figured it out let us know.
Regard
Sunil
Re: How to build XS APPLICATION to upload Excel to HANA DB Table
Hi Sergio,
Thanks for advising. I completed your first suggested step
(a file uploader control on your UI that allows you to browse and select your file).
However, in Eclipse which file format do I need to choose in order to create a server side javascript file xsjs?
Cheers,
Rabie
Re: Formatting report A4 to Letter - page setup
Hi Adriano,
If the Page Size shrinks, some of your fields might truncate.
In which case, you'd need to manually adjust the fields in the CR Designer and save again.
-Abhilash
Re: Order combination in sales order
Hi
I guess it's not possible in standard, but coding part will not be difficult. Do you need Order combination to be able to be unchecked if needed, in that particular sales area? If so, you can use exit MV45AFZZ -> Form USEREXIT_MOVE_FIELD_TO_VBAK. If not, use user exit MV45AFZB -> Form USEREXIT_CHECK_VBAK.
Re: SMP 3.0 with Mongo DB
Dear Midhun,
Can we include third party connectors within SMP for database as well?
Re: Requirement on actual goods and planned date
Hi,
in your transformation, you can create a formula saying:
IF( IS_INITIAL( WADAT_IST ), WADAT, WADAT_IST )
Grtz
Koen
Re: Report to display list of function modules with similar functionality
I do not agree with
Never have more than 30 lines of code in one form/function/method
because working in 7.31 (without inline declaration) i risk to use about half of them just to declare an internal table
I prefer the empiric rule: if it doesn't fit your screen you have to check better
Re: Parameters declaration error
No answer. Thread locked.
Re: Error determining planning periods for calendar
Hi,
Kindly extend your planning calendar for that material check the work scheduling view because
due to that reason the scheduling is happening beyond your planning calendar that is the reason you are getting that error.
Thanks & Regards
Sandeep Kumar Praharaj
Re: Read the number from row(Text line)
Use this FM.
CALL FUNCTION 'PREPARE_STRING'
EXPORTING
i_valid_chars = '0123456789'.
i_xvalid_check = 'X'
i_xchar_repl = 'X'
i_xtoupper = 'X'
CHANGING
c_string = lv_string.
CONDENSE lv_string NO-GAPS.
Re: SUM GUI IS NOT STARTING
Hi Vikash & Anil,
Please tried to upgrade SAP Host Agent and re-extract SUM 10 SP 16. Try to execute STARTUP confighostagent SID again and access the URL (using http and port 1128).
Thanks & best regards,
Husin
Month end in the middle month
Please give us solution if We month end in the middle month, example We closed in June 20,2016, How we handle inventory movement after June 20,2016 so inventory movement follow in the next month or July
Agung
Re: displayed data with use 2 databases
this one is ok, but I have else one question.
It is poossible write query with use UNION on "Add command" like this?
SELECT t_customer.name, t_user.firstname
FROM t_customer LEFT OUTER JOIN
t_users ON t_customer.id = t_users.id
WHERE t_user.firstname='mark'
GROUP BY t_customer.name, t_user.firstname
UNION
SELECT t_customer.name, t_user.firstname
FROM t_customer LEFT OUTER JOIN
t_users ON t_customer.id = t_users.id
WHERE t_user.firstname='mark'
GROUP BY t_customer.name, t_user.firstname
Query writen over UNION is database1.dbo
Query writen under UNION is database2.dbo
It is possible this way to join two databases? I dont know where (how) I write "database1"."dbo"
"database2"."dbo"
thank for help