Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP program flow.

Former Member
0 Likes
1,043

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

2 REPLIES 2
Read only

Former Member
0 Likes
707

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

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
707

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