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

Function to copy BOM object dependencies

Former Member
0 Likes
735

Hi everyone.

I've had to create a program to copy (or extend) BOMs to other plants, like CS01 and CS07 transactions.

I did it like in the sample program MAT_BOMGROUP_CREATE_SAMPLE, replacing function ALE_MATERIAL_BOM_GROUP_CREATE with the bapi BAPI_MATERIAL_BOM_GROUP_CREATE.

The problem is that this functions cannot handle object dependencies. (leaves field STPO-KNOBJ empty)

I got this two sap notes, but for now it was useless:

488765

545676

Do you know any FM or bapi that do it?

Thank you.

Alberto

Edited by: A. Tabernero on May 21, 2009 4:56 PM

1 REPLY 1
Read only

Former Member
0 Likes
440

Any sugestion please?

Now i'm trying to use the function CS_BI_BOM_CREATE_BATCH_INPUT1 to create a new BOM, but i have a problem: only one item is created. ¿Anybody knows how to create all of them?

(The table contain all the items)

CALL FUNCTION 'CS_BI_BOM_CREATE_BATCH_INPUT1'

EXPORTING

  • BDC_FLAG = ' '

bom_header = wa_bicsk

  • CLOSE_GROUP = ' '

commit_work = 'X'

group_data = wa_bgr00

  • NEW_GROUP = ' '

tcode_mode = 'N'

  • TCODE_UPDATE = 'S'

IMPORTING

msgid = v_msgid

msgno = v_msgno

msgty = v_msgty

msgv1 = v_msgv1

msgv2 = v_msgv2

msgv3 = v_msgv3

msgv4 = v_msgv4

TABLES

bom_item = it_bom_items

bom_sub_item = it_bicsu.

Thanks,

regards

A.Tabernero.