How to configure destination in HANA Cloud Platform? - odata

In hana cloud platform , there is a "New project from sample application" (I think it is recently added ? ), I created a "Approve Purchase Orders", but when I run it, there is a 500 error:
Produced by
"requestUri": "/sap/opu/odata/sap/SEPMRA_PO_APV/$metadata"
How to config RefAppsBackend data source in destionation?
When I new project from template, there is a place to config data connection , but why the sample application didn't provide it ?

When you create from sample application, it copies the data connection configuration of that app. Hence it doesn't provide the choice to config.
If you have already configured a backend system for your WebIDE -> Replace RefAppsBackend in file neo-app.json with your backend system
If you don’t have a backend system configured for your WebIDE: Start the SAP HANA Cloud Platform.
Then open the WebIDE and choose Tools -> SAP HANA Cloud Platform Cockpit.
In this Cockpit select ‘Destinations’ on the left side and then ‘New Destination’

Related

Cannot deploy stream through spring-cloud-dataflow-server in sap-cloud-foundry

I deployed spring-cloud-dataflow-server-cloudfoundry to SAP Cloud Fondry with environments below:
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_URL:https://api.cf.sap.hana.ondemand.com
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_ORG:{org}
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_SPACE:{space}
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_DOMAIN:{doamin}
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_USERNAME:username
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_PASSWORD:password
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_SKIP_SSL_VALIDATION:false
SPRING_CLOUD_DEPLOYER_CLOUDFOUNDRY_STREAM_SERVICES: mq
And import stream starter apps using bulk import applications.
And I create stream using "time-source-rabbit-1.3.0.RELEASE.jar" and "log-sink-rabbit-1.3.0.RELEASE.jar".
But I cannot deploy stream.
The status is "partial" fianlly, and apps' runtime are failed.
My question is:
1. Whether spring-cloud-dataflow-server-cloudfoundry can be used in SAP cloud foundry like I used?
2. When deploy stream in cloudfoundry using spring-cloud-dataflow-server-cloudfoundry dashboard, should I set any other necessary properties?
Thanks in advance.
Looking at the manifest.yml, it appears that org, space, and domain weren't replaced with SAP-CF specific values. Pay attention to the following note in the ref. guide.
Now we can configure the app. The following configuration is for Pivotal Web Services. You need to fill in {org}, {space}, {email} and {password} before running these commands.
If you have them replaced with your environment specific properties, the next step is to check the SCDF-server's logs. There will be particular details as to why the deployment failed if it did.
Now to answer your questions.
For #1, it is hard to say without logs or environment details. We don't actively test against SAP distribution of Cloud Foundry. As far as the distribution is compatible with Diego 1.7.1 and over, it should work. We also publish the CF compatible versions in project site. Perhaps this could be useful to compare the SAP CF environment and its foundation versions.
For #2, no, you don't need any other properties.

How to run di basic example of WSO2 EI Business Process?

I am absolutly new in WSO2 EI and I have the following doubt.
I am following this official tutorial to study the creation of a business process BPMN process):
https://docs.wso2.com/display/EI600/Quick+Start+Guide
If you go in this tutorial the second tab is refered to the Business Process Management tutorial, then I continue following the business process BPMN process street.
I followed all the tutorial and I think that I have understand the key concept of this example but I have some doubts about how to run this example.
At the end of the tutorial it does:
To create the Business Archive File (.bar), do the following.
On the Explorer, found in the upper left of your screen, navigate to Package Explorer.
Right click on the package and select “Create deployment artifacts”.
Navigate to the location of the source. You will find the .bar file inside the deployment folder.
So now I have my /HelloWorld/deployment/OrderApproval.bar file created.
But now what have I to do with this file?
I also have download the EI Server from here: /HelloWorld/deployment/OrderApproval.bar
Then I have configured it in my Eclipse Developer Studio EI setting it as a WSO2 server.
So my doubts are:
What exactly represent this OrderApproval.bar file? Is it a file representing a WSO2 EI executable project or what?
From what I have understand the previous example represents a work flow representing a BPMN process that implements a flow with some rules without that I need to write Java code (correct me if I am doing wrong assertion). But is it something executable or something that have to be integrated into some other application?
If it is an executable project what have I to do to run it and interact with it?
BPMN is process definition that can be run on BPS server. BPS server is part of WSO2 EI solution. You have to run it from [EI_HOME]/wso2/business-process/bin
On Linux/Mac OS: sh wso2server.sh
On Windows: wso2server.bat --run
Then, when it works correctly, open https : // [serverIP]:[port]/carbon/ and log into the EI-Business Process management console.
Next navigate to Home -> Manage -> Processes ->Add -> BPMN and upload your OrderApproval.bar file.
After uploading file, log into the BPMN-explorer at https : // [serverIP]:[port]/bpmn-explorer. On the "proecesses" tab you should see your process which can be run by action->start.
Try studie this example: https://docs.wso2.com/display/EI600/Creating+a+BPMN+Process

