Quantcast
Channel: SCN : Discussion List - SAP HANA Cloud Platform Developer Center
Viewing all 3131 articles
Browse latest View live

how to update data using Odata Services in Hana Cloud Ui5 Apps

$
0
0

Hello ,
Iam Developing a Ui5 Based Application On HCP, i have developed a frontend in XML format.and also created a DataBase Tables in HCP

and able  to Call Odata in Json Format, but i want to know how to Update,and delete the DATA from frontend using same oDATA Services Back in HDB Tables. ! How can i do that, Can Any one Help Me.

 

 

Regards


SAP WEB IDE: No connect possible to remote system (on premise)

$
0
0

Hello

 

I've tried to follow the steps according to


http://scn.sap.com/community/developer-center/front-end/blog/2015/02/11/set-up-your-sap-web-ide-on-hana-cloud-part-1


At part 3 "Connecting to remote system" the


At part 4 " test the SAP Web IDE" when browsing the service catalog, I can select my system LAB (which I've maintained according to part 3 "Connecting to remote system". LAB is a on premise ABAP system and in the hana cockpit the destination shows status green, which means

it can be reached through the sap hana connector.)


Now the following problem arises: "unable to access the selected system. check credentials and try again".


However the provided credentials are ok.

 

I've tried also to debug according to http://scn.sap.com/community/developer-center/front-end/blog/2015/02/13/troubleshooting-sap-web-ide-destination-issues , but no success.


Is there a better way to tackle down the connection problem, a step by step guideline?


Thanks for your feedback.


KInd regards

Chris



151044: Agent not available

$
0
0

Hi all,

I'm using DP agent on HCP Hana to upload data. This was working for a couple of weeks, yesterday it started to timeout, so I've restarted the database from the cockpit. Then I've restarted the sapCC which provides client connection and the DP agent, however Hana says

 

SAP DBTech JDBC: [403]: internal error: Cannot get remote source objects: exception 151044: Agent "CLOUD_AGENT" is not available.

 

Last time I've restarted the DB I was able to reconnect the agent without problems. What I don't understand: when I try to create a new remote source, it offers the FileAdapter from my agent and the agent with the name CLOUD_AGENT which is my agent's name, so it looks as if it knew about it. Anyone has an idea what may be wrong or where to look?

 

-- Micha

Get the application URL of a subscribed application

$
0
0

Hi,

We need to create a HCP destination (using Neo CLI commands) whose URL will be the application URL of a subscribed application in an HCP account.

As the subscribed application is a multi-tenant application, and the application URL will vary based on the tenant, I would like to know if there is a Neo CLI command to retrieve the application URL of a subscribed application?

 

I see that the application URL always follow the pattern:

http://<<appName>><<providerAccName>>-<<TenantAccountName>>.<<landscape_host>>

 

If its not possible via Neo CLI, Is it a good way to follow this pattern  and derive the URL ?

 

Thanks,

Lavanya

Classify Documents in HCP according to given information

$
0
0

Dear community,

 

I am pretty new to Hana and I want to leverage its capabilities for some sort of Text Mining.


I have two tables, one with keywords linked to a class (Table "SpecialWords") and another table with a text (Table "Documents").

 

What I am thinking of is something like this.

 

Table SpecialWords

SPECIALWORDS.png

 

Table Documents

Texteee.png

 

 

What I now want to create is a table which indicates what kind of text is stored in table "Documents" (e.g. Financial or IT). So add a Column to Documents which says "Financial" or "IT".


I already tried to use the AFM with the Naive Bayes Classifier but couldn't get any result out of it.

 

Does anyone had a similar problem and managed to solve it or has a recommendation for a good way to solve such problems?

 

I've also heard in an OpenSAP-course about Text Mining and the KNN-Classifier but couldn't find any technical approach to applying it.

 

 

Thanks in advance guys!

Deploy an imported SAP UI5 application from SAP ABAP Repository on HCP

$
0
0

Hello all,

I am new to the Hana Cloud Platform as well as SAP UI5

My target is to deploy a sap ui5 application (from SAP ABAP repository) on hana cloud platform.

 

The following are steps that I did to achieve my target.

  1. Created a SAP UI5 project in Eclipse and executed successfully.
  2. Shared and submitted the project on ABAP repository.
  3. Imported the application from SAPUI5 ABAP repository into the SAP Web IDE workspace by following the documentation under SAP Web IDE Developer Guide
  4. Tested application on SAP Web IDE and its working fine.
  5. Deployed the application on SAP HCP.

When I click on the Application URL, I am facing "HTTP Resource not found - 404".

Did I miss something? Should I have to do modifications in the code after importing from ABAP repository?

Please help me.

