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

Cloud Connector reaches ODATA from ERP System // SAP HANA Cloud Platform Cockpit doesn't reach ODATA from ERP

$
0
0

Hi Experts,

i am trying develop a Application in the Web IDE with data from a SAP ERP System.

 

1. Build Gateway:                                                                                           Check

metadata.jpg

2. Config Cloud Connector: (no Proxy)                                                             Check

 

PI1.jpg

 

No_proxy.jpg

 

3. Set up ERP System with virtuel Url in SAP HANA Cloud Cockpit:                 Error

 

Cockpit.jpg

 

Also i have no Proxy in Browser.

 

no_proxy_browser.jpg

 

Is there a way to handle the error mssg from SAP HANA Cloud Cockpit?

Ore you have other tips for me?

 

Thanks a lot.

Luis


Could not establish SSL tunnel connection to HCP trial

$
0
0

Hi experts,

 

I tried to install SAP HANA Cloud Connector in our development system. However, in initial configuration step, I faced a following error regarding proxy authentication.

 

#Error when checking connectivity by sending HEAD request to https://connectivitycertsigning.hanatrial.ondemand.com --> java.io.IOException: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 407 Proxy Authentication Required"|

 

I have already confirmed that our proxy setting itself is correct (same as web browser setting).

 

At first, I suspected that our firewall setting is wrong and asked network team to investigate the proxy log. However they told me "The log indicates this

communication didn't have any user credential. It seems that the user credential is not passed properly".

 

Does anyone know the cause of above issue?

 

Any advice or solutions would be greatly appreciated.

 

Best Regards,

Taichi Kameyama

unable to create a HANA modelling view on the cloud platform

$
0
0

Hi all,

I have an account at the HANA cloud platform cockpit : https://account.hanatrial.ondemand.com/

after logon -> "SAP HANA web-based development workbench" , ended up at the 2nd snapshot below, and didn't find any option to create any views from here.

 

can anyone please help me on this?

is there any virtual hana modelling platform ? as my requirement is to have a hands-on experience on the modelling views.

[ i am not able to install hana studio on my laptop due to access privileges.]

 

hana_a.png

hana.png

Blue Green Deployment In HCP

$
0
0

Hi ,

    Is Blue Green Deployment concept is applicable In HCP?

 

Thanks and Best Regards,

Mukta

s9hanaxs.hanatrial POST method issue via xsodata/ sapui5

$
0
0

Hi All,

 

Sorry for creating a duplicate post, the original post heading doesn't explain properly about the issue so creating this question.

Link to the original post: Issue with New HCP Trail Version

 

So the issue is i am able to read the data from xsodata via SAPUI5 but unable to post and the below error is coming.Capture.JPG

 

Its working fine in other server but not working only in the S9hanaxs server.


Thanks & Regards,
Mahesh

Document Sercice: Updating tags on document of custom type

$
0
0

I'm currently evaluating the document service and its capabilities. Among other things I evaluated document versioning (checkOut/checkIn), tagging (sap:tags property) as well as custom types. When I played around with custom types I ran into an issue: I could no longer update documents' tags. It always results in the following exception:

 

org.apache.chemistry.opencmis.commons.exceptions.CmisVersioningException: Property could not be modified: sap:tags
org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.convertStatusCode(AbstractBrowserBindingService.java:288)    org.apache.chemistry.opencmis.client.bindings.spi.browser.AbstractBrowserBindingService.post(AbstractBrowserBindingService.java:404)    org.apache.chemistry.opencmis.client.bindings.spi.browser.ObjectServiceImpl.updateProperties(ObjectServiceImpl.java:399)    org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:376)    org.apache.chemistry.opencmis.client.runtime.AbstractCmisObject.updateProperties(AbstractCmisObject.java:340)    helloworld.HelloWorldServlet.addTag(HelloWorldServlet.java:345)    helloworld.HelloWorldServlet.doPost(HelloWorldServlet.java:291)    javax.servlet.http.HttpServlet.service(HttpServlet.java:755)    javax.servlet.http.HttpServlet.service(HttpServlet.java:848)    org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

The code to add a tag to a document looks as follows.

 

Property<String> property = document.getProperty("sap:tags");
List<String> tags = property.getValues();
tags.add(tag);
Map<String, Object> properties = new HashMap<>();
properties.put("sap:tags", tags);
document.updateProperties(properties);

It works beautifully as long as the document's type is cmis:document. When I use a type I defined or even sap:versioned the exception above get's thrown (even if there is only one version of the document).

 

What -- if anything -- am I doing wrong?

XS app times out / WebIDE does not start

$
0
0

Hello,

 

As apparently several persons on this forum, I am experiencing issues with XS apps.

 

