Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

ALV round zero after comma if all decimals = ,000

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

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.

0 Kudos

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?