01-29-2009 7:24 AM
Hi All,
In ABAP, how to remove leading zero's from amount field which is character type defined.
Thanks & Regards
Shailesh
01-29-2009 7:31 AM
Hi, Shailesh
The following code will Solve your problem,
But Please Search Before Posting.. Next Time.
Data: a(8) TYPE n.
a = '00000056'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
EXPORTING
input = a
IMPORTING
OUTPUT = a
.
WRITE: a.
Regards,
Faisal
01-29-2009 7:34 AM
Hi,
You can try,
Condense Amount Field Name.
Hope it helps you
Regrds
Mansi
01-29-2009 7:37 AM
01-29-2009 7:40 AM
HI Shailesh,
You can try this command
shift <field> left deleting leading '0'.
hope it will help you.
regrads,
Lokesh
01-29-2009 7:40 AM
Hi,
you can try this one.
parameters: p_secs(10) type c default '000456.70'.
start-of-selection.
data p_s type p decimals 2.
move p_secs to p_s.
write p_s.
regards,
Leonard chomi
01-29-2009 7:41 AM
Hi
try this
data:p(5) value '00044',
v(5).
write p into v no-zero right justified.