Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Problem with concatenation

Hi All,

I have 9 fields with different different lenghts. Now when I am trying to concatinate all the fields just values are concatenated which while displaying give improper results.

Now what I want is if two fields having length of 25 and 15 respectively so on concatinating it should display result as 40 whatever the length of value is there in these fields. Lets take example: -

Text1 = 'Problem' (Char 25)

Text2 = 'Solving' (Char 15)

then result should be 'Problem Solving '

I have already tried Respecting Blanks but it is giving me error saying in character mode or in byte mode or separated by expected.

<removed_by_moderator>

Edited by: Julius Bussche on Sep 8, 2008 12:20 PM

Tags:
replied

Siddarth,

it is not Unicode problem and in this case you don't need to bother with concatenate, just use offset:

string = text1.

string+25 = text2.

string+x = ...

hope this helps

ec

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question