SAP SQL EXPR CASE STRING ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_SQLEXP - Simple CASE
This example demonstrates simple case distinctions in SQL expressions.

ABAP_SOURCE_CODE
DEMO CL_DEMO_SQL_EXPR_CASE_STRING

ABAP_DESCRIPTION
In a list of columns specified after SELECT, CASE is used to make a simple case distinction for the content of a column. The result is a character string that is concatenated from column content or taken from a host variable. Using the alias name defined after AS, the result is assigned to the identically named column in an internal table declared inline, results.