Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

remove gaps

Former Member
0 Likes
680

Hi all,

i have name1 of char type of lenght 9.

data: name1(9) type c.

i have a name of 4 digits....i.e, name1 = 'ravi'.

in o/p i m getting 'ravi ' followed by 5 empty space.

how can i remove the empty space...

i have tried with CONDENSE it is not working.

pls help.

7 REPLIES 7
Read only

former_member194669
Active Contributor
0 Likes
661

Try with


CONDENSE NO-GAPS 

a®

Read only

0 Likes
661

i have tried with no-gaps also.....not working....any other way??

Read only

0 Likes
661

Hi,

Have you tried using REPLACE keyword.

Read only

0 Likes
661

how to use it???

Read only

0 Likes
661

Hi ravi,

Actaully CONDENSE No-gaps should work check it once again.

I am not sure how much this can help you as i am having system to test whether it works or not

REPLACE ALL OCCURRENCES OF ' ' IN <ITAB> WITH ' '.

CONDENSE <ITAB>.

Cheers!!

VEnk@

Read only

0 Likes
661

Hie Ravi

try this CONDENSE name1 NO-GAPS.

or

SHIFT name1 LEFT DLETEING TRAILING SPACE.

hope that helps..

Isaac Prince

Read only

former_member156446
Active Contributor
0 Likes
661

o/p? where are you seeing the output?

is it a ALV? file? idoc? bdc ?