Skip to Content
0
Former Member
Dec 13, 2006 at 02:47 AM

how to control the DECIMALS in the ALV?

650 Views

dear all ,i want to control the display of the decimals of a field in the alv .

and i find one attribute"decimals" in the structure of LVC_S_FCAT .

the relatived code is :

ls_fcat4004-fieldname = 'TARGET' .

ls_fcat4004-ref_table = '' .

ls_fcat4004-ref_field = ''.

ls_fcat4004-coltext = '目标量(吨)' .

ls_fcat4004-datatype = 'QUAN' .

ls_fcat4004-intlen = 13 .

ls_fcat4004-dd_outlen = 17 .

ls_fcat4004-outputlen = 13 .

ls_fcat4004-inttype = 'P'.

ls_fcat4004-no_zero = 'X'.

ls_fcat4004-decimals = 1 .

APPEND ls_fcat4004 TO i_fcato4004 .

but it doesn't work .

can somebody give some help?

thank you in advance!