cancel
Showing results for 
Search instead for 
Did you mean: 

remove leading/laging spaces from the contents of a field

Former Member
0 Kudos

Hi friends,

I have to remove laging spaces from the contents of a field and then compare it to another field.......The problem is i dont know how many spaces it may contain...So i cant use shift.....

Any suggestion Experts???

Thankx....

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi,

You can use the following string operations:

1. Condense

2. Shift left deleting leading spaces (or)

Sgift right deleting trailing spaces.

Goto TCode ABAPDOCU. Give keyword as Condense and Shift. To get the exact syntax.

Thanks & Regards,

Navneeth K.

Former Member
0 Kudos

hi..

use condense functionality.

it will automatically remove all the spaces irrespective of the number of lagging spces.

condense functionality is used for this purpose only.

former_member184657
Active Contributor
0 Kudos

Did you press F1 on Shift?

pk

peter_ruiz2
Active Contributor
0 Kudos

hi,

use CONDENSE

regards,

Peter