SAP ABAP Tutorial: Beginner to Advanced
160 lessons across 17 topics. Each lesson explains the concept, then shows a real project scenario, the mistakes to avoid and how it comes up in interviews. Work through the topics in order, or jump to the one you need.
The path has 160 lessons by level: 43 beginner, 74 intermediate, 43 advanced. Listed reading time adds up to about 1,303 minutes, so the lessons can be taken in short sessions. Each topic below links to its own topic page, and every lesson shows its level and reading time beside the title.
What is SAP ABAP (Advanced Business Application Programming)?
ABAP is the programming language of SAP. Developers use it to build reports, interfaces, forms and extensions, and to fix what standard SAP does not cover.
A real situation. The business needs a report of late deliveries by customer that no standard report gives. An ABAP developer reads the tables, writes the logic, tests it and moves it to production through transport.
Language
Data types, internal tables, control flow, classes and modern ABAP syntax.
Data
Dictionary objects, tables, views and Open SQL to read and write business data.
Extend
User exits, BAdIs, enhancements, interfaces and forms that change standard behaviour.
The main parts of SAP ABAP
- Language basics. Data types, control structures, internal tables and modularisation.
- ABAP Dictionary. Tables, structures, data elements and views.
- Open SQL and CDS. Reading and writing data, and CDS views.
- Reports and forms. ALV reports, selection screens and forms.
- Enhancements. User exits, BAdIs and enhancement points.
- Object-oriented ABAP. Classes, interfaces and exceptions.
A worked example. The business needs a report of late deliveries by customer. A developer reads LIKP and LIPS, filters by planned date, shows the result in ALV, adds authority checks and moves the program through transport.
What you need first. Basic programming logic. SAP functional knowledge makes requirements easier to read.
From classic to modern ABAP
Classic ABAP uses reports, function modules and dynpro screens. Modern ABAP adds inline declarations, expressions, classes, CDS views and the RESTful programming model. New development in S/4HANA and on BTP favours the modern style, while a lot of existing code is classic, so most developers need both.
Working with data efficiently
Reading data well matters more than clever code. Select only the fields you need, avoid selecting inside loops, use joins or CDS views to push work to the database and check the result with the SQL trace and runtime analysis. Many performance interview questions come back to these habits.
Extending standard SAP safely
When standard SAP does not fit, developers use user exits, BAdIs and enhancement points rather than changing standard code. Released APIs and clean core rules limit what can be touched in the cloud. Always check the extension technique with the functional lead and the architect before building.
SAP ABAP process flow and how it connects
The main flow runs through the middle. Above it is where the work lives. Below it are the other modules and systems that touch each step.
Where it runs
- Dev system · Where you code
- Quality system · Where it is tested
- Production · Where it runs
- Transport · Moves the change
- Step 1RequirementSpec
A functional consultant describes what is needed.
Functional teamWrites the requirement - Step 2DesignData and logic
The developer chooses tables, objects and the extension point.
Data DictionaryTables and structures - Eclipse ADTModern editor
- Step 4TestABAP Unit
Unit tests, debugging and ATC checks catch errors.
ATCStatic code checks - BasisImports transports
- UsersReport incidents
Teal marks steps that post to or are owned by finance or another module. Amber marks where the work is organised.
The flow in words: 1. Requirement → 2. Design → 3. Code → 4. Test → 5. Transport → 6. Support.
SAP ABAP consultant roles and responsibilities
On an implementation
Builds reports, interfaces, forms and enhancements from functional specs, writes unit tests and reviews code.
In support
Analyses dumps and performance, fixes defects and supports transports and upgrades.
A typical week
- Read functional specs and agree what to build.
- Write and enhance reports, classes and interfaces.
- Debug production issues from short dumps.
- Review code and fix findings from ATC checks.
- Support transports and test cycles.
Career ladder
- 0–3 years Junior developer or analystBuilds small changes and fixes defects under guidance.
- 3–7 years Developer or engineerDesigns and delivers features on their own.
- 7–12 years Senior engineer or leadOwns quality, performance and code review for a team.
- 12+ years Technical architectChooses the approach across systems and sets standards.
Problems you will meet in tickets
- Short dump TIME_OUT in a report
- Performance problem in a custom select
- BAdI not being called
- Wrong data after an upload program
- Transport missing an object
Mistakes beginners make
- Running SELECT inside a loop.
- Using obsolete statements in new code.
- Skipping authority checks in custom reports.
- Debugging in production instead of reproducing in quality.
Key SAP ABAP transaction codes
Each linked code opens its own reference page with fields, errors and related objects.
| Tool or transaction | What it does |
|---|---|
| SE80 | SE80 Object Navigator for ABAP Development |
| SE11 | ABAP Dictionary Maintenance |
| SE38 | ABAP Editor / Program Execution |
| SE37 | Function Builder for testing and building function modules |
| SE24 | SE24 Class Builder for ABAP OO Development |
| ST22 | ABAP Dump Analysis |
| SE09 | Workbench Organizer for Transport Requests |
More SAP ABAP T-codes
- ST05 SQL and Performance Trace
- SE19 BAdI Implementation Builder
- SE18 BAdI Definition Maintenance
- SAT ABAP Runtime Analysis for Performance Tracing
- SE91 Message Maintenance
- SM30 Generic Table and View Maintenance
- SE16 SE16 Table Display Data Browser
- SE10 Customizing Organizer for Transport Requests
- SE03 Transport Organizer Tools
- SE01 Transport Organizer for Workbench and Customizing Requests
- SMARTFORMS SAP Smart Forms
- SE54 Table Maintenance Generator Settings
Key SAP ABAP tables
- TFDIR Function Module Directory Table TFDIR
- TADIR TADIR Repository Object Directory Table
- E071 Transport request object list table
- TSTC TSTC Transaction Code Table
- DD02L ABAP Dictionary table catalog
- STXH SAPscript Text Header Table
- T002 T002 Language Key table
- TRDIR TRDIR ABAP Program Directory Table
- SEOCLASS SEOCLASS table for ABAP class definitions
- TSTCT TSTCT - Transaction Code Text Table
- DD04T DD04T Data Element Text Table
- DD07T Domain Fixed Values Text Table
Browse every SAP ABAP T-code, table and error in the library
Classic vs Modern: what changed for SAP ABAP
Development tool
Classic. SAP GUI editors such as SE38 and SE80.
Modern. ABAP Development Tools in Eclipse are the main editor.
Coding style
Classic. Classic procedural code with many obsolete statements.
Modern. Modern ABAP with inline declarations, expressions and CDS views.
Extensions
Classic. Modifications and classic enhancements.
Modern. Clean core: key user and developer extensibility.
How to study SAP ABAP: the lesson path
Work through the topics below in order. Each one opens its topic page with the lessons from beginner to advanced.
1.ABAP Core
- ABAP Core Part 3: Data Types and LiteralsBeginner · 8 min
- ABAP Core Part 4: Control Flow and Building Output TextsBeginner · 8 min
- ABAP Core Part 1: Your First ABAP Program and the Development ToolsBeginner · 7 min
- ABAP Core Part 2: DATA, TYPES, CONSTANTS, Work Areas and Internal TablesBeginner · 8 min
- ABAP Core Part 5: Selection Screens — PARAMETERS, SELECT-OPTIONS and ValidationBeginner · 9 min
- ABAP Core Part 6: System Fields — sy-subrc, sy-tabix, sy-datum and MoreBeginner · 7 min
- ABAP Core Part 7: Operators, Calculations and Type ConversionBeginner · 9 min
- ABAP Core Part 8: Messages and User-Friendly Error HandlingBeginner · 8 min
- ABAP Core Part 9: TRY, CATCH and Exception Handling BasicsBeginner · 9 min
- ABAP Core Part 10: Clean ABAP Basics for Maintainable CodeIntermediate · 10 min
2.Internal Tables
- Internal Tables Part 1: Standard, Sorted and Hashed TablesBeginner · 9 min
- Internal Tables Part 4: READ TABLE, sy-subrc and Table ExpressionsBeginner · 8 min
- Internal Tables Part 6: APPEND, INSERT, MODIFY, DELETE and COLLECTBeginner · 9 min
- Internal Tables Part 2: Choosing the Right Table TypeIntermediate · 9 min
- Internal Tables Part 3: Work Area vs Field Symbol vs Data ReferenceIntermediate · 7 min
- Internal Tables Part 5: SORT, BINARY SEARCH and Secondary KeysIntermediate · 8 min
- Internal Tables Part 8: LOOP Patterns — WHERE, Control Levels and TotalsIntermediate · 9 min
- Internal Tables Part 7: Removing Duplicates and Building Unique DatasetsIntermediate · 8 min
- Internal Tables Part 9: Nested LOOP Optimization and Parallel CursorAdvanced · 9 min
- Internal Tables Part 10: Memory Management and Large Internal TablesAdvanced · 8 min
3.Open SQL
- Open SQL Part 2: SELECT Basics — Field Lists, WHERE and INTOBeginner · 9 min
- Open SQL Part 1: How ABAP Reads the DatabaseBeginner · 7 min
- Open SQL Part 4: SELECT SINGLE vs UP TO 1 ROWSBeginner · 8 min
- Open SQL Part 3: FOR ALL ENTRIES — Correct UseIntermediate · 9 min
- Open SQL Part 5: JOINs — When to Use and When to AvoidIntermediate · 9 min
- Open SQL Part 6: Aggregates, GROUP BY and HAVINGIntermediate · 8 min
- Open SQL Part 7: PACKAGE SIZE and Large Data ProcessingAdvanced · 8 min
- Open SQL Part 8: Performance Analysis with ST05, SAT and SQL MonitorAdvanced · 7 min
- Open SQL Part 9: HANA-Friendly SQL and Code PushdownAdvanced · 8 min
- Open SQL Part 10: Open SQL in Real Reports and InterfacesAdvanced · 12 min
4.Modularization
- Modularization Part 1: Why and How to Split ABAP ProgramsBeginner · 8 min
- Modularization Part 2: FORM Routines — Legacy but Still ImportantBeginner · 7 min
- Modularization Part 4: Function Modules and Function GroupsBeginner · 9 min
- Modularization Part 6: Methods and Local ClassesBeginner · 9 min
- Modularization Part 3: FORM vs Method vs Function ModuleIntermediate · 8 min
- Modularization Part 7: Global Classes vs Local ClassesIntermediate · 9 min
- Modularization Part 8: Parameter Passing — IMPORTING, EXPORTING, CHANGING and RETURNINGIntermediate · 8 min
- Modularization Part 5: Update Function Modules and IN UPDATE TASKAdvanced · 8 min
- Modularization Part 9: Reusable Service Class DesignAdvanced · 9 min
- Modularization Part 10: Modularization for Unit Testing and Regression SafetyAdvanced · 10 min
5.OOP ABAP
- OOP ABAP Part 1: Classes, Objects, Attributes and MethodsBeginner · 9 min
- OOP ABAP Part 2: Local Classes vs Global ClassesBeginner · 8 min
- OOP ABAP Part 3: Inheritance, Interfaces and PolymorphismIntermediate · 9 min
- OOP ABAP Part 4: Class-Based ExceptionsIntermediate · 9 min
- OOP ABAP Part 5: Instance Methods, Static Methods and ConstructorsIntermediate · 10 min
- OOP ABAP Part 6: Encapsulation and Visibility — PUBLIC, PROTECTED, PRIVATEIntermediate · 9 min
- OOP ABAP Part 7: Composition vs InheritanceAdvanced · 11 min
- OOP ABAP Part 8: Interfaces and Factory MethodsAdvanced · 11 min
- OOP ABAP Part 9: Dependency Injection and ABAP UnitAdvanced · 12 min
- OOP ABAP Part 10: OOP in S/4HANA, RAP and Clean CoreAdvanced · 9 min
6.ALV Reports
- ALV Reports Part 2: Quick ALV with CL_SALV_TABLEBeginner · 10 min
- ALV Reports Part 1: ALV Basics with REUSE_ALV_GRID_DISPLAYBeginner · 10 min
- ALV Reports Part 3: OO ALV with CL_GUI_ALV_GRID and a Custom ContainerIntermediate · 10 min
- ALV Reports Part 4: The Field Catalog in DepthIntermediate · 9 min
- ALV Reports Part 5: Layout, Sort, Filter, Totals and VariantsIntermediate · 9 min
- ALV Reports Part 6: Hotspot and Double-Click Drill-DownIntermediate · 11 min
- ALV Reports Part 8: Toolbar Buttons, PF-STATUS and User CommandsIntermediate · 11 min
- ALV Reports Part 7: Colors, Icons and Traffic LightsIntermediate · 10 min
- ALV Reports Part 9: Editable ALV with CL_GUI_ALV_GRIDAdvanced · 12 min
- ALV Reports Part 10: Authorization and Sensitive Data in ALV ReportsAdvanced · 10 min
7.Enhancements
- Enhancements Part 2: The Enhancement Framework OverviewBeginner · 7 min
- Enhancements Part 1: SAP Enhancement Techniques OverviewBeginner · 8 min
- Enhancements Part 3: Implicit vs Explicit Enhancement PointsIntermediate · 8 min
- Enhancements Part 4: Finding Enhancements Using DebuggingIntermediate · 9 min
- Enhancements Part 5: Implementing Explicit Enhancement Points and SectionsIntermediate · 7 min
- Enhancements Part 6: Enhancement Spots and ImplementationsIntermediate · 8 min
- Enhancements Part 7: Implicit Enhancements — Power and RiskAdvanced · 8 min
- Enhancements Part 8: Switch-Controlled Enhancements (Switch Framework)Advanced · 7 min
- Enhancements Part 9: Performance and Safety in EnhancementsAdvanced · 7 min
- Enhancements Part 10: Enhancements in S/4HANA and Clean CoreAdvanced · 7 min
8.BAdI
- BAdI Part 2: Finding and Implementing a BAdI Step by StepBeginner · 8 min
- BAdI Part 1: What a BAdI Is and How SAP Calls ItBeginner · 8 min
- BAdI Part 3: Designing Your Own BAdI — Fallback Class and FiltersIntermediate · 8 min
- BAdI Part 4: Classic BAdI vs New BAdIIntermediate · 7 min
- BAdI Part 7: Using Filter-Dependent BAdIsIntermediate · 7 min
- BAdI Part 5: Single-Use vs Multiple-Use BAdIsIntermediate · 7 min
- BAdI Part 6: Debugging BAdIs in Real ProjectsIntermediate · 8 min
- BAdI Part 8: Implementation Design — Keep BAdI Logic CleanAdvanced · 8 min
- BAdI Part 9: Performance and Database Access in BAdIsAdvanced · 8 min
- BAdI Part 10: BAdIs in S/4HANA and Clean CoreAdvanced · 7 min
9.User Exits
- User Exits Part 1: What SD User Exits Are and How They WorkBeginner · 8 min
- User Exits Part 2: User Exits vs Customer Exits vs BAdIs — When to MigrateIntermediate · 8 min
- User Exits Part 3: Finding User Exits in Real TransactionsIntermediate · 8 min
- User Exits Part 4: MV45AFZZ — Sales Order Exits and Save LogicIntermediate · 7 min
- User Exits Part 5: MV50AFZ1 — Delivery User Exit PatternsIntermediate · 7 min
- User Exits Part 6: RV60AFZZ — Billing User Exit PatternsIntermediate · 7 min
- User Exits Part 7: Safe Coding Rules Inside User ExitsAdvanced · 6 min
- User Exits Part 8: Performance Risks in User ExitsAdvanced · 7 min
10.BAPI
- BAPI Part 2: Calling a BAPI — Inputs, X Structures, RETURN and CommitBeginner · 11 min
- BAPI Part 1: What a BAPI Is and How to Find OneBeginner · 8 min
- BAPI Part 3: BAPI vs RFC vs ODataIntermediate · 8 min
- BAPI Part 4: Understanding BAPI RETURN MessagesIntermediate · 9 min
- BAPI Part 5: Commit, WAIT, Rollback and the SAP LUWIntermediate · 8 min
- BAPI Part 6: Mapping Header, Item, Partner and Schedule DataIntermediate · 9 min
- BAPI Part 7: Test Run, Simulation and Safe BAPI ExecutionIntermediate · 8 min
- BAPI Part 8: EXTENSIONIN — Saving Custom Fields with BAPIsAdvanced · 8 min
- BAPI Part 9: BAPI Uploads — Idempotency and Safe RetryAdvanced · 9 min
- BAPI Part 10: "Success but No Document" — Debugging BAPI ProblemsAdvanced · 8 min
11.IDoc
- IDoc Part 1: What an IDoc Is — Inbound, Outbound and the Big PictureBeginner · 8 min
- IDoc Part 2: Message Type, Basic Type and ExtensionBeginner · 7 min
- IDoc Part 3: Inbound IDoc ProcessingIntermediate · 8 min
- IDoc Part 4: Outbound IDocs, Distribution Model and ReprocessingIntermediate · 8 min
- IDoc Part 5: Partner Profile, Port and RFC ConfigurationIntermediate · 7 min
- IDoc Part 8: Status Codes and Reprocessing with BD87Intermediate · 7 min
- IDoc Part 6: Inbound Process Code and Custom Function ModuleAdvanced · 10 min
- IDoc Part 7: Outbound Triggering — Output Control and Change PointersAdvanced · 7 min
- IDoc Part 9: IDoc Extension and Custom SegmentsAdvanced · 7 min
- IDoc Part 10: Debugging and Production SupportAdvanced · 9 min
12.SmartForms
- Smart Forms Part 2: Anatomy of a Smart Form and the Driver ProgramBeginner · 9 min
- Smart Forms Part 1: What Smart Forms Are and How Printing WorksBeginner · 8 min
- Smart Forms Part 3: Output Determination and the Print Program EntryIntermediate · 10 min
- Smart Forms Part 4: Form Interface — Import Parameters, Tables and Global DataIntermediate · 7 min
- Smart Forms Part 5: Pages, Windows and Main Window FlowIntermediate · 6 min
- Smart Forms Part 6: Tables, Templates, Loops and ConditionsIntermediate · 6 min
- Smart Forms Part 7: Texts, Translations and Language HandlingIntermediate · 7 min
- Smart Forms Part 8: Debugging Smart Forms and Generated Function ModulesAdvanced · 9 min
13.Adobe Forms
- Adobe Forms Part 2: SFP Form Design and Layout BasicsBeginner · 6 min
- Adobe Forms Part 1: What SAP Interactive Forms by Adobe AreBeginner · 8 min
- Adobe Forms Part 3: Print Runs, Interactive Forms and Troubleshooting OverviewIntermediate · 6 min
- Adobe Forms Part 4: Interface and Context DesignIntermediate · 6 min
- Adobe Forms Part 5: The Driver Program PatternIntermediate · 9 min
- Adobe Forms Part 6: Tables, Subforms and Repeating Item DataIntermediate · 7 min
- Adobe Forms Part 7: Texts, Logos, Barcodes and ImagesIntermediate · 7 min
- Adobe Forms Part 8: Output Parameters, PDF Return and Spool HandlingIntermediate · 8 min
- Adobe Forms Part 9: ADS Configuration and TroubleshootingAdvanced · 8 min
- Adobe Forms Part 10: Migrating Smart Forms to Adobe FormsAdvanced · 8 min
14.Debugging
- Debugging Part 2: ABAP Debugger EssentialsBeginner · 7 min
- Debugging Part 1: How to Approach an ABAP ProblemBeginner · 6 min
- Debugging Part 3: External Breakpoints — Why They Are Not HitIntermediate · 7 min
- Debugging Part 4: Watchpoints, Layers and Static Checks (ATC)Intermediate · 6 min
- Debugging Part 5: Debugging Internal Tables and Field SymbolsIntermediate · 7 min
- Debugging Part 8: Background Job Debugging with SM37, JDBG and SM50Intermediate · 6 min
- Debugging Part 6: ST22 Short Dump AnalysisIntermediate · 7 min
- Debugging Part 7: Update Task DebuggingAdvanced · 7 min
- Debugging Part 9: RFC, IDoc and OData DebuggingAdvanced · 7 min
- Debugging Part 10: Production Debugging — Evidence FirstAdvanced · 7 min
15.Performance Tuning
- Performance Part 2: The Database-First RuleBeginner · 7 min
- Performance Part 1: Measuring with ST05, SAT and STADBeginner · 6 min
- Performance Part 3: Tuning in Real Projects — Measure, Fix, VerifyIntermediate · 6 min
- Performance Part 4: SELECT Inside LOOP — The Classic Performance KillerIntermediate · 7 min
- Performance Part 5: FOR ALL ENTRIES — Correct Use and Hidden RisksIntermediate · 6 min
- Performance Part 6: Internal Tables — Standard, Sorted and HashedIntermediate · 9 min
- Performance Part 7: JOIN vs FOR ALL ENTRIES vs Nested SELECTIntermediate · 7 min
- Performance Part 8: HANA Pushdown with Open SQL, CDS and AMDPAdvanced · 7 min
- Performance Part 9: Package Processing for Large Data VolumesAdvanced · 7 min
- Performance Part 10: Indexes, Selectivity and WHERE ConditionsAdvanced · 7 min
16.Workflow
- Workflow Part 1: SAP Business Workflow ArchitectureBeginner · 9 min
- Workflow Part 2: Building Templates — Steps, Containers and BindingIntermediate · 9 min
- Workflow Part 3: Agent Determination and Rule-Based AssignmentIntermediate · 8 min
- Workflow Part 5: Errors, Restart and EscalationAdvanced · 7 min
- Workflow Part 4: Workflow at Scale — Governance, Flexible Workflow and Clean CoreAdvanced · 7 min
17.ABAP Dictionary: Tables, Buffering and Indexes
- ABAP Dictionary Domains and Data Elements: Fixed Values, Semantics and Safe ReuseBeginner · 9 min
- Create an ABAP Database Table in ADT or SE11: Keys, Activation and ChecksBeginner · 11 min
- ABAP Dictionary Search Helps and Foreign Keys: Value Help Versus Data IntegrityIntermediate · 9 min
- ABAP Table Maintenance Generator and SM30: Authorization, Recording and Safe ChangesIntermediate · 9 min
- SAP Table Buffering: Single, Generic or Full? A Practical ABAP Decision GuideIntermediate · 10 min
- ABAP Lock Objects: ENQUEUE, DEQUEUE and Concurrent Update ProtectionIntermediate · 9 min
- ABAP Number Ranges with SNRO: Intervals, Buffering and Gap ExpectationsIntermediate · 8 min
- ABAP Change Documents: SCDO Setup, CDHDR/CDPOS and Auditable UpdatesIntermediate · 8 min
- ABAP Secondary Indexes on SAP HANA: When to Create One and How to Prove ItAdvanced · 9 min
SAP ABAP questions people ask
What is ABAP used for?
ABAP builds reports, interfaces, forms, conversions and enhancements inside SAP systems, and is the language of the SAP application layer.
Is ABAP still relevant with S/4HANA?
Yes. S/4HANA is written largely in ABAP, and modern ABAP with CDS and RAP is used for new development, so skills remain in demand.
What does an ABAP developer do?
Builds and fixes programs, tunes performance, works on interfaces and extensions and analyses dumps.
How long does it take to learn ABAP?
The basics take a few weeks of daily practice. Becoming productive on real projects usually needs a few months.
What is the difference between ABAP and RAP?
ABAP is the language. RAP, the RESTful Application Programming model, is the modern framework for building apps in ABAP.
Preparing for interviews? SAP ABAP interview questions · All SAP tracks