Accessing Hana xsjs in SAP WEBIDE

$
0
0

Hi All,

 

     I am trying to access the hana xsjs and xsodata service (which is running in HCP trial MDC environment) in SAP WEbIDE.

 

     We have done some few steps to make it work from webide. We have installed proxy and try to access xsjs. Please find below configuration screenshot for proxy.

 

     proxy.PNG

 

This is the xsjs service we have created.

xsjs service.PNG

But i am unable to get the xsjs service in proxy local host.Getting error as "options.uri is a required argument"

 

localhost.PNG

we have also  tried to get xsjs service through cloud connector by mapping the destinations in HCP. But while reading that service getting error as follows.

webide error.png

 

Please helps us here to proceed further.

    

 

Thanks,

Shalini T

HCP - XSJS calling stored procedure error

$
0
0

Hello gurus,

 

I have an xsjs service which i am calling from a UI. the Service gets called just fine.

the xsjs is making a call to a stored procedure, however, the stored procedure returns this error everytime I call it. The same code works on an on-prem system but not on the hcp (trial)

 

1281 - SQL error, server error code: 1281. wrong number or types of parameters in call: IN_TT is not bound --- I am not sure why IN_TT is not bound as I am passing the input param from the xsjs side and the sp contains this input parameter which is a table type in my model

 

my hdb procedure looks like :

PROCEDURE "schema"."pathtosp::SP_TEST" ( IN IN_TT "schema"."pathtomodel::model.ID_TT",    OUT OUT_TT "schema"."pathtomodel::model.ID_TT"
)   LANGUAGE SQLSCRIPT   SQL SECURITY INVOKER   --DEFAULT SCHEMA <default_schema_name>   --READS SQL DATA    AS
BEGIN    OUT_TT = SELECT * FROM :IN_TT;
END

 

my xsjs code looks like:

 

 function tests(request){       var output = { insertedIds: [], errors: [] };               try {    var connection = $.hdb.getConnection();    var spInsert = connection.loadProcedure(schema, spProjectPath + '::SP_TEST');    var result = spInsert(request.IN_TT);    output.insertedIds = result.OUT_TT;       connection.commit();    }    catch(ex) {    output.errors.push(ex.toString());    }        return { responseMessage: 'called insert Stored Proc', output: output };    }

and the json object i am sending to the service is:

{

IN_TT: [ { ID:1 }, {ID:2} ]

}

 

 

again, the service is reachable, the sp gives me the error when i call it from postman on the chrome browser

I do already have access  to insert into the table (defined in a role)


Principal Propagation / User Certificate Not Sent

$
0
0

Dear Community,

 

I am trying to set up an SSL connection from HCP via the Hana Cloud Connector to an Apache2 HTTP server.

In order to do that I created a self signed CA certificate, imported it as System Certificate and CA Certificate into the Cloud Connector and registered it in Apache as SSLCACertificate.

The connection is established well. However on the Apache side I noticed that the CN of the client certificate is wrong. It is not replaced by the user name which is propagated from HCP.

How is this possible? Does the HCC send a wrong certificate? Is the short-living client certificate generated, but not send?

The logs on HCC side as always make the impression the correct certificate is sent, but I somehow doubt it:

 

2016-07-01 03:07:38,380#DEBUG#com.sap.scc.security#tunnelclient-4-1#0x9dab93ae#Generating X.509 certificate for authentication to backend|

2016-07-01 03:07:38,380#DEBUG#com.sap.scc.security#tunnelclient-4-1#0x9dab93ae#Requesting token for principal DXXXXXX|

2016-07-01 03:07:38,380#DEBUG#com.sap.scc.security#tunnelclient-4-1#0x9dab93ae#Using cached X.509 certificate with subject CN=DXXXXXX,EMAIL=test_static||

2016-07-01 03:07:38,381#TRACE#com.sap.core.connectivity.protocol.http.HttpProtocolProcessor#tunnelclient-4-1# #Report open connection connection -1649699922 to HTTP://xxxxx.mo.sap.corp:443|

2016-07-01 03:07:38,381#DEBUG#com.sap.core.connectivity.spi.processing.AbstractProtocolProcessor#tunnelclient-4-1# #Successfully opened backend connection [id: 0x7c81c261, /10.97.131.31:36024 => xxxxx.mo.sap.corp/10.97.173.49:443]|

2016-07-01 03:07:38,381#DEBUG#com.sap.core.connectivity.protocol.http.handlers.HttpProtocolOutboundHandler#tunnelclient-4-1#0x9dab93ae#Access allowed to /w/test.php for virtual host xxxxx.mo.sap.corp:443|

