Skip to content

Corporate project · Industrial manufacturer · Working prototype

Automatic Replies with an SAP Cost PDF to E-mailed Quote Requests

When an e-mail with a quote number and parameters arrives, the robot gets the cost summary PDF from SAP, checks it and sends it back as the reply.

  • Automation
  • SAP / ERP
  • ~91 s → ~0.3 sSAP-side time (old chain → new service)
  • 20automated tests
  • 0SAP touched on invalid input
  1. 1E-mailQuote no. + parameters
  2. 2ValidationExplained reply if invalid
  3. 3SAP serviceScreenless PDF, ~0.3 s
  4. 4PDF checkQuote no. and values
  5. 5ReplyE-mail with the PDF

Built for an industrial company. For confidentiality, the company name, logo, product/part codes and internal data are not shared; images are cropped accordingly. The flow diagram is illustrative.

The need

The previous chain passed the e-mail to an AI agent that clicked screen pixels, and most runs ended in an error.

The solution

  • A mail listener validates the fields and replies with an explanatory error on bad input without touching SAP.
  • The first version drove SAP GUI scripting in its own session: 12–14 seconds.
  • The second version gets the PDF straight from a screenless SAP service: ~0.3 seconds on the SAP side.
  • The PDF text is read to verify the quote number and values before replying.
  • Credentials live in Windows Credential Manager; none in code.
  • This work later evolved into the direct CRM quote and cost integration.

Delivered

  • Mail robot
  • SAP PDF service
  • Test suite
  • README

Technologies

  • Python
  • Exchange EWS (exchangelib)
  • SAP GUI Scripting
  • pywin32
  • ABAP RFC
  • Adobe Forms
  • pypdf

Related services

Workflow AutomationSAP / ERP & Reporting

Planning a similar project?

Tell us briefly — we'll reply the same day with scope, timeline and price.