11-07-2008 4:04 PM
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®ards,
Jirka
11-07-2008 4:26 PM
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
11-07-2008 4:26 PM
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
11-07-2008 5:43 PM
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®ards,
Jirka
11-07-2008 5:14 PM
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.