BOM Items Delete

Is there any BAPI or RFC to delete only the ITEMS of the BOM.
Please help.Its urgent.

check this fm...........CSAP_MAT_BOM_MAINTAIN
sample code..........
gt_stpo_api03-id_item_no = '0010'.
gt_stpo_api03-FLDELETE = 'X'.
gt_stpo_api03-component = 'Pass componet'.
APPEND gt_stpo_api03.
CALL FUNCTION 'CSAP_MAT_BOM_MAINTAIN'
EXPORTING
material = tbl_mat_centro-matnr
plant = tbl_mat_centro-werks
bom_usage = stlan
valid_from = datuv
fl_bom_create = ' '
fl_new_item = ' '
FL_COMPLETE = ' '
i_stko = gs_stko_api01
IMPORTING
fl_warning = fl_warning
o_stko = o_stko
TABLES
t_stpo = gt_stpo_api03
EXCEPTIONS
error = 1
OTHERS = 2.

Similar Messages

  • Track Deleted BOM item in Process Order

    Hi Guys,
    I am facing one issue which is described as below.
    when user is converting the Planned order into Process order at that time he has deleted 1 BOM item.
    Now i he is saying that i have not deleted that item and after that he released and done the GI conf GR.
    Now i want to track the change history but i am not able to find the changes done by him.
    I have check so many blogs but i come to know that if he is deleting BOM item during creation we will not able to find.
    Pls help

    Hi D R,
    To the best of my knowledge at the time of creation if some component has been deleted, you can not  track. Because up to that time table entry has not happened. After saving you can see the component.
    If you have some existing process order which is without item deletion, you can compare and check. As well Check the BOM in CS03 and check the BOM inside process order. You can easily find out the component.
    Hope this clarifies and at per your requirement.
    Success.
    Regards,
    Krishnendu.

  • Delete BOM items via DI API

    hello,,,
    I want to ask can i delete my bom items through DI API.
    Will the changes of addings and deleting of items through DI API(coding n sdk)be reflected in our SBO.

    Dim objBOM As SAPbobsCOM.ProductTrees
    Dim intCnt As Integer
    Dim strCode As String
    Dim objItem As SAPbobsCOM.Items
    Dim objRS As SAPbobsCOM.Recordset
    Dim boolFlag As Boolean
    objItem = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oItems)
                objRS = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset)
                objRS.DoQuery("Select Code from  OITM ")
                If (objRS.RecordCount > 0) Then
                    For intI = 0 To objRS.RecordCount - 1
                        strCode = objRS.Fields.Item(0).Value
                        boolFlag = objItem.GetByKey(strCode)
                        If boolFlag = True Then
                            lngStatus = objBOM.Remove()
                        End If
                        objRS.MoveNext()
                    Next
                End If
    Note - This code will delete all BOM's.Change the as per u r requirement.

  • Delete a range of bom items

    Hi experts,
    I need guidances and solutions on my problem here.
    I retrieve bom level using function 'CS_BOM_EXPL_MAT_V2'. Then it returns all levels of bom components, but here i need to do a checking.
    Loop at table of bom return by function 'CS_BOM_EXPL_MAT_V2', if the matrt = ZHLB and matkl <>WP100 at level 1, then i need to delete all the sub bom items at the following levels(level 2 and level 3) belongs to it.
    How can i do a checking on this and delete all those related bom items?

    u can do by using the table STAB output.

  • Problem in Partial delivery BOM - items not copied in subsequent delivery

    Hi,
    We are using BOM in Sales order and we have activated delivery group for the BOM header item category.
    When we create first delivery we change the BOM header item quantity in delivey ( all the components quantity change accordingly) and save the delivery.
    Now when we try to create second delivery with reference to the same delivery for the left out qunatity in sales order, system is not copying the components of BOM items ( it is only copying BOM header) from sales order to delivery.
    Please let us know how can we create subsequent delivery with reference to the same sales order and delivery should get all the BOM items from SO to delivery.
    Please let me know if you need further information.
    Thanks
    Venkata Rama Reddy,K

    Hi,
    We already set the delivery group to A, and still having the same result.  We change the BOM header quantity only and automatically the component quantity is updated.
    This happens only if there are two header BOM in the Sales Order.  See example below:
    Bom Header 1 = 100
    Bom Component 1a - 80 (partial delivered)
    Bom Component 1b - 20 (partial delivered)
    Bom Header 2 = 200
    Bom Component 2a - 150
    Bom Component 2b - 50
    When creating outbound delivery, initially all the materials are copied to the outbound document.  If we want to delivery only Bom Header 2, then we will delete the Bom Header 1 line item.
    Upon deletion, the status of the component becomes fully delivered in the SO, but the Bom header is still partial delivered.
    Please confirm how to correct this.
    **If there is only one BOM Item in the order, then partial delivery is ok..
    Thank you,

  • BOM Item Details fetching  issue

    Hello Friends,
    Actually I am fetching BOM item details data, with the use of STAS  & STPO tables but to my surprise I am not getting all counter values in STPO tables i.e. first I am passing BOM NO, Alternate & Item ID To STAS table to get counter details and then passing these counter values in STPO table to get item data like qty , variable size item data etc.  But I am unable to find all counters which are available in STAS are present in STPO table e.g. in STAS table there are 113 counters but in case of STPO table only 37 counter values are found.
    Kindly provide your valuable inputs for above mentioned issue.
    Thanks in advance.
    Regards,
    Tejas

    Hi Vivek,
    Thanks for your reply.
    Request if you can elaborate your answer.
    Right now I am taking counter values from STAS and then passing them to STPO but many of counter values are not available even I checked deletion indicator it is not marked with X still those are not available in STPO.
    Regards,
    Tejas

  • Mass change of BOM item and BOM item catergory

    Hello Everyone,
    I have a need to complete a mass change of a BOM item with another, usually I use transaction CS20,this works o.k. but this time I'm also changing the material with a new item catergory, for example a stock item with a phantom item.
    Does anyone have an idea how to complete this task.
    Kind Regards
    Frankie

    Hello,
    Thankyou very much for your reply.
    I did try adding the new material using CS20 but all the BOM qty's are different and as you know you have to complete this field, so it would mean changing one at a time, I attacked this issue from a different angle and created an LSMW so I can Mass delete the parts but then use this program to change the BOM item to the new part.
    Thanks again for your reply
    Kind Regards
    Frankie

  • Item Deletion

    Hi All,
    We have EBS 11i (11.5.10.2) .
    We have to delete some of the existing items via Open Inteface from item master which are not used in BOM.
    Can anyone guide me to accomplish this task ?
    regards & Thanks in advance...
    Sanjay

    Hi Sanjay
    What Sabari has said is true about Item deletion. Having said that, it's not advisable to delete items against which the transactions has happened. The work around for the issue raised by you is to make the status of the Item as inactive, and it can be done through Item Open Interface if the amount of data is huge.
    Thanks & Regards
    Prakash Kumar

  • BOM ITEM LOG TABLE

    Dear Sir's,
    in CS03 bom display only header material, do not display item component. One or two month back the material has bom component. I want to track the BOM Compoment who has to delete or change the Materail.
    Please suggest in which table or T-code where I can see the log or Component.
    Thanks & Regards
    Ajit

    Dear ,
    Either you should have ECM active or you may  have to develope a query based on the below :
    Option 1 : CDHDR & CDPOS are the change related tables. I think object class for BOM is STUE, and the object number would be of format "XXXMYYYYYYYY"
    X - Client number like 100 or 400
    M - Material BOM, so this would be same.
    Y- BOM number(STLNR - field)
    Option 2:  Check with the Transaction: CS80 or Go to BOM item view, choose Environment --> change documents.
    Option : 3  Check using transaction code AUT10. select usage as transaction code and check for CS01 and CS02.Let's Assume for a material A there's a component B with 1 quantity.and let the BOM number of A be 00003195.(you can get this BOM number details in CS03 under BOM header)Now without change number you are making the changes like deleting the item B and adding a new component say C with 2 quantity and a component scrap of 5 %.In AUT10,enter the T code as CS02 and then the date range for which you want to check.After executing you will be able to see component B under old value column and C under new value  column along with the component scrap row.
    Now acually it may take time to understand the report as such.
    Regards
    JH

  • Regarding BOM items overwrite

    Hi All,
    I have a requirement to overwrite the BOM components with the new components.The program should just overwrite the existing components.The program is not required to check the existing components it should just overwrite with the new structure to the existing BOM.
    I am trying with the function module CSAP_BOM_ITEM_MAINTAIN but I am not succeeding on this.
    Please suggest somebody how to do this?
    Regards
    Mahesh

    Changing a Material BOM
    In the standard system, you use the following function modules to change a material BOM:
    CSAP_MAT_BOM_OPEN
    CSAP_BOM_ITEM_MAINTAIN
    CSAP_MAT_BOM_CLOSE
    Open BOM: CSAP_MAT_BOM_OPEN
    This function module is used to open a BOM for changes. The BOM is imported with the relevant valid-from date and is locked. Provided that no error occurs opening the BOM, the result returned by the module is the BOM header data, a table of BOM items, and a table of object dependencies.
    INPUT:
    Material (MATERIAL)
      Plant (PLANT)
      BOM usage (BOM_USAGE)
      Valid-from date (VALID_FROM)
      Change number (CHANGE_NO)
      Revision level (REVISION_LEVEL)
      Indicator FL_NO_CHANGE_DOC (do not write change documents)
    OUTPUT:
    BOM header data (O_STKO)
      Table T_STPO (BOM items)
      Table T_DEP_DATA (object dependencies basic data)
      Table T_DEP_DESCR (object dependencies descriptions)
      Table T_DEP_ORDER (object dependencies allocation)
      Table T_DEP_SOURCE (object dependencies source code)
      Table T_DEP_DOC (object dependencies document)
    Maintain BOM Items: CSAP_BOM_ITEM_MAINTAIN
    Once you have opened a BOM successfully (without errors), you can use this function module to process the individual BOM items.
    You can:
    Create new items
    The fields for item node and item counter must be initial when you create a new item.
    Change items
    From the table of BOM items, select the item you want to change, and transfer the changed data. The fields for item node and item counter must contain a value, because these are the fields used to uniquely identify an item in a BOM.
    Delete items
    From the table of BOM items, select the item you want to delete, and set the deletion indicator. The fields for item node and item counter must contain a value.
    Maintain object dependencies
    If you want to change or delete a local object dependency for a BOM item that has more than one dependency, enter the internal name of the dependency.
    You cannot use the external name that you entered when you created the dependency to identify the data belonging to a local dependency.
    INPUT:
    BOM item (I_STPO)
      Table T_DEP_DATA (object dependencies basic data)
      Table T_DEP_DESCR (object dependencies descriptions)
      Table T_DEP_ORDER (object dependencies allocation)
      Table T_DEP_SOURCE (object dependencies source code)
      Table T_DEP_DOC (object dependencies document)
    You cannot change the item category of an existing item.
    You can only change each item once in one session (between when you open and close the BOM).
    If you see the error message "Item cannot be changed" in the log, the following reasons may apply:
    The item is not valid on the valid-from date entered, because it becomes valid at a later date.
    Object dependencies are allocated to the item, but the change number you used to open the BOM is not active for object dependencies.
    The item has already been processed with another change number on the valid-from date entered.
    Close BOM: CSAP_MAT_BOM_CLOSE
    Once you have made your changes, use this function module to close the BOM. This saves the changes, unlocks the BOM, and writes the log.
    The BOM is only saved if at least one item was changed successfully.
    Please note the following points when changing BOMs:
    There is no function module for changing header data.
    The same restrictions apply as for creating a BOM.
    You can only process one alternative or variant. If you do not enter an alternative when you call function module CSAP_MAT_BOM_OPEN, the function module opens alternative "01".

  • Populating the custom filed - added in BOM item.

    Hello Friends,
    I have a requirement like, for the custom field added in BOM item data, it should come filled while executing the CS02/CS03/CS12/CS73....transactions.
    I have added a field which is one of the field from MARA table. what I have to do is to pass the MARA record into the custom field added based on IDNRK.
    This should happen as soon as enter button is pressed after entering material, plant, bom usage value.
    Please let me know if any exit is there wherein I can put the code OR if any other way!
    Thanks.

    i have solved this issue by doing some R&D.

  • How to set the conditions for item deletion approval workflow?

    Hi,
    I have created approval workflow for item modifications ie, when user try to modify an item, it will send a mail to Project Manager. For that I set the conditions in Change the behavior of the overall task: 1. When the task process starts 2 . When the task
     process completes .
    Change the behavior of the single task: 1.when a task is Pending.
    [I followed this https://www.nothingbutsharepoint.com/sites/eusp/Pages/5-Steps-to-Enhance-SharePoint-2010-Approval-Workflow.aspx ]
    My Requirement is that I want to set this same workflow for the scenario: when the user deletes an item it will send a mail (intimation mail for item deletion) to Project Manager. here i dont want to send modification mails when user deletes an item.
    When user modifies an item: 1. intimation mail, 2. Approve/Reject mail 3. intimation for approval / rejection mail.
    When user deletes an item: 1. intimation mail.
    How can we set it in one approval workflow?? where i have to set the condition for sending either item modification mails or deletion mail.
    Thanks,
    Praveen ji

    Hi,
    According to your post, my understanding is that you wanted to start approval workflow when item deleted.
    You should first make some changes to trigger the workflow when you delete the item.
    You can use the Event Receiver to achieve it.
    In order to trigger workflow on item delete you need to create event receivers and from event receiver call the workflow already attached with list.
    http://ravendra.wordpress.com/sharepoint-workflow-on-list-item-delete/
    You can also create custom action to start the workflow, you can refer to the following article, then modify the workflow as your need.
    http://blogs.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=50
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • How to get the latest and valid BOM item entry from STPO

    hi,
    may i know with what condition we can get the latest and valid BOM item entry from STPO table?
    i have STLNR and IDNRK as a input. But i realized that it would return multiple entry due to the combination of  valid-from and valid till date.
    can i use stlnr,idnrk and stpoz (with the latet counter) to get the latest and valid BOM entry?
    thank you.

    Hi
    You can get the latest BOM either by using the latest valid from date DATUV or latest internal counter STPOZ
    Regards
    Shiva

  • Error in Rush Order type with BOM item!!

    Hello,
    I am facing a very strange error while creating a rush Order with BOM item.
    System Error:
    1. No item category available (Table T184 SO ERLA TAQ).
    I except the error. I get next error as
    2. Structure explosion for item 000010 is not possible.
    After this BOM explodes with only first 2 Sub Items ( Item cat for main item is determind as TAQ and Sub Items as TAE) , where as the complete BOM has 7 Sub items.
    I have made the required configs in item cat determination in T184 table for order type SO, as follows.
    SO ERLA - TAQ for Main Item of the BOM
    SO NORM TAQ TAE for the Sub Item of the BOM
    The same item (BOM ) works very well in OR/BV kind of sales order types, by exploding the BOM to full level(i.e all the 7 sub items are determined).
    Has any one come across such an issue. Please let me know what could be the solution?
    Thanks in adv,
    Shripad

    Hi,
    Thanks,
    In vov7 for TAQ Item Cat. the structure scope is maintained as 'A'. And that's the reason for Standard order 'OR' , the BOM is exploding properly.
    It is only with Rush Order , the BOM is not exploding correctly.
    BR
    Shripad

  • Cost Estimate using Commercial Price 3 of BOM item

    Dear Experts,
    I am trying to create a cost estimate for certain materials using ABC costing variant. The objective is that the cost estimate should pick up Commercial price 3 from the material masters of the BOM item and then calculate cost estimate for the main product (The costing variant has been customized this way). However, for certain main products, the system is picking up the standard price of the BOM item and in some main products it it correctly picking up the Commercial price.
    The BOM items used in the different products are different.
    I am unable to understand this behaviour. If anyone has come across any such problem before, please help.
    Regards,
    Aditya

    hi,
    Check the Valuation variant and the strategy sequence whether you have selected the Commercial price 3 as the first priority and the Standard price as the next priority. If u don’t want the standard price to be picked u remove this in the strategy sequence.
    Further where the system is picking the standard price, possibly the commercial price 3 has not been defined in the material master. Possibly , the system is unable to find the commercial Price 3 and it is fetching the next Price as defined in the valuation variant which is the standard Price.
    assign points if useful.
    regards,

Maybe you are looking for

  • Any way to take a subclip & generate a new original file of subclip's length without recapturing?

    When I CAPTURE a large length of footage (say 30 mins) and then I import this footage into my Pr Pro CS 5 Project, I will typically extract a section of that footage into the timeline using the Source Monitor.  I will throughout an edit end up using

  • Upgrade to OS X 10.10 from 10.6.8

    I would be grateful for advice about upgrading my OS. I have got a MacBook Pro bought in September 2013 in the UK which is running under OS X 10.6.8, with 2.26 GHz Intel Core 2 Duo, 4GB of memory, and a 500GB hard drive, mostly unused. Some software

  • Unexpected error when linking CSS style-sheet

    I have been working on this site for over a month now. I have a linked external CSS style sheet and everything has been working seamlessly between Dreamweaver and the web. Today, I tried to create a template and then disliked it, so I deleted it. Aft

  • ITunes does not detect my ipod

    Much to my chagrin I made the mistake of upgrading Windows Vista to Windows 7. Then I d/l the latest version of iTunes and now iTunes can not detect my iPod. I receive the message "The software required for communicating with the iPod is not installe

  • Idoc Packaging from sender side Idocs

    Hey, Can anybody suggest me the best approach/practice to do the idoc packaging with PI 7.0 SP 15. -Esha