Skip to content

gokul-raju/ariba-request-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ariba Simple Requisition

Introduction

This is an SAP HANA Cloud Platform Web application that demonstrates the consumption of Ariba P2P API for purchasing requisitions.

Prerequisites

  1. Eclipse installed with SAP HANA Cloud Platform Tools plugins.
  2. JDK 1.7 set as an Installed JRE in Eclipse: Preferences > Java > Installed JREs.
  3. Java Web Tomcat 7 or Java Web Tomcat 8 set as a runtime environment in Eclipse: Preferences > Server > Runtime Environments.
  4. Destinations configured for connecting to the Ariba API.

Build and Deploy the Application

  1. Clone the Git repository.
  2. 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.

  1. Run the requisition-parent project with Maven goal clean install.
  2. 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.
  3. Deploy the application.

Note: Make sure you select the Java Web Tomcat 7 or Java Web Tomcat 8 as a runtime environment.

  1. To access the application, follow the steps described in the Access the application section.

Configure the Destination

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>

Access the application

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.

Copyright and license

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •