NNielsen
Nicolai Nielsen
May 31, 2023
1 Introduction
I Overview
1 Gentle Introduction to ABAP
a Hello World, Comments, Germanness
b Variable Declaration
c Structures and tables
Difference between TYPE and LIKE
d Loops
DO X TIMES
LOOP AT
WHILE
e Branching
IF
CASE
Example of SELECT statement
SELECT SINGLE
f Field Symbols
g READ Befehl
h Sorting
i Filling structure and table
j Messages to the user
k Boolean
l Tabellenarten
m Konstanten
n REDUCE
2 Modularisation
a Funktionsbaustein aufrufen
b Unterprogramm
3 Input Output
a Write, Message
Write
Message
b SELECT-OPTIONS
c Selektionselemente
Parameters
d Upload, download
e Abap List View
1. Data selection
Field Catalog
f Smartforms
4 Databases
a Normalization
Problem
First Normal Form
Second Normal Form
Third Normal Form
Summary: Howto normalize
Entity Relationship Model
b Data Dictionary DDIC
Overview
Domains
Conversions
Data element
c Table types
5 Hashing
6 Indexing
7 ABAP List Views
a Capture input parameter and create an output table
b Creating a clsalvtable object
c Our very simple ALV grid
d Beautifying our ABAP List View (ALV)
e Filter and Sorting the ALV
f Naming the headers of ALV grids and descriptions of selection parameters
8 CDS Views
a Create CDS Views
b Using system variables in CDS views
c Join on join
d Coalesce
COALESCE( arg1, arg2 )
e Cast
CAST( operand AS dtype [PRESERVING TYPE])
II Classical DynPro
1 Important transactions
a SE41
b SE51
c Communication between SE51 and SE38
d Difference between report and module pool
e Screen ranges
f Include everything
2 Example
III OO Programming in ABAP
1 Defining and implementing methods
2 Exceptions
a Class-based exceptions
b Global exceptions
3 Testing methods
a Quick Example
IV Appendix
1 ABAP System Fields
a Programming Guidelines
b Hints
c Example
I.1 Flow Chart
I.2 Smartforms initial screen
I.3 Example Atomization
I.4 Dissolve repeating groups
I.5 Example how to define a key
I.6 Dependency of attributes on keys
I.7 Functional Dependency
I.8 Entity symbol for Chen ERM diagram
I.9 Attribute symbol for Chen ERM
I.10 Relationship symbol for Chen ERM
I.11 Two related entities
I.12 An entity with an attribute
I.13 A relationship with an attribute
I.14 Basic Cardinalities in Entity relationship models
I.15 Relationship SAP table, data element and domain
I.16 Domain in SE11
I.17 Input screen for domain
I.18 Domains and fixed values
I.19 Conversions of domains
I.20 Example of a parametric plot ()
I.21 Output of an ALV table
I.22 Icons for Sorting and Filtering
I.23 ALV header and Name for selection parameter
I.24 Go To -> Text Element
I.25 Text Elements Screen
I.26 Name how the selection parameter is displayed
I.27 Name the ALV header in SE38
I.28 CDS View: Select Data Definition
I.29 CDS View: Data Definition
I.30 datatypes the CDS cast function can use
I.31 Table of datatypes you can cast from and to
II.1 Create Module Pool Program
II.2 Create Object Directory Entry
II.3 Inactive Program
II.4 Screen Painter: Attributes
II.5 Screen Painter: Create Text field
II.6 Uncomment Module
II.7 Create OK Code
I.1 The two ways of commenting in ABAP
I.2 How to declare variables
I.3 Declaration of a structure, a table, and the chain rule
I.4 Usage of CDS view system variables
I.1 CDS view: join on join
I.2 Example of Coalesce
I.3 Example of Cast
III.1 The definition of a method in a class
III.2 The implementation of a Class
III.3 Calling a method in a program
III.4 How to raise an exception in your code
III.5 Basic structure of Exceptions
III.6 Simple Test Class Definition
III.7 Simple Test Class and Methods
III.1 RISK LEVEL attributes