It worked perfectly until Wednesday 13th and then the service started to degrade.

- On the 14th I could still run my app and run the Catalog, but the WebIDE refused to start

- Since, I can't neither start by app nor the WebIDE

 

It seems to be the case for XS apps only.

 

* My application located on https://s11hanaxs.hanatrial.ondemand.com/i023505trial/myinstance never gets any server response (it blocks once my user authentication is being sent to the system)

 

* Same behaviour if I try to launch the WebIDE at https://s11hanaxs.hanatrial.ondemand.com/sap/hana/xs/ide/autologon/?a=i023505trial&p=myinstance&h=account.hanatrial.onde… : the autologon succeeds with HTTP status 200, but the following request never gets any server reply

 

The problem seems to be a general one: other threads in this forum talk about the same problem, and I know one other trial account where a similar problem rises (Cockpit loads just fine, but the WebIDE does not start nor does start the small XS app running there).

 

Help would be really appreciated, or at least an estimation of when the problem could be solved.

 

Best regards

 

  Cedric

How to get the values of selected rows from a table by checking the checkbox?

$
0
0

Hi all,

 

I have a table whose rows get added on click of a button.The values for these rows comes as array of objects.

I also have checkboxes in the table. Now when I select the checkbox, only those rows whose checkbox has been selected has to be posted

to the server.

Here I have attached the code what I tried:

 

[this is for adding values to the table]

 

 

v01=sap.ui.getCore().byId("l02").getValue();

v1=sap.ui.getCore().byId("l2").getValue();

  v2=sap.ui.getCore().byId("l4").getValue();

   v3=sap.ui.getCore().byId("l6").getValue();

v4=sap.ui.getCore().byId("l8").getValue();

  v5=sap.ui.getCore().byId("l10").getValue();           

 

  v6=sap.ui.getCore().byId("l12").getValue();            

  v7=sap.ui.getCore().byId("l14").getValue();

  v8=sap.ui.getCore().byId("l16").getValue();

 

var object1={odno:"",itmno:v01,matdes:v1,quantity:v2,uom:v3,plnt:v4,sloc:v5,sttype:v6,coscen:v7,rmvt:"",txt:v8};          

  arr1.push(object1);             

    arr2={"arr2" : arr1}              

   oTable.setModel(new sap.ui.model.json.JSONModel(arr2)); 

 

 

 

[this is for the XML payload]

 

postfunc:function()

    {

 

em3=sap.ui.getCore().byId("cb1").getSelected(true);

  

     var lu_design= t1+"T00:00:00";

     var lu_loc=t2+"T00:00:00";

     var u_extn=t3;

 

 

  for(var i=0;i<arr1.length;i++){

      var obj = {"OrderNumber":arr1[i].odno,"ItemNumber":arr1[i].itmno,"Material":arr1[i].matdes,"Qty":arr1[i].quantity,"UOM":arr1[i].uom,"Plant":arr1[i].plnt,"SLoc":arr1[i].sloc,"StockType":arr1[i].sttype,"CostCenter":arr1[i].coscen,"ReasonforMvt":arr1[i].rmvt,"Text":arr1[i].txt};

    

      arr3.push(obj);

      }

   

  alert("arr3:"+arr3);

   

 

 

  var upddata = {

      OrderNumber:"",

      PostingDate: lu_loc,

      DocDate: lu_design,

      HeaderText:u_extn,

    

      ToGIItems: arr3,

    

     };  

}

 

 

I have attached the screenshot of my table.

can someone help me with this?

 

 

Regards,

Ramya


Couldn't access data and show it in UI5 web page

$
0
0

Hi experts,

 

I was trying to access data from catalog database and to show it in a table of an UI5 web page.

 

I created the file services_v_user_list.xsodata under the folder services to connect with database.

service {  "NEO_**********"."V_CLIENT_LIST" as "CLIENT_LIST" key ("CLIENTID");
}

"V_CLIENT_LIST" is not empty.

 

In the file main.view.js, I created the table and use oModel to show data in the table.

var oModel = new sap.ui.model.odata.v2.ODataModel("services/services_v_user_list.xsodata");
table.setModel(oModel);
table.bindItems("/CLIENT_LIST");

While in the UI5 web page, the table is empty with no data.

error4.png

 

Is there something wrong with the code?

Thanks in advance.

 

Best regards,

Ziqian

Reset Dev (Trial) Account

$
0
0

Hi SAP,

 

I think with some trial & error I crashed my HCP dev account.

(Guess due to HANA / Cloud Connector changes).

 

Is there a button to "reset"?

If not, can you do that?

 

Thx, Clemens

How to apply authorization in Fiori navigation on HCP

$
0
0

Hi all,

 

