Quantcast
Channel: SCN : All Content - SAP HANA Cloud Platform Developer Center
Viewing all 3285 articles
Browse latest View live

DEV_xxx user credentials

$
0
0

Hi,

 

I hope someone can help me.

I added my hanatrial db to the list of systems and created a couple of tables there.

I am now trying to log on to the hana db using this document : Connect to SAP HANA via JDBC - SAP HANA Developer Guide for SAP HANA Studio - SAP Library


So the format would be sth like :

 

connection = DriverManager.getConnection("jdbc:sap://[dbURL]:30015?reconnect=true&timeout=0",[USER], [PWD]");

 

 

The property window tells me that the URL is "jdbc:sap://localhost:30015?reconnect=true&timeout=0 " (is this correct ?? )

and the USER is of type "DEV_[xxxxxxx]"

 

but I'm not sure how to get the password.

I assumed there was some sort of mapping to my GLOBAL ID and PW so I tried these but it seems to hang at the connection point and never succeed.


If I use the DEV_ user with my GLOBAL password (or empty) it returns a "[10]: invalid username or password" error

 

Where can I find or reset the DEV_xx user credentials ? or am I missing sth altogether ?

 

Thanks

Ollie


got stuck when running preview on SAP Web IDE for first Fiori App

$
0
0

Hi

I am not able to get the application preview function working in SAP Web IDE.

I have logged on to my HCP trial account (no problems) and from here I have clicked the URL for the SAP Web IDE listed under "subscriptions". The SAP Web IDE opens fine, and I go to my first Fiori App, and try to run the index.html with mockdata using the menu. I then get a screen stating "loading", and then the logon screen for SAP HANA Cloud pops up (again?!). In the background I can see the menu for the preview ("large", "medium", "small". etc.), but I am not able to logon to the SAP HANA Cloud, even when I use the user and password that allowed me to logon to HCP in the first place?! please advice what to do.

BR Erling Steenholdt

Trial: Authorization for object lost after each activation?

$
0
0

A beginner's question: In my trial account I created a few tables and views, no problem. I did call "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS" and could then select on them. Also no problem. What surprised me was that each time I re-activated the tables or views, I lost the SELECT authorization. I had to call "HCP"."HCP_GRANT_SELECT_ON_ACTIVATED_OBJECTS" again. Is that intended?

 

I tried to work around that by creating a role with explicit SELECT authorizations for my objects and assigned that role to me. But the same thing happened: After each re-activation of an object, the authorization was lost and I had to get it back.

 

Am I missing anything here?

 

Thanks and kind regards,

Christian

Issues while passing Input Parameter from a URL to a SELECT statement

$
0
0


hi Team,

 

I am developing an XS JS Application in which the following is needed:

 

the User through a link passes the value of the Customer Id and the XS JS application reads this Input Parameter and uses it in a SELECT statement dynamically to fetch the corresponding Customer details(say eg., CITY of the Customer).

 

I attempted the following ways and all of them failed and getting HTTP error 500:

 

1)var pstmt = conn.prepareStatement( "SELECT CITY FROM MYSCHEMA.MYTABLE WHERE CUSTOMER_ID = ?" ); and

   passed the '?' value as : pstmt.setInteger(1,$.request.parameters.get("custid"));

 

2)var custid = $.request.parameters.get("custid");

   var query =  "SELECT CITY FROM MYSCHEMA.MYTABLE WHERE CUSTOMER_ID =" + custid;

   var rs = pstmt.executeQuery(query);

 

Please let me know if there is a way out of this issue. if yes, what is to be done to fetch the Customer details(CITY) for a particular customer(which is coming from the Input Parameter in the LINK/URL)?

 

Thanks in advance for your help in advance.

 

Regards,

Vishnu
  

How to configure HCP Destination from HTML5 to Java

$
0
0

Hi,

 

I have 2 apps in the same HCP Trial account (so using identical authentication). One is a Java app and the other a HTML5 app.

 

I want to call the Java app from the HTML5 app using AJAX but haven't been able to get it to work...

 

The HTML5 app is invoked like this: https://myhtml5-p00000000trial.dispatcher.hanatrial.ondemand.com

 

The Java app is invoked like this: https://myjavap00000000trial.hanatrial.ondemand.com/myproject/?action=x

 

I tried putting the Java app URL directly into AJAX in the HTML5 app but this gave a 302 error (because of authentication redirect?)

 

