2024 Jan 12 2:03 PM
It can be change on stander table
MARA-VOLUM
and make the dismals 4 not 3.
I know it is not recommended but they need bucouae the volume not correct
To be correct need to be 3.9302
And now only apple to put 3.930.
2024 Jan 12 2:40 PM
Hello samer.welliam
!!! TL;DR - do not do it !!!
Technically it is possible. MARA-VOLUM is defined with the VOLUM data element, that points to the MENG13 domain:
You could change the data element and assign it to a different domain that would define 4 decimal points. That is easy.
What is difficult, is that the data element VOLUM is used in almost 80 tables. If you change the data element all those tables would need to be converted, with all the data they keep. That process will most likely fail and that will break the system. Unless it is some kind of sandbox system and you are just experimenting, the risks outweigh by far, I mean by VERY FAR, any potential benefits. Plus a system with such change will not be supported by SAP for sure.
!!! In short again, do not do it !!!
Best regards
Dominik Tylczynski
2024 Jan 12 2:30 PM
2024 Jan 12 2:35 PM
2024 Jan 12 2:40 PM
Hello samer.welliam
!!! TL;DR - do not do it !!!
Technically it is possible. MARA-VOLUM is defined with the VOLUM data element, that points to the MENG13 domain:
You could change the data element and assign it to a different domain that would define 4 decimal points. That is easy.
What is difficult, is that the data element VOLUM is used in almost 80 tables. If you change the data element all those tables would need to be converted, with all the data they keep. That process will most likely fail and that will break the system. Unless it is some kind of sandbox system and you are just experimenting, the risks outweigh by far, I mean by VERY FAR, any potential benefits. Plus a system with such change will not be supported by SAP for sure.
!!! In short again, do not do it !!!
Best regards
Dominik Tylczynski
2024 Jan 12 3:01 PM
Thanks Dominik,
So what is the correct solution if I have Finished Product and need the volume in transaction MM02 volume 4 dismals not 3
2024 Jan 12 3:22 PM
2024 Jan 12 3:27 PM
Seconded on the don't do it... this is the type of thing that should never be considered. The kind of thing where people should step back, take a pause, and transform their thinking (reshape the problem).
2024 Jan 14 10:34 AM
2024 Jan 12 2:48 PM
Don't change MARA-VOLUM definition (Data element VOLUM of type QUAN, else run)
Use another smaller volume UOM Unit Of Measure in MARA-VOLEH (or try to define one with 4 decimals reounding and display defined by copy with transaction CUNI, with a conversion factor of 1 to original UOM, tbc)
2024 Jan 12 3:23 PM
2024 Jan 12 4:07 PM
2024 Jan 14 10:45 AM
SAP always stores quantities to 3dp.
Don't change the definition of the element; use the a UOM which has 4 decimal places. You can define your own.
If you have 1.2345 quantity in your UOM, it will be stored as 12.345
If you use another UOM with 2 dp, 1.23 will be stored as 0.123
When it comes to output though, and you use the correct UOM, then you'll get the correct decimal places.
With this piece of code with a 4dp UOM and quantity held in the database as 12.345, output_field will contain 1.2345.
DATA quantity TYPE mara-volum.
DATA my_unit_of_measure TYPE mara-voluh.
DATA output_field TYPE c LENGTH 20.
SELECT SINGLE volum voluh FROM MARA INTO (quantity, my_unit_of_measre)
WHERE matnr EQ 'MY_MATERIAL'.
WRITE quantity UNIT my_unit_of_measure TO output_field.
2024 Jan 15 9:37 AM
Hello,
I created a unit of volume with 4 decimals with transaction CUNI :
Then I tried your code and quantity is displayed with 3 decimals :
Transaction MM02 doesn't permit to fill a unit volume field with 4 decimals.
2024 Jan 15 10:55 AM
In that case, you need to use a smaller unit of measure. E.g. if you're using liters, try using deciliters.
In that way, if you have 1.2345 liters, it will be 12.345 dl.