‎2007 Jun 17 4:45 AM
‎2007 Jun 17 4:48 AM
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
‎2007 Jun 17 4:48 AM
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
‎2007 Jun 17 4:50 AM
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
‎2007 Jun 17 9:06 AM
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-OFSELECTION.
TOP-OF-PAGE
END-OF-PAGE
END-OF-SELECTION.
‎2007 Jun 17 11:00 AM
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.
‎2007 Jun 17 12:13 PM
Hi
Plz check the below link..
http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
Regards,
Hakim
Mark all useful answers..