2012 Feb 04 10:51 AM
Hi,
I have made function module similar to "FI_ITEMS_DISPLAY" as 'ZFI_ITEMS_DISPLAY' .... As output is coming in ALV...can anybody tell me how to write for the Header of this alv report.... In normal alv we use to pass exporting parameter i_callback_top_of_page = 'TOP-OF-PAGE' in 'REUSE_ALV_GRID_DISPLAY' .. Is there anything similar over here
Hi,
I have made function module similar to "FI_ITEMS_DISPLAY" as 'ZFI_ITEMS_DISPLAY' .... As output is coming in ALV...can anybody tell me how to write for the Header of this alv report.... In normal alv we use to pass exporting parameter i_callback_top_of_page = 'TOP-OF-PAGE' in 'REUSE_ALV_GRID_DISPLAY' .. Is there anything similar over here
2012 Feb 04 5:26 PM
Hi,
The new function module you have generated....if it is similar to FI_ITEMS_DISPLAY
Then you need to actually design an exit routine for it and pass it... If you observe it is REUSE_ALV_GRID_DISPLAY that is being used here as well...
2012 Feb 04 10:24 PM
Hi Kumar,
as you did not say very clear what you did this is not easy to answer.
If your ZFI_ITEMS_DISPLAY was created by copying function group FI_ITEMS with FI_ITEMS_DISPLAY as ZFI_ITEMS_DISPLAY then you just need to populate the FORM routines TOP_OF_LIST, TOP_OF_PAGE and USER_COMMAND.
In FI_ITEMS_DISPLAY they do not use exporting parameter i_callback_top_of_page but parameter it_event_exit = gt_event_exit. gt_event_exit is pouplated in form alv_events_make. Here the internal eventnames are connected to FORM routines.
The code lines could be reduced by 2 thirds but many programmers behave as if payed by line.
Before asking questions some online help may have answered the question. In SE37 function builder there are green buttons for documentation of the IMPORT parameters. Documentation of I_CALLBACK_USER_COMMAND refers to parameter IT_EVENTS, here the documentation has it all.
Regards,
Clemens