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 string and number how?

Former Member
0 Likes
10,498

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

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
Read only

former_member189629
Active Contributor
0 Likes
2,985

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

Read only

andreas_mann3
Active Contributor
0 Likes
2,985

move number to char-field before

A.

Read only

former_member386202
Active Contributor
0 Likes
2,985

Hi,

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

Regards,

Prashant

Read only

Former Member
0 Likes
2,985

first convert as charter type after concatenate string.

Read only

Former Member
0 Likes
2,985

hi

data var(200).

just use concatenate statement.

CONCATENATE string number into var .

regards

karthik

Read only

Former Member
0 Likes
2,985

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

Read only

Former Member
0 Likes
2,985

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

Read only

Former Member
0 Likes
2,985

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.

Read only

Former Member
0 Likes
2,985

thanks , my query is solved