08-25-2006 3:19 PM
I have a problem.
I use ALV, field catalog from 'vbap', and data from 'vbap'.
In the field NETWR I have value '111,340'. -> I need '111,340',
but if I have value '123,000', I need '123'.
I don`t no how it is, but if I do it with field BRGEW, it`s working, but with NETWR don`t work.
08-25-2006 3:41 PM
Hi,
I am not sure but try like this
in the fiedlcatalog as u give the fieldname -> NETWR
give also the QFIELDNAME -> "BRGEW'
FIELDCAT_LN-QFIELDNAME = 'BRGEW'.
or
while declaring the internal table
(refer netwr field to vbap-brgew)
i hope this shud work
begin of itab occurs 0,
<b>netwr like vbap-brgew,</b>------
-
end of itab.
Regards
Sowjanya.
08-28-2006 8:40 AM
I think that is not right, because NETWR has type CURR and BRGEW has type QUAN. And it is not good.
For QUAN there is a table T006, where fields ANDEC and DECAN is responsible for rounding after comma.
But I don`t know what I need to do for fields like CURR (12,4). And if I use field like DEC(12,4) in my table, how I do it?