No system in Service Maintenance while generating OData service

I generated my Service over Transaction "SEGW" and everything is fine, but after I generated the services (MPC and DPC) no "Service maintenance" occurs like in all tutorials i've done.
Is there a way to generate an entry in the maintenance folder?
You don't see any entry in the Service Maintenance folder because you are missing some system alias settings that are used by the service generator. Anyhow, you can also register your service via transaction /IWFND/MAINT_SERVICE.
For more details about the missing settings, take a look at the following topic on SCN.
Cheers,
SePo
If the deployment system is absent in Service Maintenance you can add it manually that way.
In SPRO:
SAP NetWeaver -> Gateway Service Enablement -> Backend OData Channel -> Connection Settings to SAP NetWeaver Gateway -> SAP NetWeaver Gateway Settings
Create the new entry and put RFC connection of local system from SM59 there.

Error in SAP Gateway service for Fiori My Leave Request

I am trying to implement My Leave Request App. I have I have implemented all the SAP Notes and Add-on Components mentioned in
http://help.sap.com/saphelp_fiori/fiori10_install_en.pdf
But when I try to execute the service ZLEAVEREQUEST in the Gateway Client I am getting the following error
Model 'ZLEAVEREQUEST_0002_BE' contains errors. Contact Adminstrator
Please help me fix it!
Log on to the Front End System
Transaction: SPRO
Click on SAP Reference IMG
Browse to: SAP Netweaver -> Gateway -> OData Channel -> Configuration -> Connection Settings
-> SAP Netweaver Gateway to SAP System -> Manage SAP System Aliases
Select the SAP System Alias name and uncheck Local GW and For Local App both the check boxes.
This will resolve the error.
Make sure all the correction notes are applied . You can check the SAP Service Market place to find the available support packages. Also make sure all the relevant Business Catalog Roles are assigned to the user.

Grails App deployment on Micro Cloud Foundry

I tried to deploy a simple hello world application on Micro Cloud Foundry. I went through the process that mentioned in video and set up every thing (My IDE is STS eclipse and Windows 7). When I wanted to make a server on Micro Cloud Foundry: 1) I could not set my server host name to my domain for example "multisite.cloudfoundry.me" it said "The currently selected server type does not support remote hosts" and forced me to put "localhost" as the server name. 2) When I went through the process it started my Grails application and seemed it was running well but the url was broken "http://12431asd.multisite.cloudfoundry.me/" (It asked me for Grails app on this domain I choose "12431asd") and I got the message "VCAP ROUTER: 404 - DESTINATION NOT FOUND". when I tried this url "http://api.multisite.cloudfoundry.me/" I get the message "Welcome to VMware's Cloud Application Platform".
I appreciate any help and suggestions.
Reza
When you add a CloudFoundry server leave the first pane with the default settings and then on the second pane select the "Microcloud" url option setting the name to "multisite" in the popup dialog. Once the plugin has contacted your instance you can go ahead and put the email and the password in.
From there you should just be able to deploy by dragging the application to the server instance in your servers tab, setting the url in the dialog that follows. Once deployed you can double-click the application instance in the server tab and adjust its properties.
Can you verify that when you deployed the application, it's state was started? (it should say next to the application name under the server)

Resources