2016-07-01 03:07:38,381#TRACE#com.sap.core.connectivity.protocol.http.handlers.HttpProtocolOutboundHandler#tunnelclient-4-1#0x9dab93ae#Set request description to statistics instance: /w/test.php on [virtualHost=xxxxx.mo.sap.corp, virtualPort=443, protocol=HTTP]|

2016-07-01 03:07:38,381#TRACE#com.sap.core.connectivity.protocol.http.handlers.HttpProtocolOutboundHandler#tunnelclient-4-1#0x9dab93ae#Report invoke started for  connection -1649699922 to HTTP://xxxxx.mo.sap.corp:443 request /w/test.php|

2016-07-01 03:07:38,381#DEBUG#com.sap.core.connectivity.protocol.http.handlers.HttpInterceptingHandler#tunnelclient-4-1#0x9dab93ae#Start sending /w/test.php to backend.|

2016-07-01 03:07:38,381#DEBUG#com.sap.core.connectivity.protocol.http.handlers.HttpAuthentication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SBa9B9NTJ4PRjtKxp8gKE2rIt4zHNc/SQryhbDB3/2+629mjYc/SwcmKYzpzr+njjTywYNwF27HOpG7yDuICSAuiVAkIIeAcQt3R37XcENIIYIQSqlUK3esT+6L7HhDmc8ZAaUhXfuVphicpWOJUxy22kFnUm2kmHaPhtGIrnj/z8eKhdPO1TndWD8BgempI0Bf35sPNMz+JEK2CrSZtPw22jZ7VgPzi/rtk0PYSfTjAGJK5D80fp18bQdw==|

2016-07-01 03:07:38,382#DEBUG#com.sap.core.connectivity.protocol.http.handlers.HttpInterceptingHandler#tunnelclient-4-1#0x9dab93ae#Start sending /w/test.php to backend.|

2016-07-01 03:07:38,383#DEBUG#com.sap.core.connectivity.protocol.http.handlers.HttpInterceptingHandler#tunnelclient-4-1#0x9dab93ae#Finished sending /w/test.php to backend.|

2016-07-01 03:07:38,383#DEBUG#com.sap.core.connectivity.protocol.http.handlers.HttpInterceptingHandler#tunnelclient-4-1#0x9dab93ae#Finished sending /w/test.php to backend.|

2016-07-01 03:07:38,402#DEBUG#io.netty.handler.ssl.SslHandler#tunnelclient-4-1# #[id: 0x7c81c261, /10.97.131.31:36024 => xxxxx.mo.sap.corp/10.97.173.49:443] HANDSHAKEN: TLS_RSA_WITH_AES_256_GCM_SHA384|

[…]

2016-07-01 03:07:38,418#DEBUG#com.sap.core.connectivity.tunnel.client.sso.CallerPrincipalProviderImpl#tunnelclient-4-1#0x9dab93ae#Unassigned principal 'DXXXXXX'|

 

As always any idea what might go wrong here is very appreciated.

 

Best Regards

Martin

Unable to Update the Data in Hana DB using Odata Services

$
0
0

We are getting an error in OData is not defined in controller.js where we want to call request method like OData.request ().

Error screenshot attached for reference and help.

 

Regards

library-preload.json not loaded

$
0
0

Hi,

 

we currently have an issue with our fiori app which is hosted on HCP. To speed up performance we created component-preload.js and library-preload.json files.

 

The component-preload.js files load up fine and so the single files don't have to be loaded which results in much faster loading times.

The problem is that the library-preload.json is not used.

 

When loading a page of the app it automatically looks up if there is a component-preload.js and throws a 404 error when there is none and loads the single files. With the library-preload.json it's not the same, the network logs don't even show a request for the library-preload.json.

 

Do we have to configure something, so the library-preload.json is also loaded, like the component-preload.js?

Also, is there a more extensive description of the usage from preload files and configuration options that can be made?

 

The descriptions I found on this topic are not that extensive. The only real documentation I found is this one.

 

Thank you and kind regards,

Philipp

Is Olingo Odata service and HCP inbuilt DB useful if data is coming from SAP Netweaver OData

$
0
0

Hi Guys,

 

  I have been using SAP fiori deployed on Hana Cloud Platform on top of ABAP Odata service from ECC. Now I came to know some recent features of HCP where JPA and Olingo Odata service based on java are supported .  Also HCP has its own database also.

 

So as a developer working with SAP Netweaver Database , I want to know will these 2 things which i mentioned above are ever going to be useful to me since in any case my original data will always be in ECC and hence I will always have to create SAP Netweaver Gateway Odata service. Does that also mean the inbuilt database in HCP also will be of no use to me.

 

Thanks

Amber

JPA EclipseLink Identity Value supported

