CASE command in SAPscript

Syntax

CASE symbol
...
[WHEN value|WHEN OTHERS]
...
ENDCASE

Example

/: CASE &NAME&
/: WHEN ’ROBERT’
* He is ROBERT.
/: WHEN ’JOHN’
* He is JOHN.
/: WHEN OTHERS
* Who is he? &NAME
/: ENDCASE

 img63

Technorati Tags: ,

Post new comment