Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9091

Re: CONVERT_TO_LOCAL_CURRENCY in a routine

$
0
0

Hi Paulo,

 

You are correct, SAP is not able to handle the exceeding data length. In the FM CONVERT_TO_LOCAL_CURRENCY the RATE ( RATE                                 = p   ) is of type UKURS_CURR field which is of 9 length with 5 decimal places. So if your input value exceeds this length FM will fail.

Define your data type P as UKURS_CURR.

i.e. DATA: p TYPE UKURS_CURR.

Then you should be good. However if you take it to SAP guys I doubt they will change it as it is a very generic FM which is used in almost every finance calculation in SAP so changing it will break SAP

 

Please let me know if there are any questions.

 

Thanks

Amit


Viewing all articles
Browse latest Browse all 9091

Trending Articles



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