2009 Sep 14 10:33 AM
Hi,
whenever i write abap program, i usually maintain following program flow. is it right from performance tuning point of view?
1) include statements
2) DATABASE TABLES
3) VARIABLE DECLARATIONS
4) SELECTION-SCREEN
5) FIELD SYMBOLS
6) INITIALIZATION
7) AT SELECTION SCREEN
😎 TOP OF PAGE
9) END OF PAGE
10) START OF SELECTION
11) END OF SELECTION
Please advise
Regards,
Santosh
Hi,
In my opinion, you don't have to consider performance in writing an reporting event. Its the same whether you write a event at the top or bottom or inside an include.
But its a good practice to use a ordered approach as mentioned by you.
Regards
Karthik D
2009 Sep 14 12:02 PM
Hi,
In my opinion, you don't have to consider performance in writing an reporting event. Its the same whether you write a event at the top or bottom or inside an include.
But its a good practice to use a ordered approach as mentioned by you.
Regards
Karthik D
2009 Sep 14 12:27 PM
Hello,
Just to add to Kathick's explanation. ABAP is an event-driven programming language. The general flow of an ABAP program is controlled by events.
It is a good -practice to code event processing blocks in the order in which they will be triggered during execution. However, they do not have to be coded in a sequential order.
This is the first thing i learnt in ABAP basics class )
BR,
Suhas
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |