Skip to Content
Aug 06, 2010 at 08:45 AM

Giving spaces dynamically



The requirement is i have a field in internal table of length say 35. i have to concatenate the data in this field along with other data into a variable of length 100.

eg -

field a(35) type c.

variable txt(100).

if the field A contains 10 character value then remaining 25 i have to give spaces while concatenating.

if it contains 20 charachter value, then remaining 15 should be give spaces while concatenating.

so, there can be any combination of values and spaces. I have to handle it dynamically.

Best Regards,