on 2024 Jun 19 8:20 AM
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.
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 CURR, DECFLOAT34, DEC, 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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.