Let me discuss one problem Ive already touched yesterday.
If I want to create some materials (mm01) and then create some BOMs (sc01) I used transactions mm01 and sc01 accordingly. They are manually processes but I can use a batch-input procedure for mm01. Unfortunately if I want to use batch input for BOM it looks that there is a serious restriction the number of material items for each BOM must be the same.
But what is a recipe if I want to create ABAP program to create any new BOMs or change items in any BOMs (add, delete or change)? To simplify the situation we guess that all necessary materials are already made.
The question is - I have a z-table containing IDs for BOMs (new or existed ones) and a corresponded z-table with material IDs for BOM items. What are possible transactions, BAPI or FM I can use in my ABAP program to make correct records into STPO and STKO R3 tables) - to create new BOM or changed some items in existed BOM ?
Thank you.