CASE operand. WHEN condition THEN 'something' ELSE 'something else' END AS some_name More info on https://help.sap.com/doc/abapdocu_750_index_htm/7.50/en-US/abencds_operands_and_expressions.htm