Skip to Content
0
Former Member
Apr 29, 2009 at 02:15 AM

String Manipulation with blank space at the end

21 Views

Hi All,

DATA: str1(999),

a(10),

b(10).

DATA: len TYPE i.

a = 'Welcome'.

b = 'To all'.

CONCATENATE a b INTO str1 RESPECTING BLANKS.

len = STRLEN( str1 ).

WRITE: len.

result : 16.

If I declared str1 as string result is 20. Because in above case empty space is truncated at last .

So any otherway to getting result 20 with out declaring str1 as string.