Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI for update of valuation data in MM01

Former Member
0 Kudos

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

3 REPLIES 3

raymond_giuseppi
Active Contributor
0 Kudos

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

0 Kudos

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

0 Kudos

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