cancel
Showing results for 
Search instead for 
Did you mean: 

CONCATINATION OF VARIABLES

Former Member
0 Kudos

Hi,

I need to concatinate US with a variable gv_user How can I do i

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

CONCATENATE 'US' gv_user INTO <variable>.

regards,

Atish

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

You can do like this :

CONCATENATE 'US' gv_user into gv_variable.

Thanks,

Sriram Ponna.

vinod_vemuru2
Active Contributor
0 Kudos

CONSTANTS: c_us(2) type C VALUE 'US'.

CONCATENATE c_us gv_user INTO gv_user_temp.

Please make sure that gv_user_temp length should be atleast equal to the sum of the lengths of gv_user + 2 (c_us).

Thanks,

Vinod.

Former Member
0 Kudos

if gv_user is character type var

then

concatenate 'US' gv_user into gv_user [separated by space].

separated by space is optional you can or cant use it.

other wise take your variable to a character type variable and concatenate that

data : text(100).

text = gv_user.

concatenate 'US' text into text [separated by space].

regards

shiba dutta