1.In report, we should have to write events in sequential
order or not,if we write events insequential then what will
be the drawback and if we will sequential what will be the
advantage.
2.what is the fucnction of end-of-selection even? if we
would not write this event in report what will happen?
3.top-of-page event will trigger before the
initialization,and at selection-screen event or after these
two event.
Answers were Sorted based on User's Feedback
Answer / sirisha
Not Necessary for the events to be in a sequential order.
During run time, the events will be triggered automatically
in the sequence.
But it is suggested to write the events in a sequence for
the user to easily understand the flow of program and for
the efficiency purpose.
END-OF-SELECTION: Will be normally used to free the memory
and display the write statements once all the fetching is
done. But it is not mandatory or necessary to write
END-OF-SELECTION. If any event is missing in the sequence,
the next event will be triggered automatically.
INITIALIZATION initializes the filed values in the
selection screen. This is done before at-selection screen,
before PBO.
TOP-OF-PAGE: This is used to display the required text on
the top of the page as header. This event will come AFTER
INITIALIZATION event only !!
Here is the flow of events:
INITIALIZATION
AT SELECTION-SCREEN
AT SELECTION-SCREEN OUTPUT
START-OF-SELECTION
END-OF-SELECTION
Is This Answer Correct ? | 16 Yes | 4 No |
Answer / nitin gautam
The above answer is ok but the sequence of events should be as under:
INITIALIZATION
AT SELECTION-SCREEN OUTPUT
AT SELECTION-SCREEN
START-OF-SELECTION
END-OF-SELECTION
i.e AT SELECTION-SCREEN OUTPUT WILL TRIGGER FIRST,as to make any changes to fields of selecttion screen before it is displayed...
Is This Answer Correct ? | 4 Yes | 0 No |
Answer / mohd rais
top of page execute before first write statement
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / naveen
if we write events in sequential,then the events will be
executed seuentially and if not then the drver program will
execute the report in sequential order.if we write in
sequential the performance will increase.
if we write end-of-selection event after star-of-selection
then it will stop the processing block if we dont wrote end
of selection by defautly it will triggers after start of
selection.
top of page event will trigger after intialization,at
selection screen and before start-of-selection
Is This Answer Correct ? | 1 Yes | 9 No |
How to do sorting in classical report?
What are the properties of selection screen?
To find the date difference & excude saturday & sunday in between them
Which bdc you prefer? : abap bdc
What kind of BDC programs are written ?
What is payroll area
What are user exits? What is involved in writing them? What precations are needed?
Table ztest has a secondary index on the following fields: tnum, tcode. Select * from ztest where tnum ne '123' and tcode = '456'. Why is the index not used in the above case? Choices: a) Indexes are not allowed on Z tables b) Variables must be used, NOT literals c) Select individual fields, not select * d) Client is not in the where clause e) NE invalidates the use of an index Info: Can someone explain in detail why this happened? It will be really helpful to handle to case in Secondary index:
What is dialog module?
On which event we can validate the input fields in module programs?
what is table control?
What are the aggregate objects in data dictionary? : sap abap data dictionary