If you modify fields on your ALV screen using the user_command exit and want the changes to be displayed. Set the user command r_ucomm to '&REFRESH' before leaving the form.
For example:
*---------------------------------------------------------------------*
* FORM USER_COMMAND *
*---------------------------------------------------------------------*
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&DATA_SAVE'. "menubutton
PERFORM post_transactions.
r_ucomm = '&REFRESH'.
WHEN '&IC1'. "doubleclick
PERFORM handle_drilldown USING rs_selfield post_flag.
CLEAR r_ucomm.
WHEN OTHERS.
MESSAGE w061.
CLEAR r_ucomm.
ENDCASE.
ENDFORM.
No comments:
Post a Comment