- Eclipse installed with SAP HANA Cloud Platform Tools plugins
- JDK 1.7 is available as an Installed JRE in Windows->Preferences->Java->Installed JREs
- SAP HANA Cloud Java Web Tomcat 7 is available as a runtime environment Windows->Preferences->Server-> Runtime Environments
- Configured destinations for connecting to the Ariba API
##What is it?
This is a sample HCP application, demonstrating consumption of Ariba P2P API for purchase requisitions.
Step 1: Clone the Git repository
Step 2: Import the project as a Maven project into your eclipse workspace. Note - Make sure the project uses JDK 1.7. This can be configured in the project build path
Step 3: Run Maven goal clean install
Step 4: If you are deploying locally then see Creating and Deleting Destinations Locally.
If you are deploying on the Cloud see Creating and Deleting Destinations on the Cloud.
Step 5: Build and deploy your application. Make sure you selected the SAP HANA Cloud Java Web Tomcat 7 as the runtime environment
The sample uses one HTTP Connectivity Destination for the Ariba P2P API. Prior to running the project you must have the destination configured as described in the [SAP HANA Cloud Platform Destinations Documentation] (https://help.hana.ondemand.com/help/frameset.htm?e4f1d97cbb571014a247d10f9f9a685d.html)
The HTTP API Destination should look like this:
Name=ariba-p2p-api
Description=Ariba P2P SOAP WS API Destination
Type=HTTP
URL=https\://<ariba host>/Buyer/soap/salesdemo/RequisitionImportPull?wsdl
User=<endpoint-user>
Password=<endpoint-password>
Authentication=BasicAuthentication
ProxyType=Internet
TrustAll=true
CloudConnectorVersion=2
deliverTo=<deliver to name>
headerUniqueName=<header>
shipTo=<shipping address>
billingAddress=<billing address>
currency=<default currency>
originatingSystem=<originating system>
passwordAdapter=PasswordAdapter1
preparer=<preparer user>
originatingSystemId=<system id>
businessUnit=<business unit>
commodityCode=<standard commodity code>
After deployment the application is accessible on the following URL:
http(s)://<host>:<port>/
You should see kiosk-like user interface with a list of products presented as tiles that can be selected by clicking/touching the tiles to choose number of the the given product items.
- SAP HANA Cloud Documentation - https://help.hana.ondemand.com/
Copyright 2015 SAP AG
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.