‎2007 Jul 27 12:54 PM
‎2007 Jul 27 12:57 PM
check this sdn link.
1. Slis_ev_item_data_expand TYPE slis_formname VALUE 'ITEM_DATA_EXPAND'.
2. Slis_ev_reprep_sel_modify TYPE slis_formname VALUE 'REPREP_SEL_MODIFY'.
3. Slis_ev_caller_exit_at_start TYPE slis_formname VALUE 'CALLER_EXIT'.
4. Slis_ev_user_command TYPE slis_formname VALUE 'USER_COMMAND'.
5. Slis_ev_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE'.
6. Slis_ev_top_of_coverpage TYPE slis_formname VALUE 'TOP_OF_COVERPAGE'
7. Slis_ev_end_of_coverpage TYPE slis_formname VALUE 'END_OF_COVERPAGE'.
8. Slis_ev_foreign_top_of_page TYPE slis_formname VALUE FOREIGN_TOP_OF_PAGE'.
9. Slis_ev_foreign_end_of_page TYPE slis_formname VALUE 'FOREIGN_END_OF_PAGE'.
10. Slis_ev_pf_status_set TYPE slis_formname VALUE 'PF_STATUS_SET'.
11. Slis_ev_list_modify TYPE slis_formname VALUE 'LIST_MODIFY'.
12. Slis_ev_top_of_list TYPE slis_formname VALUE 'TOP_OF_LIST'.
Information output at the start of the list
13. Slis_ev_end_of_page TYPE slis_formname VALUE 'END_OF_PAGE'.
Information output at the end of a page. This is only called for printing.
14. Slis_ev_end_of_list TYPE slis_formname VALUE 'END_OF_LIST'.
15. Slis_ev_after_line_output TYPE slis_formname VALUE 'AFTER_LINE_OUTPUT'.
16. Slis_ev_before_line_output TYPE slis_formname VALUE 'BEFORE_LINE_OUTPUT'.
17. Slis_ev_subtotal_text TYPE slis_formname VALUE 'SUBTOTAL_TEXT'.
Message was edited by:
Sumi Vasu
‎2007 Jul 27 1:00 PM
Hi Pradeep,
The EVENTS used in ALV Report depends on your requirement.
If you want to display Header then you can use TOP-OF-PAGE EVENT.
If you want to display Footer you can use END-OF-PAGE EVENT.
There are many more existing. You can have a look of Events existing in
TYPE-POOL - SLIS from SE11.
You can append these events manually to the internal table for events and pass it to the REUSE_ALV function module.
Also you can use the function module for getting events. I guess it it REUSE_ALV_GET_EVENTS (Not sure, we can search for the same in SE37).
<i><b>Reward points for helpful answers.</b></i>
Best Regards,
Ram.
‎2007 Jul 27 1:01 PM
Hi,
Events in ALV are as follows,
CALLER_EXIT
USER_COMMAND
TOP_OF_PAGE
TOP_OF_COVERPAGE
END_OF_COVERPAGE
FOREIGN_TOP_OF_PAGE
FOREIGN_END_OF_PAGE
PF_STATUS_SET
LIST_MODIFY
TOP_OF_LIST
END_OF_PAGE
END_OF_LIST
AFTER_LINE_OUTPUT
BEFORE_LINE_OUTPUT
REPREP_SEL_MODIFY
SUBTOTAL_TEXT
GROUPLEVEL_CHANGE
For more information, you can try this link:
http://www.sap-img.com/abap/what-are-the-events-in-alv.htm
Regards,
Padmam.
‎2007 Jul 27 1:03 PM
hi
ABAP/4 report programs are event driven programs
The different events
<b>Load-of-program</b>
Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session. The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1, M, F or S as a constructor has for classes in ABAP Objects
<b>Initialization.</b>
This event is executed before the selection screen is displayed .
Initialization of all the values.
You can assign different values other than the values defaulted on the selection screen .
You can fill your selection screen with some values at runtime.
<b>At Selection-Screen.</b>
The event is processed when the selection screen has been processed (at the end of PAI ).
Validation & Checks of inputted values happen here
Extras :
ON VALUE-REQUEST FOR psel_low_high .
The pushbutton for F4 (Possible entries) appears beside the appropriate field.
... ON HELP-REQUEST FOR psel_low_high
. ... OUTPUT
This event is executed at PBO of the selection screen every time the user presses ENTER
<b>Start-of-Selection.</b>
Here the program starts selecting values from tables.
<b>End-of-selection.</b>
After all the data has been selected this event writes the data to the screen.
Interactive Events
Used for interactive reporting. It is used to create a detailed list from a basic list
regards
dinesh