top of page
blank.png
Search
Writer's pictureSmart Logic Academy

ABAP tricks #24/100: 😀 STRING expressions

•  String expressions can help make your ABAP code more concise and straightforward. 


Concatenation operator && :


•  The concatenation operator &&, you can use to replace the CONCATENATE statement.


•  While the keyword CONCATENATE only accepts operands with a character-like type (C, N, D, T, STRING), the concatenation operator && allows you to use any data type. 


•  You may still prefer to use CONCATENATE in cases where you require the SEPARATED BY addition, as the concatenation operator does not provide this.


String templates :


•  String templates allow you to construct a string using literals, variables, and embedded functions. 


•  String templates are enclosed in vertical pipes ( | ). Expressions must be enclosed in curly braces with at least one space at the beginning and end. 




Please share with your ABAP friends and follow us.

If you want to dive deeper, visit our course https://lnkd.in/d42HfjDh


15 views0 comments

Comments


bottom of page