Use Machine Learning to Extract Information from Documents with the SAP Document AI Basic UI
Get machine learning model predictions for the documents you upload using the SAP Document AI basic UI.
Overview
You will learn
- How to use the SAP Document AI basic UI to upload new documents
- What schemas and SAP schemas are and how to use them
- How to see and edit the extraction results
- How to delete documents
Prerequisites
Steps
Intro
The core functionality of SAP Document AI is to automatically extract structured information from documents using machine learning. When you finish this tutorial, you will get field value predictions for the documents you upload to the SAP Document AI basic UI.
SAP Document AI uses a globally pretrained machine learning model that currently obtains better accuracy results with invoices, payment advices, and purchase orders in the languages and for the countries and regions listed in Supported Languages and Countries/Regions. If you’re interested in processing other document types, try out the following tutorial missions:
- [Use Generative AI to Process Business Documents] (https://developers.sap.com/mission.gen-ai-process-business-documents.html)
- [Shape Machine Learning to Process Custom Business Documents] (https://developers.sap.com/mission.btp-aibus-shape-ml-custom.html)
See also [Supported Document Types] (https://help.sap.com/docs/document-information-extraction/document-information-extraction/supported-document-types) and [Supported File Types] (https://help.sap.com/docs/document-information-extraction/document-information-extraction/supported-file-types-all).
Upload to SAP Document AI any standard document type file (in PDF format or single-page JPEG, PNG, and TIFF format) that has content in headers and tables, such as an invoice.
As an alternative to uploading your own documents to SAP Document AI, you can use the following sample invoice files (right click on the link, then click Save link as to download the files locally):
Open the SAP Document AI basic UI, as described in the tutorial: Use Trial to Subscribe to the SAP Document AI Basic UI.
In the top right, click + (Upload Document).

DOX-UI-App On the Select Document screen, choose the Document Type.

DOX-UI-App Next, select the Schema.

DOX-UI-App NOTE:
You must select a schema when you add documents. By default, SAP Document AI proposes the appropriate preconfigured SAP schema for your document type. To see the header and line item fields that are available in an SAP schema, choose the desired Schema on the Select Document screen, and then choose Extraction Fields to display the schema details.
You can also create schemas of your own. To find out how to create schemas, see Create Schema for Purchase Order Documents and Create Schema for Custom Documents.
For more information about schemas, see step 2 of this tutorial, Understand schemas.
Drop files directly or click + (Upload) to upload one or more document files. Click Confirm.

DOX-UI-App You see the Document Name, Upload Date, and Status of the documents you have just uploaded.

DOX-UI-App The status changes from PENDING to DONE. This means the selected header fields and line items have been extracted, and the extraction results are ready to be validated and changed if necessary. If the status changes from PENDING to FAILED, this means it was not possible to get the extraction results, and you need to upload the documents again.

DOX-UI-App
CAUTION:
When using the free tier option for SAP Document AI or a trial account, be aware of the technical limits listed in Free Tier Option and Trial Account Technical Constraints.
A schema contains a list of header fields and line item fields representing the target information that you want to extract from a particular type of document. You must select a schema when you add documents to the SAP Document AI basic UI.
You can either create your own schema from scratch or use a preconfigured SAP schema. The SAP Document AI basic UI provides SAP schemas for the following standard document types:
- Invoice
- Payment advice
- Purchase order
In addition, thereβs an SAP schema for custom documents (SAP_OCROnly_schema). You can use these schemas unchanged to upload documents.
If you donβt want to configure your own schema, you can select the appropriate SAP schema unedited when you add a document on the SAP Document AI basic UI. No configuration is needed when you use SAP schemas in this way. Alternatively, you can copy a suitable SAP schema and edit the default fields in line with your needs.
NOTE: You canβt edit or delete original SAP schemas. Always create a copy and then edit the default fields, as required.
On the Documents screen, click the document row where you see Document Name, Upload Date, and Status.

DOX-UI-App You see the page preview of the document file you uploaded and the header fields and line items extraction results.

DOX-UI-App You also see the machine learning model Extraction Confidence Range classified by colors: red (confidence between 0% and 50%), orange (confidence between 51% and 79%), and green (confidence between 80% and 100%).
To see the prediction confidence score for each header field and line item extraction result, hover the mouse over a field name, for example Invoice Number.

DOX-UI-App If corrections are needed, and the document status is DONE, you can Edit the Header Fields and Line Items extraction results.

DOX-UI-App Here, you see an example where the Currency Code header field extraction result is edited:

DOX-UI-App 
DOX-UI-App Click + to insert a new line item at the bottom.

DOX-UI-App To edit fields, first select a value in the document page preview, and choose the appropriate name from the Field dropdown list on the Assign Field dialog. Then, add or change the extraction value, if necessary. Finally, click Apply to add the selected field to the Header Fields or Line Items extraction results.
Here, you see an example where the value for the Buyer Contact field is selected in the document page preview and added to the Header Fields extraction results:

DOX-UI-App 
DOX-UI-App Save your changes.

DOX-UI-App You can also Edit and Confirm the document.

DOX-UI-App The status changes from DONE to CONFIRMED. This means the extraction results have been confirmed and can no longer be changed.

DOX-UI-App
On the Documents screen, select the document you want to delete. Click Delete.

DOX-UI-App Click Yes to delete the document you selected.

DOX-UI-App The document is then removed from the Documents list.

DOX-UI-App
Congratulations, you’ve completed this tutorial.
Resources
Discussion
Share feedback on this tutorial or join the conversation in SAP Community.