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

concat

Former Member
0 Likes
716

hi,

i am writing code like

concatenate space itab-field into itab2-field.

but when i check itab2 in bedbug it is not giving space before data.

5 REPLIES 5
Read only

Former Member
0 Likes
695

Try this.

concatenate space itab-field into itab2-field separated by space.

Cheers

Amandeep

Read only

Former Member
0 Likes
695

Hi,

Concatenate doesn't take SPACE automaticaly.

use syntax,

CONCATENATE SPACE itab-field INTO itab2-field SEPARATED BY SPACE.

http://help.sap.com/saphelp_nw70/helpdata/en/9f/db998835c111d1829f0000e829fbfe/content.htm

and please resolve your previous unresolved posts. It is against the rule of engagement of forum to unresolve more than 10 posts at a time.

Regards,

Anirban

Read only

Former Member
0 Likes
695

Hi ,

CONCATENATE ' ' itab-field INTO itab2-field .

i hope this will help you...

Thanks & Regards

Ashu Singh

Read only

Former Member
0 Likes
695

HI....

YOU CAN USE CONCATENATE ' ' itab-field1 into itab-field2 seperated by space.

or else you can use offset.

that is itab-field2+0(4) = ' '

itab-field2+5(2) = itab-field1.

something like this....

how many characters of field2 you want as space you can mention in the offset.

thats it.

Read only

Former Member
0 Likes
695

Hi,

PLz try this piece of code :

data:f1(5) type c value 'dhanu',
     f2(2) type c value '',
     f3(2) type c value 'p',
     f4(10) type c.

CONCATENATE f1 f3 INTO f4 separated by f2.
write: f4.

hope this helps.

plz reward if useful.

thanks,

dhanashri.