I then tried adding a HCP destination but for all of the variations I tried (Basic auth, App2AppSSO, PrincipalPropagation etc.) I always got 403 unauthorized error: "Access denied to system myjavap00000000trial.hanatrial.ondemand.com:443. In case this was a valid request, ensure to expose the system correctly in your SAP HANA Cloud connector."


Based on that message I also tried using CC (even though it shouldn't be needed as the java app is not behind a firewall) but wasn't able to get that way to work either.


Can anyone share details on exactly how this scenario should be configured?


Thanks,

 

Philip

Can't connect to cloud DB

$
0
0

Hi,

I'm replicating the example of connecting your cloud database of week 2 unit 2 and everything seems to be done exactly in the described way.

however, I can't get the T_PERSONS Table. 

I checked the Error Log and have the errors showed in the attachments.

Could you please tell me what's wrong?

Thank you and best regards

Gabriel Manon

Error 1.JPGError 2.JPG

Status 403

$
0
0

Hello,

 

When I start the MMS, I get the following message: -

"HTTP Status 403 - Access to the requested resource has been denied"

 

Any idea how to fix it?

 

Regards,
Divyaman

Unable to create trial instance 'hanajv': Internal Server Error (500) - Error when generating certificate for account '...trial' and HANA Trial instance 'hanajv'.

$
0
0

Hi,

 

I am not able to create a new trial Hana instance.

 

Is there a problem ?

 

Best regards,

 

Juan Vega

 

new_hana_instance_error.png


Can't create HANA instance on my trial account

$
0
0

I have 2 HANA cloud trial accounts and I'm getting a different error message from each account when creating a HANA instance from the SAP HANA Cloud Platform Cockpit. See below:

 

---------------------------

TRIAL ACCOUNT 1

---------------------------

Unable to create trial instance 'hanaxs': Internal Server Error (500) - Error when generating certificate for account 'c5221352sapdev' and HANA Trial instance 'hanaxs'.

 

 

---------------------------

TRIAL ACCOUNT 2

---------------------------

Unable to create trial instance 'shshfhgfhf': Internal Server Error (500) - Unexpected exception in createSchema() called with account 'c5221352trial', schema 'shshfhgfhf', DB Type 'hanaxs', DB Version '1.00.85.00.397590', and DB Server 'null'

Authorization issue in HCI OData Provisioning

$
0
0

Hi,

 

I have enable HCI OData provisioning in my trial account. I have also assigned the GW_Admin and GW_User role to my p-user. But still when I try to access the administration cockpit, it shows me "UNAUTHORIZED!" error.

 

Can you please help me in setting up this.

 

Regards,
Ekansh

KPI tiles and KPI drilldowns. How can I create them?

$
0
0

Hello experts

 

I want to create a simple Fiori app with KPIs & drilldown for self-education purposes.

 

1. Is it possible to do this using my HCP trial account?

2. Is it possible to do this using the HCP features available for trial accounts (oData services & Subscriptions)?

3. Is it possible to enable the Fiori KPI Modeler on my cloud launchpad? What steps should I take to enable it?

 

Thank you in advance

Evgeny

not able to create hana xs application in neo.ondemand.com landscape

$
0
0

Hi,

 

I am facing a problem creating  hana application via "SAP HANA Web based development workbench".

After a long processing time, I get an error "web socket connection error" or "web socket connection close" or "Error creating the application" without any further details about the error.

 

I have tried refreshing the page, relogged the instance many a times but nothing helped.

 

The landscape I am working on is "neo.ondemand.com" with "Google Crome" browser.

 

Kindly help how should I resolve it.

 

Thanks

Arun

Can't open a db tunnel, Java is not found

$
0
0

Dear Sap Support,

 

I tried to open a db tunnel on the trial-system:

On which system is no Java found? HANA or local. What should I do?

 

Thanks

Elke Ponath

Console Client For Remote Data Sync

$
0
0

Hi Experts,

 

I am working on a project which requires the use of remote data sync to get data from SQL Anywhere database installed on the gateways.

I am trying to configure Remote Data Sync On HCP starter edition 32 GB. I have enabled the service but as per the link below i need to use Console Client( 2nd Point Under Prerequisites)

 

https://help.us1.hana.ondemand.com/help/frameset.htm?ac7e5e6c84214d14a3303dfc2536f0c2.html

 

Any further information in this regard would be highly appreciated and useful.

 

Thanks & Regards

Sanjeev.

It's an SCN World on the SAP HANA Cloud Platform

$
0
0

It's an SCN World on the SAP HANA Cloud Platform




Background


My blog is a follow up to the ideas I covered in my SAP HANA Cloud Portal movie challenge entry. That post was about ideas to use SAPHCP as a platform to share maps and site statistics about SCN.


I have followed up and implemented a demo of the “Where in the world are you?” ideas in that blog using the HCP. I will use my HCP demo site as an entry to the Data Genius challange. The idea being that you, dear reader, will be prepared to share your location on my map and then see other SCN users on the overall map. As part of the overall map I have added two SAP events (2015 Techeds for Las Vegas and Barcelona) and use an HCP XS service to determine which event is closer to the selected SCN member on the map. And finally I have also used the spatial capabilities of the SAPHCP platform to map SDN points totals from 2004 to 2010.


So onto the details of my SAPHCP demo site and how to use it. I will keep the site active until the end of the Data Genius competition which is due to end in December 2015 and hopefully you have registered your location by that time :).


