2023 Jul 13 3:13 PM
Hi All,
Is there any standard data element of Currency type with length 17 and decimals as 6?
Ex: 1234.654321
It is not advisable in our system to create Custom data element.
Regards,
Pruthvi.
2023 Jul 13 5:10 PM
SE11 > F4 on "Data Type" > Select Search for Data Element > Information System > Expand search help options > Select type CURR, length 17, decimals 6:
As there is no selection field for Decimals, you may display the table DD04L via SE16/SE16N/S416N (below is S416N):
2023 Jul 13 4:02 PM
SAP uses internally just 2 decimals for currency amounts (e.g. NETWR which is used in structure KOMP for pricing).
You can for instance use P05_DEC12_5, but it has just 5 decimals.
2023 Jul 13 5:07 PM
Thanks Thorsten,
I actually have data element TB_CURR_11_5 which accommodates 5 decimals, but i will require all 6 decimals to be there.
Regards,
Pruthvi
2023 Jul 13 5:10 PM
SE11 > F4 on "Data Type" > Select Search for Data Element > Information System > Expand search help options > Select type CURR, length 17, decimals 6:
As there is no selection field for Decimals, you may display the table DD04L via SE16/SE16N/S416N (below is S416N):
2023 Jul 13 5:22 PM
Thank's Sandra,
This is helpful, I was able to find out an existing data element this way.
Regards,
Pruthvi.
2023 Jul 14 6:17 AM
But I feel you still don't understand the currency concept, the technical number of decimals is meaningless, SAP use a dynamic number of decimals (see all these questions in the forum about currency amounts changed by factor of 100, 1000 or whatever). If it's something else than the classic concept of currency amounts, you should use DF16_DEC / DF16_RAW (16 or 34) type, and decfloat16/34 in ABAP.
2023 Jul 13 5:13 PM
As Thorsten suggested, the technical number of decimals has no importance, currency amounts are displayed with a number of decimals depending on the assigned currency key.
I think that you should ask your question differently, could you explain the business requirement?