Perform first some search in online help (or your otriginal Abap course material) on currency amount fields and how to handle those in Abap (Look also for quantity fields)
1 Dinar = 1000 Fils
which means instead of the usual 2 decimals has this currency 3 decimals.
A currency field in the table has by definition just 2 decimals and a currency with 3 decimals has to be be stored in the same fields.
Hence it is multiplied by 10 to have just 2 decimals. And this calculation is done via a conversion exit that does it based on your currency settings. You must not take the values directly from the table without going via the conversion exit.
If any currency do not have two decimal places, then, it should be defined in TCURX table which you can do via OY04 transaction
and the currency is? and with how much decimals it is customized?
10 KW : Correct value - display on VA03
100 KW : Wrong value - display on table VBRP
Note that this problem is not exist for example in Sales order (Value on VA03 is the same in table VBAP)
Dear Bahaa Hodhod,
when you select the value of NETWR from VBRP,then make sure the data element defined for storing that value is packed decimal.
Example :
types: begin of ts_vbrp,
vbeln type vbrp-vbeln,
netwr type p decimal 4,
end of ts_vbrp.
data : it_vbrp type table of ts_vbrp,
wa_vbrp type ts_vbrp.
hope this will solve your Query.
Add comment