GithubHelp home page GithubHelp logo

isabella232 / cloud-realspend-expenses-uploader Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sap-archive/cloud-realspend-expenses-uploader

0.0 0.0 0.0 331 KB

Allows posting budgets and expenses to HCP RealSpend API through SAP ERP JCO connection.

License: Apache License 2.0

Shell 0.38% Java 99.62%

cloud-realspend-expenses-uploader's Introduction

Important Notice

We have decided to stop the maintenance of this public GitHub repository.

cloud-realspend-expenses-uploader

Allows posting budgets and expenses to HCP RealSpend API through SAP ERP JCO connection.

Prerequisites

Build

  • Clone the repository.
  • Edit the file system.jcoDestination and insert the correct credentials for the SAP ERP system.
  • Edit the pom.xml file and insert the correct path to JCO.
  • Run the following command:
mvn clean package -DskipTests
  • Now you see the generated "target" folder, which contains the executable jar file "expense-uploader-0.1-jar-with-dependencies.jar".
  • Create a new folder somewhere (e.g. your home directory) and copy this jar into it. Also copy the files system.jcoDestination and src/test/resources/config/config.xlsx there. You should now have a folder with just these three files.

Run

  • Open a command line prompt in the folder you just created.
  • The hcp_proxy parameter is optional.
  • The hcp_user must have the roles "Governance", "Manager" and "API-User". It is advised to have only one user with the Governance role, as multiple may lead to conflicts.
  • Run the jar like this (after replacing the parts inside angled brackets):
java -cp <path-to-jco>/sapjco3.jar:expense-uploader-0.1-jar-with-dependencies.jar com.sap.expenseuploader.ExpenseUploader --from=<starting-date> --to=<end-date> --controlling-area=<ca-code> --input_erp=system --output_hcp --hcp_url="https://<Realspend-HCP-URL>/core/basic/api/v1" --hcp_user=<your_hcp_username> --hcp_proxy=<proxy-url> --budgets

Notes

  • You can find the Realspend-HCP-URL by navigating to the "RealSpend Launchpad" inside your HCP trial account. It's the part before "/core/".
  • You can place the "sapjco3" wherever suits you the best.
  • If you can't connect using JCO, you might have to add 127.0.0.1 as IP to your hostname in your hosts file.

Configuration files

  • The configuration is done using the Excel file "config.xlsx".
  • On the first sheet you specify which user will receive actuals for which cost center.
  • On the subsequent sheets you specify budgets for master data and tags.

License

See the License file for license rights and limitations (ASL 2.0).

cloud-realspend-expenses-uploader's People

Contributors

aihamtalebsap avatar benhei avatar fafl avatar fafl-sap avatar misappi avatar steinermatt avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.