Day 1: Introduction to ABAP on HANA

 

Day 1: Introduction to ABAP on HANA

  • What is ABAP on HANA?

  • Code Pushdown concept

  • Differences: Classical ABAP vs ABAP on HANA

  • Tools: Eclipse/ADT, HANA Studio vs SE80

  • Setup environment (if needed)

Tasks:

  • Read SAP Help documentation

  • Watch SAP DevTuts video (YouTube/learning.sap.com)

  • Write Hello World CDS view in ADT




1️⃣ What is ABAP on HANA?

Verified Source: SAP Help: ABAP on SAP HANA

  • ABAP on HANA is not a new language — it's the modern way to write ABAP code that uses SAP HANA’s in-memory capabilities.

  • It focuses on performance, clean architecture, and code pushdown to the database.


2️⃣ Code Pushdown Concept

Verified Source: SAP Blog - Code Pushdown Explained

  • Traditional ABAP fetches all data, then filters it in memory.

  • With HANA, logic should be executed at the DB level (pushdown), using:

    • CDS Views

    • AMDP (ABAP Managed DB Procedures)

    • Table Functions

  • Benefit: Less data transfer = Faster, more efficient programs.


3️⃣ Classical ABAP vs ABAP on HANA

Feature

Classical ABAP

ABAP on HANA

DB Compatibility

Any (Oracle, MSSQL, etc.)

Only SAP HANA

Processing Location

Application Layer

DB Layer (Pushdown)

Performance

Slower for large data

Optimized with HANA

Optimization Tools

SELECT loops, aggregates

CDS, AMDP, Table Functions

Use in S/4HANA

Limited

Required


4️⃣ Tools: Eclipse/ADT, HANA Studio vs SE80

Verified Source: SAP Help - ABAP Development Tools

Tool

Purpose

Recommendation

SE80

Old GUI-based tool

Use only for legacy support

Eclipse (ADT)

Modern IDE for CDS, RAP, OData, AMDP

Preferred tool

HANA Studio

For DB admin, modeling

Mostly replaced by Web IDEs

✅ For ABAP on HANA & RAP, use Eclipse + ADT (ABAP Development Tools).


5️⃣ Write "Hello World" CDS View in ADT (Modern way)

Using: DEFINE VIEW ENTITY (SAP Recommended)

🔧 Steps:

  1. In Eclipse → Right-click on your package → New → Data Definition

  2. Name it ZDEMO_HELLO_ENTITY

  3. Replace the code with:

@AbapCatalog.viewEnhancementCategory: [#NONE]

@AccessControl.authorizationCheck: #NOT_REQUIRED

@EndUserText.label: 'Hello World CDS View - ENTITY'

@Metadata.ignorePropagatedAnnotations: true

@ObjectModel.usageType:{

serviceQuality: #X,

sizeCategory: #S,

dataClass: #MIXED

}

define view entity ZDEMO_Hello_Entity as select from t100

{

key sprsl as Language,

key arbgb as MessageClass,

key msgnr as MessageNumber,

text as MessageText

}

where sprsl = 'E'

  1. Activate it: Ctrl+F3

  2. Right-click → Open With → Data Preview 🎉


📝 Task Checklist for Day 1:

✅ Understand ABAP on HANA basics
✅ Learn the concept of Code Pushdown
✅ Know key differences: Classical vs HANA-Optimized ABAP
✅ Get familiar with tools: ADT, Eclipse
✅ Create your first CDS View (DEFINE VIEW ENTITY)
✅ Explore data in Data Preview


Comments

Popular posts from this blog

Day 3: CDS Intermediate – Filters & Expressions

Day 2: CDS View Basics