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

Problem copying/extending materials (MM01) using BDC

Former Member
0 Likes
528

Hi,

I am developing a program that will be used to copy/extend material from one plant to another plant by using BDC. When i did it manually in MM01, i selected 8 views (Purchasing, MRP1, MRP2, MRP3, MRP4, General Plant Data/Storage 1, General Plant Data/Storage 2, Accounting 1 and Accounting 2) and marked the "Create views selected" checkbox. Then, the system prompted me for the plant and storage location information (copy from & copy to). After that, the Purchasing view appears and i would just need to click the "SAVE" button and the new material was created.

When i ran the BDC program (by selecting the "Call Transaction - Show all screens" option), i found that i had to run it four times to have the material created. Basically, i found that it went through four views which were purchasing, MRP, General Plant Data / Storage and Accouting view.

I was wondering why it didn't create the selected views for me although i had recorded the "Mark the 'create views selected' option" in the BDC?

Thanks much in advance.

1 REPLY 1
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
371

Why choose BDC for MM01 ?

You've the BAPI 'BAPI_MATERIAL_SAVEDATA' at your service. Easy to use & simple to maintain.

Unless you give me specifics i am not convinced about the BDC approach.

BR,

Suhas