Quantcast
Channel: SCN : Popular Discussions - SAP NetWeaver Gateway Developer Center
Viewing all articles
Browse latest Browse all 1657

Netweaver Gateway Automatic Currency Conversion

$
0
0

Hi Experts,

 

I have amount and currency fields in my gateway entity. The amount field is of type "Decimal (12,3)". For currencies like KRW and JPY I am facing an issue where if my KRW has an amount of 300 and as per configuration it can have no decimal places, the value 300.00 sent from gateway becomes 30000 on UI.

I went through the blogs and also added steps like calling method DISABLE_CONVERSION for the amount field and setting semantic for CURRENCY field. However, it still uses default currency conversion method of SAP and gives incorrect output.

 

AS per the below link,

Conversion Handling in OData Channel - SAP Gateway Foundation (SAP_GWFND) - SAP Library

 

I am unable to understand what is meant by the highlighted part:

The conversion of a property must be disabled in the following cases:

  • An amount does not have exactly two decimal places. In this case, your data provider is responsible for converting this amount.

 

 

Please let me know if I should be explicitly handling currency conversion through code in DPC_EXT class or are there any other steps I need to perform to get correct output.

Any help will be highly appreciated!

 

Thanks,

Sakshi


Viewing all articles
Browse latest Browse all 1657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>