Material BOMS

HI all.
I have done this before but alas how do do it escapes me at present.
We want when we add a material to a line that it automaically brings in a second material (TANN) with an equal qty or 1 of main material equals .01 of second material.
So we enter the following : -
Material A, Qty = 100
(then automatically)
Material B, Qty = 1 (plus needs to be FOC(TANN))
Somewhere in my memory bank we have to use CS01 to create a sales bomb and also ament the Item Cats on the material master, or am i talking complete rubbish? If so what item cats should i be using
Regards
Steve

Hi Steve
The scenario which you have specified, it is clearly evident that you want settings for "Exclusive free goods" offer.
In "Exclusive Free Goods", the free quantities are not the part of order quantity, it is an extra quantity.
It may be the same material or it may be a different material .
That means , suppose you want to give 10% quntities as free goods.
In this case , in Exclusive free goods offer if the customer has order 10 units of material A, then either you will give 1 unit of material A itself or you may give 1 unit of some other material, say material B.
So I hope, now you are clear about the scenario.
So, go for transaction VBN1, enter the condition type, select the appropriate key combination and proceed to the "Create Free goods" screen.
In this screen select "Exclusive" button so that you will get an additional column called "AddMat FrGd".
In this column, where you have to specify the material you will give as free.
You should enter like below
_Material      For      Unit      Add FG     _Add _    Calculation rule      AddMat FrGd  
   A              100          PC             1                PC                   1                       B
Now, if you create an order for 100 Pieces of material A, then system will give 1 unit of material B as free.
Item category of material A will be TAN(relevant for price) and that of material B will be TANN(100% free).
In Exclusive free goods offer, the delivery quantity is always more than the order quantity.
Here, material A is the main item and material B is a sub-item . In Free goods offer sub-item is always not relevant for Pricing, infact it is 100% free.
But, in BOM material, it is not necessary that sub-items will be always free (not relevant for price).
It depends on our requirement. Some time we want to make the main item relevant for pricing and some time we need to make the sub-item relevant for pricing.
If you have this type of requirement, then you should go for creating BOM material using usage "5" in transaction code CS01.

