SAP CONDITIONAL EXPRESSION COND



Get Example source ABAP code based on a different SAP table
  


• COND ABAP_CONSTRUCTOR
• # COND
• WHEN COND
• THEN COND
• ELSE COND

COND, Conditional Operator

ABAP_SYNTAX
... COND type( $[let_exp$]
WHEN log_exp1 THEN $[ let_exp$] result1
$[ WHEN log_exp2 THEN $[ let_exp$] result2 $]
...
$[ ELSE $[let_exp$] resultn $] ) ...

What does it do?
A conditional expression with the conditional operator COND has a result result that is dependent on logical expressions. Either a value with the data type specified by type is created or a class-based exception is raised. The following can be specified for type: