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 error

Former Member
0 Likes
633

Hi,

I'm trying to call function bapi_material_savedata

I'm filling BAPI_MBEW structure with following data:

BAPI_MBEW-PRICE_CTRL = 'V'.

BAPI_MBEW-STD_PRICE = '25.00'.

BAPI_MBEW-PRICE_UNIT = 25.

BAPI_MBEW-VAL_CLASS = 1234.

but it's throwing me the next error:

Error:

CURRENCY initial v., currency amount 25.0000 in STD_PRICE was transferred without a currency

for material: 1111111111

I think currency field is missing but what field and in what structure do I have to fill currency field??

Thank you guys.

3 REPLIES 3
Read only

amit_khare
Active Contributor
0 Likes
464

Are you setting the FLAGS in this structure also BAPI_MBEWX?

Read documentation Se37 for more details.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
464

BAPI_MBEW-PRICE_UNIT is the currency (MBEW-PEINH)

Regards

Read only

Former Member
0 Likes
464

I too had a similar issue:

The problem was solved when the Valuation Area details in the same structure was passed. I passed the plant id to the Valuation Area for my scenario.

Regards,

Rajesh