⢠The SWITCH operator is very similar to the COND operator with some differences
⢠The COND operator is used for creating a result depending on logical expressions but the SWITCH operator is used for creating a result depending on case distinction.
⢠The position operand in the parentheses is the value that is checked in the case distinction. The expression compares the values of the operand operand with the specified constant values one after another and chooses the result after THEN for which the values of the operand and constant are identical for the first time.
⢠If no matches are found, the result specified after ELSE is selected.
⢠The specification of THROW raises an exception of the exception class cx_class. Exception can be raised only in the ELSE part.
Please share with your ABAP friends and follow us.
If you want to dive deeper, visit our course https://lnkd.in/d35uqwud
ÎŁĎĎΝΚι