Friday, December 17, 2010
Here is the procedure to handle TOP_OF_PAGE event in ALV GRID display.
Instead of all 1and 2 steps you can just pass TOP_OF_PAGE the above subroutine theough REUSE_ALV_GRID_DISPLAY in the exporting parameters.
- declare events table like this. data : i_events type slis_t_event, w_events like line of i_events.
- Build events table . w_events-name = 'TOP_OF_PAGE' . w_events-form = 'TOP_OF_PAGE' . append w_events to i_events. clear w_events.
- pass this events table through REUSE_ALV_GRID_DISPLAY.
- TOP_OF_PAGE call back should be like this in your case.
*&---------------------------------------------------------------------* *& Form top_of_page *&---------------------------------------------------------------------* FORM top_of_page. DATA : li_header TYPE slis_t_listheader, w_header LIKE LINE OF li_header. w_header-typ = 'S'. w_header-info = g_var1. APPEND w_header TO li_header. CLEAR w_header. w_header-typ = 'H'. w_header-info = g_var2. APPEND w_header TO li_header. CLEAR w_header. w_header-typ = 'A'. w_header-info = g_var3. APPEND w_header TO li_header. CLEAR w_header. CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE' EXPORTING it_list_commentary = li_header. ENDFORM. " top_of_page
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.