Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Concatenate two fields within select query

66,327

I have to Concatenate BELNR and GJAHR field of RSEG table into another field. Is it possible in inline coding concatenate these two field within the select query of RSEG table?

6 REPLIES 6
Read only

0 Likes
29,293

Thanks. It is worked. But it is worked only in Inner Join not worked in For all entries.

Read only

29,293

As documented.

Read only

RaymondGiuseppi
Active Contributor
29,293

In recent versions Open SQL allows some functions in an SQL expression such as CONCAT( arg1, arg2 )

Read only

29,293

Thank you.

Read only

yashoratna
Active Participant
29,293

Hi Amit,

We can use CONCAT syntax in select query as per below.

SELECT concat( belnr , gjahr ) 
FROM rseg
INTO @DATA(lv_accdoc_year)
UP TO 1 ROWS.
ENDSELECT.