‎2006 Feb 24 1:46 PM
Hi,
I try to use the function : CAD_CONVERT_TO_INTERNAL
It convert a quantity / amount into internal SAP quantity, amount. But the abapor has forget to finish the function. For example, the function manage 2 type of decimals (but SAP have 3 type of decimals)
So, do you know another function that makes the same job ?
Rgd
Frédéric
‎2006 Feb 24 1:56 PM
‎2006 Feb 24 1:59 PM
‎2006 Feb 24 2:05 PM
This function module is working good in my system. It all depends on the user profile setting.
report zrich_0003.
data: in(20) type c,
out(20) type c.
in = '1 351 984,65'.
call function 'CAD_CONVERT_TO_INTERNAL'
exporting
name = 'MSEG-MENGE'
value = in
importing
value_internal = out.
write:/ in, out.
in = '1,351,984.65'.
call function 'CAD_CONVERT_TO_INTERNAL'
exporting
name = 'MSEG-MENGE'
value = in
importing
value_internal = out.
write:/ in, out.
in = '1.351.984,65'.
call function 'CAD_CONVERT_TO_INTERNAL'
exporting
name = 'MSEG-MENGE'
value = in
importing
value_internal = out.
write:/ in, out.
Regards,
Rich Heilman
‎2006 Feb 24 2:14 PM
Hi Rich,
If you go in SU3, you could set 3 types of decimals. This setting is save in the table USR01 field DCPFM.
The 3 values of the field could be : X, Y and nothing.
The function manage the X and nothing, but not the Y.
Fred