Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA Cloud Platform Developer Center
Viewing all 1983 articles
Browse latest View live

sap.ui.unified.FileUploader not supported on HCP Tenant

$
0
0

Hi,

 

We are developing Fiori apps with HCP's Web IDE. We need to use control sap.ui.unified.FileUploader to upload files to HCP Document Respository. The control runs fine in Web IDE sandbox. However, after the Fiori app is deployed to HCP's tenant, the control, sap.ui.unified.FileUploader, is NOT supported there.

 

Can anyone provide some suggestions how to resolve this issue?

 

Thanks in advance,

Ken


HANA Developers Edition at Azure

$
0
0

Hello everybody,

 

I am trying to create my own instance of SAP HANA Developer edition 1.0 SPS 10 at Microsoft Azure. I already created and instance using SAP CAL portal. The instance was created successfully. It starts and runs in green Active status, also on Azure Portal I am able to see that virtual machine is up and running as well. However when I am trying to connect to my instance using http://<VM Public ID>:8000 orhttp://<VM Public IP>:80. It seemed like this resource is not accessible or rejecting http requests.

 

I already tried to restart instance and change virtual machine size with no luck whatsoever. I also checked for ENDPOINTS at virtual machine size and they are open. My Antivirus and Firewall where both off.

 

Any suggestions what could cause this behavior? Are there any manual configuration steps to be carried out on AZURE virtual machine before it can be accessed from the outside world?

 

I also tried to connect to the system using Eclipse HANA Developers Studio with the same result the instance of HANA seemed to be either not accessible or rejecting my requests. I use VM public ip address as host name and SYSTEM as user with password I created during instance creation in CAL.

 

 

Any suggestions will be welcomed.

 

Connection Test from CAL

1.jpg

 

IE Result

2.jpg

Chrome Result

3.jpg

Eclipse Error Message

4.jpg

Logs of Destination service available?

$
0
0

Hi,

does anyone know if the logs of the destination service are somewhere available? For me it's a kind of a black box.

 

I'm facing the following problem on HCP trial. I created an API with API management service. I then created a destination in HCP cockpit that points to that API. When I use this destination in a UI5 application on HCP I get a "timeout error".

 

I've already checked the following:

  • URL called from my UI5 app is correct
  • API is accessible via PostMan and responses something useful to the URL

 

Any hints where I can get more details about what the destination service does?

 

Regards Helmut

Use of Cursor in Procedure on Hana Trial Account

$
0
0

Hello Experts,

 

I want to know can we consume procedures with cursor on Hana trial Account. I have created one simple procedure with cursor as shown below.

I know the example shown can be done without cursors. Just wanted to try this piece of code.

 

 

CREATE PROCEDURE "NEO_<Schema>"."PROC_TEST3"

(OUT OUTPUT_TABLE "NEO_<Schema>"."TYP_TEST")

LANGUAGE SQLSCRIPT AS

BEGIN

DECLARE CURSOR CUR_C1 FOR

    SELECT FIELD1 AS NAME FROM "_SYS_BIC"."s00xxxxxxtrial.hana.demo.InformationView/CV_TEST";

 

CREATE LOCAL TEMPORARY TABLE "#OUTPUT_TABLE"(NAME VARCHAR(20));

FOR CUR_ROW1 AS CUR_C1 DO

    INSERT INTO "#OUTPUT_TABLE" VALUES (:CUR_ROW1.NAME);

END FOR;

OUTPUT_TABLE = SELECT NAME FROM "#OUTPUT_TABLE";

DROP TABLE "#OUTPUT_TABLE";

END

 

 

Above procedure is activated and running fine in sql console. But when I try to activate model_access.hdbrole file with the below entry it is giving error.

 

role s00xxxxxxtrial.hana.demo::model_access
{
  catalog schema "NEO_<Schema>":CREATE ANY, DROP, INDEX, SELECT, INSERT, UPDATE, DELETE ,EXECUTE;// SELECT, INSERT,DELETE, DROP, CREATE ANY, EXECUTE;
  catalog sql object "NEO_<Schema>"."PROC_TEST3":EXECUTE ;

}

 

 

Error while activating /s00xxxxxxtrial/hana/demo/model_access.hdbrole:

[s00xxxxxxtrial.hana.demo:model_access.hdbrole] insufficient privilege: Not authorized to grant the privilege on the procedure: line 1 col 51 (at pos 50) at ptime/query/checker/check_priv.cc:1432


 

Thanks & Regards,

Deepak.

Missing Authorization REPO.ACTIVATE for Trial User

$
0
0

Hello,

 

I am executing the tutorial https://scn.sap.com/docs/DOC-56256 on HCP with my Trial user.

 

In order to activate a *.hdbti file I need the authorization REPO.ACTIVATE.

 

How can I get this authorization?

 

Best Regards

Christian

Cursors in HANA

$
0
0

Hello Experts,

 

Please let me know, can we create cursor inside procedures on SAP HANA Cloud Platform workbench?

 

 

Thanks,

