Concatenating Literals and Variables

Index

 

Old way to concatenate in ABAP:

Keyword CONCATENATE was used to concatenate strings, literals and variables. In this methodology, hardcoded strings were kept in single quotes.

New way to concatenate in ABAP:

Pipe symbol(|) is used along with & is used to concatenate. With this new way, hardcoded strings are to be kept inside || and Constants as well as Variables are kept inside |{ }|. Values to be concatenated are separated by ‘&’.

Sample code for concatenation as below:

concatenation_source

Output:

concatenation_output

Check the video for Code and Execution:

Find the code on GitHub:

Go to Code

Index

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s