Using a Microsoft Azure web service, an image of an expense receipt is automatically processed and the data is read.
In this example, we use the service from Microsoft: Azure Form Recognize. "The AI-powered document extraction service that understands your forms."
We use the 2nd way here for the following reason:
Microsoft Azure Form Recognizer is a service that is free with moderate usage. However, you need to initiate this service yourself in the Azure Portal to get an API key. You can find more information directly at Microsoft e.g. at Azure Form Recognizer
GuiXT Script "sapmp56t.e1350.txt"
(we extend transaction PR05 - Travel Expense Manager)
Box (0,85) (6,134) "Analyze Document"
InputField (3,86) "Merchant Name" (3,101) _
size= 25 name= "merchantname" -readonly
Pushbutton (3,129) "clear" "?" size= (3,5) _
InputField (4,86) "Invoice Total" (4,101) _
size= 25 name= "invoicetotal" -readonly
InputField (5,86) "Invoice Date" (5,101) _
size= 25 name= "invoicedate" -readonly
Control (0.6,85.4) (2.4,127.8) _
progid= "file:///C:/guixt/scripts/azure_test.html" _
name= "azurecontrol" -closeonhide
connecthtml name= "azurecontrol"
The HTML file "azure_test.html"
We only need an INPUT element that starts the process:
You can find all files in this .zip archieve: