This is an SAP HANA Cloud Platform Web application that demonstrates the consumption of Ariba P2P API for purchasing requisitions.
- Eclipse installed with SAP HANA Cloud Platform Tools plugins.
- JDK 1.7 set as an Installed JRE in Eclipse: Preferences > Java > Installed JREs.
- Java Web Tomcat 7 or Java Web Tomcat 8 set as a runtime environment in Eclipse: Preferences > Server > Runtime Environments.
- Destinations configured for connecting to the Ariba API.
- Clone the Git repository.
- Import the project as a Maven project into your Eclipse workspace.
Note: Make sure you use JDK 1.7 for this project. You can configure this in the project build path.
- Run the requisition-parent project with Maven goal
clean install
. - If you are deploying the application locally, see Creating and Deleting Destinations Locally.
If you are deploying it on the Cloud, see Creating and Deleting Destinations on the Cloud. - Deploy the application.
Note: Make sure you select the Java Web Tomcat 7 or Java Web Tomcat 8 as a runtime environment.
- To access the application, follow the steps described in the Access the application section.
You need to configure an HTTP Connectivity Destination for the Ariba P2P API before running the project.
Note: To learn more about how to configure the destination, see [SAP HANA Cloud Platform Destinations Documentation] (https://help.hana.ondemand.com/help/frameset.htm?e4f1d97cbb571014a247d10f9f9a685d.html).
The HTTP API Destination looks like this:
Name=ariba-p2p-api
Description=Ariba P2P SOAP WS API Destination
Type=HTTP
URL=https\://<Ariba instance>/Buyer/soap/<Ariba realm>
User=<endpoint-user>
Password=<endpoint-password>
Authentication=BasicAuthentication
ProxyType=Internet
deliverTo=<deliver to name>
headerUniqueName=<header>
shipTo=<shipping address>
billingAddress=<billing address>
originatingSystem=<originating system>
passwordAdapter=PasswordAdapter1
preparer=<preparer user>
requester=<requester user>
originatingSystemId=<system id>
businessUnit=<business unit>
CommonCommodityCodeDomain=<common commodity code domain>
CommonCommodityCodeName=<common commodity code name>
requisitionComment=<comment for requisition>
requisitionName=<requisition name>
namespaceXMLNSvariant=<namespace XMLNS variant>
If you deploy the application on the cloud, this is the URL pattern that you use to access it: http://<application><account>.<domain>/requisition-app/
If you run the application locally, then use this URL pattern: http://<host>:<port>/requisition-app/
.
You should see a kiosk-like user interface with a list of products presented as tiles.
To choose the amount of a given product item that you want to order, select or touch (depending on the device) the respective tile.
- SAP HANA Cloud Platform Documentation - https://help.hana.ondemand.com/
Copyright 2016 SAP SE
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.