Skip to content

This is a sample HCP application, demonstrating consumption of Ariba P2P API for purchase requisitions.

License

Notifications You must be signed in to change notification settings

ekaterina-mitova/cloud-ariba-simple-requisition-ext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Ariba Simple Requisition Sample

Prerequisites:

  1. Eclipse installed with SAP HANA Cloud Platform Tools plugins
  2. JDK 1.7 is available as an Installed JRE in Windows->Preferences->Java->Installed JREs
  3. SAP HANA Cloud Java Web Tomcat 7 is available as a runtime environment Windows->Preferences->Server-> Runtime Environments
  4. 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.

How to run it?

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

Configuring Destinations

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>

Accessing the application

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.

Resources

Copyright and license

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.

About

This is a sample HCP application, demonstrating consumption of Ariba P2P API for purchase requisitions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 98.6%
  • JavaScript 1.1%
  • HTML 0.3%