Give an example for AT USER-COMMAND? | ABAP Module Programing

AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'COUNT'.
IF NOT count_records IS INITIAL.
MESSAGE i000 WITH count_records.
ENDIF.
WHEN 'BACK' OR 'EXIT' OR 'CANCEL'.
LEAVE TO SCREEN 0.
ENDCASE.