Professional Documents
Culture Documents
1.class Int Reports Theory-1
1.class Int Reports Theory-1
T
CLASSICAL REPORTS
A report with single input screen (selection screen) and single output screen
(list screen) is called a classical report.
Events in Classical Reports: - All the ABAP programs are developed using
events because ABAP is “EVENT DRIVEN PROGRAMMING LANGUAGE” i.e. the
entire ABAP program execution is based on order of events.
Load of Program
Initialization
Load of Program: - This event is used to load the program into memory for
execution. This is internal event, which we cannot see.
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 1
A B A P&WE B D Y N P R O ABA P @ A R J U N IGROWSOFT
v_bukrs = ‘1001’
p_werks = ‘US’
p_mtart = ‘FERT”
This event is triggered (or) executed for every action on the selection screen.
Start of selection: - This event is used to write the original business logic
statements i.e all select statements. It is also used to indicate the starting point
of a program. It is the default event.
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 2
ABAP & W E B D Y N P R OA B A P@ARJUN IGROWSOFT
End of selection: - It is used to indicate the start of selection has been ended.
It is mainly used with logical database, which are absolute in ABAP (LDB’s are
used in old version of ABAP). But LDB’s are stilled used in HR-ABAP, so end of
selection is mainly used in HR-ABAP. It doesn’t have much importance in ABAP,
it is used to indicate the start of selection has been ended
Top of page: - This event is use to display constant page heading for all the
pages in the output screen. This event is triggered after the first WRITE
statement.
Report
Ex <Report
Program: Name>
Will be Line separately.
discussed Count Total Lines(Footer Lines)
This event is triggered (or) executed for every action on the selection screen.
Syntax: -
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 3
A B A P&WE B D Y N P R O ABA P @ A R J U N IGROWSOFT
1)ATItSelection-screen onafield
is used to validate single filed AT selection-
1)It is used to validate multiple fields
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 4
A B A P&WE B D Y N P R O ABA P @ A R J U N IGROWSOFT
INTERACTIVE REPORTS
Display the basic information on the basic list and the detailed information in
the Secondary list is called Interactive report.
The remaining lists are called as secondary lists and the number start from 1 to
20. So totally there are 21 lists.
If you select any line, then the selected line data is stored in SY-LISEL.
AT Line selection
AT User command
AT Line Selection: - This event is triggered whenever the user double clicks on
any list line. To know the selected line contents, we have two keywords or
statements
1) HIDE
2) GET CURSOR
At User command: - This event is triggered whenever the user clicks on custom
GUI buttons.
Top of page during line selection: - This event is used for providing the
constant page heading for all the secondary lists.
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 5
A B A P&WE B D Y N P R O ABA P @ A R J U N IGROWSOFT
Functionality of hide: - Whenever the user double clicks on any list line, the
event at line selection will be triggered.
The system automatically identifies the line no where the user has double
clicked and reads the corresponding record into hide variable.
GET CURSOR: - This statement is used to read or get the selected line content
i.e. fieldname, field value into the variables.
We can generate interactive report based on field name and field value
which is not possible with HIDE statement.
The other difference between hide and get cursor is, with the hide statement
the system uses line no and gets the value into hide variable without knowing
what is the fieldname.
Whereas the get cursor will get the exact field name and field value with
which we can generate various interactive reports based on filed names.
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 6
A B A P&WE B D Y N P R O ABA P @ A R J U N IGROWSOFT
Example: -
AT user command: - This event is triggered whenever the user clicks on Custom
GUI button.
Custom GUI: - It is used to create our menus in the menu bar, our own buttons
in the application toolbar, enabling or disabling the standard buttons on the
standard toolbar.
‘SE41’is the tcode for creating custom GUI (also called as MENU PAINTER)
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 7
A B A P&WE B D Y N P R O ABA P @ A R J U N IGROWSOFT
ARJUN…….LEARNREALTIMESCENARIOSDONEBYME Page 8