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

Help needed in String Operations

Former Member
0 Likes
672

Hi All,

It might look quite simple but pls let me know how it can be done. I need to concatenate single coat in front of a field, can anyone let me know how it can be done.

Eg - Lets take Mara-matnr as a field

concatenate ' ' ' mara-matnr into mara matnr.

since i am not closing the coats its giving error..but i need to add that single coat infront of that field...so pls let me know how it can be done

thanks

sathish

5 REPLIES 5
Read only

Former Member
0 Likes
651

concatenate ' ' ' ' mara-matnr into mara matnr.

Read only

Former Member
0 Likes
651

Hi,

try this way:

write: ' ' mara-matnr.

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
651

hi

good

store the " ' " value in a string and than concatenate with mara-matnr into mara matnr with the CONCATENATE statement.

thanks

mrutyun^

Read only

Former Member
0 Likes
651

hi surender,

data: v_var value '''',

v_matnr(10) type c value 'Jayant',

temp_2(11).

write::/ v_var.

concatenate v_var v_matnr into temp_2.

write:/ temp_2.

This code will work for you.. it will take a single ' because it is of character one...

Regards,

Jayant

<b>PLease award if helpful</b>

Read only

Former Member
0 Likes
651

Hi Surender,

use this code.It will work definitely.

concatenate ' ' ' ' mara-matnr into mara-matnr. (use four single codes without space)

Reward points if helpful.

Regards,

Hemant