cancel
Showing results for 
Search instead for 
Did you mean: 

Decimal Values in Currency Field

Former Member
0 Kudos

Hi,

i have a problem in diplaying the currency field which is having 6 decimals.

data type unitprice - curr(15,6)

unit price is 25.000000. But in alv webdynpro output it's displayed as 250,000.00. node is having the "waers" field.

Any suggestions to tackle this issue?

Thanks,

Arun

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Arun

In node make the data type of the 'waers' field as string,It will solve your issue

Hope this helps U

Thanks and regards

Tamilselvan.K

Answers (3)

Answers (3)

Former Member
0 Kudos

I have solved this issue. Thanks everyone for your inputs.

Problem :

UNITPRICE is of type curr(15,6) , WAERS is of type cuky(5,0) which is USD in my case. Because UNITPRICE is referenced to WAERS, it inhibits its property. Hence it displayed 250,000.00 instead of 25.000000.

Solution :

I have removed the reference of WAERS to UNITPRICE and made the datatype of UNITPRICE to DEC(15,6). This displayed the UNIPRICE as 25.000000.

hyun-soo_kim
Explorer
0 Kudos

Hi..

Did you add waers field in the node individually or add Dictionary structure which have wears fild in the node.

In second case, it will be displayed automatically.

But in first case, you have to add some code maually.

Use method SET_ATTRIBUTE_REFERENCE_FIELD in interface IF_WD_CONTEXT_NODE_INFO.

Soo.

former_member131774
Contributor
0 Kudos

Have you link currency reference field?