Application Development and Automation 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: 
Read only

ALV top-of-page

Former Member
0 Likes
1,199

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
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,165

Can you post the code?

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,165

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

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

How many materials are in your select-options?

Regards,

Rich heilman

Read only

0 Likes
1,165

about 40

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

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!

Read only

0 Likes
1,165

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

Read only

0 Likes
1,165

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

Read only

Former Member
0 Likes
1,165

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

Read only

0 Likes
1,165

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