06-16-2008 8:28 AM
Hi All,
I basically want to extend a material from a Plant A to a Plant B.
Can anyone suggest me a BAPI to transfer all the valuation (price related) data to update the transaction MM01 (i.e. by creating an entry in the MBEW table).
I have already tried using the BAPI's 'BAPI_MATERIAL_SAVEDATA' and 'BAPI_MATERIAL_SAVEREPLICA" but they do not solve my purpose.
Please guide.
Thanks,
Arti
06-16-2008 8:38 AM
Call of BAPI_MATERIAL_GET_DETAIL parameter MATERIALVALUATIONDATA and then of BAPI_MATERIAL_SAVEDATA parameter VALUATIONDATA should work.
What exactly doesn't work in your program ?
Regards
06-16-2008 8:43 AM
Hi,
Basically in the BAPI 'BAPI_MATERIAL_SAVEDATA', when I pass the parameters such as Standard Price or Moving Price it gives me an error saying that 'Currency Field is Initial. Std_Price should be passed with a currency'.
I was told to pass the Currency(eg. EUR, USD etc) in the Price Unit field in this structure but that is not the case. The Price Unit is basically a NUM 5 field and can accept only numeric entries(eg. 1000,10 etc).
So, can you tell me in which field should I pass my Currency value.
Thanks,
Arti
06-16-2008 9:33 AM
The currency is defined from the society (T001-WAERS) that the valuation area refer to (T001K-BUKRS) you should not have to pass it (so the parameter does not exists in the BAPI)
Did you fill the valuation area parameter correctly, is the customizing okay ?
The price unit is not a currency unit, it is the number of base unit to which the prices refer (e.g.: price per 100 units, useful for very low price which would else be zeroed)
If you don't find easily the values, use the result of a call to BAPI_MATERIAL_GET_DETAIL.
Regards