Você está na página 1de 24

ABAP PROGRAMMING

Introduction to the REPORTS

TM

Objectives

to introduce

the ABAP integrated development


environment
the two main ABAP application types

reporting
dialog programming

TM

Order of Presentation

Purpose and Function of the ABAP Workbench


Workbench Tools:

Object Navigator (Repository Browser)


The ABAP Language
The Repository Information System
Test and Analysis Tools
Menu & Screen Painter
The Data Modeler
ABAP Query
The Workbench Organizer
The Class Builder

TM

ABAP Workbench
Purpose & Function

SAPs Integrated Graphical Programming


Development Environment:

Used to create/change ABAP application programs


Each ABAP application program is either a report or a
transaction:

Reports are applications that retrieve and display information


from database with little or no user interaction
Transactions accepts inputs/data from users and then
perform one or more relevant actions, usually involving
updating databases

TM

ABAP Workbench
Purpose & Function

The Workbench can be used to

write ABAP code


design dialogs/screens with a graphical editor
create menus with a menu editor
debug an application
test an application for efficiency
control access to objects under development
create new or access predefined database
information

TM

ABAP Workbench
Purpose & Function

Comprises the following tools

The Object Navigator (aka Repository Browser)


the ABAP Language

the Screen and Menu Painters

the Repository Information System


the Data Modeler
various test and analysis tools
the ABAP Query
the Workbench Organizer

ABAP Workbench Architecture

ABAP Organizer

Transport System
AB
AP
Edi
to r

ABAP
Dictionary
ta le r
a
D ode
M

Debugging

Reporting

R/3
Repository

ABAP
Processor
Trace

Test

n
e
e
r
Sc er
t
Pain

Function
Modules
M
Pa enu
in t
er

Tuning

TM

The Workbench Screen

All R/3 screens have a similar look and feel


screens consist of

screen titlebar
menu bar
standard toolbar
application toolbar
screen body
message line

Menubar
Standard toolbar
Screen title-bar
Application toolbar

Message line

Client

Server

TM

The Object Navigator (The


Repository Browser)

central tool for organizing and managing your


personal development objects
used to navigate through development object
lists

where development objects are the components used


to construct an application

automatically calls other workbench tools

if you create a new data definition the browser calls


the Data Dictionary, and then returns to the browser
after the definition is created

TM

The ABAP Language

Advanced Business Application Programming


developed by SAP for the interactive development
of application programs
4th Generation Language (with some OO features)
main uses for ABAP programs include

creation of new reports


development of new user dialog programs (transactions)
customisation of R/3 to meet individual client needs

TM

Reporting

uses ABAP Open SQL to extract


data from the R/3 database

Open SQL is a subset of ANSI SQL

report consists of a [selection


screen] and a list screen

selection screen allows the user to


enter selection criteria
list screen displays the report data

Report
Selection
Screen

List
Screen

ABAP Open SQL

R/3 Database

* See ZADMS2001

The Repository Information


System

TM

The Repository Information System is used to


search for objects in the R/3 system and provides

list of all objects X with attribute/s Y


the Where Used List which gives a list of every place
that object X is used throughout the R/3 system
information about foreign key relationships between
tables
display of data (all records in table X with attribute Y)

TM

Test and Analysis Tools

ABAP Editor

syntax checker

tests for coding and syntactical correctness


provides automatic correct facility
in case of an error, provides a detailed (although
sometimes obscure) reason for the error

extended syntax check

searches out situations that might possibly


result in a runtime error (eg, inconsistent
interface parameters)
warns about use of literals instead of text
elements

TM

Test and Analysis Tools

Debugger

finds logic errors


provides ability to

stop the program anywhere during


runtime
continue statement by statement
skip over subroutines
check or change the contents of variables
and internal tables on the fly

TM

Summary & Conclusion

this lecture provided an overview of the tools


that comprise the ABAP Development Workbench
of these the editor /syntax checker/debugger is
the combination that we will use most frequently
it is essential that you be able to use the tools to

navigate around the workbench


find,execute,change development objects

TM

Related Reading

OnLine Help

R/3 Library ... Basis Components ...


ABAP Workbench

BC ABAP Users Guide

ABAP Basics

Overview of the Components of


Application Programs

ABAP Workbench Tools