https://userapps.support.sap.com/sap/support/knowledge/en/3389733
3389733 - AMDP scripts and rounding in BW Transformations | SAP Knowledge Base Article
The resulting values of an AMDP script/routine are not rounded as expected. A typical example when the decimal type output field has lower number of decimals...