2006 Sep 22 8:42 PM
Hi;
I have created an ALV using object oriented method (Using custom control).
Now when I view the report in list format (using the list output button in ALV tool bar) I do not get the header.
Please advise me how to add the header in above case.
Thanks
Abhishek
Hi;
I have created an ALV using object oriented method (Using custom control).
Now when I view the report in list format (using the list output button in ALV tool bar) I do not get the header.
Please advise me how to add the header in above case.
Thanks
Abhishek
2006 Sep 22 8:48 PM
2006 Sep 22 8:49 PM
2006 Sep 22 9:20 PM
we r using r/3 ver 4.7
And I have coded top of page for the ALV grid and it is working fine.
But I have no idea how to display the header in the ALV list format????
Any Solution?
2006 Sep 22 9:38 PM
You have to use the event PRINT_TOP_OF_PAGE from the class CL_GUI_ALV_GRID.
Alexandre
2006 Sep 22 9:54 PM
2006 Sep 22 10:04 PM
2006 Sep 22 11:42 PM
Hi,
as the printed output is not screen output but list, it uses internally the function REUSE_ALV_LIST_DISPLAY. You may populate ALV Grid event PRINT_TOP_OF_PAGE. In this event, use WRITE statements to (re-) create the header, This should be passed and handled by ALV_LIST_DISPLAY.
Hope it helps,
Clemens
2006 Sep 25 2:52 PM
Hi Clemens;
Could you please explain me ur suggestion in detail?
What I mean is :
I have already used the event PRINT_TOP_OF_PAGE of class CL_GUI_ALV_GRID but it did not work.
Now as per ur suggestion, I need to pass and populate the event PRINT_TOP_OF_PAGE in the ALV_LIST_DISPLAY, which I believe is actualy the FM Reuse_ALV_LIST_DISPLAY right?
Now could u tell me where should I call this FM?
2006 Sep 25 4:47 PM
Hi Abhishek,
I am so sorry. It was a suggestion. I knew that SAP developers are just humans. I hoped they would do something good sometimes.
But not this time!
I tried program BCALV_TEST_GRID_EVENTS just to find out none of the events we could use is even triggered. Not in the grid and not in the list.
And: Internally they use FM K_KKB_LIST_DISPLAY - not passing any events.
Sorry I didn't know they are that bad. But I'm convinced I will stay with the REUSE Function modules. Whatz can I do with the grid I can't with function?
Regards,
Clemens
2006 Sep 23 10:17 PM
Hi,
Go through the sample code,
http://www.sapdevelopment.co.uk/reporting/alv/alvlist.htm
Regards,
Azaz Ali.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |