Skip to Content
1
Former Member
Oct 16, 2013 at 09:08 PM

Remove zeros to the right

2297 Views

Good day friends, i can help erase the zeros of this structure of code:


SELECT SUM( ntgew ) SUM( brgew ) INTO (st_texto-pes_net, st_texto-pes_bru)
FROM vbap
WHERE vbeln EQ <fs_data>-vbeln.
<fs_data>-ntgew = st_texto-pes_net. "21,402,720.000" Erase HERE
<fs_data>-brgew = st_texto-pes_bru. "21,822,230.400" Erase HERE

CLEAR gs_fcat.
gs_fcat-col_pos = 17 .
gs_fcat-fieldname = 'NTGEW'. Are displayed here
gs_fcat-tabname = 1.
gs_fcat-datatype = 'QUAN'.
gs_fcat-inttype = 'P'.
gs_fcat-domname = 'MENG15'.
gs_fcat-outputlen = gs_fcat-intlen.
APPEND gs_fcat TO gt_fcat.

CLEAR gs_fcat.
gs_fcat-col_pos = 18 .
gs_fcat-fieldname = 'BRGEW'. Are displayed here
gs_fcat-tabname = 1.
gs_fcat-datatype = 'QUAN'.
gs_fcat-inttype = 'P'.
gs_fcat-domname = 'MENG15'.
gs_fcat-outputlen = gs_fcat-intlen.
APPEND gs_fcat TO gt_fcat.

They can guide me with some example.....

Thanks for everything
Regards