Quantcast
Channel: SCN : All Content - SAP Gateway
Viewing all articles
Browse latest Browse all 2823

OData Conversion of Unit Quantity

$
0
0

Hi Everyone,

 

This link SAP NetWeaver Gateway 2.0 - Known Constraints | FAQ ERP | ERP Champs states the following:

 

Unit Quantity

  • The gateway framework provides a default conversion of unit quantity without rounding and based on the customizing for the currently used unit-of-measurement in DB table T006 (field ANDEC and DECAN). The default conversion takes care of the following 4 rules:
    • Output is the same as input if the unit-of-measurement is not customized in DB table T006.
    • No decimal digits lost if not zero
    • Delete zero's if input decimals > max(ANDEC,DECAN)
    • Output is the same as input if input decimals < max(ANDEC,DECAN) because DDIC should also have higher priority!

 

I want my field to be the number of decimal places in DECAN regardless of the value in ANDEC. Is there any way to change this for an OData service?

 

Otherwise I am seeing the only solution to format in the backend and pass the value as a string instead of a decimal. Not sure what impact this will have on sorting, filtering etc.

 

Thanks in advance.


Viewing all articles
Browse latest Browse all 2823

Trending Articles



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