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: 

An error during BAPI_MATERIAL_SAVEDATA

former_member925838
Participant
0 Kudos

Hello Experts,

I am uploading material through BAPI_MATERIAL_SAVEDATA..

In Valuation Data I have set following fields...

Valation Category,

price control,

standard price,

moving price

and price unit.....

but When i am executing I am getting following error.

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

how to get rid of this error?

Do i need to pass the currency of std_price as well as moving price..?

if yes how to transfer currency? i can not find currency field anywhere....

Please Help..

Thanks,

Amar

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Are you passing the valuation area into the structure field VALUATIONDATA-VAL_AREA & VALUATIONDATA-VAL_AREA while calling the BAPI? Currency is determined from the Company master (T001, field - WAERS) based on the company code maintained in Valuation area master (T001K, field BUKRS).

Regards, Vinod

P.S. See Line number 778 & 2095-2132 of include L1001UEBF01 for reference (on ECC6.0 EhP 4).

Edited by: Vinod Kumar on Aug 19, 2011 2:38 PM

8 REPLIES 8

Former Member
0 Kudos

Hi,

Pass the currency value in parameter VALUATIONDATA-VAL_AREA.

Thanks

Sandra_Rossi
Active Contributor
0 Kudos

Hi,

> E CURRENCY initial v., currency amount 80.0000 in STD_PRICE was transferred without a currency.

>

> how to get rid of this error?

> Do i need to pass the currency of std_price as well as moving price..?

> if yes how to transfer currency? i can not find currency field anywhere....

In SAP, you must be aware that currency amounts are always bound to currency codes, either explicitly or implicitly. That's very important, If you want to know why, I recommend you to read [SAP note 153707 (Currency translation miscalculates by 100, 1000..)|https://service.sap.com/sap/support/notes/153707] and the documentation of WRITE ... CURRENCY ...

Sandra

Former Member
0 Kudos

Are you passing the valuation area into the structure field VALUATIONDATA-VAL_AREA & VALUATIONDATA-VAL_AREA while calling the BAPI? Currency is determined from the Company master (T001, field - WAERS) based on the company code maintained in Valuation area master (T001K, field BUKRS).

Regards, Vinod

P.S. See Line number 778 & 2095-2132 of include L1001UEBF01 for reference (on ECC6.0 EhP 4).

Edited by: Vinod Kumar on Aug 19, 2011 2:38 PM

0 Kudos

Hi Vinod,

thanks for the reply...your suggestion solved my problem.

now i am getting the error

Tax category **** is not defined for country......

where i have to maintain these fields?

i have maintained taxclassifications like

WA_TAX-TAXCLASS_1 = WA_FINAL-TAX1.

WA_TAX-TAXCLASS_2 = WA_FINAL-TAX2.

WA_TAX-TAXCLASS_3 = WA_FINAL-TAX3.

WA_TAX-TAX_TYPE_1 = WA_FINAL-TAX_TYPE_1.

WA_TAX-TAX_TYPE_2 = WA_FINAL-TAX_TYPE_2.

WA_TAX-TAX_TYPE_3 = WA_FINAL-TAX_TYPE_3.

APPEND WA_TAX TO TAXCLASSIFICATIONS.

so, where is the problem that the above error is coming......

Thanks,

Amar

0 Kudos

Again you had missed out some important information while filling the required structure. It will be better to go through the BAPI documentation & details of individual structures/fields before proceeding.

Regards, Vinod

0 Kudos

Yes, I have gone through the documentation,

I have filled all the important fields required.

In Tax classification i have to give tax_type and tax classification.

I have maintained both as mentioned above......

but still it is giving me error........

Thanks,

Amar

0 Kudos

Are you passing value to structure field TAXCLASSIFICATIONS-DEPCOUNTRY (Departure country -country from which the goods are sent)?

Regards, Vinod

0 Kudos

Hi Vinod,

Yes I was passing the that Dep.Country is well...

Thanks for the reply, My problem was solved..Its my functional consultants mistake. they provided wrong tax category thats why it was giving me error that tax category does not exist.

Thanks for all your help..My BAPI executed successfully.

Thanks,

Amar