SAP SQL NULL



Get Example source ABAP code based on a different SAP table
  


• NULL ABAP_OSQL_EXP

ABAP_SQLEXP - sql_null

ABAP_SYNTAX
... NULL ...

What does it do?
Special null expression in AB_SQL . The operand NULL represents the null value. Null expressions are context-dependent and the type of NULL is determined by the context. Generally, null expressions can be used in operand positions of SQL expressions . Any exception is documented for the respective position.



Latest notes:

At any operand position, it must be possible to determine an exact type for NULL. If this is not the case, a syntax error occurs or a catchable exception is raised.
The expression NULL must not be confused with the relational expression with the predicate syntax IS $[NOT$] NULL.
NON_V5_HINTS
ABAP_HINT_END

ABAP_EXAMPLE_VX5
Returns the airline code, flight connection number, null value, and distance of all Lufthansa flights. When passing NULL to the result table, the null value is converted to the initial value.
ABEXA 01730
ABAP_EXAMPLE_END

ABAP_EXAMPLE_ABEXA
SQL Expressions, Null Expression
ABAP_EXAMPLE_END