we developed some Fiori apps on HCP.  We  need to navigate between Fiori apps.

Do you have example or documentation regarding to how to apply authorization in Fiori navigation on HCP?

 

Best regards

 

Ying

Overall authorization concept for Java app on HCP

$
0
0

Hi all,

 

we developed one app with Fiori as UI and Java app as backend on HCP.

I saw there are roles for java app and roles for HTML5 app.

what's the overall authorization concept for apps on HCP?

Any documentation or example for a end to end scenario?

 

Best regards

 

Ying

Can not Define new Role in File user.hdbrole for PersonList Sample

$
0
0

Hi Colleagues,

 

I am trying to build my first SAP HANA Application with my trial instance following the example in pdf "

Getting Started Develop Your First SAP HANA Native Application

on SAP HANA Cloud Platform Using the SAP HANA Web-based Development Workbench".

In Step 4.2.6 when i try to create a new file for user role to define object privilege for the underlying design-time object person

and an application privilege with keyword application privilege , I get this error message and can not add object privilege and

application privilege as you see in the attached file.

Could you please have a look to attached file and tell me why i can not deine user role ?

 

Thanks in Advance and Best Regards,

Maher

Insufficient Privilege (EXECUTE on REPOSITORY_REST)

$
0
0

Hi,

 

I am using the hana.ondemand.com platform.

 

My studio modeler is remotely connected to the platform. Under the Content folder, i have this error "Insufficient Privilege (EXECUTE on REPOSITORY_REST)" as screen shot below:

 

hana_cloud_error.png

I am using Studio revision 60. What is the cause?

 

Regards.

YS

Hana Cloud Portal with SFSF not working anymore

$
0
0

Hi all,

