‎2011 Aug 19 8:44 AM
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
‎2011 Aug 19 10:08 AM
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
‎2011 Aug 19 9:39 AM
Hi,
Pass the currency value in parameter VALUATIONDATA-VAL_AREA.
Thanks
‎2011 Aug 19 9:44 AM
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
‎2011 Aug 19 10:08 AM
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
‎2011 Aug 19 11:01 AM
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
‎2011 Aug 19 11:10 AM
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
‎2011 Aug 19 11:17 AM
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
‎2011 Aug 19 11:51 AM
Are you passing value to structure field TAXCLASSIFICATIONS-DEPCOUNTRY (Departure country -country from which the goods are sent)?
Regards, Vinod
‎2011 Aug 20 6:22 AM
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