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

An error during BAPI_MATERIAL_SAVEDATA

former_member925838
Participant
0 Likes
1,506

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,363

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,364

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

Read only

0 Likes
1,363

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.

Read only

0 Likes
1,363

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

Read only

0 Likes
1,363

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

Read only

0 Likes
1,363

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

Read only

0 Likes
1,363

Yes,

sorry for that.

The lot-sizing procedure requires a fixed lot size

class M3

number 289.

thanks

Read only

0 Likes
1,363

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

Read only

0 Likes
1,363

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.