SampleSampletypeA worked example you read or clone. Evidence: it demonstrates, it never provides.See every one →What this type is →by SAPby SAPoriginPublished by SAP itself. A visible facet, never an input to a reading — a dormant official plugin reads exactly like a dormant independent one.See every one →Starting point

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

Last pushLicenceApache-2.0

Where it sits

Lives in
Demonstrates
Document extractionCAPDocument extractioncapabilityGetting structured data out of a document somebody sent you — an invoice, a purchase order, a scanned form — instead of having a person key it in. The mirror image of document output, and a different problem from reading a service: the input is a file, the shape is unknown until something reads it, and the answer arrives with a confidence rather than a guarantee.

Who is behind it

SAP SamplesSAP SamplesOrganisationMaintains this
In the atlas: maintains 222
@SAP-samples
maintainerAdi Pleyer (priv)PersonContributes to this
In the atlas: contributes to 2
@AdiPleyer
Ajinkya PatilPersonContributes to this
In the atlas: contributes to 112
@ajinkyapatil8190
GerdBuchmuellerPersonContributes to this
In the atlas: contributes to 1
@GerdBuchmueller
julian-schambeckPersonContributes to this
In the atlas: contributes to 6
@julian-schambeck
Julian SchambeckPersonContributes to this
In the atlas: contributes to 1
@julianschambeck
RobinPersonContributes to this
In the atlas: contributes to 3
@RobinPurschwitz
Vikas ThimmiahaPersonContributes to this
In the atlas: contributes to 1
@vikas-thimmiaha
7 contributors

What it declares

Every artifact

Type
Sample
Origin
By SAP

As a sample

Form
A reference application

Connections1

SAP-samples/btp-cap-dox-invoice-validation connectionsSAP-samples/btp-cap-dox-invoice-validationPROVIDES→ demonstrates1demonstrates authoredDocument extraction

README

quoted from SAP-samples/btp-cap-dox-invoice-validation under Apache-2.0, read
SAP-samples/btp-cap-dox-invoice-validation/README.mdOn GitHub

Facilitate Invoice Validation — leveraging Document Information Extraction

REUSE status

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.

architecture diagram 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.

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.

Apache-2.0, read

Details

Sources3
Added by handdiscovered herechecked
github.com/SAP-samples/btp-cap-dox-invoice-validationtree, pushes, contributors, CIchecked
README.mdquoted, and what the entry declareschecked

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
discovered viaAdded by hand
first seen in the atlas
ecosystem and domaincap, ai-and-agents
Contributors7
History in the atlas1
  1. 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