Application Development 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: 

concatenate string and number how?

Former Member
0 Kudos

i have a string and a 10 digit number,,, in final i want to concatenate both string with the number how to do?

regards

mukesh

9 REPLIES 9

former_member189629
Active Contributor
0 Kudos

You can concatenate into a variable of Type C and length of your choice to accomodate all characters.

andreas_mann3
Active Contributor
0 Kudos

move number to char-field before

A.

former_member386202
Active Contributor
0 Kudos

Hi,

Declare one variable as type c and pass that 10 digit no to that variable and then cocatanate.

Regards,

Prashant

Former Member
0 Kudos

first convert as charter type after concatenate string.

Former Member
0 Kudos

hi

data var(200).

just use concatenate statement.

CONCATENATE string number into var .

regards

karthik

Former Member
0 Kudos

hi,

by useing string concatenation you can do that, by converting number to character type

kindly go through the following threads

http://help.sap.com/saphelp_nw04/helpdata/en/79/c55479b3dc11d5993800508b6b8b11/frameset.htm

regards,

pavan

Former Member
0 Kudos

hi,

by useing string concatenation you can do that, by converting number to character type

kindly go through the following threads

http://help.sap.com/saphelp_nw04/helpdata/en/79/c55479b3dc11d5993800508b6b8b11/frameset.htm

Former Member
0 Kudos

try this.

data : t type string value 'abc',

n type i value 1200,

temp_n(20) type n.

temp_n = n.

shift temp_n left deleting leading '0'.

write t.

concatenate t temp_n into t.

write : / t.

this will do the job.

reward if useful.

Former Member
0 Kudos

thanks , my query is solved