cancel
Showing results for 
Search instead for 
Did you mean: 

Can we add more decimal places for invoices and quantities in SAP Public Cloud?

Lut_De_Meyer
Explorer
246

Hi all, 

My questions here is twofold:

1) Is it possibles to have decimal places for quantities where we have up to 5 digits after comma?

2) Is it possible to have material prices with 6 digits after the comma? Also showing up like this on invoices etc. 

OwenLiu
Product and Topic Expert
Product and Topic Expert
0 Kudos
Please remove tags other than SAP S/4HANA Cloud for Sales.
Joey_Tan
Associate
Associate
0 Kudos

There is some special handling of Amounts and Quantities in ABAP.

Please refer to Handling of Amounts and Quantities.

Accepted Solutions (0)

Answers (2)

Answers (2)

Joey_Tan
Associate
Associate
0 Kudos

Hi Meyer,

The answer is not for SAP standard applications.

Actually, there is some special handling of Amounts and Quantities.

In ABAP, an amount is an integer in the smallest unit of the currency, the integer is constructed from all figures in an amount field while ignoring the position of the decimal separator.

 

Technically, possible built-in DDIC data types are CURRDECFLOAT34DEC, and FLTP. In case of data type CURR, a field is automatically interpreted as amount field and a reference to a currency key using the annotation @Semantics.amount.currencyCode is mandatory. In case of the other data types, this reference is not mandatory but if used, it turns the field into an amount field.

 

By default, the number of decimal places for an amount is always two. Currencies with a different number of decimal places must also be entered in the table TCURX, where the number of decimal places can be defined explicitly. In the UI, the number of decimal for an amount field depend on currency referenced.

For handling of CDS amount fields in ABAP Dictionary, handling in dynpros, and handling in ABAP programs, the same rules apply as for currency fields in DDIC, see topic DDIC - Currency Fields.

 

You can also refer the help document

 

Best Regards,

Joey

max_sap100
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi, 

this currently not possible but you can request this via customer influence portal and SAP S4HANA Public Cloud Product Management will evaluate and rate the requirement.