SAP CDS COALESCE EXPRESSION V2



Get Example source ABAP code based on a different SAP table
  


• COALESCE ABAP_CDS_FUNCTION

ABAP_CDS_DDL - CDS View Entity, Coalesce Function

ABAP_SYNTAX
... COALESCE( arg1, arg2 ) ...

What does it do?
Coalesce function in a SELECT statement of a CDS view entity. Can be used to check whether arg1 contains a null value. In ABAP CDS, the coalesce function has two mandatory positional parameters, arg1 and arg2. It checks whether arg1 contains a null value. If yes, then it returns the value of arg2. If no, then it returns the value of arg1. If both arg1 and arg2 are null, then the null value is returned.