Concatenation in SQL

Advertisements

Index

 

ABAP HANA 7.51: Concatenation

Enhanced ABAP gives another new feature of Concatenation which makes it possible to concatenate multiple selected fields which can be merged with hardcoded strings, spaces or delimiters.

Concatenation in new Open SQL query is achieved with && operator. If any hardcoded string is to be also concatenated, it is enclosed inside single quotes. All Variables, Constants and hardcoded literals are kept inside small brackets “( … )”. As the last syntax action, ‘to be concatenated text’ is given an alias with AS keyword. This will effectively create a field with given alias in the created Internal table.

Refer below Source code Example!

Sample Source Code:

Output:

The output of above query will create an Internal table with only one field called KEY!

Index

 

 

One thought on “Concatenation in SQL

Leave a ReplyCancel reply