Code: Alles auswählen.
*------ TYPE-POOLS
TYPE-POOLS: slis.
Code: Alles auswählen.
data:
wa_status type slis_formname value 'STANDARD_HR',
wa_user_command type slis_formname value 'USER_COMMAND'.
Code: Alles auswählen.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
...
i_callback_pf_status_set = wa_status
i_callback_user_command = wa_user_command
...
Code: Alles auswählen.
form standard_hr using extab type slis_t_extab. "#EC CALLED
set pf-status 'STANDARD_HR' of program c_prog
excluding extab.
endform. "STANDARD_HR
Code: Alles auswählen.
form user_command using r_ucomm like sy-ucomm "#EC CALLED
rs_selfield type slis_selfield.
case r_ucomm.
when 'REFRESH'.
* Hier baust du deine Aktualisierungen ein
* und setzt diesen Schalter:
rs_selfield-refresh = true.
when others.
endcase.
endform.