Skip to Content

Netweaver Gateway Automatic Currency Conversion

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!



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Feb 16, 2016 at 04:24 PM

    Hi Sakshi,

    Can you please share a screenshot of properties?

    It may help to analyze further.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.