SAP-samples/btp-cap-dox-invoice-validation
A CAP application on SAP BTP for invoice validation: Document Information Extraction reads an invoice PDF, a person corrects the entries, and a workflow passes it on while recording each change.
Automates the manual, back-and-forth work of validating an invoice PDF: it extracts entries with Document Information Extraction (DOX), lets a person copy over or correct them, and forwards the invoice to the next person in a validation workflow while recording each correction and its reason over time. It runs entirely on SAP BTP, built with the Cloud Application Programming Model and, in its published form, an Amazon S3-backed Object Store; other object-store variants need adjusting the code that talks to storage. It sits alongside SAP Central Invoice Management or OpenText Vendor Invoice Management as a separate extension rather than a replacement for either.
Facts
Where it sits
Who is behind it
In the atlas: maintains 222@SAP-samplesmaintainerAdi Pleyer (priv)Contributes to this
In the atlas: contributes to 2@AdiPleyerAjinkya PatilContributes to this
In the atlas: contributes to 112@ajinkyapatil8190GerdBuchmuellerContributes to this
In the atlas: contributes to 1@GerdBuchmuellerjulian-schambeckContributes to this
In the atlas: contributes to 6@julian-schambeckJulian SchambeckContributes to this
In the atlas: contributes to 1@julianschambeckRobinContributes to this
In the atlas: contributes to 3@RobinPurschwitzVikas ThimmiahaContributes to this
In the atlas: contributes to 1@vikas-thimmiaha7 contributors
What it declares
Every artifact
- Type
- Sample
- Origin
- By SAP
As a sample
- Form
- A reference application
Connections
Getting structured data out of incoming documents
Download
README
quoted from SAP-samples/btp-cap-dox-invoice-validation under Apache-2.0, readFacilitate Invoice Validation — leveraging Document Information Extraction
Invoice validation is often an opaque, manual, and error-prone process. It involves editing invoice PDF files directly, or sending them back and forth via email between multiple parties— until the invoice can finally be approved for payment.
This sample tries to alleviate some of those pain points. It presupposes a clearly defined validation workflow. More importantly, it simplifies and accelerates validation, allowing you to: copy over entries from the original invoice; correct entries; and then forward the invoice to the next person in line in the workflow to validate it further. As a side effect, each correction and the rationale behind it is documented over time. To get an overview, please checkout the teaser video for this sample.
This invoice validation leverages Document Information Extraction (DOX) —a service on the Business Technology Platform (BTP)— and the Cloud Programming Model (CAP). The sample runs entirely on BTP. Think of it as a separate extension to SAP Central Invoice Management (CIM) or OpenText Vendor Invoice Management (VIM), rather than it trying to compete with the latter.
Important
The sample was built on AWS infrastructure on BTP. Therefore, we went with the Amazon S3 variant of the BTP Object Store service, while the CAP backend talks to the S3 via the AWS Client S3 SDK. Generally, the sample can also be run on GCP or Azure, if you slightly adjust the part of the code that talks to the Object Store, and use the corresponding store variant.
Sample architecture with DOX and CAP at its core
Getting started
Feel free to check out these links to get started working with the sample.
- Intro
- Setup
- Integration
Known Issues
No known issues as of now.
How to obtain support
Create an issue in this repository if you find a bug or have questions about the content.
Contributing
If you wish to contribute code, offer fixes or improvements, please send a pull request. Due to legal reasons, contributors will be asked to accept a DCO when they create the first pull request to this project. This happens in an automated fashion during the submission process. SAP uses the standard DCO text of the Linux Foundation.
License
Copyright (c) 2024 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0 except as noted otherwise in the LICENSE file.
Details
Sources
Sources are graph entities: the same page may back several entries, and an unreachable source flags every row that rests on it.
Compatibility and provenance
Contributors
History in the atlas
- First seen.
For your agent
- Ref
artifact:sap-samples-btp-cap-dox-invoice-validation- JSON
- /artifacts/sap-samples-btp-cap-dox-invoice-validation.json
- MCP
- Connecting an agent