somehow the HCP Infrastructure seems to have changed. I cannot Open the Portal via Services(https://flpnwc-xxxxx.dispatcher.eu1.hana.ondemand.com/sites/adminspace) anymore, i get an HTTP503. when i open the Portal via the old Link(https://cloudnwcporta/.....) and try to setup a site i always get an error telling me "Open Extension: Could not render Header and Footer" in the developer tools i can seee the following request failing:

https://cloudnwcportal-xxxxxx.hana.ondemand.com/portal/v1/extensions/template?token=5d....

with Statuscode 400 Bad Request.

The Successfactors Theme doesn't work either.

 

Funny enough the Portal works fine in an other account which hasn't SFSF as IDP, so i assume something is broken here.

 

Anybody who can help?

 

Regards


Use the Monitoring Service to Retrieve Metrics from Different HCP Applications

$
0
0

Overview

You can use the monitoring service of SAP HANA Cloud Platform to receive states and metrics of HCP Java applications as well as of the applications’ processes. These Java applications can be in different HCP accounts or even on different data centers (locations). For more information about the currently supported data centers and their hosts, see Landscape Hosts.

To achieve this, you only need to develop a custom dashboard application that will display the metrics you need in the way you prefer. You can also use this application in your corporate network or in the HCP network. Furthermore, you can choose your own UI technology for this dashboard application. For example, you can use SAPUI5 or SAP Fiori.


Process Flow

The communication between your dashboard application and the monitoring service works as follows:

Monitoring Service Scenario_blog1.png

  1. A user accesses a dashboard application in the web browser.
  2. The dashboard application requests metrics of aJava application from the monitoring service with a REST API call.

    For more information about the REST call, see Monitoring API.

  3. The monitoring service retrieves the metrics of the Java application and creates a JSON response.
  4. The monitoring service sends back the JSON response with a status code 200 OK.

    The response contains the state and metrics of the requested application.

  5. The dashboard application parses the JSON response and places the metrics in a list.
  6. The dashboard application requests the metrics of other Java applications by repeating steps 1 to 5.
  7. The dashboard application’s UI uses the list with metrics to display those metrics in the browser.

 

Example

Donna Moore, as an administrator of Company A, would like to use a central application to monitor the company’s Java applications and their processes. Company A is located in Europe, but it has subsidiaries in the United States (us1) and Australia (ap1). Furthermore, the company uses the following Java applications:

  • app1 - an application created for a1 account and used in the European data center.
  • app2 - an application created for a2 account and used in the European data center.
  • app3 - an application created for b1 account and used in the United States (US East) data center.
  • app4 - an application created for b1 account and used in the United States (US East) data center.
  • app5– an application created for c1 account and used in the Asia-Pacific (Australia) data center.

For that purpose, Donna asks her developers to implement a dashboard application that will retrieve and display the state of her Java applications and the metrics of each application’s processes every minute. The update period is a minute because the metrics of a Java application are refreshed each minute. Furthermore, she requests that the dashboard application displays the name, state, value, and date of each metric.

As a result, the company developers create an SAP Fiori dashboard application that makes the following REST API requests for each of the five Java applications:

For each Java application, the monitoring service returns a JSON response containing the following parameters:

  • account - the name of the account;
  • application - the name of the application;
  • state - the state of the application, metric, or process;
  • processes - a list of processes as each process contains the parameters process (the process ID), state (the state of the process), and metrics (the list of metrics for that process).
  • metrics - a list of the metrics as each metric contains the following parameters:
    • name - the name of the metric, for example, Availability Check, CPU Load, etc.
    • state - OK, WARNING (not used for a status metric), or CRITICAL;
    • value - the metric’s value;
    • unit - the unit for the value;
    • timestamp - time in milliseconds from January 1, 1970 to this call;
    • warningThreshold - the warning threshold or the lower threshold;
    • errorThreshold - the critical threshold or the upper threshold;
    • min - minimum value
    • max - maximum value
    • metricType - the following types are supported:
      • status - the status metric returns directly the OK or CRITICAL state of the metric.
      • performance - the performance metrics are used to compare the returned value with the predefined warning and critical thresholds. Values less than the warning threshold result in an OK state, values between the warning and the critical thresholds result in a WARNING state, and values greater than the critical threshold are considered as CRITICAL.
      • rate - the rate metrics are similar to the performance metrics, but the returned value is calculated as a percent from the minimum and maximum values and compared with the warning and critical thresholds.

Hint: Enter the address https://api.<landscapeHost>/monitoring/v1/accounts/<accountName>/apps/<appName>/metrics in your browser to check what metrics are returned for each of your running Java applications.

The Company A’s dashboard application parses each JSON response, and retrieves the name and state of each application as well as the name, state, value, unit, and timestamp of the metrics for each process.

When Donna opens the dashboard application in the browser, it initially shows the states of the Java applications.

Applications_States1.png

To see the metrics of a process, she selects the process in the table.

Process_Metrics.PNG1.png

This blog describes a scenario in which you retrieve metrics of Java applications running on SAP HANA Cloud Platform. However, your scenario might also include components from other platforms such as on-premise systems, other cloud systems, or public services. In that case, you can extend the dashboard application or your company tool to show the necessary metrics for such a scenario.

More Information

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

$
0
0

Hi,

 

we are setting up the Hana cloud connector in our landscape and getting the below error while initializing.

 

can some one help me out?

 

 

HCC error.PNG

 

below are the logs

 

 

2016-01-22 19:09:24,239#INFO#com.sap.scc.config#http-bio-8443-exec-7#          #Cannot find backends configuration file /opt/sap/scc/scc_config/hana.ondemand.com/e0401/backends.xml|

2016-01-22 19:09:24,240#INFO#com.sap.scc.config#http-bio-8443-exec-7#          #Cannot find domains configuration file /opt/sap/scc/scc_config/hana.ondemand.com/e0401/domains.xml|

2016-01-22 19:09:24,667#WARN#com.sap.scc.config#http-bio-8443-exec-7#          #Creating an sslContextProvider for account e0401@hana.ondemand.com without SSLContext. Keystore did not contain a certificate.|

2016-01-22 19:09:26,677#INFO#com.sap.scc.security#http-bio-8443-exec-7#          #New RSA keypair was generated. Key size used: 4096|

2016-01-22 19:09:26,677#INFO#com.sap.scc.security#http-bio-8443-exec-7#          #Will retrieve Connectivity CA certificate from SAP HANA Cloud|

2016-01-22 19:09:26,677#INFO#com.sap.scc.security#http-bio-8443-exec-7#          #Executing Http Get request to https://connectivitycertsigning.hana.ondemand.com:443/certificate/management/v1/trusted/ca/account/e0401|

2016-01-22 19:12:35,724#ERROR#com.sap.scc.ui#http-bio-8443-exec-7#          #Preparation of tunnel certificate for e0401 account failed.

Preparation of tunnel certificate for e0401 account failed.

xs Project is not available in the Project Wizard

unable to create a HANA modelling view on the cloud platform

$
0
0

Hi all,

I have an account at the HANA cloud platform cockpit : https://account.hanatrial.ondemand.com/

after logon -> "SAP HANA web-based development workbench" , ended up at the 2nd snapshot below, and didn't find any option to create any views from here.

 

can anyone please help me on this?

is there any virtual hana modelling platform ? as my requirement is to have a hands-on experience on the modelling views.

[ i am not able to install hana studio on my laptop due to access privileges.]

 

hana_a.png

hana.png

Error 503

$
0
0

Hi,

 

I am getting error 503, service unavailable when I run my first application. I use windows8 and chrome.

Viewing all 3285 articles
Browse latest View live


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