01 What happened

Developers built an ABAP AI agent prototype to explore S/4HANA, using code, validation, and memory tools.

02 Key details

  • The agent validates, executes generated ABAP code, lists OKF bundles, and uses the SDK for code, validation, and memory management.
  • The model requires an SDK factory call CL_AIC_ISLM_COMPL_API_FACTORY=>GET()->CREATE_INSTANCE('Z_S4H_AGENTIC_SCEN'); the scenario Z_S4H_AGENTIC_SCEN is created through transaction F4469 and assigns model gpt-5.6-sol.
  • Z_TOOLS_V2->EXECUTE_CODE_IN_S4 executes with Z_DYNAMIC_CODE_SCANNER, validating and blocking unsafe ABAP constructs.
  • Modifying SAP standard code for prototyping is discouraged to avoid conflicts during updates.
  • Conversation compression is manually implemented, and SDK support for automatic compression is needed.

03 Why it matters

The article details an ABAP AI agent prototype demonstrating LLM integration with S/4HANA, outlining technical constraints, execution safeguards, and SDK limitations.

04 Who it matters to

ABAP developers, solution architects, SAP system administrators, SAP implementation teams and SAP customers evaluating AI solutions.

Original source
SAP Community