Archive Material BOM issue

Hi everyone
I wanna archive all material BOM in a client server.
The client server only contain the material and BOM data.
I am using transaction code :CS28 and using object " CS_BOM " . The archive steps are:
1. actions->write
2. create a variant called "BOM"
3. in "BOM" variant maintainence screen,
      select "archive with direct deletion" ,
      select "selection by delete indicator" ,
      select " archive material BOM"
4.  add description attribute for BOM variant.
5.  save variant and execute the job.
However, when i saw the job overview , the created job is  in complete status within several seconds. And i go to CS03 , there is still BOM record existed.
Do anyone know the correct way of archiving material BOM?
Thx~

"selection by date validity" will work only if you can give a date after the BOM validity dates. Check what is the validity dates in all your BOMs . If it is 31.12.9999 then this option will not work.
The only other option you have is to mark the deletion flag in all the BOMs and then use "Selection By Del Indicator".
If you have access to OSS , check note number 376650 , which give a program code which can set the deletion flag in all the BOMs. After this if you choose "Selection By Del Indicator"  then I guess the BOMS should be removed from database.
Archiving has two actions - writing data to arcive file and delete data from database. You have not mentioned thus far that you file is written . If file is written correctly and data not deleted from database then problem is with deletion program.
If file also is not written ( is blank ) then your problem can be solved in the two ways I mention above, as then the problem lies with no BOMs selected for deletion/ archiving. Is the spool of your batch job blank.
Btw you are using the correct method of archiving BOMs . However there is a report RCBOMDEL which will delete all the BOM records from a client without archiving.
Cheers.

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

  • Retriving archived material doc in MB51

    Hi All,
    I have archived few material documents, I am able to retrive them using the T.code MB51, here there are 3 check boxes at the bottom of the screen.
    1. Data base
    2. short documents
    3. Reread short docs in Archive.
    1.can any one let me know from where(from which table) the system will fetch the data and display when we select the check box. "short documents" alone and execute?
    2. what is the defference between the "short docs" check box and "reread short docs in archive" check box?
    Thanks
    Mahendra

    Dear Jurgen,
    I have one doubt, if i am opening any archived material document number using MB51 using "reread short docs in Archive". we are able to see the correctly. And if we are clicking on output field Material Document then its opening t code MB03.
    but if we are trying directly to open  in MB03 using fiscal year and material document we are getting error message" Document xxxxxxxxxx does not exist in calendar year xxxx".
    Any solution to solve the above issue.
    Thanks
    Regards
    Ashutosh

  • 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?

  • Cancel Archived Material Document

    Hi Experts
    I have scenario, where I need to cancel a Material document(PGR ref to a delivery) which appears to be archived. I was archived by the system, due to an update termination error, following some conversion issues in material master.
    How can I cancel this archived material document
    thanks & regards
    Vin

    your question is not clear
    if a material document is already archived (deleted physically from the tables), then you cannot cancel it, as you can only cancel what is available.
    In this case you would need to perform a new movement using the cancellation movement type, but without reference to a material document.
    I was archived by the system, due to an update termination error,
    this is just impossible. Archiving is only done by execution of certain transaction, but not by termination of postings.
    If the update has terminated, then the movement has never been in your system, hence you dont need to cancel it.

  • Report of material BOM

    hi!
    I want to get a report of all the fert materials that don't have a BOM (the BOM created with cs01)
    thanks!

    Dear,
    1)Possibly, you can query the table" MAST" for the list of materials with SE16.Enter the BOM Usage.
    Execute.
    2)If you want to find details of individual materials:
    Use transaction codes:
    CS03 - Material BOM here you will get list of by search material having BOM by pressing F4.
    3) I don't think there is any such transaction available. (But you can get the list of material who has a BOM from MM02 (F4 options). To get the required list you need to develop a small customized report. The logic may be like: Input plant code on input screen. Let system to check all the available materials in the MARC table for given plant. This list of materials(MATNR) to be supplied to MAST table and those materials which doesn't have corresponding STLNR (BOM No.) can be outputted as the desired list. I hope this will help in resolving the issue. Please revert back in case of any further clarification.
    4)There is one unique way is there which helps you to find our fert / Halb code without BOM.
    Go to MD21 and select low level code 999 and execute.
    Hope it will help you.
    Regards,
    R.Brahmankar

  • The system could not determine any material BOMs

    Hello All,
    I am testing the Preference Processing scenario.
    I have a BOM available in Feeder system which gets exploded in Sales Order. The preference indicators and every BOM material is already transferred to GTS system
    When I am transferring the Initially BOM then system gives the message that "System could not determine any material BOMs."
    The main material already has been flagged for Configurable material.
    If I use the transaction /SAPSLL/KMATWLR3_03 (Display worklist of Configurable Material), I am able to see the sales order but when I select the line item and press the push button to transfer the BOM to GTS system gives message that Error in BOM Explosion
    Please help me to resolve the issue
    Thanks & Regards
    Rahul

    Hello Dave,
    I have maintained the BOM Usage 3 and 5 for Global, Country and Plant level.
    The table entries are displayed as below
    But still I am getting the same error while transferring the BOM

  • MM: Material Goods Issue to Procudtion order CO27

    Hi anybody,
          When I Material goods issue to Production order using co27. I give the Material number, qty, Storage location and batch number. But I got the error Pick List Wrong Componenets. What is the error?.
    anybody please tell me about this error?.
    Why this error coming? how to solve this error?.
    Tks
    S.Muthu.

    Hi,
    Check the BOM of the material which you are entering in the production order.
    Check which is the input material for the final produced material. send the input material.
    Or
    You can go to CO11N / CO11 and while confirming the production order you can directly click on goods movement and do a GI with 261 Mvt type.
    Thanks & regards,
    Kiran

  • Archive film licensing issues

    Seeing the "music licensing issues" prompts me to ask if anyone knows anything about the same issues relating to copying archive material from (say) 1st world war film on commercial DVDs? Many thanks.
    Dual 2.3GHz Power pC G5   Mac OS X (10.4.7)   2.5GB DDR2 SDRAM

    Hi Marc
    humour is a tricky thing... in forums, and esp. in a foreign language..
    as said in the other thread, copyrights are handled anywhere different.. (from my p.o.v, that is THE achievement while creating the iTMS... to get all that "rights" things under one hat)...
    I don't follow the discussions in detail, but I remember, that Disney stumbles into trouble, because Mickey Mouse is getting older then 70 years => no more copyrights on Big Black Ears??? and some websites offer "historic" music from the early 20ies, which is in the meantime "public" ...
    over here, in Germany, we do have a totally different legal concept, "Urheberrecht", no copyrights, the art ALLWAYS belongs to the artists without any publishing... now, I'm founding a company in Panama (no copyrights at all, to my knowledge...), this company places such a German piece on a Russian server... you watch it via a US iNet provider in GB... happy landing ... ;-)))

  • Typical BOM issues

    Hi,
        What are the typical BOM issues a client could face ? I know this is a very generic question but what I am looking for is what is the best way to structure BOMs so that the stocking level is optimized. Can we use phantoms and how do we decide at what level a phantom is to be established ? I know we use phantoms for nonstock items and to reduce the number of production orders being created to manufacture a high level assembly.
    Also would a phantom always be marked as "ND" MRP type? What would be the std cost of a phantom? Would it be the cost rollup of its components and the labor needed to assemble the phantom when one needs to manufacture the higher level assembly ?
    Thanks

    Dear ,
    Let me share my experince in terms of BOM which is crticial PP Master data durung our implemention :
    What are the typical BOM issues a client could face 
    1.Need to understnd the product line Standard  and Non Standard .Decison on Structed BOM as per the product design  and then establish the same in MTS process .For MTO process , you should have BOM establishement from inquiery and quetion level to freeze the BOM .
    The engineering depart ment is the crtitical part of BOM establishement .They shpuld have proper approved design and also alternative crtocial items for structured BOM.
    2.Usageablity and Costing relevencey in the BOM .You can keep Universal BOM for multi purpose .
    3.Engineering Change Number under ECM to investigate the validity .
    4.Selection of BOM based on priority and also Selection Alternative BOM method as per SAP Standrad  procedure .
    Can we use phantoms and how do we decide at what level a phantom is to be established ?  Yes.You can use the Phatom assmbly as long you do not want to keep the stock physically but want to plan the dependent through Main FG where Phantom BOM will be a item .Phantom BOM genereally comes under main FG so that during MRP , it will explode the dependent alsong with Main and the cost will be subsequenlt rolled uo at header level .
    Also would a phantom always be marked as "ND" MRP type?  No .If you keep ND , then it will not be teared through MRP and  dependent will not be planned .It's usage should be production, as BOM item is a phantom assembly, the dependent requirements of the higher-level assembly are directly passed on to the components of the phantom assembly .In material master of MRP 2 view spl. procurement key - 50. Assign in BOM item - make tick mark in phantom assmbly. If you create in material master wherever the material, system consider as a phantom.If you mark in BOM, only that particular BOM, system consider as a phantom.
    What would be the std cost of a phantom? 
    Phantom material does not need to have a standard cost becuase the costing program will ignore that particular material when calculating for the upperl level item. Instead, the cost of the components that make up the phantom assembly are taken into consideration. Any labor that is stored in the routing for the phantom assembly is also ignored if one exists.
    Please farther refer the belwo thread to have complete picture
    Phanthom Material
    Hope this clarifies
    Regards
    JH

  • Recursive BOM - issue

    Hi,
    This is actually a bit Techno-functional type issue we have here.
    There is a material having a recursive BOM. That means when it explodes it explodes into the same material.
    So in Sales Order
    item 10 - Material X
    generates item 20 - material X.
    After the GR is done as expected on Material X but in Item 20.
    Till this part everything is fine.
    Now we create the billing document. It should actually pick up Item 10 but instead it picks up item 20. Can you tell me any configuration / routines which can be done to avoid this issue.
    We have the billing documnet which is referencing the Order and not the delivery.
    Any suggestions would be very useful.
    Thanks and Regards,
    Arnab.
    Edited by: Arnab Panigrahi on Jul 2, 2008 3:10 PM

    Dear All,
    I am having similar issue, Can any one help me in this regard.
    As per my client requirement:
    For Ex:
    Scenario 1:
    To produce 100 kg of A, 102 kg of A is used.
    Due to Market return stock 2 KG will processing loss or indivisible to loss.
    As per business policy i can't change these BOM Header & Item Quantities.
    The system cannot cost material A and issues an error message.
    Scenario 2:
    To Produce 100 Kgs of A Material(FG), We need B Material 98 KG(SFG).
    Product is ready and despatched to Market.
    After Some time Few Stocks will come as Market retunrs in FG Stage(A).
    We need to Re-Process the same and stock will converted to SFG(B).
    During this case also i am getting Recursive BOM errors.
    Due to in A Material BOM ,B is a component already-Costing run Completed sent to Market. Now I am Converting the stock of A to B through a Production order while maintaining A as Component for B Material BOM.
    Every stage i have alternative BOMs.
    As per the requirement i can't avoid, Please suggest is there other user exits or Message control or Process to resolve the same.
    Regards
    Manoj Kumar Pedada
    SAP CO Consultant

  • Transaction MB5B takes not into account the archived material documents

    Transaction MB5B takes not into account the archived material documents . Is it possible?

    Hi
         It is not possible to see the archieved materials. Once archieved it will remove from the registry. Cannot be retrieve back.
    Thanks
    Ganesh

  • 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 once issued thru' PM order,Should not be Deleted From The PM Order

    Dear all,
    IN PM ORDER, ONCE MATERIAL IS ISSUED THROUGH IT, SYSTEM ALLOWS TO DELETE MATERIAL. THIS SHOULD NOT
    HAPPEN AS IT WOULD LEAD TO WRONG COST CALCULATION.
    Order Status : gmps,cnf
    can anybody give me solution to restrict the deletion of component in PM Order.
    From
    Vishal

    Hi,
    You cannot control this through Auth.
    You can prevent this by assigning the message type for message  number 750(cn) to "E= Error" through the config for message control.
    Regards
    Narasimhan

Maybe you are looking for

  • How do I use the same firefox on a USB drive on 2 computers

    I use the same external usb hard drive on two computers (home and work). I would like to be able to install firefox on both PCs and use the same profile so I get all my bookmarks, accounts etc identically on both machines.

  • Thin white lines

    when the phone goes from sleep to wake or wake to sleep does anyone else notice faint lines going horezontally across the screen as it changes? They last for a fraction of a second. They are likebad reception on a tv? Is it normal?

  • Explain JMS adapter

    Hi Folks,    I am new to the JMS adapter, do i need any special knowledge on JMS. In what situations we go for JMS adapter.   Explain me the SENDER and RECEIVER JMS adapter. i.e. different TRASNPORT PROTOCOL and differece between various TRANSPORT PR

  • Music synch problem with slideshow

    I've done quite a number of slideshows and used a song from my  iTunes as background. Always worked fine, but my latest creation has a problem: part way through the show, the music starts over. I have checked the source song and it's fine. Nothing se

  • Server restarts automatically

    Hi Group I am having netra 240 telecon server i have notced it to times this perticular server comes on Ok prompt yesterday i did boot and system rebooted woked fine till today day today approx same time system again came on ok prompt today I gave co