Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

BAPI_MATERIAL_SAVEDATA - To create or to change

Hi all,

I am using this BAPI to create a new material and I am supplying data based on an existing material (by fetching it using BAPI_MATERIAL_GETALL) but I keep getting this msg in my bapi_return table and the new material is not getting created.

"The material does not exist in distribution chain <Sales Org> <Dist Channel>"

But the material I am trying to create is new and of course it's not there in the distriution chain yet.

And the material number to be created, HEADDATA-MATERIAL is the next available internal number (generated using BAPI_MATERIAL_GETINTNUMBER).

Can anybody help me understand this msg?

It almost looks like the BAPI is trying to change an existing material rather than create a new one. Is there a way to tell the BAPI to create and not to change?

Thanks a lot!

Raj

Tags:
Not what you were looking for? View more on this topic or Ask a question