Main Page Tiles


The main page of my site is at the following link


https://s5hanaxs.hanatrial.ondemand.com/p1248461150trial/hihanaxs/neogeoxs/



datageniusmainpage.PNG



Tile One

is to submit (or subsequently used to update) your location to the SCN map.


To locate any user then the process relies on a modern browsers geo-location functionality. Therefore to use the service you must be prepared to share your location via any prompts from the browser.


Click on the first tile



pasted image 0 (10).png




When the page loads then you need to agree to share your location. E.g. the Firefox browser’s prompt may look like the following screenshot.



pasted image 0 (9).png



Select the “Share Location” ( agree to share the location on any other modern browser ).


If the following screen remains for more than a few minutes then please check you have the location services active and running. There are a few links in the page for various browsers/platforms location services. If you need to activate the location service then please reload the page.



sharelocationstatement.PNG



The above screen should automatically be replaced by the following location screen after a short wait.




nolatlon.png


Step 1


Move the marker to a position you would want to register your location on the map. E.g. you may not want the position that is automatically chosen by the browser. The marker can be dragged to any location - I would prefer it still to be in the general area and not another country for example



Step 2


Enter twitter id (with the @ e.g. @rjruss). You do not need to enter a twitter id, a name/nickname can be entered but for the twitter feature to work in the overall map then only enter the twitter id and it must start with the @ character.


Step 3


Select the submit/update your location button.


Confirmation of the update


Once the submit button is entered then a prompt should confirm success


nolatlon2.png



That’s the end of the first phase.




Tile Two


click on the middle/second tile


pasted image 0 (8).png


The following screen should appear


pasted image 0 (7).png



Using the map zoom icons (+/-) move and zoom in on the map to your location (you should see a borrowed SCN icon in your general area) and click on the icon. Following the twitter link in the popup should display the twitter profile page as below.



tweetlink.PNG


SAP Event Locations


As part of the map I have added two SAP events, those being the Techeds this year in Las Vegas and Barcelona (I have used the general location of each event from the SAP Teched pages for both events). The following screenshot is the default location for the Barcelona Teched.




pasted image 0 (6).png



When I select Tammy Powlas’s location on my map (I’ll cover Tammy’s involvement in testing my site later but thanks Tammy :)) then there is a call to an XS service to determine which SAP event is closer to Tammy.

 


pasted image 0 (5).png



The SCN rocket icon as moved to Las Vegas as the closest event and there is a detail popup for the events registered on my site.



pasted image 0 (4).png



If you have an SCN/SAP event that I can add to the map then that would be great, just let me know the location and I will add it to the map. 



3d Globe View


A 3d globe view of the world is available if you have a compatible computer and browser that works with WebGL. Select the “Enable/Disable ol3-cesium” button to swap between the 2d and 3d maps. The popups and twitter links do NOT work in the globe view.


scnworld.PNG



Final Tile



pasted image 0 (3).png



The last tile is a link to my SDN points data set in the SAP HCP cloud. This is using the data and spatial capabilities of the SAPHCP. The following screen is the initial 2004 data.



pasted image 0 (2).png

 

I used my own ESRI Shapefile for the SDN points data from 2004 to 2010 , using data collected via my ABAP code I shared in my blog here. Here is a link to a video about the country that inspired me to get into maps (and thematic maps ) again, I have shared it previously here and yet again here so I must like that video


