Application Development 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: 

regarding condence

Former Member
0 Kudos

hi ,

how can i remove left side spacing when i am using CONDENCE key word.

reply soon,

Thanx & Regards,

PHANINDER

5 REPLIES 5

0 Kudos

Use

Shift Left deleting leading spaces.

Shakir

Former Member
0 Kudos

Hi Phaninder,

Left side spaces will be automatically removed when using CONDENSE statemet

REPORT ztest_cha1.

DATA : v_char(100) VALUE ' I am SDN'. <-------Add some space before I

CONDENSE v_char.

WRITE : v_char.

If still not removed try this,,

SHIFT V_CHAR LEFT DELETING LEADING SPACE.

Edited by: Chandrasekhar Jagarlamudi on Jan 8, 2008 4:59 PM

Former Member
0 Kudos

SHIFT STR left deleting leading space.

Edited by: Ramu on Jan 8, 2008 12:40 PM

Former Member
0 Kudos

Hi,

Use the addition NO-GAPS with the condense statement.

like:

CONDENSE text NO-GAPS.

Regards,

Renjith Michael.

Former Member
0 Kudos

Hi,

the purpose fo 'condense' is to remove the sapces.

refer the below sample code.

data:

l_val(10) type c value ' X '.

if l_val = 'X'.

write:/ 'S'.

else.

write:/ 'N'.

endif.

condense l_val.

if l_val = 'X'.

write:/ 'S'.

else.

write:/ 'N'.

endif.

Reward if useful.

Thanks,

Sreeram.