Document Extraction with SAP Intelligent RPA – Data Enrichment Activities
SAP Intelligent Robotic Process Automation provides convenient and smart solutions to simplify the extraction of data from documents. Document Information Extraction, an SAP AI Business Services capability has been integrated into SAP Intelligent RPA from September 2021 to enable the users with the flexibility of choosing between different information extraction options. Further information on integration touchpoints can be viewed in this blog.
This blog post is part of Document Extraction series which aims at empowering the community with detailed step by step guides by explaining the capabilities of Data Enrichment Activities within SAP Intelligent RPA.
- SAP Intelligent Robotic Process Automation platform (Trial / Full-Version)
- Installation as per the instructions in Help Portal
- Knowledge about Projects, Automation. Tutorials can be found under: Tutorials
Where to find the Data Enrichment Activities –
- Select Dependencies from the combo box, click on Manage Dependencies button shown below
- Click on Add dependencies
- Look for “SAP Intelligent RPA Document Information Extraction SDK” and simply add it
- All the enrichment activities would then appear as show in the image below
What is Data Enrichment –
Data Enrichment allows you to upload your master data and use it for either employee entity type or business entity type to auto-match while document processing and provide it along with the extracted data. This enrichment data helps in identifying as to which record does a certain document under process is to be associated with while creating an entry/record within internal system.
For difference between Employee Entity & Business Entity, please refer to this link – Entities – SAP Help Portal
When to use Data Enrichment activities –
Data Enrichment activities usually sit as a separate one time run bot on a particular tenant and don’t necessarily need to be part of your overall automation. But they can of course be scheduled seperately to run once a day, week or month depending on how frequently your master data is updated. You don’t have to use it as a sub task within your Invoice or Order processing bot as it doesn’t need to run it in loop constantly.
Where to find Data Enrichment activities –
Data Enrichment activities are located right within your automation editor along with the other activities. (Refer to the pre-requisites above to setup the required sdk in order to view these activities)
How to create Employee or Business Entity Enrichment Data –
- Drag and drop “Create Employee Entity Enrichment Data” to Automation –
- Click on the step
- Within Input Parameters – > Employee Data Entities, select “Create Custom Data” from the text box
- Click “+” button next to Employee Entity, this would expand the “Add List Element”
- Populate the Fields ID, Email, First Name, Middle Name, Last Name (Or add variables synced with your input from json or excel when you’re pulling these fields from somewhere else)
- Click Save button
Now, let’s have a look at an example with a diagram to understand how they can be used –
(Note – The alphabetical denotation shown within the diagram refers to the individual steps which are covered next. It is to help understand which activity is placed where according to the need)
As seen on the diagram, you start with a delete master data command which does nothing for a fresh case but if you are running this again, this helps in avoiding duplicate record creation and helps you wipe the slate clean at the beginning.
Then you confirm through the status if that action was successful. If it is successful, then you go ahead and create your employee data entity.
After that, master data is activated in order to be used by the Document Information Extraction Service and the status of the activation is rechecked and confirmed.
Finally, you can use get enrichment data command to see the data in the form of a JSON array.
Let us look into individual steps shown within the example in the diagram above –
(a) Create Employee Entity Enrichment data
To create employee entity record(s) at Document Information Extraction service this activity is used. You can provide a list of employee entities by filling the required information and the data would be sent to Document Information Extraction service for creation.
(b) Business Entity Enrichment data
To create business entity record(s) at Document Information Extraction service this activity is used. You can provide a list of business entities by filling the required information and the data would be sent to Document Information Extraction service for creation.
(c) Get Enrichment Data Status (Creation/Deletion)
After you have created (added) a business or an employee entity at Document Information Extraction Service. You can check the status of your creation to ensure that the data is present before activation.
Similarly, you can check the status of master data deletion via this activity. There are 3 states possible: “Success”, “Pending” and “Failure”
(d) Delete all master data / master data record(s)
This activity would delete all the existing master data records for an employee or a business entity at Document Information Extraction Service
(e) Activate master data
After the data has been successfully created at Document Information Extraction service. You must activate this data to be used by the extraction activities. If the data is not activated, it would not be used. Also, data activation is only possible at least once every 4 hours from the previous activation.
(f) Get data activation details
After activation request is sent to Document Information Request. You can check if the activation was successful or not. There are 3 states possible: “Success”, “Pending” and “Failure”
(g) Get Enrichment data
This activity is provided as a verification activity. You can see the data, as a JSON array, which you have created at Document Information Extraction service using this activity.
By reading this blog post, you have learnt about the new “Data Enrichment” set of activities and its usage. Lastly, I hope this blogpost has given you a good start to explore the new Data Enrichment Activities.
Thanks for reading and feel free to leave a comment with questions or feedback 🙂.
Stay tuned for more updates on Document Information Extraction Service in SAP Intelligent RPA.
Please refer to the following links for steps and further information –
- For Enrichment Activities and all the related sub activities –
Enrichment Data API – SAP Help Portal
- For examples on using JSON script –
Create Enrichment Data – SAP Help Portal
For more information on SAP Intelligent RPA
- Exchange knowledge: SAP Community | Q&A | Blog
- Learn more: Webinars | Help Portal | openSAP |
- Explore: Product Information | Successful Use Cases
- Try SAP Intelligent RPA for Free: Trial Version | Pre-built Bots
- Follow us on: LinkedIn, Twitter and YouTube