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

structure

Former Member
0 Likes
781

what is the typical structure of ABAP program?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
757

You can refer to the below link to find the structure of the ABAP program ( Page 44)

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf

Reward points if helpful

Message was edited by:

Mayank Agarwal

5 REPLIES 5
Read only

Former Member
0 Likes
758

You can refer to the below link to find the structure of the ABAP program ( Page 44)

http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCABA/BCABA.pdf

Reward points if helpful

Message was edited by:

Mayank Agarwal

Read only

Former Member
0 Likes
757

1. For the events in Classical Reports :

1. Initialisation

2. At Selection Screen

3. Start Of Selection ( Get & Get Late in case of Logical Database )

4. End of Selection

5. Top of Page

6. End of Page

Above events are as per the sequence in which they are called.

Reward points if helpful

Read only

Former Member
0 Likes
757

Typical structure of ABAP program is:

report <name> no std page heading Line-count line-size message-id 'zz'

1.DB tables declration

2. data declarartions( internal tables, variables, ranges, constants etc)

3.Selection screen declaration.. (parameters, select-options etc)

4. EVENTs declaration in the order

INITIALIZATION

AT SELECTION-SCREEN OUTPUT

AT SELECTION-SCREEN

START-OF–SELECTION.

TOP-OF-PAGE

END-OF-PAGE

END-OF-SELECTION.

Read only

Former Member
0 Likes
757

hi,

program structure depends on program type.

these steps for EXECUTABLE PROGRAM

1) declare tables which are used in program for data extraction.

TABLES:

2) declare any variable which are required in program.

DATA:

3) declaration of internal tables.

DATA:

4) provide selection-screen logic if required.

select-options: "for complex selection

parameters: " for single value input fields

5) declaration of events.

INITIALIZATION. " used for providing intial values to the fields.

AT SELECTION-SCREEN OUTPUT. " used for changing screen fields dynamically

AT SELECTION-SCREEN. ' for perfom validations on screen input fields.

START-OF-SELECTION. "used for select queries and output statements.

END-OF-SELECTION. " this also used for output statements

TOP-OF-PAGE. " used for providing page heading

END-OF-SELECTION." used for providing page footer.

GET

GET LATE " these events are used only if our program reading data from

LOGICA DATABASE.

If we are going to genatate secondary list, we use events like..

AT LINE-SELECTION. " triggered only if we press F2 function key or

DOUBLE CLIKING on list.

AT USER-COMMAND " triggered only if selecteing menu option and user

defined buttons

<b>if program of type module-pool, follow these steps.</b>

1) declare tables which are used in program for data extraction.

TABLES:

2) declare any variable which are required in program.

DATA:

3) declaration of internal tables.

DATA:

4) screen flow logic.

here we use PBO

PAI

POV

POH

these events based on your requirement.

regards,

Ashokreddy.

Read only

abdul_hakim
Active Contributor
0 Likes
757

Hi

Plz check the below link..

http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm

Regards,

Hakim

Mark all useful answers..