Entering content frame

Concatenation Locate the document in its SAP Library structure

A concatenation x||y or x&y is a string function that supplies the following results for character string x (string specification with the length n) and character string y (string specification with the length m):

 

Result of the Concatenation

x||y or x&y

x and y are concatenated to a character string with the length n+m.

If a character string originates from a column, its length is determined without taking trailing blanks into account (code attribute. ASCII, UNICODE) or binary zeros (code attribute BYTE).

x or y is the NULL value

NULL value

Only expressions that have an alphanumeric value as a result are allowed as a string specification (string spec).

Columns with the same code attribute can be concatenated.

Columns with different code attributes (ASCII and UNICODE) can be concatenated together and with date values, time values, and timestamp values.

Example

SELECT name, zip & ' – ' & address address
  FROM customer
    WHERE zip = '75243'

NAME

ADDRESS

Brian

75243 – 500 Yellowstone Drive, #2

Smith

75243 – 250 Curtis Street

Howe

75243 – 111 B Parkway, #23

 

 

Leaving content frame