<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Andrea Antonio Perrelli</title>
    <description>The latest articles on DEV Community by Andrea Antonio Perrelli (@andrea_antonioperrelli_4).</description>
    <link>https://dev.to/andrea_antonioperrelli_4</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4204267%2F927dd03b-2425-4be5-a203-127c7c8ef9c8.jpg</url>
      <title>DEV Community: Andrea Antonio Perrelli</title>
      <link>https://dev.to/andrea_antonioperrelli_4</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/andrea_antonioperrelli_4"/>
    <language>en</language>
    <item>
      <title>The Clean Core &amp; SAP Business AI Architecture Playbook: Decision Frameworks, Vector Grounding, and Production Scenarios</title>
      <dc:creator>Andrea Antonio Perrelli</dc:creator>
      <pubDate>Sat, 24 Oct 2026 08:36:59 +0000</pubDate>
      <link>https://dev.to/andrea_antonioperrelli_4/the-clean-core-sap-business-ai-architecture-playbook-decision-frameworks-vector-grounding-and-2i81</link>
      <guid>https://dev.to/andrea_antonioperrelli_4/the-clean-core-sap-business-ai-architecture-playbook-decision-frameworks-vector-grounding-and-2i81</guid>
      <description>&lt;p&gt;Transitioning enterprise SAP landscapes to modern S/4HANA Cloud and adopting SAP Business AI requires a fundamental shift in architectural mindset. The era of treating extensibility as merely "writing custom code in Eclipse ADT" is over.&lt;/p&gt;

&lt;p&gt;In production environments, the challenge is rarely just syntax—it is architectural governance under Clean Core:&lt;/p&gt;

&lt;p&gt;When does a requirement belong on Client 100 (Key-User Extensibility) versus Client 080 (Developer Extensibility)?&lt;br&gt;
How do you orchestrate LLMs via SAP Generative AI Hub while guaranteeing Zero Data Retention?&lt;br&gt;
How do you semantically ground enterprise prompts using SAP HANA Cloud Vector Engine without leaking cross-tenant or unauthorized business data?&lt;/p&gt;

&lt;p&gt;As a practicing SAP Solution Architect (10× SAP Certified, actively delivering modern S/4HANA Cloud and BTP architectures), I put together this field guide to bridge the gap between official, high-level documentation and the concrete architectural patterns required to deliver upgrade-stable cloud architectures.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Core Architectural Pillars: 3-Tier Enterprise AI&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmp4alcl26pr1cc3fdxcx.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmp4alcl26pr1cc3fdxcx.png" alt=" " width="800" height="427"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To design production-grade Business AI architectures on SAP BTP, your mental model must span three interconnected layers:&lt;/p&gt;

&lt;p&gt;Tier 1 — Consumption &amp;amp; Copilot Execution (Joule): Pre-built conversational AI embedded directly across SAP SuccessFactors, S/4HANA Cloud, and BTP. Architectural decisions center on what Joule handles out-of-the-box (standard business object actions, navigational triggers) versus when you must build custom skills via SAP AI Agent Hub.&lt;br&gt;
Tier 2 — Enterprise Foundation Model Orchestration (Generative AI Hub): How prompt engineering, model switching (GPT-4o, Claude 3.5 Sonnet, Gemini Pro), and zero data retention compliance are governed on BTP without managing direct hyperscaler API contracts.&lt;br&gt;
Tier 3 — Semantic Grounding (HANA Cloud Vector Engine): Storing high-dimensional embeddings using the native REAL_VECTOR data type, performing cosine similarity hybrid searches, and combining semantic similarity with structured SQL metadata filters.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Real-World Architecture Deep Dive: Clean Core Governance&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;A critical discipline in modern S/4HANA Cloud delivery is Clean Core Extensibility. A common anti-pattern across delivery teams is the instinct to immediately open Eclipse ADT on Client 080 for logic that belongs in Tier 1.&lt;/p&gt;

