ABAP Development for SAP HANA

"ABAP Development for SAP HANA"

This step-by-step developer’s guide contains all you need to construct SAP HANA-optimized ABAP applications. Delve into the environment and tools at your disposal, and master the development techniques that dictate the code-to-data paradigm in SAP HANA. Then, dive into backend programming using ABAP Database Connectivity, SQLScript, ABAP-managed database procedures, core data services, and beyond. After coding your applications, ensure their maintenance with runtime statistics, traces, and code analysis. Build it your way!

  • Understand How SAP HANA Changes ABAP Programming
  • Access the Database with ABAP Database Connectivity, SQLScript, and ABAP-Managed Database Procedures
  • Model Data Using Calculation Views and CDS Views
Getting Started 

Start by familiarizing yourself with the architecture and features of SAP HANA, and setting up your development environments, including SAP HANA Studio and ABAP Development Tools. Grasp the code pushdown techniques essential for ABAP development on SAP HANA.

Creating Programming 

Generate, execute, and oversee SAP HANA database procedures using native SQL, ABAP Database Connectivity, SQLScript, ABAP-managed database procedures, among others.

Modeling 

Employ calculation views and CDS views for SAP HANA data modeling. Construct business objects with the Business Object Processing Framework (BOPF).

Optimizing Applications 

Utilize runtime statistics, ABAP and SQL traces, ABAP code analysis, and system-wide analysis tools to ensure your ABAP applications run efficiently.

  • SAP HANA
  • ABAP Database Connectivity (ADBC)
  • ABAP-Managed Database Procedures (AMDP)
  • SQL and SQLScript
  • Data Modeling
  • Core Data Services (CDS)
  • Native SQL and ABAP SQL
  • Business Object Processing Framework (BOPF)
  • ABAP Test Cockpit
  • Runtime Statistics and Analysis
  • SAP BTP, ABAP Environment
Table of Contents

SAP HANA Overview

Features

  • Main Memory and CPU Innovations
  • Storage Innovations
  • Data Compression
  • Data Partitioning
Architecture

Platform Capabilities

Use Cases

  • Side-by-Side Scenario
  • Fully Integrated Scenarios
  • New Applications
Code-to-Data Paradigm

What Is the Code-to-Data Paradigm?

Bottom-Up Approach

  • Using Native SQL
  • Using Proxy Objects
Top-Down Approach
  • Using Transparent Optimization
  • Using ABAP SQL
  • Using ABAP-Managed Database Procedures
  • Using Core Data Services
Performance Benefits of Code-to-Data Techniques

Development Environments

Evolution of Programming Languages and Development Tools

SAP HANA Studio

  • Compatibility Checks
  • Download
  • Installation
  • Basic Navigation and Actions
  • ABAP Perspective
  • Modeler Perspective
  • Administration
SAP HANA Client

ABAP Development Tools

  • Installation
  • SAP Business Technology Platform, ABAP Environment
Native SQL
  • Executing Native SQL Statements
  • Literals and Host Variables
  • Statement for Cursor Processing
  • Database Procedure Calls
  • Statements for Establishing Database Connections
  • Data Type Compatibility
ABAP Database Connectivity
  • Querying the Database
  • DDL and DML Operations
  • Secondary Connections
  • Precautions While Using ABAP Database Connectivity
SQLScript Programming

What Is SQLScript?

  • SQL versus SQLScript
  • Types of SQLScript Statements
  • Prerequisites
SQL Query Template

Creating a Schema

Creating Tables

Stored Procedures

  • Creating Procedures
  • Deleting Procedures
User-Defined Functions
  • Joins and GROUP BY Clauses
  • Subqueries
Constructs
  • Local Scalar Variables
  • Local Table Variables
  • Conditional Statements
  • FOR Loops and WHILE Loops
  • Operators
  • Emptiness Check for Tables and Table Variables
  • Getting the Number of Records for Tables and Table Variables
Cursors
  • Example Cursor
  • Looping over Cursors
Transactional Statements

Dynamic SQL

Exception Handling

Arrays

  • Creating an Array
  • Accessing the Array
  • Concatenating Arrays
  • Converting a Table into an Array
  • Unpacking an Array into a Table
  • Deleting or Trimming an Array
  • Cardinality in Arrays
SQL Injection Prevention Functions

Explicit Parallel Execution

System Variables

Debugging SQLScript

ABAP-Managed Database Procedures

Introduction

  • ABAP-Managed Database Procedure Framework
  • Development Environment for AMDP
Creating AMDP Classes
  • Prerequisites
  • Implementing AMDP Methods
  • Calling AMDP Methods in Applications
  • Using Multiple Selection Criteria
  • Feature Support Check Using Global Classes
Enhancements
  • AMDP BAdI Overview
  • AMDP BAdI Implementation
  • AMDP BAdI Definition
  • AMDP Calls
Exception Handling

Debugging

  • AMDP Debugging before SAP NetWeaver AS ABAP
  • AMDP Debugging with SAP NetWeaver AS ABAP 7.5
  • AMDP Dump Analysis Using Transaction ST22
Tools
  • AMDP Dependencies for ABAP and SAP HANA
  • AMDP Precondition Checks
  • AMDP Consistency Check for AMDP Table Functions
  • Delete Obsolete AMDPS
Modeling

What Is Modeling for SAP HANA?

  • Measures and Attributes
  • Dimensions
  • Fact Tables
  • Star Schemas
  • Hierarchies
  • Semantics
  • Joins
Information Views
  • Features
  • View Types
