Concatenate 2 Strings in ABAP Without Using CONCATENATE Function



In ABAP you can use && sign to concatenate variables as below

Data

hello TYPE string,
world TYPE string,
helloworld TYPE string.
hello = 'hello'.
world = 'world'.
helloworld = hello && world.

If you want to concatenate strings directly, you can use

helloworld = 'hello' && 'world'.

If you want to keep space in between, you would require ` symbol as below

helloworld = hello && ` and ` && world
Updated on: 2020-02-14T05:32:25+05:30

3K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements