S4HANA & GTS hubSAP knowledge hub

ABAP · ABAP / Development

Extension-to-Deploy SAP S/4HANA training

Build clean-core extensions from requirement through API/BAdI design, test and transport.

Process overview and business context

ABAP development in S/4HANA should protect the clean core. Developers need to choose released APIs, CDS views, BAdIs, key-user extensibility or side-by-side extensions before writing code.

Learners can evaluate an extension requirement, choose a supported extension point and deploy it with tests and rollback evidence.

End-to-end flow

  1. 1

    Analyze requirement

    Jira / Solution Manager

    Fiori app: Manage Requirements

    ACDOCA impact: Defines process, trigger and data ownership.

  2. 2

    Find extension point

    SE18 / ADT

    Fiori app: Custom Fields and Logic; ADT

    ACDOCA impact: Selects released API, BAdI or side-by-side option.

  3. 3

    Build and test

    ADT / SE80

    Fiori app: ABAP Development Tools

    ACDOCA impact: Implements code with unit and integration checks.

  4. 4

    Run quality gates

    ATC

    Fiori app: ABAP Test Cockpit

    ACDOCA impact: Finds syntax, security and clean-core issues.

  5. 5

    Transport and monitor

    SE10 / STMS

    Fiori app: Transport Organizer

    ACDOCA impact: Moves extension and verifies runtime logs.

Key tables

TableExplanation
TADIRRepository object directory.
TRDIRABAP program directory.
DD02L / DD03LDictionary table and field metadata.
SXS_ATTR / Enhancement metadataEnhancement framework and BAdI metadata context.
E070 / E071Transport request and object list.

Step-by-step walkthrough

Start with standard capability

Check whether configuration, Fiori adaptation or released API solves the need.

Watch out for: Custom code should not replace available standard behavior.

Choose upgrade-stable design

Prefer released APIs, CDS views, BAdIs and side-by-side services.

Watch out for: Direct table updates or modifications are long-term upgrade risk.

Test the process trigger

Validate input structures, authorization, performance and failure behavior.

Watch out for: A BAdI can be technically correct but wrong in a mass-processing scenario.

Document support model

Record owner, trigger, side effects, rollback and monitoring.

Watch out for: Hidden extensions become expensive incidents after upgrades.

Common errors and troubleshooting

Extension breaks after upgrade

Likely cause: It used unreleased object or implicit dependency.

Fix path: Replace with released API/BAdI and add ATC checks.

BAdI implementation slows posting

Likely cause: Expensive logic runs synchronously in a high-volume process.

Fix path: Move heavy logic to asynchronous processing or optimize selection.

Transport misses dependent object

Likely cause: CDS, class, authorization or customizing dependency was not included.

Fix path: Review object list and import sequence.

ECC to S/4HANA differences

S/4HANA shifts development toward released objects, ABAP Cloud principles, CDS, RAP and clean-core extensibility instead of direct modification of standard code.

Glossary

Clean core
Approach keeping extensions separated from SAP standard internals.
BAdI
Business Add-In extension point delivered by SAP.
CDS view
Core Data Services model for semantically rich data access.
ATC
ABAP Test Cockpit quality and compliance check framework.

知识检查

完成测试并达到至少 70% 即可解锁证书。

启动生成器