12-19-2006 4:59 PM
Hi all,
I have an ALV grid with a TOP-OF-PAGE event. In the event I look at my sleection screen which contains the material number, if the user enter many material numbers(SINGLE VALUES), all I get in my report is the selection and no ALV.
Can anyone help?Please!
12-19-2006 5:14 PM
12-19-2006 5:16 PM
Hi,
Try calling the FMs in the TOP_OF_PAGE event..
RS_REFRESH_FROM_SELECTOPTIONS - To get the selection-screen values
RS_LIST_SELECTION_TABLE - Prints the selection-screen value..
Thanks,
Naren
12-19-2006 5:31 PM
The thing is we use a in-hous FM to build the TOP-OF-PAGE
if i_line_type = 'A' or
i_line_type = 'S' or
i_line_type = 'H'.
clear ls_line.
ls_line-typ = i_line_type.
ls_line-key = i_line_key.
ls_line-info = i_line_info.
append ls_line to t_top_of_page.
else.
raise invalid_line_type.
endif.
so for each material number it goes through this FM
12-19-2006 5:32 PM
The thing is we use a in-hous FM to build the TOP-OF-PAGE
if i_line_type = 'A' or
i_line_type = 'S' or
i_line_type = 'H'.
clear ls_line.
ls_line-typ = i_line_type.
ls_line-key = i_line_key.
ls_line-info = i_line_info.
append ls_line to t_top_of_page.
else.
raise invalid_line_type.
endif.
so for each material number it goes through this FM
12-19-2006 5:34 PM
12-19-2006 5:37 PM
12-19-2006 5:43 PM
Oh, I think I know what you are seeing, the TOP_OF_PAGE container is so big that it is pushing the grid, in effect covering it up.
At the bottom of the "TOP_OF_PAGE" container, there should be a line which you can grab a hold of and move it up, grab this and move up to reveal the ALV grid.
Regards,
Rich Heilman
12-19-2006 5:49 PM
yes, but if i do a print preview i dont see what is in the grid....
12-19-2006 5:50 PM
12-19-2006 5:51 PM
12-19-2006 5:54 PM
Yes, I am able to re-create your problem. Usually this TOP_OF_PAGE is only used to display a few line, maybe 4 or 5. Not to list out all of the materials in a select option. It is a little redudant. If you have to list them, maybe a better way is to show the range, maybe the start and end materials.
60001234 - 60001290
Regards,
Rich Heilman
12-19-2006 5:56 PM
I know but I'm just the programmer not the user!!!...they are the ones enterig the selectionand coming to me with this porblem which i need to solve!
12-19-2006 5:58 PM
I think this may be a limitiation here, I don't see a way around this, I though that the parameter I_HTML_HEIGHT_TOP might help, but it does not work in my system.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = fieldcat
i_callback_program = repid
it_events = events[]
I_HTML_HEIGHT_TOP = 10
tables
t_outtab = i_alv.
Regards,
Rich Heilman
12-19-2006 6:02 PM
It's not working for me either...I dont think there is any other work arounds...
12-19-2006 6:20 PM
12-19-2006 6:21 PM