Skip to Content

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

Copying Materials with BAPI_MATERIAL_SAVEDATA

Hi everyone!

My task is to create new Materials using another Material as a template. This can be done interactively using transaction MM01 - no problem.

My idea was to use BAPI_MATERIAL_SAVEDATA and read the required data from the template material. Now I have a rather subtle problem. The BAPI is able to create various views in the material master data. My program doesn't know beforehand, which views the template material has (some only have plant views, others have sales views as well etc.). So I try to call the BAPI several times, once for each view.

However, this does not work as expected. E. g., I get error messages stating that I should supply valuation data when I copy the plant data. I think this is due to some dependencies between the various views. However, I do not know which views depend on other views.

Do any of you know, which dependencies exist?

Thanks in advance,

Joerg

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