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

Decimal Issue

1,926

Hi, experts,

I have an editable ALV field amount, if my currency Is OMR I want to give input like 123.897

It gives me an error of too many decimal places (maximum 2). Please help me ASAP.

5 REPLIES 5
Read only

foessleitner
SAP Champion
SAP Champion
1,786

Hi,

how many decimal palces are allowed for OMR? Is the currency field the refernce field of the value field?

lg

Read only

0 Likes
1,786

In OMR 3 decimal are allowed

Read only

SimoneMilesi
Active Contributor
0 Likes
1,786

Hello,

as per johann.fleitner2 suggestion, did are you referring your value field to its currency one?
Guessing you are using CL_GUI_ALV_GRID, you have to check the fieldcatalog and fill the field CFIELDNAME for the record about "Inv. Amount" with the field name of your "PO C..".

Read only

0 Likes
1,786

yes I have referred value field to currency . and I am using alv_grid_display

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,786

Probably you didn't link the amount field to the currency field in your ALV field catalog (possibly inherited from ABAP Dictionary). If you need more assistance, please provide more information about your code, dictionary, and anything related to this topic.