Application Development and Automation 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: 
Read only

BAPI_MATERIAL_SAVEDATA

Former Member
0 Likes
910

Hello all, I need to update the planned price (among other fields in the material master) for several materials, I'm using BAPI_MATERIAL_SAVEDATA to do so. I have populated the fields:

VALUATIONDATA-PLND_PRICE and VALUATIONDATAX-PLND_PRICE, but when I run the bapi I get the following error:

<i>CURRENCY initial v., currency amount 34,4200 in PLND_PRICE was transferred without a currency</i>

In what field I have to specify the currency for this to work?.

Thanks in advance.

Mauro.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
859

In the VALUATIONDATA-PRICE_UNIT you have to pass the currency.

Regards,

Ravi

5 REPLIES 5
Read only

Former Member
0 Likes
860

In the VALUATIONDATA-PRICE_UNIT you have to pass the currency.

Regards,

Ravi

Read only

0 Likes
859

You can't put the currency code in that field.

Read only

ferry_lianto
Active Contributor
0 Likes
859

Hi Mauro,

Please check this link for sample codes to populate VALUATIONDATA parameters.

http://www.sap-img.com/abap/bapi-to-copy-materials-from-one-plant-to-another.htm

Hope this will help.

Regards,

Ferry Lianto

Please reward points if helpful.

Read only

Former Member
0 Likes
859

Hi,

Why dont you just look at the FM Documentation once.

In that its clearly given...

Regards,

Sampath.

Read only

Former Member
0 Likes
859

Mauro,

I had the same problem.

The problem is you are not passing the plant in the valuation area field of the structure (BAPI_MBEW-VAL_AREA).

Michael