Application Development and Automation 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:Ā 
Read only

Decrease Zero in Quan and Curr

Former Member
0 Likes
1,091

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,046

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

5 REPLIES 5
Read only

Former Member
0 Likes
1,046

Hi,

Please try and see NO_ZERO property in the fieldcatalog.

Thanks,
Pavan

Read only

0 Likes
1,046

Hi. No change with NO_ZERO.

Read only

Former Member
0 Likes
1,047

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

Read only

0 Likes
1,046

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

Read only

0 Likes
1,046

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.