04-26-2006 3:04 PM
Hi everybody,
i'm having some troubles using FM REUSE_ALV_HIERSEQ_LIST_DISPLAY:
My first problem is that I have many fields in the header as well as position data. Is there a possibility to increase the default number of rows in the "change layout" dialogue? I know that I can increase the number of rows by choosing 'more lines' from the context menu, but the additional lines are displayed only during this dialogue. (If I accept the layout, go back to the list & change layout again, only the first three rows are displayed.)
Second problem is the following:
I am using a form for user-commands to change some values in the list and refresh the list display afterwards. Now sometimes, the list is scrolled to the top after refreshing (which is annoying) and sometimes it is not. How can I keep the position in the list after executing the user-command and refreshing the list?
Thank you for your advice, kind regards, Kathrin!
04-26-2006 3:15 PM
Hi Kathrin,
in your user-command form you need to do this ...
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
case r_ucomm.
when 'TTTT'.
....
endcase.
<b> RS_SELFIELD-ROW_STABLE = 'X'.
RS_SELFIELD-REFRESH = 'X'.</b>
endform.
just check it...
Regards
vijay
04-26-2006 3:15 PM
Hi Kathrin,
in your user-command form you need to do this ...
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
case r_ucomm.
when 'TTTT'.
....
endcase.
<b> RS_SELFIELD-ROW_STABLE = 'X'.
RS_SELFIELD-REFRESH = 'X'.</b>
endform.
just check it...
Regards
vijay