&lt;p&gt;Scenario: Header-Level Custom Field with Cross-Document Flow&lt;/p&gt;

&lt;p&gt;The Requirement: A customer requires a custom "ESG Compliance Code" on the Sales Order Header. This field must automatically propagate to the Outbound Delivery and Billing Document without manual re-entry. It also requires validation logic to prevent delivery creation if the compliance code is empty for specific material groups.&lt;/p&gt;

&lt;p&gt;The Anti-Pattern (Developer Extensibility Reflex): Opening Eclipse ADT on Client 080, creating custom RAP CDS View Entities extending standard tables (VBAK, LIKP, VBRK), and writing unmanaged save implementations in ABAP Cloud.&lt;/p&gt;

&lt;p&gt;Why it fails Clean Core Governance: It introduces custom transport packages, software component lifecycles, and ongoing maintenance overhead for functionality that SAP standard handles natively under Tier 1 extensibility.&lt;/p&gt;

&lt;p&gt;The Correct Production Design (Tier 1 Key-User Extensibility):&lt;/p&gt;

&lt;p&gt;Step 1: Navigate to the Custom Fields app on Client 100.&lt;/p&gt;

&lt;p&gt;Step 2: Create the field under the Business Context Sales: Sales Document.&lt;/p&gt;

&lt;p&gt;Step 3: In the Business Scenario tab, enable propagation (Sales to Delivery, Delivery to Billing, and Sales to Billing).&lt;/p&gt;

&lt;p&gt;Step 4: Enable OData exposure and CDS view usage with a single click.&lt;/p&gt;

&lt;p&gt;Step 5: In the Custom Logic app, implement the validation check using the released Key-User BAdI BD_SD_SLS_CHECK_HEADER in Restricted ABAP (C1 release contract).&lt;/p&gt;

&lt;p&gt;Architectural Rule: In S/4HANA Cloud (Public or Private), always exhaust Client 100 Key-User Extensibility before escalating to Developer Extensibility (ADT Client 080) or Side-by-Side CAP on BTP.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Grounding LLMs with SAP HANA Cloud Vector Engine&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Directly passing company data into public LLM endpoints is an immediate architectural violation. For enterprise RAG (Retrieval-Augmented Generation), production designs rely on hybrid vector search.&lt;/p&gt;

&lt;p&gt;Key Technical Concepts:&lt;br&gt;
Table Definition: Creating vector columns using REAL_VECTOR(1536) (for OpenAI text-embedding-3-small) or REAL_VECTOR(3072).&lt;br&gt;
Hybrid Search Strategy: A pure semantic search is insufficient for enterprise applications because it lacks organizational context. You must combine cosine distance with strict relational predicates:&lt;br&gt;
sql&lt;br&gt;
SELECT TOP 5&lt;br&gt;
    DocumentID,&lt;br&gt;
    DocumentChunk,&lt;br&gt;
    COSINE_SIMILARITY(VectorEmbedding, TO_REAL_VECTOR(:query_embedding)) AS SimilarityScore&lt;br&gt;
FROM EnterpriseKnowledgeBase&lt;br&gt;
WHERE CompanyCode = :user_company_code&lt;br&gt;
  AND AuthorizationGroup = :user_auth_group&lt;br&gt;
ORDER BY SimilarityScore DESC;&lt;/p&gt;

&lt;p&gt;This ensures that multi-tenant isolation and SAP authorization boundaries are strictly respected before prompt tokens are generated and sent to the Generative AI Hub.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The 30-Day Architectural Sprint Roadmap&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For teams and architects looking to systematically master these patterns, here is a structured 4-week architectural upskilling roadmap:&lt;/p&gt;