Pragati

User does not have an account at this location (US East)

$
0
0

Hai,

 

I have created 10 user account in "SAP Cloud Identity Administration Console".  After that,  I have tried logon using the cockpit URL

(https://account.us1.hana.ondemand.com/cockpit), with one of the newly created user (apart from the account which is used for SAP Store) among the 10 users, that time I am facing the issue as given in the below image. Same thing happening for all the 9 users.  So, Please help me on this.

 

Thanks for your support.

 

Best Regards,

Jegan.K

Hybrid App Toolkit Connector

$
0
0

Hi,

 

I am newer to use Sap Hana Cloud Platform and i am facing  problem on connection to Hybrid app toolkit.

Hybrid App Toolkit <V1.10.4 > Connector is  listing port  9010. But when i try to test connection from webide  getting problem that describe as below image.WebIde_Error.png

Is any one have idea what should i do for resolve this then please share me.

 

Thanks


Python runtime in HCP?

$
0
0

I want to write a Python application that will expose an API to Hana data.  I see information about from 12/2015 that new runtimes (including Python) are coming to HCP via SAP's investment in Cloud Foundry and OpenStack.  My question is can I do this now or do I have to use current language support like Java?  Thanks!

Java EE 6 Web Profile Server: Deployed app does not come up

$
0
0

HI,

 

 

I have deployed UI5 app using Java EE 6 Web Profile Server. App is successfully deployed and synchronized. But on running the URL, app does not comes up, error comes 404 - not found in netwroks.

 

 

URL: http://localhost:8080/TestApp/index.html    OR     http://localhost:8080/TestApp

Java EE 6 Web Profile sdk version: 2.56.16

Java version: 1.7.0_25

 

 

 

I faced this problem long back once but can't seem to remember the solution. Any help?

CMIS:Created by field not getting updated from JAVA servlet in HCP

$
0
0

Hi Experts,

 

We are uploading few documents to Document repository in HCP from JAVA program using servlet using CMIS apis.But one field CMIS:Created by is not getting updated and it is giving as sap:builtin:Anonymous.

 

Other fields like createdon,description are working fine.Please guide me how to get createdBy field.in CMIS this field is not writable.this is readable only.

 

Regards,

Rama

HCP - Transporting UI5 Applications from Dev to Prod tenent

$
0
0

Hi,

 

What are the ways to "move" the UI5 application from DEV to PROD environment/tenent on HCP?

 

Export/Import would work but this would go against all the sophistication that was built around transport management. Can someone help understand the options?

 

Thanks

Jayant

How to use hcp-ui5 apps only in http mode?

$
0
0

Dear experts,

 

I am building a ui5 application and deployed on HCP. Internally the app calls http url for loading few resources

Since the app after deployment in hcp runs via https  i am facing an error (as logs in console ) to use the same https for the other url also.

Unfortunately i cannot convert the other url to https now .

 

can i run ui5 app deployed in hcp only via http?

Scaling up configuration of subscribed acounts

$
0
0

Hi,

 

We are using the concept of multi-tenant in Hana Cloud Platform and the current challenge we are facing is scaling up and reducing the configuration time for the consumer accounts. Every consumer account needs to be configured to HCP, Fiori Landscape and Cloud Identity. We are looking at automating most of the steps in configuring the above mentioned services. But unfortunately could not find much except for create-account and subscribe account.

Is there any way we could set up the services and manage the accounts in a better way rather than manually performing steps in cockpit.

 

Thank you

Regards

Vidhya

Hana Native UI5 App Consuming iot service throws CORS issue

$
0
0

Hi Experts,

 

I am creating an XS Application  by Consuming standard iot service in Hana Cloud trail.

 

Workbench: SAP hana web Work bench

 

When i run the application i am getting CORS Issue. Please find the details below

 

XMLHttpRequest cannot load https://iotmms**********trial.hanatrial.ondemand.com/com.sap.iotservices.mms/v…522DF34?$filter=G_DEVICE%20eq%20%27da87ee64-311e-4c0f-80a9-68562006db07%27. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://s12hanaxs.hanatrial.ondemand.com' is therefore not allowed access. The response had HTTP status code 401

 

Please help me in resolving this issue

 

Thanks & Regards,

Arun


Unable to delete the Document Repository

$
0
0

Hello,

I am using the document respository service in HCP trial account. I created a repository with a key and now I am unable to recollect the repository key. I would like to delete and recreate the repository with the same name.I am not allowed to do any action on the repository because i donot know the repository key. Is there a way to get it deleted ?

 

Regards

Pavithra

WebIDE - Cannot read collections while creating project from template

$
0
0

Hi all,

 

me and my colleague are working on WebIDE (licensed account - not trial) and we can not create an app from template. We can see and select a service. But in the following step we cannot select a collection.

 

We have this issue with several connections and services.

What's going wrong

ServiceSelection.png

EmptyObjectCollection.png

 

 

PS: More generally: In our experience WebIDE has very frequently bugs and some things are simply not working out of a sudden. After some days waiting they get fixed sure - but considering that we pay for it and want to use it in projects with timelines  that could be really better. Some colleagues alrteady think loudly to set up our own Eclipse development environment...

insufficient privilege: while update through XSODATA

$
0
0

Hi,

 

I am using trail webide and have created an ui5 application using which I am issuing a oModel.update command. I get the below error in console but I am able to Read the data.

 

"2016-03-08 13:12:15.678959 The following problem occurred: HTTP request failed403,Forbidden,{ "error": { "code": "", "message": { "lang": "en-US", "value": "Service exception: [258] insufficient privilege"},"innererror":{"exception":"ERROR [SQL-258] insufficient privilege: Not authorized at ptime/query/checker/query_check.cc:3389\nexception  1: no.71000258  (ptime/query/checker/query_check.cc:3389)\n    Not authorized\nNO exception throw location recorded. Stack generation suppressed.\n"}}} -  "

 

my .xsaccess file is - {      "exposed" : true ,      "authentication" : [{"method" : "Basic"}]          }

 

my .hdbrole file is -

     role p19418xxxxxtrial.hanatrail.Material::material

     { application privilege: p19418XXXXXtrial.hanatrail.Material::Basic;

     catalog schema "NEO_0RT6TA7RQLCJNCNX78LC9XA14" : SELECT,INSERT, UPDATE, DELETE;

}

 

.xsprivileges

{"privileges":[     {"name":"Basic","description":"Basic Privileges "}     ] }

 

.xsodata

service{ "NEO_0RT6TA7RQLCJNCNX78LC9XA14"."TABLE_NAME" as "Material";

 

Can you please suggest what privileges are missing and how can I add them

 

Thanks

Alter Table type after initial load in SAP HANA, Hana Sidecar scenario.

$
0
0

Hello All

 

We want to alter table type and use the same as a Column table , after initial load in SAP HANA in a side car scenario.

We have a BSEG table in ECC system, we are using SLT for replication of data to HANA.

 

After initial load we want to alter Table type of BSEG  to Column on HANA ,without making any changes in table on ECC side.

 

Thanks

Asmita

Parse Odata Responce in android

$
0
0

Hello,

 

I have got odata service running and give xml and json response properly,

 

but when i try to consume that odata on android device i am not able to, used the code from the below blog with many combination to get odata response and parse

 

How to create an Android app on SAP HANA One in 20 minutes

 

 

BufferedReader in = new BufferedReader(new InputStreamReader(getInputStream( "https://s8hanaxs.hanatrial.ondemand.com/p1941468224trial/devtest/empdemo/services.xsodata/" +

                    "Employees?$format=json", "DEV_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "xxxxxxx")));

 

using the below method it gives

java.io.FileNotFoundException: https://s8hanaxs.hanatrial.ondemand.com/p1941468224trial/devtest/empdemo/services.xsodata/Employees?$format=json

 

 

private InputStream getInputStream(String urlStr, String user, String password) throws IOException

    {

        URL url = new URL(urlStr);

        HttpsURLConnection conn = (HttpsURLConnection) url.openConnection();

        try {

            conn.setDefaultHostnameVerifier(new HostnameVerifier(){

                    public boolean verify(String hostname, SSLSession session) {

                            return true;

                    }});

            SSLContext context = SSLContext.getInstance("TLS");

            context.init(null, new X509TrustManager[]{new X509TrustManager(){

                    public void checkClientTrusted(X509Certificate[] chain,

                                    String authType) throws CertificateException {}

                    public void checkServerTrusted(X509Certificate[] chain,

                                    String authType) throws CertificateException {}

                    public X509Certificate[] getAcceptedIssuers() {

                            return new X509Certificate[0];

                    }}}, new SecureRandom());

            conn.setDefaultSSLSocketFactory(

                            context.getSocketFactory());

    } catch (Exception e) { // should never happen

            e.printStackTrace();

    }

     

        // Create the SSL connection

        SSLContext sc;

        try {

            sc = SSLContext.getInstance("TLS");

     

        sc.init(null, null, new java.security.SecureRandom());

        conn.setSSLSocketFactory(sc.getSocketFactory());

        } catch (NoSuchAlgorithmException e) {

            e.printStackTrace();

        } catch (KeyManagementException e) {

            e.printStackTrace();

        }

        // Use this if you need SSL authentication

        String userpass = user + ":" + password;

        String basicAuth = "Basic " + Base64.encodeToString(userpass.getBytes(), Base64.DEFAULT);

        conn.setRequestProperty("Authorization", basicAuth);

 

        // set Timeout and method

        conn.setReadTimeout(117000);

        conn.setConnectTimeout(117000);

        conn.setRequestMethod("POST");

        conn.setDoInput(true);

 

        // Add any data you wish to post here

 

        conn.connect();

        return conn.getInputStream();

    }

 

 

any one help will be highly appreciated.

 

Thanks

Lakhan

Viewing all 1983 articles
Browse latest View live


Latest Images

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