01-08-2008 11:26 AM
hi ,
how can i remove left side spacing when i am using CONDENCE key word.
reply soon,
Thanx & Regards,
PHANINDER
01-08-2008 11:28 AM
01-08-2008 11:29 AM
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
01-08-2008 11:30 AM
SHIFT STR left deleting leading space.
Edited by: Ramu on Jan 8, 2008 12:40 PM
01-08-2008 11:31 AM
Hi,
Use the addition NO-GAPS with the condense statement.
like:
CONDENSE text NO-GAPS.
Regards,
Renjith Michael.
01-08-2008 11:33 AM
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.