← All SAP articles

Connect Codex to your SAP system

In my first video, I showed an AI agent configuring SAP S/4HANA and producing a manual of the result. Here is how I connected it to SAP and what you need to do the same.

I use Codex → Chrome → SAP WebGUI or Fiori → SAP S/4HANA. The agent reads the SAP screens, enters values, saves and checks the results through the browser.

Watch my first AI/SAP video: the configuration work and the resulting manual.

What you need before starting

  • An SAP S/4HANA sandbox system with WebGUI or Fiori access.
  • An SAP user authorized to configure the system and execute the exercise.
  • Your SAP system URL, client and logon language.
  • Codex with Chrome browser control connected and permission to access your SAP site.
  • A specific SAP process you want to configure and test.

My example used an SAP S/4HANA on-premise sandbox with dummy data.

What we will set up

We will connect Chrome, provide the SAP system details and run a read-only connection test. The second guide covers the company-code configuration and posting exercise.

Keep your login details private.

Explore the AI + SAP guides

Next: the practical prompts and verified posting exercise.

Then explore From Prompt to Process: configuration journeys, from company-code setup to costing, reconciliation and depreciation.

Connect Chrome to SAP

For this exercise, I use SAP GUI for HTML—WebGUI—in Chrome. I also use Fiori for the relevant applications.

Start with these checks, in this order:

  1. Open your SAP WebGUI URL in Chrome. Connect to your VPN if required.
  2. Connect Chrome browser control in the desktop app. Complete the extension setup and allow access to your SAP site.
  3. Open the SAP tab and ask the agent to read the current screen.
  4. Complete any sign-in, MFA or consent request shown to you.
  5. Choose a project folder for screenshots, checkpoints and the manual.

For browser connection instructions, see OpenAI's computer and browser walkthrough. Its screenshots use the ChatGPT desktop/Work interface; follow the Chrome connection controls in your installed app.

Provide your system details

Give the task the following information:

InformationWhat to provide
SystemYour SAP S/4HANA release
Browser entry pointYour WebGUI URL; Fiori URL if needed
Client and languageThe intended SAP client and logon language
LoginSign in yourself, or provide access through your approved credential source
Working scopeThe company code and process to work on
Output folderYour project folder for checkpoints, screenshots and the manual

In my setup, the task retrieves the login details from a private Google Doc through the connected Google Drive account, then signs in through Chrome.

You can sign in yourself or use your organization's approved credential source. To use Google Drive, connect your account and give the task access to the private file. Keep passwords out of the prompts below.

Copy this starting instruction into a fresh task

Use this template to start the task with read-only access. Replace the bracketed values with your own details.

prompt
You are helping me work in my authorized SAP S/4HANA [RELEASE] training sandbox containing dummy data.

Use the connected Chrome browser to operate SAP WebGUI and Fiori.

System entry point: [MY WEBGUI URL]
Intended client: [CLIENT]
Language: [LANGUAGE]
Initial scope: [COMPANY CODE OR PROCESS]
Output folder: [FOLDER]

Login: [I WILL SIGN IN / MY APPROVED CREDENTIAL SOURCE]. Keep credentials out of messages, logs, screenshots and documentation.

This first step is read-only. Open the SAP tab and confirm the system and client. Do not save changes or post documents.

Record the system, client, starting screen and connection result in the project folder. If access fails, report the error and what I need to provide.

Run a small read-only connection check

Choose an existing company code in your sandbox and run this check:

prompt
Perform this read-only connection check in the SAP browser tab:

1. Check the system and client in the SAP application information.
2. Open a display view for company code [EXISTING COMPANY CODE].
3. Report the company code and its description.
4. Confirm whether browser control, SAP sign-in and company-code display worked. Include any error message.

Keep this check read-only. Leave change screens without saving.

After this check, the task should be able to report your system, client, company code and company description.

What I carry into the next task

I keep the system details, business requirement, permitted changes, screenshots and results in the project. Give each new task this context so it can continue the work.

I also provide feedback on the manual: which steps need explanation, which screenshots to include and which results to check.

The next guide covers company code 1710: the setup, a USD100 expense/clearing posting, the errors we resolved and the checks of the saved document.

Next: from my business requirement to a verified SAP posting

Explore the configuration journeys

Read How AI Configured Company Code 1710 in SAP for the agent’s account of this first exercise. Continue through From Prompt to Process for the other configuration stories, or browse all AI in SAP articles.

Keep exploring this topic

Browse all AI in SAP articles → · Search AI across the Academy →