Originally I had thought about using the Google Earth API as per the method I used from my original blog. However Google had already announced the depreciation of Google Earth API. So I took a look around for another globe and found the Javascript/ WebGL based Cesium project. Also as I was familiar with Openlayers mapping library I was able to create a map with Openlayers and visualise it with Cesium via the following library http://openlayers.org/ol3-cesium/



Back to the options on the page


The dropdown box can select the year and the “update map” button has to be selected to load the data.



pasted image 0 (1).png



Selecting the “Enable/Disable ol3-cesium” button again will show a 3d globe view. Changing the year and updating the map while it is in 3d mode will NOT work and will most likely need a refresh of the entire page to restore the settings. Only updating the year in 2d mode will work.





pasted image 0.png

Site Details


Thank you


When I created the SCN location map I was interested in people checking the service from other countries. As I have been thankful for their help previously I contacted Tammy Powlas and Sergio Ferrari to test out the site. Tammy replied and was able to help out and test. Sergio kindly took time and replied during his holiday and was not able to test at the time of asking. Thank you both once again. Some of the above screenshots were taken after Tammy had tested the site.


Also other SCN members I would like to thank as their information on SCN allowed me to complete my demo site.

First a thank you again to Stoyan Manchev for his blog on XS applications on the HCP. His blog is one I would like to mark higher than 5 stars as it was my reference for all other activities in putting together my demo XS application.

8 Easy Steps to Develop an XS application on the SAP HANA Cloud Platform


Louenas Hamdi’s blog on build a basic REST service

Get started on HANA Cloud Platform (HCP) XS development: build a basic REST service


Trinoy Hazarika’s blog for geo spatial HANA information that made me realise I could achieve what I wanted with the geo-spatial features of HANA and I tried the approach with the HCP.

Experiences with SAP HANA Geo-Spatial Features – Part 2


Kevin Small’s blog for the geojson information

Visualising BW Query Usage Statistics on a Globe using HANA, XSJS, SAPUI5 & D3


Henrique Pinto’s post about using a GET method to update a HANA database.

http://scn.sap.com/docs/DOC-33902



Thomas Jung’s blog about various HANA developer tools. I took the information about the  UPSERT command. Also thanks to Thomas’s for other general HANA blogs and also I read about preventing  potential SQL injection methods by using prepared SQL statements from his comment linked below.

http://scn.sap.com/community/developer-center/hana/blog/2013/07/01/sap-hana-sps6--various-new-developer-features

http://scn.sap.com/docs/DOC-33902#comment-331203



References to Sites used for the Maps


Openlayers Cesium lib


MapQuest OSM base maps


The way I use these tools can be seen in the source code for the web page. So if you are interested follow the url to see how I use these libraries/tools.


Nearest SAP event


I adapted an answer to this stackoverflow SQL question for my HANA XS service to identify which SAP event would be closest to the selected user.

http://stackoverflow.com/questions/574691/mysql-great-circle-distance-haversine-formula

https://developers.google.com/maps/articles/phpsqlsearch_v3


Uploading a Shapefile to the SAPHCP


The eclipse HANA tools allow uploading ESRI Shapefiles to the SAPHCP from a local computer. The following screenshots allowed me to upload my previously created shapefile for the SDN points data from 2004-10. Using Trinoy’s and Kevin’s blogs referenced earlier I was able to turn these into XS geojson services. Combining that with Stoyen’s base blog about allowing HANA views to be setup for use with an XS service. I did find I had to create a pure HANA dimension calculation view as this was only allowed with spatial data types. I do load over 1.6mb of geojson to map each years data, a next step for me is to separate the spatial data from the actual points data as this would improve the load times and creation of the map.


importShape.png


In the next screen, select your system and the next screen would be to import from the current client


3importSHPfromDir.png


The name of the shapefile and table is then displayed and then choose your schema in the next screen.


Screenshot below of the calculation view I use on my site.


calcViewShape.png


 


Public SAPID based XS Service


As I wanted to allow all SAP HCP trial users to use my service I thought about registering over 2 million accounts in my access model file ;). Then I thought again and read the help and used the following method to allow my services to be used by all end user accounts.


https://help.hana.ondemand.com/help/frameset.htm?2cb80530a7a748f792050730782f9bef.html

“HCP_GRANT_TO_PUBLIC_ROLE(role_name NVARCHAR(256)) - you use this procedure to grant an activated hdbrole to theHCP_PUBLIC role. HCP_PUBLIC role is granted to all end users by default. For the trial landscape, the end user name is their C, D, P, S, or Iuser.”


