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

Insert a space in the string

Former Member
0 Likes
650

Dear All,

I would like to know how to insert a space in a string.

For eg: CONCATENATE pmtfle-text ' ' finaccno INTO PMTFLE-TEXT.

I want to insert a space in between pmtfle-text and finaccno. Even though I gave like above, it is not inserting a space.

Right answers will be rewarded.

Best Regards

Renjan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

hi,

write CONCATENATE pmtfle-text finaccno INTO PMTFLE-TEXT separated by space.

<b>reward all helpful answers</b>

rgds,

bharat.

4 REPLIES 4
Read only

Former Member
0 Likes
602

CONCATENATE pmtfle-text finaccno INTO PMTFLE-TEXT separated by space.

Message was edited by:

A. de Smidt

Read only

Former Member
0 Likes
603

hi,

write CONCATENATE pmtfle-text finaccno INTO PMTFLE-TEXT separated by space.

<b>reward all helpful answers</b>

rgds,

bharat.

Read only

dustyplanet
Active Participant
0 Likes
602

Hi Renjan,

Allow me to introduce you to the concept of a string literal which is not the same as a character literal. A string literal respects trailing spaces, which a char literal does not.

Try the same code you tried earlier, except enclose the spaces in <b>reverse-single quotes</b>, not the single quote character beside the "Enter" key, instead use the one just above the "Tab" Key...

Regards,

Dushyant Shetty

Read only

Former Member
0 Likes
602

hi

you can concatenate two fileds as

Concatenate <field1> <field2 > INTO string seprated by space.

reward if useful

thanks

mohit