Calculation Views
  • Creating Dimension Calculation Views
  • Creating Calculated Attributes
  • Time Dimension-Based Calculated Views
  • Base Tables Aliases
  • Hidden Columns
  • Labels and Hidden Attributes
  • Using Measures in Calculation Views
Modeling Functions
  • Using a Hierarchy
  • Restricted Columns
  • Calculated Columns
  • Filtering Data
  • Using Variables and Input Parameters
  • Currency Conversion
  • Decision Tables
SQL in Information Models
  • Query a Modeled Hierarchy Using SQLScript
  • Creating and Using Functions in Information Views
  • Procedures in Calculation Views
Virtual Data Models
  • SAP HANA Live
  • SAP S/4HANA Embedded Analytics and Core Data Services Views
Optimizing Data Models
  • Tools to Check Model Performance
  • Good Modeling Practices
Core Data Services

Introduction

  • Domain-Specific Languages
  • Availability and Features
  • Integration with ABAP
Defining CDS Views
  • Using Templates
  • Structure Definition
  • Creating CDS Views in ADT
  • Syntax and Naming Guidelines
Built-In Functions and Expressions
  • Numeric Built-In Functions
  • String Functions
  • COALESCE Function
  • Conversion Functions
  • Date and Time Functions
Annotations
  • Scope of Annotations
  • Types of Annotations
Associations
  • Defining Associations
  • Cardinality
  • Types of Associations
Consuming CDS Views
  • Using ABAP SQL
  • Using SAP List Viewer with Integrated Data Access
Enhancements
  • CDS View Extensions
  • Limiting CDS View Extensibility
  • Finding CDS Extensions to Enhance CDS Views
Authorization Concept
  • Data Control Language Overview
  • Data Control Language Syntax and Access Conditions
  • Data Control Language Source Definition
  • Data Control Language Source Annotations
CDS Table Functions
  • AMDP Functions
  • Introduction to CDS Table Functions
  • Defining CDS Table Functions
Open SQL and ABAP SQL

What Is Open SQL?

Features of Open SQL

ABAP SQL

  • Code Pushdown in ABAP SQL
  • Joins
Open SQL versus ABAP SQL Statements
  • Major Syntax Changes in the SELECT Query
  • Arithmetic Operations and String Operations
  • Joins and Unions
ABAP SQL versus CDS Views and AMDPs
  • CDS Views
  • ABAP-Managed Database Procedures
Business Object Processing Framework

Introduction to Business Object Processing Framework

Elements of BOPF

  • Nodes
  • Attributes
  • Alternate Keys
  • Actions
  • Determinations
  • Associations
  • Validations
  • Queries
BOPF API
  • BOPF Interface Objects
  • Business Object Key
  • BOPF Constants Interface
CRUD Operations Using the BOPF API
  • Creating Business Object Instances
  • Searching for Business Object Instances
  • Updating and Deleting Business Object Instances
Advanced BOPF API Features
  • Consistency Checks
  • Triggering Actions
  • Action Validations
  • Transaction Management
Enhancement Techniques
  • Enhancement Workbench
  • Enhancing the Business Object Data Model
Performance and Optimization

Runtime Statistics Records

Runtime and Statistical Analysis

  • Transaction SAT
  • ABAP Profiling Perspective
  • SQL Performance Trace
  • Single Transaction Analysis (Transaction ST12)
  • Explain Plan
  • SAP HANA Plan Visualizer
ABAP Code Analysis
  • SAP Global Check Variants
  • Using the ABAP Test Cockpit
  • ABAP Test Cockpit Administration
System-Wide Analysis
  • Database Administrator Cockpit
  • SQL Monitor
SQL Performance Optimization
  • Guided Performance Analysis
  • SQL Performance Tuning Worklist
  • Recommended Static Checks
SAP Business Technology Platform, ABAP Environment

Introduction to Application Development in the Cloud with SAP

ABAP Environment in the Cloud

  • Architecture
  • Creating an ABAP Trial Instance
  • Connecting SAP HANA Studio to SAP BTP, Cloud Foundry Environment
  • ABAP Restrictions in the Cloud
  • Migrating ABAP Applications to the Cloud
Creating ABAP Repository Objects in the Cloud
  • Creating ABAP Packages in the Cloud
  • Creating ABAP Database Tables in the Cloud
  • Creating ABAP Classes in the Cloud
  • Creating ABAP CDS Views in the Cloud
Author's Background and Qualifications

Mohsin Ahmed is a senior technical consultant at CapGemini, boasting over 10 years of experience in the SAP domain. He possesses expertise in ABAP development, SAP HANA, OData, and holds a degree in computer science engineering from Jawaharlal Nehru Technological University in Hyderabad, India. Additionally, he has contributed to SAPYard.

Sumit Naik is an ABAP and SAP HANA certified consultant with an impressive track record of over 15 years in technical consulting and management. He has implemented SAP ERP solutions across diverse industries such as retail, life science, energy and utilities, public sector, manufacturing, and IT. His extensive experience encompasses various implementation methodologies, approaches, and accelerators prevalent in the market.

ABAP Development for SAP HANA

SAP Books

ABAP Books
ABAP Certification, BAPI, Java, Web Programming, Smart Forms, Sapscripts Reference Books

More ABAP Tips

ERPGREAT.com
SAP ERP Modules, Basis, ABAP and Other IMG Stuff

All the site contents are Copyright © www.erpgreat.com and the content authors. All rights reserved.
All product names are trademarks of their respective companies.  The site www.erpgreat.com is in no way affiliated with SAP AG.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
 The content on this site may not be reproduced or redistributed without the express written permission of
www.erpgreat.com or the content authors.