Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more ➡
Download
Standard view
Full view
of .
Add note
Save to My Library
Sync to mobile
Look up keyword or section
Like this
297Activity
×
P. 1
Sap Abap Reports

Sap Abap Reports

Ratings:

5.0

(1)
|Views: 28,054|Likes:
Published by Pavan
SAP ABAP Reports with sample logic and screen shots
SAP ABAP Reports with sample logic and screen shots

More info:

Published by: Pavan on Oct 16, 2009
Copyright:Public Domain

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
Also found in:Reports, sap, ABAP
See More
See less

08/06/2013

pdf

text

original

 
Created by Pavan Page 1 of 107Mail: Praveen.srrec@gmail.com
Reports:
In ABAP, there are total of 7 types of reports. They are:
 
Classical
 
Interactive
 
Logical Database
 
ABAP query
 
ALV Reports (ALV stands for ABAP List Viewer)
 
Report Writer/Report Painter
 
Views (There are different types of views also)
Classical Reports
These are the simplest reports. Programmers learn this one first. It is just an outputof data using the Write statement inside a loop.
 
Classical reports are normal reports. These reports are not having any subreports. IT IS HAVING ONLY ONE SCREEN/LIST FOR OUTPUT.Events In Classical Reports.
 
INTIALIZATION: This event triggers before selection screen display.
 
AT-SELECTION-SCREEN: This event triggers after processing user inputstill selection screen is in active mode.
 
START OF SELECTION: Start of selection screen triggers after processingselection screen.END-OF-SELECTION: It is for Logical Database Reporting.Event blocks are introduced by an
event keyword
. They end when the nextprocessing block begins. The following processing block can either be an eventblock or another processing block allowed in this context – for example, asubroutine or a dialog module. Event keywords have the same name as the eventsto which they react.
 
Created by Pavan Page 2 of 107Mail: Praveen.srrec@gmail.com
Syntax:
DATA:...INITIALIZATION....AT SELECTION-SCREEN....START-OF-SELECTION....GET spfli........END-OF-SELECTION....FORM......ENDFORM.
The sequence in which the processing blocks occur in the program is irrelevant.The actual processing sequence is determined by the external events. However, tomake your programs easier to understand, you should include the event blocks inyour program in approximately the same order in which they will be called by thesystem. Subroutines should be placed at the end of the program.With only two exceptions (
AT SELECTION-SCREEN
and
GET
), event blockshave
no local data area
. All declarative statements in event blocks are handledwith the global data declarations in the program. You should therefore include allof your declarations at the start of the program.Statements that are not assigned to a processing block are never executed. Inexecutable programs, all non-declarative statements between the
REPORT
or
PROGRAM
statement and the first processing block are assigned to the defaultevent
START-OF-SELECTION.
if a program does not contain an explicit
 
Created by Pavan Page 3 of 107Mail: Praveen.srrec@gmail.com
START-OF-SELECTION
event block, these statements form the entire
START-OF-SELECTION
block. If a program contains an explicitly defined
START-OF-SELECTION
event block, these statements are inserted at thebeginning of this event block. If a program does not contain any explicit eventblocks, all non-declarative statements form the processing block 
START-OF-SELECTION
.
 
In ABAP Editor initialscreen give your programname and then press F5 orclick on Create

Activity (297)

You've already reviewed this. Edit your review.
Naresh Vepuri liked this
Pavan liked this
sanju4love liked this
seenusrinivas liked this
hembeck119 liked this
Udit Bansal added this note|
Useful one...
Ferney Ospina liked this
tabish24 liked this

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->