Kontrollstrukturen (ABAP)

Aus MattWiki

CASE

CASE lv_city.
  WHEN 'Munich'.
    " code for munich
  WHEN 'Berlin'.
    " code for berlin
  WHEN 'Hamburg'.
    " code for hamburg
  WHEN 'Frankfurt'.
    " code for frankfurt
  WHEN OTHERS.
    " code for any other
ENDCASE.