Get Example source ABAP code based on a different SAP table
ABAP_SQLEXP > - Null Expression This example demonstrates null expressions> in AB_SQL .
ABAP_SOURCE_CODE DEMO CL_DEMO_SQL_EXPR_NULL
ABAP_DESCRIPTION In the SELECT> list, two simple case distinctions> are made which both explicitly specify the null expression NULL> after ELSE>.
The column distance> returns the result of all matches and if there is no match returns the null value.
The column null> returns an unknown result for the first comparison, which is true, and the null value for the second comparison, which is not true. The null value> is converted to the type-dependent initial value> in both cases when passed to the result table.