Motivation

Paper has been replaced by an increased volume of emails or electronic documents in general. If you speak with purchasing or accounts payable departments you hear that they work with a high amount of PDF invoices from countless suppliers.

Entering these supplier invoices takes tremendous effort: So why not automate it? This blog outlines the approach.

Business Process

Image%201%3A%20Procure-to-pay%20process%20in%20business%20process%20map

Image 1: Procure-to-pay process in business process map

The procure to pay process we look at is part of source to pay in the SAP S/4HANA Intelligent Enterprise framework. There are many variations possible but in principle it’s like that:

  1. Purchase requisitions bundled into purchase orders.
  2. Purchase orders are either with an account assignment e.g. to a cost center (often for indirect procurement) or to stock.
  3. Supplier confirms date and quantity (scheduling, PO confirmation)
  4. Logistics processes are involved for delivery e.g. inbound delivery or not depending on the goods procured. Goods receipt process is needed for inventory managed goods.
  5. The supplier provides and invoice which Accounts Payable or Purchasing enters into the S/4HANA system as a supplier invoice.
  6. Accounts Payable department triggers supplier payment and clears the suppliers AP account.

Our automation addresses point 5: We assume we receive PDF invoices from suppliers into our outlook mailbox.

Image%202%3A%20Outline%20of%20automation%20flow

Image 2: Outline of automation flow

This video illustrates the end-to-end process from email to created invoice in S/4HANA Cloud.

Solution Architecture

The architecture uses standard S/4HANA Cloud APIs made available by integration scenario

Scenario IDSAP_COM_0057 Scenario: Supplier Invoice Integration

You can set this scenario to “inbound communication” only as there are only calls made into S/4HANA Cloud.

Image%203%3A%20Communication%20scenario%20in%20S/4HANA%20Cloud%20for%20supplier%20invoices

Image 3: Communication scenario in S/4HANA Cloud for supplier invoices

Altogether this boils down to below solution architecture using the OData v2 APIs shown above with the technical user defined for the scenario.

Image%204%3A%20Solution%20architecture%20for%20automation%20scenario.

Image 4: Solution architecture for automation scenario.

The APIs require CSRF tokens to be called, therefore a GET precedes every POST. The business object type to be used is BUS2081.

Details explained

Finally a walk through the flow with some – hopefully – noteworthy details of how to develop this automation.

Summary

We have seen an example of how SAP Process Automation can help your hyper-automation journey. Of course the story doesn’t end here. With AI business services you can also train your own document information extraction and apply it to other business processes:

  • Delivery documents/ Goods receipt documents
  • Quality Management: Scan paper forms to automated QM result entry
  • Purchase order to sales order conversion in an O2C scenario

Do you have other scenarios in mind? If there is strong interest we can help you to firm up your use case and idea with a prototype! Feel free to contact me.

9 Comments
Sara Sampaio

Sara Sampaio

Author Since: March 10, 2022

0 0 votes
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x