Skip to Content
author's profile photo Former Member
Former Member

Function to copy BOM object dependencies

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 26, 2009 at 02:12 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.