cancel
Showing results for 
Search instead for 
Did you mean: 

Decimals in ALV grid control

Former Member
0 Kudos

I am displaying quantity field in ALV grid control now my requirement is that based upon Uom, i need to control number of digits after decimal point in the quantity field value .I am able to get the number of digits to be displayed after decimal point from t006 table. Now how should i set this throug fieldcatalog and display in the gri?.Please help in this issue

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

you cannot do that with a quantity field. It has a fixed defines length for the decimals. You have to change the field type in your table to CHAR or STRING and you still have to work with the quantity field.

1) you read the information into QUAN field

2) move the value into the new field

3) control the number of decimals to be displayed either with SHIFT or Offset

4) display the new field in your table.

Former Member
0 Kudos

Hi bhavana.

I think you should post your question in more pertinent forum session.

However, i suggest you to use one of these two settings of the fieldcatalog:

  • DECIMALS_O for a field without related currency (otherwise the conversion is automatically applied)

  • EDIT_MASK (if you find a standard conversion exit that fits you problem)

here you are a detailed explanation of each available option field:

http://help.sap.com/saphelp_erp2004/helpdata/en/ff/4649baf17411d2b486006094192fe3/content.htm

Regards,

Fabrizio Gemma

Former Member
0 Kudos

I am not able to get solution with the options provided by you