Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV top-of-page

Former Member
0 Kudos

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!

16 REPLIES 16

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Can you post the code?

Regards,

Rich Heilman

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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

0 Kudos

So you are saying that you get all of the values in the Header part, but there is no data in your ALV Grid?

Are you filling the ALV grid internal table with data?

Regards,

Rich Heilman

0 Kudos

yes of course...and i dont even see a grid I only see the top.

0 Kudos

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

0 Kudos

yes, but if i do a print preview i dont see what is in the grid....

0 Kudos

How many materials are in your select-options?

Regards,

Rich heilman

0 Kudos

about 40

0 Kudos

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

0 Kudos

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!

0 Kudos

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

0 Kudos

It's not working for me either...I dont think there is any other work arounds...

Former Member
0 Kudos

Thanks Rich I guess there is no solution to this!!

0 Kudos

Sadly, if you are on a netweaver release, you may want to check out the new ALV Object model, maybe this implementation of the ALV grid handles this limitation. I doubt it, but its worth a shot.

Regards,

Rich Heilman