Skip to Content
Former Member
Sep 16, 2005 at 08:55 AM

Concatenating variables


Hi sap gurus. I was just wondering if it is possible to concatenate two variables without SAP changing the total length. For example, if I have two variables declared as:

DATA: temp1(10) type c,
      temp2(10) type c.

temp1 = 'hello'.
temp2 = 'jerry'.

if we use:

concatenate temp1 temp2 into temp3.

The result in temp3 would be "hellojerry".

Is there a way for me to concatenate this variables with the result in temp3 as "hello jerry " since the maximum allocated space for both variables is 10.