Skip to Content
0
Former Member
Mar 19, 2009 at 10:03 AM

OOPs ALV report Fieldcatalog Editing a currency field

438 Views

Hi all,

I have created an OOP's ALV report. I have made one of the currency field editable. when I am changing the value in any cell and go out of the cell(or move to other cell using arrow keys or click some were in the grid) it is taking '.' after 2 digits from the right.

for example if I take 10 it is converting to 0.10, if I take 100 it is becomnig 1.00, if I take 100.00 it is becoming 1.00. If I take 123.45 I am getting a pop up box with message "Too many decimal places"

the fieldcatalog values are as follows

WA_FIELDCAT-FIELDNAME = 'ORD_VAL'.

WA_FIELDCAT-SCRTEXT_M = 'Ord Value'.

WA_FIELDCAT-COL_POS = 11.

  • wa_fieldcat-no_zero = 'X'.

  • WA_FIELDCAT-OUTPUTLEN = 14.

WA_FIELDCAT-CURRENCY = 'INR'.

wa_fieldcat-decimals_o = '2'.

wa_fieldcat-no_zero = 'X'.

WA_FIELDCAT-EDIT = 'X'.

APPEND WA_FIELDCAT TO IT_FIELDCAT.

CLEAR WA_FIELDCAT.

Can anybody please help me. As If I edit the field it should take the values what I input.

Thanks in Advance.