‎2011 Aug 27 12:31 PM
Hello Experts,
I am uploading material using BAPI_MATERIAL_SAVEDATA,
and it is giving me error that
"Profit center 1000/1011 does not exist".
But I have checked that this profit center exists, and is assigned to company code.
Does anyone knows what problem could be?
Please let me know if anyone knows.
Thanks,
Amar
‎2011 Aug 27 12:41 PM
Hi
The field for profit center uses the Alpha conrvetion routine in order to manage the leading zero, but your profit center has a slash between 1000 and 1011, so no leading zero....are you sure it's defined or valid?
Max
‎2011 Aug 27 12:41 PM
Hi
The field for profit center uses the Alpha conrvetion routine in order to manage the leading zero, but your profit center has a slash between 1000 and 1011, so no leading zero....are you sure it's defined or valid?
Max
‎2011 Aug 27 12:48 PM
Hi,
My profit center is 1011.
1000 is company code.
i am assigning only 1011 to BAPI.
but while giving error it is giving me it in the format 1000/1011.
Amar.
‎2011 Aug 27 12:54 PM
Uhm
ok so you need to move the leading zero too, the right (internal) value is 0000001011, 1011 is only the value you see in sap screens,
Try to transfer 0000001011
Max
‎2011 Aug 27 1:15 PM
Hey Max,
Thanks, that error is gone.
but now i am getting
"The lot-sizing procedure requires a fixed lot size"...
some materials are created...... but for some materials it is giving this error.
do you have any idea about it?
Thanks,
Amar
‎2011 Aug 27 1:21 PM
Hi
This is another problem so you should open a new post, anyway if you get a message error you sould post the class and number too, not only rhe text
Max
‎2011 Aug 27 1:27 PM
Yes,
sorry for that.
The lot-sizing procedure requires a fixed lot size
class M3
number 289.
thanks
‎2011 Aug 27 1:45 PM
It seems it needs to transfer the fixed lot size, probably the field MARC-BSTFE, so it shoul be a plant data BAPI_MARC-FIXED_LOT
Max
‎2011 Aug 29 4:55 PM
whatever field you have selected for the lot size indicator, field DISLS, is coded to be fixed lot size (table V439A, field LOSKZ).
This information is maintained using tcode OMI4.
As previously stated, when this is true, you must include the lot size.