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 prg structure

Former Member
0 Likes
541

What is the typical generic structure of an ABAP prg?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
492

Hi,

The structure of the ABAP programs is

1.Define tables which we used in the program,using TABLES

2.Define type-pools using TYPE-POOLS.

3.Define types using TYPES for defining structures

4.DATA

5.SELECTION-SCREEN.

6.SELECT statement.

7.WRITE statement.

Reward points,

Thanks,

chandu.

3 REPLIES 3
Read only

Former Member
0 Likes
493

Hi,

The structure of the ABAP programs is

1.Define tables which we used in the program,using TABLES

2.Define type-pools using TYPE-POOLS.

3.Define types using TYPES for defining structures

4.DATA

5.SELECTION-SCREEN.

6.SELECT statement.

7.WRITE statement.

Reward points,

Thanks,

chandu.

Read only

Former Member
0 Likes
492

hi,

ABAP is an event-driven programming language, and as such is suited to processing user dialogs. The

source code of an ABAP program consists of two parts:

Declarations

Declarations include the statements for global data types and objects, selection screens, and (in ABAP

Objects) local classes and interfaces within the program.

Processing Blocks (indivisible program units)

Each processing block must be programmed as a single entity. There are two basic kinds of processing

blocks:

Event Blocks:

Event blocks are introduced by an event keyword. They are not concluded explicitly, but end when the

next processing block starts.

Dialog Modules and Procedures:

Dialog modules and procedures are introduced and concluded using keywords.

The contents of all processing blocks form the processing logic.

When you generate the program, these parts are compiled to form the load version. This is interpreted at

runtime.

PROGRAM sapbc402_rund_test.

Declarations

TYPES: ...

DATA: ....

CONSTANTS: ...

Dialog module

MODULE s_100 OUTPUT.

...

ENDMODULE.

...

...

Event blck

INITIALIZATION.

...

...

START-OF-SELECTION.

...

...

...

...

...

Procedure

FORM calc USING ...

CHANGING ...

...

ENDFORM.

Hope this is helpful, Do reward.

Edited by: Runal Singh on Feb 8, 2008 11:46 AM

Read only

Former Member
0 Likes
492

Hai ,

Generally the typical structure of an abap program is

Header

body

footer .

Reward points if useful

Thanks and regards,

K.Vinay Kumar