Similar Messages

  • How to change the header of Material BOM in a program for alternative BOM ?

    Requirement: An Inbound IDOC creates /change/delete Alternative Material BOM. The Alternative Material BOM can have alternative values from 1 to 99.
    ISSUE: I am good with CREATE and DELETE BOM. The issue is with CHANGE of header Material BOM. The fields which we need to change in the header is the base quantity, BOM status, Lot Size from and Lot Size to. Please note that I am able to change the item details of the BOM with FM CSAI_BOM_MAINTAIN. I find no FM /BAPI which would change the header of a material BOM.
    Please NOTE that I am using BAPI_MATERIAL_BOM_GROUP_CREATE to create alternative Material BOM. This has a parameter in TABLES called "VARIANTS" which has a field CS_FUNCTION which can have value from NEW/CHG/DEL .Also ,there is another parameter in TABLES called "ITEMASSIGNMENTS" which has a field CS_FUNCTION which can have value from NEW/CHG/DEL which implies this FM will allow us to change the BOM. But this does not work when I use it for CHANGE scenario with CHG value. I debugged this BAPI and observed it requires a STNLR(Bill of Material) value . This field is not there in any of the structure. I am not sure if I am passing the right parameters to it.
    Let me know if the parameters are passed correctly for CHANGE scenario.
    Also let me know if there is any other way(FM/BAPI)  to update the Header of the Material BOM ?
    Here is the code I am using:
    *& Report  ZTEST_S_E
    REPORT  ZTEST_S_E.
    * This code will create a material BoM for the material
    * MAINMATERIAL with the components COMPON1 and COMPON2.
    * Data Declaration
    DATA:
    it_bomgroup LIKE bapi1080_bgr_c OCCURS 0 WITH HEADER LINE,
    it_variants LIKE bapi1080_bom_c OCCURS 0 WITH HEADER LINE,
    it_items LIKE bapi1080_itm_c OCCURS 0 WITH HEADER LINE,
    it_matrel LIKE bapi1080_mbm_c OCCURS 0 WITH HEADER LINE,
    it_itemas LIKE bapi1080_rel_itm_bom_c OCCURS 0 WITH HEADER LINE,
    it_return LIKE bapiret2 OCCURS 0 WITH HEADER LINE.
    * Fill the data
    * Material BoM Group Header Data
    CLEAR it_bomgroup.
    it_bomgroup-bom_group_identification = 'BAPI_SMP_COL1'.
    it_bomgroup-object_type = 'BOM'.
    it_bomgroup-object_id = 'SIMPLE1'.
    it_bomgroup-bom_usage = '1'. " YOU COULD CHANGE THE BOM USAGE TO YOUR
    *NEEDS
    it_bomgroup-ltxt_lang = sy-langu.
    it_bomgroup-technical_type = ' '.
    it_bomgroup-bom_text = 'Simple BoM - FM'.
    APPEND it_bomgroup.
    * Header Details of the different variants
    CLEAR it_variants.
    it_variants-CHANGE_NO  = '500000000349'.
    it_variants-bom_group_identification = 'BAPI_SMP_COL1'.
    it_variants-object_type = 'BOM'.
    it_variants-object_id = 'SIMPLE1'.
    it_variants-alternative_bom = '01'.
    it_variants-bom_status = '01'.
    it_variants-base_qty = '2.000'.
    it_variants-valid_from_date = sy-datum.
    it_variants-function = 'CHG'.
    APPEND it_variants.
    * Details of the items of the variants
    CLEAR it_items.
    it_items-bom_group_identification = 'BAPI_SMP_COL1'.
    it_items-object_type = 'ITM'.
    it_items-object_id = 'SIMPLE1'.
    it_items-item_no = '0010'.
    it_items-item_cat = 'L'.
    it_items-component = '030790490'.
    it_items-comp_qty = '2'.
    it_items-valid_from_date = sy-datum.
    APPEND it_items.
    CLEAR it_items.
    it_items-bom_group_identification = 'BAPI_SMP_COL1'.
    it_items-object_type = 'ITM'.
    it_items-object_id = 'SIMPLE1'.
    it_itemas-change_no = '500000000138'.
    it_items-item_no = '0020'.
    it_items-item_cat = 'L'.
    it_items-component = '030790490'.
    it_items-comp_qty = '3'.
    it_items-valid_from_date = sy-datum.
    APPEND it_items.
    * Details of the materials of the different variants
    CLEAR it_matrel.
    it_matrel-bom_group_identification = 'BAPI_SMP_COL1'.
    it_matrel-material = '030790490'.
    it_matrel-bom_usage = '1'.
    it_matrel-alternative_bom = '01'.
    APPEND it_matrel.
    * Linking items to the corresponding variants
    CLEAR it_itemas.
    it_itemas-bom_group_identification = 'BAPI_SMP_COL1'.
    it_itemas-sub_object_type = 'ITM'.
    it_itemas-sub_object_id = 'SIMPLE1'.
    it_itemas-super_object_type = 'BOM'.
    it_itemas-super_object_id = 'SIMPLE1'.
    it_itemas-valid_from_date = sy-datum.
    it_itemas-function = 'CHG'.
    APPEND it_itemas.
    * Create variants
    CALL FUNCTION 'BAPI_MATERIAL_BOM_GROUP_CREATE'
    EXPORTING
    all_error = 'X'
    TABLES
    bomgroup = it_bomgroup
    variants = it_variants
    items = it_items
    materialrelations = it_matrel
    itemassignments = it_itemas
    return = it_return.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    LOOP AT it_return.
    WRITE:/ it_return-type, it_return-id, it_return-number,
    it_return-message.
    ENDLOOP.
    Let me know if the parameters are passed correctly for CHANGE scenario.
    Also let me know if there is any other way(FM/BAPI)  to update the Header of the Material BOM ?

    Try doing something like this:
    class MyJTextArea extends JTextArea {
        public boolean keyDown(Event evt,int key) {
            if(key == 13 || key == 10) { // or whatever ascii codes enter may have
                // move carret to next line
            } else {
                super.keyDown(evt, key);
    }which means you have got to catch the enter-key before the actutal JTextArea does this.
    p.s. look at my post, maybe you can help me, too.
    http://forum.java.sun.com/thread.jsp?forum=5&thread=465803&tstart=0&trange=100

  • Creation of Material BOM

    Hi All,
    I need to create a material BOM ,as in Transaction CS01, without any components.
    Which function modules should i be using..
    I have tried using CSAI_BOM_MAINTAIN and CSAP_MAT_BOM_CREATE but not with too much success
    Thanks
    Aviroop

    Hi,
    thanks for all your inputs. My requirement has somewhat changed over the last 24 hrs. What it stands as of now is that for a material and a plant there exists a bom (with items and sub-items).
    I have to retrieve this data and create a new BOM for a different plant.
    The first step would be to retrieve all the BOM data from STKO STPO and STPU. Is there any FM that would retrieve all these data
    What FM would i then use to create a new BOM
    Thanks
    Aviroop

  • Creating material bom with reference to Sales order bom.

    How to create material bom by coping Sales order bom.?

    Mayur,
    Just go to T code: CS01 use BOm  usage 1 & then select the copy from icon in the menu bar.
    On the popup screen enter material no, plat , bom usage =5 (sales bom).
    System will then allow you to select items from Sales bom. Select the items you need copied to Material BOM. Then save.
    Hope this helps.
    Thanks,
    Ram

  • Material BOM mass change error

    Hi gurus,
    When doing mass change of BOM via tcode CS20, i'm getting below error result.
    The following messages were displayed:                                                                               
    Material BOM 00016478 : Delete Item(s)
       19760                                  STM-220-(20UP)78DZ*C06U029(XC06U029)Sn 200
       0130 L 01/01/2002 12/31/9999              1.00  PC     >               1.00  PC
       No batch input data for screen SAPLSDDT 0010
       Folder created/extended
    I wonder what does "No batch input data for screen SAPLSDDT 0010" mean? what should i do to correct this?
    I also noticed that all items on the picklist were grayed out though i can still click on the checkbox button to select the items that I want to be deleted.
    Has anyone encountered this problem? I usually use CS20 during BOM mass change and haven't encountered this kind of problem.
    Hope to hear advise from you all on how to deal with this.
    Thanks and regards,
    Chad

    Dear,
    Error message no is 00344 ?
    Please refer the OSS note  Note 493096 - CS20: No batch input data for screen SAPLCSDI and   Note 180686 - For CS20
    Regards,
    R.Brahmankar

  • Material BOMs with document items using RCSBI010

    Has anyone uploaded material BOMs with document items using RCSBI010?  I set the item category to D, but receive an error in LSMW when I attempt to convert the data.  The error specifies that the document items are not valid material numbers.  They are not material numbers.  They are document info records.

    Found the problem. The document number was being mapped to BOM Component IDNRK instead of document number DOKNR.

  • PLM WEB UI - Personal Object Worklist for Material BOMs dumps in Portal

    We installed business package for PLM WEB User interface and we start playiong around with the POWL functionality. For some reason teh system ends in an error calling ....../sap/bc/webdynpro/PLMU/wda_wcc_myobj/
    This is section Personal Object Worklist for Material BOMs within Material BOMS
    Below is what I get
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Error when processing your request
    What has happened?
    The URL ......../sap/bc/webdynpro/PLMU/wda_wcc_myobj/ was not called due to an error.
    Note
    The following error text was processed in the system ... : The ASSERT condition was violated.
    The error occurred on the application server sapdl1_DL1_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: /PLMB/IF_SPI_METADATA_BASE~GET_NODE_DEFINITION of program /PLMB/CL_SEA_SELOPT_MP========CP
    Method: GET_NODE_DEFINITION of program /PLMB/CL_SPI_METADATA=========CP
    Method: GET_INSTANCE of program /PLMB/CL_SPI_METADATA=========CP
    Method: GET_PROVIDERS of program /PLMB/CL_SPI_FACTORY==========CP
    Method: CONSTRUCTOR of program /PLMB/CL_SPI_CONNECTOR========CP
    Method: GET_SEA_CONFIG of program /PLMU/CL_WCC_PWL_FEEDER_ABS===CP
    Method: CREATEPOWLDEF of program /PLMU/CL_WCC_PWL_FEEDER_ABS===CP
    Method: IF_POWL_FEEDER~GET_SEL_CRITERIA of program CL_POWL_EASY_FEEDER===========CP
    Method: IF_POWL_FEEDER~GET_SEL_CRITERIA of program /PLMU/CL_WCC_PWL_FEEDER_ABS===CP
    Method: GET_UPDATED_SELCRIT of program CL_POWL_UTIL==================CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system ... in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server sapdl1_DL1_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 2 in transaction ST11 on the application server sapdl1_DL1_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 020 -u: AXH7220 -l: E -s: DL1 -i: sapdl1_DL1_00 -w: 2 -d: 20100603 -t: 060408 -v: RABAX_STATE -e: ASSERTION_FAILED
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    However , if I run this service as a standalone URL I get a screen where I can fill in an application, business object and/or system. If I select one, it works perfectly
    What step do I miss?
    Thanks for any input on this
    kind regards
    Angelique Heutinck
    IFF

    Hi,
    I would reconmend to open an OSS message about this error.
    Martin

  • Material BOM explosion in Service Order components

    Hi experts,
    I created a Material BOM with transaction code CS01.
    Then I try to add this BOM in the component of a service order.
    What I expected is the BOM to be exploded in the service order. But this behaviour doesn't occur.
    Do you know what I can do to trigger a Material BOM explosion at service order level.
    By the way, the BOM is not exploded after the service order (in the reservation or in MIGO).
    Thank you for your help.

    Hi Özgen,
    Thank you for help.
    Special Procurement 50 didn't exist in my system.
    I created it in SPRO for the plant with the Procurement Type F (External Procurement) and the flag Phantom Item checked..
    Then I created
    - Material A (MM01)
    - Material BOM A (CS01) with:
    -- item 1 Material B (which has Spec Proc Type 50 in MM02-MRP2)
    -- item 2 Material C (which has Spec Proc Type 50 in MM02-MRP2)
    After that I created a Service Order (IW31)
    I put Material A in the Component tab with quantity 1.
    The BOM remains unexploded.
    Did I miss something?

  • BOM - Standard report to view the material - BOM relationship

    Hi
    Our client has a requirement to view the material - BOM relationship. The input will be the material and the report should display all the levels above the material. Say for example if the material is in level 5, it should display the BOM strucutre from level 0 to level 5. If the same material is in various levels, the structure should map from level 0 to the lowest level of the material.
    Is there any standard report/function available for the above requirement.?

    Hello Venkatachalam
    As eariler related to BOM level wise you posted a quiery on SDN ....
    I having Similar quiery  as per yours......  I need your help.
    Is it possible for you to  make a telephonic conversation so i may provide you proper details .
    With Regards
    DhruvOM
    Phone number :-+919765032999

  • Fields of the material BOM are overwritten by values from customising.

    I have the an issue wherein I am trying to update a material BOM, and I pass a blank value to REL_COST (or SANKA ) in item. But somehow in the function module CSAP_MAT_BOM_MAINTAIN it gets defaulted to X while posting the BOM update.
    When I use the function module CSAP_MAT_BOM_CREATE to create BOM it works fine. I see there is OSS note 1012556, but looks like it is valid for different function module CDESK_BOM_WIZARD, which is relevant to my scenario. However that function module is for dialog mode and not released yet.
    I pass below values to T_STPO structure, rest all fields are initial.<br />
    <br />
    ITEM_CATEG                                              L<br />
    ITEM_NO                                         0020<br />
    COMPONENT                                               4000018468<br />
    COMP_QTY                                                          300.000<br />
    COMP_UNIT                                               EA<br />
    FIXED_QTY                                          <br />
    ITEM_TEXT1                                              TEST<br />
    ITEM_TEXT2                                              TEST<br />
    REL_COST<br />
    MAT_GROUP                                               241416W1<br />
    ID_ITM_CTG                                              L<br />
    ID_ITEM_NO                                              0020<br />
    ID_COMP                                         4000018468<br />
    <br />

    I have this same issue.
    I found a workaround, passing "!" instead of space when I want to reset fields such as cost relevancy, text1 and text2.  My issue is on CSAP_BOM_Maintain.
    So for your solution, you just call the same function 2x with same values?

  • Data conversion of material BOM by LSMW

    Hi,
    Right now I try to work on LSMW setting for data conversion of material BOM. However, I forgot how to set
    the linkage of BOM header & item at LSMW since my last
    experience was 1 year ago. I have set up 2 source structures, BOM_HD (header) & BOM_IT (item) from 2 files. Both source
    structures contain one same source field, BOM_ID. From this identical BOM_ID field, the linkage of BOM header and items is set up between 2 files. Can
    anyone know how to make the setting at LSMW ?
    Thanks.
    Regards,
    Nancy

    hello nancy,
    their is no need of getting seperate reacording for both header and item. it will be enough if with only one in th lsmw in the first step u select the direct input method
    and at source structure level create two strucutres such that one can be for header and the other would be for item
    then in the same way while specifying file give first the header file and then the item file.
    at the same step check whether the convert data is getting the logical path and file name or not if u dont then double click at that possition and create it. then ur recording will be done perfectly.
    if u want the entire steps with screen shot i can send u

  • Validation of material BOM quantity at the time of production order confirm

    Hi,
    I want validation on material BOM ,when i confirm production order.
    Actually when i am going to confirm my production order by tcode CO11, In this screen,i click on "Goods Movement" button. According to confirmed quantity , consumed materials will display. Here i can change material quantities. And here i want some validation. I there any user exit for this screen.

    Hi,
             Exit Name Description
    PCSD0001 Applications development R/3 BOMS
    PCSD0002 BOMs: Customer fields in item
    PCSD0003 BOMs: Customer fields in header
    PCSD0004 BOM comparison
    PCSD0005 BOMs: component check for material items
    PCSD0006 Mass changes user exit
    PCSD0007 Check changes in STKO
    PCSD0008 WBS BOM: Customer-specific explosion for creating
    PCSD0009 Order/WBS BOM, determine URL page
    PCSD0010 Order/WBS BOM, determine explosion date
    PCSD0011 Knowledge-based order BOM, parallel update
    PCSD0012 Customer - Mat. number/mat. number during material exchange
    PCSD0013 Customer-specific processing of an explosion for BOM browser
    PCSD0014 Knowledge-Based Order BOM: Status
    BADI's are
    WORKORDER_CONFIRM
    WORKORDER_UPDATE
    WORKORDER_GOODSMVT
    <b>Reward points</b>
    Regards

  • Bills of material[BOM]

    Dear all,
    hi, i have got a dought in bills of material, i shall be very much pleased if some one helps me out of this.
    using the transaction code CS01, i have created the 'BOM' for the material 'computer' giving the components as 'keypad' and 'CPU'. after creating the required thing i have saved the data.
    later on when i tried to creat a sales order using this data, the components are not getting displayed in the sales order.
    what i have to do to get the components displayed in the sales order.
    please do help me out.
    Regards,
    Sushmitha.

    Susmitha,
    below is whole process for sales BOM-
    Sales BOM Implementation 
    A bill of material (BOM) describes the different components that together create a product. A BOM for a bicycle, for example, consists of all the parts that make up the bicycle: the frame, the saddle, wheels, and so on.
    Process Flow
    When you enter the material number of a bill of materials that is relevant for sales order processing, the system displays the material that describes the whole bill of materials as a main item. The individual components are displayed as lower-level items.
    There are two ways to process a bill of materials in Sales. Once you have entered a bill of material in a sales order, the system runs pricing, inventory control, and delivery processing at:
    - Main item level if the material is assembled, or 
    - Component level if the material is not assembled
    The type of processing used by the system is determined by the item category group that you enter in the material master record for relevant materials.
    Processing at Main Item Level 
    If you want the system to carry out pricing, inventory control, and delivery processing at main item level, enter ERLA in the Item category group field of the Sales: sales org. 2 screen in the material master record of the finished product. This means that the components only function as text items and are not relevant for delivery. The following graphic shows how a bill of material is processed at main item level.
    Processing at Component Level
    If you want the system to carry out pricing, inventory control, and delivery processing at the component level, enter LUMF in the Item category group field of the Sales: sales org. 2 screen in the material master record of the finished product. In this case, only the components are relevant for delivery. During processing the system automatically creates a delivery group. The latest delivery date among all the components becomes the delivery date for the entire delivery group.
    REWARD IF U FINDS THIS AS USEFUL...
    Regds
    MM

  • End valid to data of material BOM

    In the moment  that you create a new material BOM using transaction CS01, 
    have you any chance to introduce a date in the field " Valid to" ?
    Regards, Josu.

    Dear Josu,
    1.While creating the BOM,you can give a valid From date(A Future Date).
    2.The systems defaulty sets the valid to date as 31.12.9999.
    3.This can not be changed,or can be modified unless you use ECN.
    Regards
    Mangal

  • FM For Finding if Material BOM exits for BOM component.

    Hi,
    Is there any FM or BAPI to find out if there is any material BOM exists for the BOM component.
    How is Indicator assembly get assighned..?
    Any inputs would be appreciated.
    Thanks,
    Mark

    Sample program.
    report zrich_0001 .
    * Internal Tables
    data: i_stpov like stpov occurs 0 with header line.
    parameters: p_matnr type marc-matnr,
                p_werks type marc-werks.
    start-of-selection.
    perform where_used tables i_stpov
                       using p_matnr
                             p_werks.
    loop at i_stpov.
      write:/ i_stpov-matnr, i_stpov-werks.
    endloop.
    *  FORM WHERE_USED.
    form where_used tables itab
                    using  matnr
                           werks.
      data: selpool like mc29s.
      data: eqpcat  like cscequi occurs 0.
      data: kndcat  like cscknd  occurs 0.
      data: matcat  like cscmat  occurs 0.
      data: prjcat  like cscprj  occurs 0.
      data: stdcat  like cscstd  occurs 0.
      data: tplcat  like csctpl  occurs 0.
      clear itab. refresh itab.
      call function 'CS_WHERE_USED_MAT'
           exporting
                datub                      = sy-datum
                datuv                      = sy-datum
                matnr                      = matnr
                postp                      = ' '
                stlan                      = ' '
                werks                      = werks
                stltp                      = ' '
           importing
                topmat                     = selpool  "Not Currently Used
           tables
                wultb                      = itab
                equicat                    = eqpcat  "Not Currently Used
                kndcat                     = kndcat  "Not Currently Used
                matcat                     = matcat  "Not Currently Used
                stdcat                     = stdcat  "Not Currently Used
                tplcat                     = tplcat  "Not Currently Used
                prjcat                     = prjcat  "Not Currently Used
           exceptions
                material_not_found         = 02
                no_where_used_rec_found    = 03
                no_where_used_rec_selected = 04
                no_where_used_rec_valid    = 05.
    endform.
    Regards,
    Rich Heilman

  • Overwrite material BOM component

    Hi,
    I am trying to over-write the component of a material BOM with another component in the same position. I am using FM CSAP_MAT_BOM_MAINTAIN for this. I am passing values to the the below parameters.
    MATERIAL                            H.1013.2476
    PLANT                                  3000
    BOM_USAGE                       1
    ALTERNATIVE                     1
    VALID_FROM                      01.01.2003
    FL_COMMIT_AND_WAIT     X
    FL_DEFAULT_VALUES       X
    Values that I am passing in T_STPO
    ITEM_CATEG                        L
    ITEM_NO                               0010
    COMPONENT                        H.1013.4572
    COMP_QTY                          5.0
    COMP_UNIT                          EA
    Here initially the BOM component is H.1013.4570 and I am trying to change it to H.1013.4572. This should be like replacing H.1013.4570 with H.1013.4572 in the same position. This can be done by CS02. However when I am using the above FM and then checking CS03 i see 2 BOM components H.1013.4572 and H.1013.4572. So basically this is not a replacement.
    I also tried FMs for the same activity but didn't get the desired result.
    a. CSAP_MAT_BOM_OPEN
    b. CSAP_BOM_ITEM_MAINTAIN
    c. CSAP_MAT_BOM_CLOSE
    Could anyone tell me how it can be done.
    Regards,
    Rakesh

    I was looking into a possible solution for changing the BOM component. I tried to get the result with some other BAPIs however I found none to achieve the desired results.
    However I found a possible solution with the original BAPI CSAP_MAT_BOM_MAINTAIN. After passing some possible combination of values I came to the conclusion that in table structure T_STPO type STPO_API03 we can use 2 fields u201CITEM_NODEu201D and u201CITEM_COUNTu201D to get the results (I see that these 2 fields have values in SAP Table STPO in fields u201CSTLKNu201D and u201CSTPOZu201D).
    If we are passing the values to the below fields of the structure T_STPO, then the desired results can be achieved.
    T_STPO (Mandatory Fields to get the result)
    ITEM_CATEG                    L
    ITEM_NO                           0010
    COMPONENT                   H.1013.4572 (New BOM component that would be replacing the old one)
    COMP_QTY                       4.0
    COMP_UNIT                      EA
    ITEM_NODE                      00000016
    ITEM_COUNT                   00000032
    Here, the only part that I am not sure of is whether ITEM_NODE and ITEM_COUNT can be passed from the 3rd party system. I believe that these are automatically generated numbers when a BOM component is created.

Maybe you are looking for