Skip to Content
Former Member
Jun 24, 2009 at 10:53 AM

Concatenate field (10) with another including blanks



I have to contatenate 2 fields first of length 10 characters(with only five characters filled and remaining spaces) and second of length 10 characters.

After the concatenate the spaces after the 5 characters in the first field should be there.

I cannot use RESPECTING BLANKS due to some limitation in the logic i am using!

EX : lv_char1(10) TYPE C

lv_char2(10) TYPE C.

lv_char1 = 'BORED '

lv_char2 = 'SAPABAP'.

so after concatenating it into a final variable the output should be as shown below:

lv_final = 'BORED SAPABAP'.

Edited by: Julius Bussche on Jul 23, 2009 9:25 PM

Subject title improved...