Help with automation: Invoice number extraction and validation

Hi, SAP community.

I’m working on an automation project and need your help to solve a specific challenge. Here’s the context and my question:

Project context

  1. I’ve created a schema to extract data from invoices in PDF format.
  2. The data extraction is working correctly.

My current challenge

After the data extraction, I need to:

  1. Detect the invoice number within the extracted data.
  2. Verify that the invoice number follows a specific format:
    • 3 letters
    • 1 hyphen
    • 4 numbers

For example, a valid invoice number would be: ABC-1234

My question

Could anyone guide me on the best way to implement this invoice number format verification within the automation flow in SAP?

I would appreciate any advice, code examples, or references to resources that could help me accomplish this task.

Thank you in advance for your help!

Scroll to Top