‎2016 Apr 26 9:31 AM
Hi all expert SAP
How to decrease zero from ALV in quan and curr.
I want erase zero in quan and curr
this my code
what do i do to my field_catalog in ALv
Thanks and regards
‎2016 Apr 26 10:06 AM
Hi,
'I want erase zero in quan and curr' -->You mean , you don't want to display decimals for quantity and currency.
If my understanding is correct.You can use one of this field of fieldcatalog for the required fields
wa_fieldcat-decimals_out = '0'. Then quantity and currency will be displayed as numbers.
Regards
Pallavi
‎2016 Apr 26 9:59 AM
Hi,
Please try and see NO_ZERO property in the fieldcatalog.
Thanks,
Pavan
‎2016 Apr 26 10:22 AM
‎2016 Apr 26 10:06 AM
Hi,
'I want erase zero in quan and curr' -->You mean , you don't want to display decimals for quantity and currency.
If my understanding is correct.You can use one of this field of fieldcatalog for the required fields
wa_fieldcat-decimals_out = '0'. Then quantity and currency will be displayed as numbers.
Regards
Pallavi
‎2016 Apr 26 10:19 AM
Hi. Yes that i mean.
If i use it, when there is quan with decimal, what do i do so value in decimal can be display?
Thanks
‎2016 Apr 26 10:36 AM
Hi,
This setting is specific on a column and not with respect to a content( with decimal or without decimal).In case if you not sure on the data whether there could be decimals or not.
Then my suggestion would be ...do not use this setting in field catalog (using this may cause inconsistencies )
Instead ,use some string operations ( split, find etc.) . and check whether there is value after decimal or not , would solve this
Regards
Pallavi.