In my XS service to update the location table I use the $.session.getUsername() command to get the user id and hash this to mask the actual value. More details of how I do that next.


SAP ID Service

I use the SAP ID default account to identify individual users for the map. As the trial SAP HCP uses this as a default authentication method then it is a good way to identify users. If I only share the link on SCN then there is a very good chance I only get registered SCN users on my map.

Masking the SAP ID user id


As I didn’t want to store your SAP ID user account in my trial account HANA database (have you registered your location yet ) , I have used the SHA256 HASH function as a mask. This way if I concat the SAP ID and a known random string I can mask your ID. E.g. for example and not the actual random text I use to hash the user ID.


SELECT HASH_SHA256(to_binary('" + SAPIDUserName + "'), to_binary('Some Random Text')) HASH FROM DUMMY


This would generate the following value that I would store in my HCP site and this combination means I do not know the user id of any user on my map.


hash.png



Timeout


There is a timeout SAML issue for the site and after some time there will be an error due to a timeout of authentication. The issue “Assertion did not contain a valid MessageID” is discussed here http://scn.sap.com/docs/DOC-50418 for SAML based XS services. I did attempt to capture the error (and other potential errors) by following the jquery jqXHR method discussed here. My adapted code looks for any status errors and force reloads the page. This will then re-authenticate and allow the process to complete. You can always reload the page if it appears that nothing is updating after a period of inactivity on my site.


Thanks for reading and registering your location on my map



.













Data Preview for Analytic View does not work in SAP HANA Cloud trial account

$
0
0

Hi all,

I am following this excellent blog Using HANA Modeler in the SAP HANA Cloud.

Modeling works pretty well. E.g. I can model and upload tables, create and activate attribute views and analytic views. Data Preview for attribute views works fine as well. However when trying Data Preview for Analytic View a pop-up occurs with message

 

SAP DBTech JDBC: [257]: sql syntax error: Error:insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:2443

After that the analytic view is displayed without any objects.

 

Consuming the same analytic view with advanced analysis excel works fine, all data is shown correctly.

 

Analytic Privilege is disabled in the definition of the Analytic View.


My database user DEV_.. does not have any analytic privilege, nor do I see any analytic privilege at the assigned roles. Might this cause the issue?

 

Does anybody manage to execute a Data Preview for Analytic View using a SAP HANA Cloud trial account?

 

Thanks for your answers!

Klaus

Sharing tunnel between the Studio and ODBC connections

$
0
0

Hi,

 

When I open a connection to Hana Trial account in Eclipse Hana Studio I see that it opens a tunnel on port 30015.

Then I have an ODBC data source which needs a tunnel started on port 30115. Startin a second channel evidently conlicts with the connections in the Studio. Is there any way to configure studio to use a tunnel I've opened manually or - adversely - reuse SDK tunnel in ODBC source. I checked eclipse and neo logs but I don't see how I could grab the temp password for studio tunnel.

 

Thanks,

Radek

Can't connect to cloud DB

$
0
0

Hi,

I'm replicating the example of connecting your cloud database of week 2 unit 2 and everything seems to be done exactly in the described way.

however, I can't get the T_PERSONS Table. 

I checked the Error Log and have the errors showed in the attachments.

Could you please tell me what's wrong?

Thank you and best regards

Gabriel Manon

Error 1.JPGError 2.JPG

Inter-application communication in HCP

$
0
0

In micro-service architecture, inter-service communication shall be very efficient, in which case HTTP is not a good option. Can we open a server socket in HCP application for other applications to connect? In other word, is it possible to open TCP/UDP port in HCP application? If yes, is there any constraint for other application to connect the application which is listening?

 

To be more specific, attached the illustration, how is it (marked as yellow) supported in HCP? thanks.

authroization error when activate using trial hana instance

$
0
0

Hi,

 

I was following SAP_HANA_Cloud_Platform developer guide to create a simple XS application.

 

I have gone through all steps until "1.3.1.2.7. Create the JavaScript file". In this step, the guide asks activating the files in SAP HANA repository.

 

I got following error in HANA studio when activating...

 

Thanks a lot!

 

--------------------------------------------------------------------------------------------------

Internal error.

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello.".settings"'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello.".settings"'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Repository request failed; cause: Repository: User is not authorized to execute specified operation;User 'DEV_9A6KC6891KCARDFXADK2UO32B' has no authorization, privilege: 'REPO.READ', package: 'hello'!, code: 40,156, argument:

Viewing all 3285 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>