Docsity

ABAP Programming: An Introduction to ABAP Editor, Syntax, and Keywords, Slides of Computer Programming

Partial preview of the text

Download ABAP Programming: An Introduction to ABAP Editor, Syntax, and Keywords and more Slides Computer Programming in PDF only on Docsity!

Introduction ABAP

Programs

ABAP (History)

 Acronym:  A llgemeiner B erichts A ufbereitungs P rozessor  Generic report preparation rocessor  A dvanced B usiness A pplication P rogramming  Created back in the 1980s  Looks very much like COBOL  SAP itself, is written in ABAP

Introduction to the ABAP

Editor

 It’s a unified interface for creating, debugging, deploying, … ABAP programs  Use transaction code SE

Activation

 Note that you must activate ABAP with the keys I gave you before you use the software for the first time.

Review

(A First ABAP Program -2)

 Edit the program statements

Review

(A First ABAP Program -3)

 Activate the application (Program / Activate)

APAP Program Attributes

(Introduction)

 Every program that you create has metadata

APAP Program Attributes

(Program Type)

 ABAP has it’s own program types  Executable programs can be run independently of a transaction code  Remember program types from the last lecture  Our first program will be an executable program  Module Pools are made up of processing steps and are executed from a transaction code  And other types of programs

ABAP Program Attributes

(Package)

 A program belongs to a package and has an owner  The package is defined when the program is saved for the first time  Use package $TMP for our “local” packages  SAP packages, in the simplest case, allow you group code (applications) together

ABAP Program Attributes

(Package)

 Use Local Page $TMP for our work

ABAP Program Names

 SAP has naming conventions for programs  Local programs should ALWAYS begin with the letter Z (for customer)

ABAP Syntax (Introduction)

 Like most programming language, we have statements as the atomic unit of work  ABAP statements always end with a period (thanks COBOL)

ABAP Keywords (REPORT)

 REPORT rep.

 It’s the first statement in an executable program  It can also be replaced with the keyword PROGRAM  Following the report keyword appears the report name  Example

ABAP Keywords (WRITE 1)

 The statement writes the content to the output stream (current page of the current list)