Skip to Content
0
Former Member
Nov 30, 2006 at 06:52 AM

ABAP program for BOM manipulations

75 Views

Let me discuss one problem I’ve already touched yesterday.

If I want to create some materials (mm01) and then create some BOM’s (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 BOM’s or change items in any BOM’s (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 ID’s for BOM’s (new or existed ones) and a corresponded z-table with material ID’s 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.