&lt;p&gt;Week 1: Clean Core &amp;amp; Extensibility Governance — Master Client 100 vs Client 080 decision trees, Custom Fields business scenarios, Restricted ABAP vs ABAP Cloud, and C1/C2 release contracts.&lt;br&gt;
Week 2: Generative AI Hub &amp;amp; BTP SDK — Deep dive into @sap-ai-sdk/foundation-models, prompt templating, Zero Data Retention enterprise agreements, and multi-model routing.&lt;br&gt;
Week 3: HANA Cloud Vector Engine &amp;amp; Enterprise RAG — Vector tables, cosine similarity search, chunking strategies, hybrid search metadata filtering, and Principal Propagation via IAS/IPS.&lt;br&gt;
Week 4: Production Scenario Drills &amp;amp; Governance — 45 scenario trade-off analyses, Clean Core violation reviews, real-world case studies, and transport governance (ATO vs CTS+).&lt;br&gt;
The Complete Architectural Field Guide&lt;/p&gt;

&lt;p&gt;To help architects, developers, and consultants save weeks of trial-and-error, I consolidated my complete project documentation, code templates, and field notes into a comprehensive playbook:&lt;/p&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;div class="c-embed__content"&gt;
        &lt;div class="c-embed__cover"&gt;
          &lt;a href="https://andreaperrelli.gumroad.com/l/sap-ai-architecture-companion/EARLYBIRD" class="c-link align-middle" rel="noopener noreferrer"&gt;
            &lt;img alt="" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpublic-files.gumroad.com%2Fl6kw8x8bewf96xauhb0gk8m0lcbg" height="565" class="m-0" width="1005"&gt;
          &lt;/a&gt;
        &lt;/div&gt;
      &lt;div class="c-embed__body"&gt;
        &lt;h2 class="fs-xl lh-tight"&gt;
          &lt;a href="https://andreaperrelli.gumroad.com/l/sap-ai-architecture-companion/EARLYBIRD" rel="noopener noreferrer" class="c-link"&gt;
            The SAP BTP &amp;amp; Business AI Architecture Companion
          &lt;/a&gt;
        &lt;/h2&gt;
          &lt;p class="truncate-at-3"&gt;
            The SAP BTP &amp;amp; Business AI Architecture Companion A Field Guide, Decision Frameworks &amp;amp; 45 Enterprise Scenarios for Solution Architects The Reality of SAP...
          &lt;/p&gt;
        &lt;div class="color-secondary fs-s flex items-center"&gt;
            &lt;img alt="favicon" class="c-embed__favicon m-0 mr-2 radius-0" src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fpublic-files.gumroad.com%2Fonrwx36b0domsfux9pdiv3c30xb2" width="400" height="400"&gt;
          andreaperrelli.gumroad.com
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;What’s Inside the Package:&lt;br&gt;
45 Real-World Enterprise Scenarios: Detailed scenario breakdowns across Clean Core extensibility, AI grounding, BTP side-by-side CAP, and integration governance—each with explicit "Clean Core Violation Alerts".&lt;br&gt;
Interactive Notion Workspace: Duplicate to your private Notion workspace in one click. Fully searchable, with interactive progress checklists and collapsible solution toggles.&lt;br&gt;
Master PDF Reference: Formatted offline A4 guide for desktop and tablet reading.&lt;br&gt;
Production Code Snippets: Complete implementations for RAP view entities, CAP GenAI Hub SDK calls, Cloud BAdIs, and HANA Vector search SQL.&lt;br&gt;
Full 30-Day Architectural Sprint Plan.&lt;/p&gt;

&lt;p&gt;(For readers of this article, use the code EARLYBIRD at checkout or use the direct link above to get the €35 launch rate instead of the standard €49).&lt;/p&gt;

&lt;p&gt;Join the Discussion&lt;/p&gt;

&lt;p&gt;What is the biggest challenge your team faces when aligning legacy ABAP systems with modern Clean Core and BTP architectures? Connect with me in the comments below!&lt;/p&gt;

</description>
      <category>sap</category>
      <category>cloud</category>
      <category>architecture</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
