Application Development 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: 

Copying Materials with BAPI_MATERIAL_SAVEDATA

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

for views check for mara-pstat

User department Maint

Work scheduling A

Accounting B

Classification C

MRP D

Purchasing E

Production resources/tools F

Costing G

Basic data K

Storage L

Forecasting P

Quality management Q

Warehouse management S

Sales V

Plant stocks X

Storage location stocks Z