Removal of BOM allocations to plants

Please send me the sample code for the below program , pls anybody its urgent ... ur help is greatly appreaciated...
Create a program that removes BOM allocations to plants for a specified range of BOM materials and plants.
The selection screen should contain the fields:
Material number (from - to and multiple selection)      - entry should be required/mandatory
Plant (from - to and multiple selection)
BOM usage
Alternative BOM
The program should utilze the entered information.
Then remove the BOM allocations specified in the selection screen.
After the program run  a list is to be displayed that contains the following information:
1) All errors that have occured while deleting allocations
2) All BOM - plant - BOM usage - Alternative BOM combinations where the allocation has been deleted.

Hi saleem,
Thanks for the reply !!
could you please email me the code , do I need to use BDC ?? how do I go abt .. please send the code ...
I'll try from my side but the chances are less as I am totally new to this technology
if possible please send the entire code .. Either you or any of your friend who knows the solution please send the entire code..
Rgds,
Aryan.

Similar Messages

  • Need to remove 'Returns' Qty from the plant (MMBE)

    In stock overview MMBE, there is no unrestricted qty. but there is some Qty in "Returns", how we need to remove this Qty from this plant..there is no stock in transit for this material for this plant? but there is some stock in transit in some other plant.
    I am not sure what the purchase order/STO is.  I have reviewed all of the past stock transfers with this material on them and cannot find one open, they need to get this material removed.
    Please suggest how we can remove this Returns Qty from this plant (MMBE)?
    Thanks in advance
    Suresh..

    if you have stock in returns status in MMBE, then you can move it into unrestricted status with 453, into own blocked status with 459.
    this returns stock is created when you post a goods receipt to a return delivery. returns stock is not financially owned by you, it is non-valuated stock until you transfer it with an extra movement (453 or 459) into own stock.

  • Single BOM across multiple plants in sub-contracting

    We have a single purchasing organisation managing sub-contracting for around 17 plants. This organisaiton purchases sub-contracted items for all the plants.
    The problem we are facing is having to maintain the same BOM for all the 17 plants.
    The central purchasing org is going to create the PO with multiple lines - requesting delivery from the vendor to the different plants.
    How can we avoid having to create the same BOM in every plant?
    Regards,
    Praveen.

    hi 
    u can  avoid  by choosing  the  recurrcive  allowed  for  BOM  can  avoid it
    kishore  reddy

  • Use of CS_BOM_EXPL_MAT_V2 fro BOM explosion on plant basis

    hello ,
       I dont have any documentation for this FM and need to use it for BOM explosion on plant basis plz let me knw how to use it?

    Try something like this :
    *     Tables  "call CS_BOM_EXPL_MAT_V2 "
    DATA: BEGIN OF t_stb OCCURS 0.
            INCLUDE STRUCTURE stpox.
    DATA: END OF t_stb.
    DATA: BEGIN OF matcat OCCURS 50.
            INCLUDE STRUCTURE cscmat.
    DATA: END OF matcat.
      CALL FUNCTION 'CS_BOM_EXPL_MAT_V2'
        EXPORTING
          auskz                 = ' '
          capid                 = 'PP01'
          datuv                 = sy-datum
          emeng                 = '1.000'
          stlan                 = '1'
          stlal                 = mast-stlal
          mtnrv                 = matnr
          mehrs                 = 'X'
          mmory                 = '1'
          stpst                 = '0'
          werks                 = werks
        IMPORTING
          topmat                = selpool
          dstst                 = dstst_flg
        TABLES
          stb                   = stb
          matcat                = matcat
        EXCEPTIONS
          material_not_found    = 4
          no_plant_data         = 8
          no_bom_found          = 12
          no_suitable_bom_found = 16.
    Hope this helps,
    Erwan

  • How to get STPOV structure values using BOM number and Plant number

    hello All,
    could you please help me out
    'How to get  STPOV structure values using BOM number and Plant number'
    is there any function module where can i give input as bom and plant number .
    waiting for your response.
    regards
    srinivas

    I did a quick where-used lookup in SE11 on the structure STPOV in function module interfaces and came up with the following:
    Function Module                             Short Description                                          
    CK_F_TOTALCOST_COMPUTE                                                                      
    CS_ALT_SELECT_COUPLED_PRODUCT                                                               
    CS_WHERE_USED_CLA                Bills of material; class use                               
    CS_WHERE_USED_CLA_ANY        Bills of material; direct class use or via other class     
    CS_WHERE_USED_CLA_VIA_CLA        Bills of material; class use via classes                   
    CS_WHERE_USED_COP                                                                           
    CS_WHERE_USED_DOC                Bills of material; document use                            
    CS_WHERE_USED_DOC_ANY:Bills of material; direct and (indirectly) document use via
    CS_WHERE_USED_DOC_VIA_CLA        Bills of material; document use via classes                
    CS_WHERE_USED_KNO                Bills of material; use object dependency                   
    CS_WHERE_USED_MAT                Bills of material; where-used list                         
    CS_WHERE_USED_MAT_ANY:Bills of material; where-used list as article or class item
    CS_WHERE_USED_MAT_VIA_CLA        Bills of material; where-used list via classes             
    EXIT_SAPMC29M_001                BOM; Article Where-Used List   
    It appears that this structure is primarily used for where-used look-ups for components within the BOM.  I don't know if any of these are what you're in need of.
    Hope this helps,
    Mark Schwendinger

  • Query for BOM Allocations to Master Routes

    I just acquired Query Building permissions and the involved transactions in SAP-PP.  I have access to the sandbox (QAS) to build them before they go into production.  I have a good technical background but never built a query in SAP.  I should be able to catch on fairly quick.
    **I would like to create a query that reports which material numbers have BOM components that are/aren't allocated.  Is this possible where do I start?
    **Are there any threads in this forum that show good query information in regards to production versions, master routes, BOMs, etc. that someone can point me to?

    Hi Lucas,
    Sorry for the late reply. I was travelling yesterday. Was able to create your query in quickviewer.
    Table I used for Joining are as follows:
    Mast: Material to BOM Link
    STPO: BOM Item
    PLMZ: Allocation of BOM to operation
    PLPO: Task List - operation/activity
    Join Condition:
    MAST-STLNR to STPO-SLNR
    STPO-STLTY to PLMZ-STLTY
    STPO-STLNR to PLMZ-STLNR
    STPO-STLKN to PLMZ-ZUONR
    PLMZ-PLNTY to PLPO-PLNTY
    PLMZ-PLNNR to PLPO-PLNNR
    Selection Screen:
    Material Number: MAST-MATNR
    Plant: MAST-WERKS
    List Fields:
    Material Number: MAST-MATNR
    Plant: MAST-WERKS
    BOM Item Number: STPO-POSNR
    BOM Component: STPO-IDNRK
    Component Quantity: STPO-MENGE
    Component Unit: STPO-MEINS
    Operation Assignment: PLPO-VORNR
    I guess this will help you in getting your query set. In case you need to change the field you can do as per your requirement. As told earlier once you are ok with Quickviewer you can convert it to SAP Query from SQ01 transaction.
    Hope this helps you out.
    Best regards,
    Kiran

  • How to create group bom for multiple plants with different company codes

    Dear all,
    In my current scenario we have 5 Company codes with a plant with each company. The same kind of materials exist in all the 5 plants, so what i want is when i create any BOM, that BOM has to extend in all the company codes, as with GROUP BOM i can able to extend the same in only one company code.
    So how to do this?
    Thanks in Advance
    Bhushan

    For that first extend all the materials to all the plants... In one plant create a BOM for the material..
    In all other polants in CS01,   click COpy from .. There you mention the matreial and the plant in which the BOm is alerady available..
    karthick

  • How to see changes in all BOM" s under plant for a period ?

    Hi Gurus,
    i want to see the list BOM's which was changed with in period and the details of changes like Quanity and user names who have done the change.
    Regards,
    mahesh.

    HI Mangalraj,
    Thank You For the response, My Client Is asking For a report Where We can Get details Of BOM list under a plant which have Gone Under changes with in a specific Period. Plant level Of .
    Ex; in the plant 1111 we have some  200 no of  BOM s . some users have changed 30 different BOM in a Month. how can i get list of BOMs which gone under Change (Header and Item level) changes.
    i have taken  Plant wise BOM no and passed it to STPO and get the details , but in STKO the Fields are showing as CHANGEDBY, CHANGEDON,but i am not able find the changes happen.
    EX:  base quantity  of header material was changed from 1 to 2 by a abcd user in 01.01.2014.
    by using STKO we can see the user name and changed date but i am not able find the change details.
    Please help me how can i develop a report to extract data of BOM changes based on input of plant and date range.
    Thanks in Advance...........
    Regards,
    Mahesh.

  • Remove deleted BOM's from the report

    Hi Gurus,
    I have created a report for to display all the BOM items. the problem is it is displaying the deleated BOM's also. How can i identify these deleted items and remove it from not displaying it in my report. please give me some idea. I am using the tables mast,mara,makt,stas,stop,stko etc.,
    regards
    Syama

    Are you asking about deleted BOM components for a FERT ? or deleted FERTS?
    for finding only the active components for a FERT finished product, while selecting the items from STKO use the deletion indicator <> 'X' .
    For selecting only valid FERT materials you have to check the material status in MARC / MARA
    Mathews

  • OBXL Issue-How to remove GL Account allocated in OBXL?

    Hi,
    Using Transaction OBXL-I have added GL Account Number xxxxxxxxx in the coloumn showing Account.I want to remove the same.This is because additional commissions are getting posted in this GL Account when I am doing clearing using F-04.
    Need to remove the GL Account in OBXL.How to do the same?
    Thanks
    Vivek

    Select the GL by clicking the GL  and you can delete it by using the delete icon or edit > delete.
    Not sure what the whole requirement is but if you are not using a reason code for clearing differences and if the difference is within the tolerance limits the difference will be written off automatically to the non reason code specific GL. Once deleted you will have to use a reason code for the clearing difference otherwise system will give you an error.

  • How to delete a BOM?

    Hi,
    Could anyone please tell me how to delete a BOM and the transaction which we use please?.I need to drop or delete a complete BOM
    Thanks in advance.

    Hi Suresh,
    m in need of help pls read my below query .. & if possible pls mail the sample code. your help is greatly appreciated ...
    Create a program that removes BOM allocations to plants for a specified range of BOM materials and plants.
    The selection screen should contain the fields:
    Material number (from - to and multiple selection)      - entry should be required/mandatory
    Plant (from - to and multiple selection)
    BOM usage
    Alternative BOM
    The program should utilze the entered information.
    Then remove the BOM allocations specified in the selection screen.
    After the program run the should be a list displayed that contains the following information:
    All errors that have occured while deleting allocations
    All BOM - plant - BOM usage - Alternative BOM combinations where the allocation has been deleted.

  • For LUMF - BOM, Plant field in Sales Order should be editable for TAP

    Dear Gurus,
    I have the following requirement.
    Requirement...
    TheComponent level BOM (LUMF) should be exploded in sales order with one by default plant when iI enter the main component in Sales order but if I want to change the plant of main item manually system should allow me in order change mode. And this changed plant to be determined automatically for all the components of that BOM.
    As we know if we maintain the BOM at component level we will use the Itm Catg Grp "LUMF" so the pricing will be determined on the component level.
    In CS01 we maintain the BOM for a main item. I have followed the same process in CS01 by entering Main Item material, Plant and BOM usage (5). whenever i enter the main item in sales order it explodes correctly with components, quantity and Plant.
    The Plant field for main item (TAP itm Catg) becomes gray. But now my query is that if I want to change the plant of main item system is not allowing me as I have  created BOM for a specific Plant. Same Bom I have maintained with other plants also
    I know that We have one more option in CS01 like we can create a BOM without entering Plant also. But before I doing it for trial and error I want to know whether it will work for my latest requirement.
    And what is the Group BOM ? how to use it? will it be helpful me in this requirement?
    Please help me for the issue, I need to configure it as soon as possible.
    regards,
    Vojas

    Dear Kapil,
    Thanks for your suggestion i followed it also but yet I am facing the same problem.
    I did as follows
    I extended the Main item and components to the different plants.
    And also created the same BOM for different plants in CS01.
    After doing this if I create a Sales order and enter the Main Item with quantity system asks me for the Plant to explore the BOM, as i enter a plant BOM get explodes and the plant for main item becomes gray which i dont want. Any how I want the this plant field for main item in editable mode.
    Let me explain my requirement in short
    I maintain the LUMF BOM (Pricing at component level) .
    once I enter the BOM material with quantity system should explode the bom with one plant by default. and in change mode of sales order the Plant for main item should be editable instead of gray mode. Becoz decision can be changed later on the delivering plant location.
    Please suggest me. Its a high priority issue for me.
    regards,
    Vojas

  • Product Allocation: Removing a Material from Product Allocation

    Hey folks! 
    I am new to the forums, so hopefully some of you sharks will bite on this one.  I work for a consumer products company and we're having issues with product allocations.
    We have had a material on product allocation for the past 3 months.  We used a allocation rule that is modeled off of the S140 rule on the basic data of the material view.  However, our production has now ramped up sufficiently to produce this product and provide normally. 
    1) How do we remove the material from product allocation?
    We deleted the rule from the basic data view, but is there anything else we need to do?  There are many remaining open sales orders that get the error "No Feature Combination exists for this selection error".  I have ran rescheduling (V_V2) and have also ran the SDRQCR21 to rebuild requirements, but it still remains with this error.
    2) Is there something we have to do with the infostructures?  Something we have to do in MC64 or MC94? 
    3) Do we need to go through each sales order and delete the line item and replace the line item to get the normal ATP to function (we would rather not do this as we have EDI information connected to each line item)
    4) Is there another report out there I need to run that I just do not know about?
    Any help would be great.  We are on ECC5.0 Hotpack 15.  I will reward points if I can figure out how to.

    Use MC94 to remove the quantities allocated.
    Use MC62 to remove the planning hierarchy.
    I believe that in your situation MC94 will work.

  • How to see no of boms in plant

    how to see no of boms in plant

    Hi,
    Goto SE16 ,Give table name STKO(BOM header details)
    Give the details that you need. I mean give the plant for which you need to know the BOMs, execute it.
    If you want to know only BOMs for that perticular plant SE16>STKO>Settings>List format> Choose fields-->Choose plant and BOM.
    Then execute, you will get the all BOM for that plant.
    If you want only No. of BOMs choose no. of entries
    Thanks
    Raja
    Edited by: Raja on Oct 3, 2008 8:22 AM

  • Is BOM required in both plants in strock transfer scenario

    Dear SAP Gurus,
    In Make to Order Scenario,  Plant1 is Process Plant and Plant 2 is Sales Plant. 
    Actually Customer place the order from Plant2,  Material require Sales BOM,  how do we transfer the stock from Plant1 to Plant2.
    In Plant2 client only maintain Finished Goods.
    do we have to maintain the BOM componets in Plant2 also. 
    very urgent,
    thanks in advance,
    Sathya..............

    Hi Sathya,
               1.You are telling that sales BOM is required and sales is happening in the plant 2, so you need to main tain the sales BOM in the plant 2 only.
    2. You are manufacturing at Plant 1 then you are sending the goods to the plant2 through STO right,here maintaining the BOM depends upon you, If you are sending the material as components to plant2 there is no need of BOM,or If you are planning to send the material with the combination of components then you require BOM same as Plant2
    I hope it will help you
    Thanks,
    Murali.

Maybe you are looking for