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

regarding condence

Former Member
0 Likes
914

hi ,

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

reply soon,

Thanx & Regards,

PHANINDER

5 REPLIES 5
Read only

abdulazeez12
Active Contributor
0 Likes
836

Use

Shift Left deleting leading spaces.

Shakir

Read only

Former Member
0 Likes
836

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

Read only

Former Member
0 Likes
836

SHIFT STR left deleting leading space.

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

Read only

Former Member
0 Likes
836

Hi,

Use the addition NO-GAPS with the condense statement.

like:

CONDENSE text NO-GAPS.

Regards,

Renjith Michael.

Read only

Former Member
0 Likes
836

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.