cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 AmountFormat conversion

former_member190313
Active Participant
0 Kudos

Hello All,

I am extending the fiori app. The amount that comes from SAP ( for.eg 6000.12 is the amount I get from SAP)

I used the formatter function: sap.ca.ui.model.format.AmountFormat.FormatAmountStandardWithCurrency(oValue,sCurrency);

where oValue = 6000.12

           sCurrency = JPY

The result of formatted value is : "JPY 6.000"

Now if I want the to get the original number  i.e 6000.12 back from formatted amount , i do not find any function.

Can anyone sugegst , how do i achieve this.?

Thanks in advance

Sheetal

View Entire Topic
lynn_lin
Active Participant
0 Kudos
former_member190313
Active Participant
0 Kudos

Hi Lynn,

yes i checked this. rather using AmountFormat api i convert the value to required currency format.

Now i want to convert this formatted value back to original number format.

please suggest

Regards,

Sheetal