Contents
BC ABAP Reporting Tutorial .....................................................................................6
BC - ABAP Workbench: Reporting Tutorial ...........................................................7
Note to the Reader ......................................................................................................8
Overview .......................................................................................................................9
Requirements10..........................................................................................................10
Syntax conventions ...................................................................................................11
Platform .......................................................................................................................12
Naming Conventions for SAP Objects ...................................................................13
Further Documentation .............................................................................................14
ABAP Query .................................................................................................................15
Overview of ABAP Query ..........................................................................................16
User Groups ................................................................................................................17
Functional Areas ........................................................................................................18
Query ............................................................................................................................20
Basic Settings for a Query.......................................................................................21
Creating a Basic List ................................................................................................23
Layout of a Basic List ...............................................................................................24
Other presentations of a basic list .......................................................................26
Creating Statistics ....................................................................................................27
Creating a Report Using ABAP Statements .......................................................29
Overview ....................................................................................................................30
The ABAP Programming Language .....................................................................31
Creating an ABAP Program ...................................................................................32
The ABAP Editor .......................................................................................................34
Comment lines ..........................................................................................................35
ABAP Statements for Screen Display .................................................................36
Declaring data ...........................................................................................................38
Handling Variables ...................................................................................................39
Text Layout ................................................................................................................40
List Headers ..............................................................................................................42
Dynamic List Headings ...........................................................................................43
Database Access .....................................................................................................44
The SELECT Statement ..........................................................................................45
Selection Criteria .....................................................................................................47
PARAMETERS ............................................................................................................48
SELECT-OPTIONS .....................................................................................................50
Variants ......................................................................................................................52
Nested SELECT Statements ...................................................................................53
Performance of the SELECT Statement .............................................................55
Sample Program: nested SELECT statements .................................................56
Logical Databases and Events .............................................................................59
Overview: logical databases .................................................................................60
Creating a Report That Uses a Logical Database ............................................61
Retrieving Data Using a Logical Database .........................................................62
Sample program: reading SBOOK using a logical database .........................64
Hierarchy of a Logical Database ..........................................................................65
Events ..........................................................................................................................67
GET
LATE .....................................................................................................................68
Sample program: report using logical database ..............................................70
Structures and Internal Tables ..............................................................................72
Internal Tables ...........................................................................................................73
Structures and Internal Tables ..............................................................................74
Declaring a structure ...............................................................................................75
Declaring an internal table ......................................................................................77
Defining the Work Area ...........................................................................................78
Filling internal tables .................................................................................................79
Working with Internal Tables ..................................................................................80
IF statement .................................................................................................................83
Sample program: internal tables ............................................................................84
Processing control levels .........................................................................................87
Control Level Processing ..........................................................................................89
Calculating Totals ........................................................................................................91
Sample program: processing control levels .......................................................92
Interactive Reporting .................................................................................................95
Concept: interactive reporting .................................................................................96.
New Event Keywords .................................................................................................97
Creating a Detail List ..................................................................................................98
Valid Line Selection ....................................................................................................100
Defining a User Interface ..........................................................................................101
Sample program for interactive reporting ............................................................103
Download attached file: You must be Loged in to download file