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: 

Multiple ALV

Former Member
0 Kudos

Hi gurus,

I have ALV grid in my report (using REUSE_ALV_GRID_DISPLAY). I have add one icon for Display/change functionality. When I press this icon, some fields in fieldcatalog are changed (flag edit is set o 'X') and after that I recall function module REUSE_ALV_GRID_DISPLAY. It works fine.

Problem is, that if I press back, first I go back to previous ALV and I need to go directly to selection screen. I tried to find some attribut of FM, but I was not succesfull.

Can someone help me?

Thanks&regards,

Jirka

1 ACCEPTED SOLUTION

naimesh_patel
Active Contributor
0 Kudos

Instead of the changing the Field-Catalog and calling the FM REUSE_ALV_GRID_DISPLAY, you should:

1. First call FM REUSE_ALV_GRID_LAYOUT_INFO_GET to get the current field-catalog

2. Change the field catalog to set the Input enable the fields

3. Call FM REUSE_ALV_GRID_LAYOUT_INFO_SET to set the field-catalog

4. Than Refresh the ALV display using the RS_SELFIELD-REFERSH = 'X' in the user command.

Regards,

Naimesh Patel

3 REPLIES 3

naimesh_patel
Active Contributor
0 Kudos

Instead of the changing the Field-Catalog and calling the FM REUSE_ALV_GRID_DISPLAY, you should:

1. First call FM REUSE_ALV_GRID_LAYOUT_INFO_GET to get the current field-catalog

2. Change the field catalog to set the Input enable the fields

3. Call FM REUSE_ALV_GRID_LAYOUT_INFO_SET to set the field-catalog

4. Than Refresh the ALV display using the RS_SELFIELD-REFERSH = 'X' in the user command.

Regards,

Naimesh Patel

0 Kudos

Thanks Naimesh,

what do you mean with point 4. : Than Refresh the ALV display using the RS_SELFIELD-REFERSH = 'X' in the user command.

How should I call it?

Thanks&regards,

Jirka

former_member188685
Active Contributor
0 Kudos

this you can do it with the help of slis_selfield-exit .

you can code like this..

form user_command using ucomm type sy-ucomm selfield type slis_selfield.

case ucomm.

when 'SOMECODE'.
 selfield-exit = 'X'. "this will exit from the first alv
" call alv again.
 endcase.

endform.