$
0
0

Hello everyone,

 

one question regarding JPA on Hana. Is the AutoGenerated notation supported by eclipselink using Hana. i know with XS we have to define sequences.

 

Hope somebody can clarify this.

 

Regards,

Manjinder

Not able to connect CC to HCP

$
0
0

Hi All,

 

Could you please help me in connecting Could connector to my SAP hana cloud platform trail account, i was able to connect a moth back, i have also attached the logs,

 

 

Regards,

Alen Dsouza

When creating Attrb. view - Failed to create the parts controls

$
0
0

Hi,

 

Does anybody knows how to resolve this issue. cannot add table, same with Analytical & calculation view.

 

thanks


HTML5 app and SAP HANA Cloud Connector: Cannot open tunnel with id

$
0
0

Hello HANA Cloud Experts,

 

following Rui Nogueira's Blog Lightweight HTML5 apps and Git on SAP HANA Cloud Platform I wanted to try bringing my bol2rest project to the HANA Cloud but connect to a SAP CRM on-premise backend. The SAP HANA Cloud Connector is quickly installed and I was able to build a Java app that connects to the public ping service of the ABAP stack. This proves that the connection from the HANA Cloud to the on-premise backend can be established successfully.

 

Now I've  created the destinations in the Cockpit:

 

screen-capture-25.png

 

I've used this destinations in the neo-app.json file:

 

{    "routes": [        {                "path": "/sap/bol2rest",                "target": {                                "type": "destination",                                "name": "vcrbol2rest"                },                "description": "bol2rest Service on VCR via SAP Cloud Connector"        },        {                "path": "/vcrpublicping",                "target": {                                "type": "destination",                                "name": "vcrpublicping"                },                "description": "VCR public ping"        }    ]
}

I've pushed this file and the index.html via git, created a version and activated this version in the console. There I see that the required destinations are available:

 

screen-capture-26.png

 

But unfortunately when calling the URL:

 

https://bol2rest-s0001142741trial.dispatcher.hanatrial.ondemand.com/vcrpublicping

 

the following error is returned:

 

Cannot open tunnel with id account:///s0001142741trial

 

Hope someone can help on this issue.

 

Best regards

Gregor

Cloud Connector Connection refused:

$
0
0

Hi all,

we are setting up cloud connector for HCP. We already successful connected the Cloud Connector to the trial account on

hantrial.ondeman.com. We now trying to connect to our production HCP on hana.ondemand.com. When we add the account

we get the error message :

"Failed to sign the SAP HANA Cloud Connector certificate for account ac....."

 

 

 

The logfile in the CC shows following entries:

2016-07-04 14:47:17,052#ERROR#com.sap.scc.ui#http-bio-8443-exec-4#          #Preparation of tunnel certificate for ac... failed".

 

The User ac.... is cloud admin in the HCP.

 

For the account Name we uses the cloud account ac....

For the Username our S User.

If I call the URL https://connectivitycertsigning.hana.ondemand.com:443/certificate/management/v1/trusted/ca/account/ac...

manually I get a certificate.

Username and Account Name should be okay.

 

any ideas

Thomas

 

UPdate: I deleted the System Certificate we installed signed by our CA and restarted the CC. Still connection is no established. Now we get the error : "va.net.ConnectException: Connection refused: connectivitynotification.hana.ondemand.com/155.56.210.83:443" I will crosscheck that with our network guys. Maybe this is now a firewall problem.

I can't log on to Hana Cockpit or Hana Workbench

$
0
0

Hi HCP commuyity

 

i use a HCP developper account. Since few days, i can't reach Hana Cockpit or Hana Workbench anymore.

 

My DB is started, but when i click on links from HCP cockpit, i only get a white page named "untitled"

i tried on different browser and OS, it s the same.

It used to worked fine 2 weeks ago as i was following the OpenSAP course

 

Can someone help with that?

 

Thanks!

Guillaume

hana cloud connector and Soa manager

$
0
0

Hi

 

I am a bit confused

 

We have to configure Web Service Configuration  via Soamanager. We also have SAP Hana Cloud connector installed on-premise and connected to eu1.hana.ondemand.com.

 

In the Soamanger "transport settings" can I use the Hana cloud connector URL and port in "Name of the proxy host". see attached

 

If I am wrong then please help me on  how can I use SOA Manager to use Hana Cloud connector

PE4AD Can I use ASE for more then one subaccount?

$
0
0

Hi experts!

 

Is it possible to use one ASE instance over multiple subaccounts?

If yes, how would I use neo correctly to grant access to anohter subaccount(s)?

 

Regards,

Mario

Viewing all 3131 articles
Browse latest View live


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