Material substitution management (1:n)

Dear All,
I need to manage a material substitution 1:n (e.g. material A has to be substituted from B + C + D).
The solutions analysed are:
1) manage a SET material (Z(1PC) = B(1PC) + C(2PC) + D(1PC)) and setup the substitution A(5PC) -> Z = B(5PC) + C(10PC) + D(5PC)
PROBLEM: in this way I cannot manage the partial qty: in case of 100 PC ordered of material A and 80 PC available of material A I should have:
mat A: 80PC
mat B: 20PC
mat C: 40PC
mat D: 20PC
2) try to add new items during the sales order creation/change
PROBLEM: I try to do some test in the user exit and it seems there are so much risk; really it is not possible to do it?
Thanks in advance
Best regards.
Elena.

I would not add new items/materials in userexit.
We used a special program written to split original item (like keep just delivered portion or you can keep qty = confirmed qty), add new item (it can be BOM like your Z material) for the remaining qty. You can copy other info from the original item (if it was changed from default, like texts for example). In this case you can build any logic you want and don't have to maintain these substitution rules.

Similar Messages

  • Cogi Errors due to Material Substitution

    Hello,
    In plant 0162 we have cogi errors that I can not explain. It is related to material substition and BOM changes.the COGI error comes from the component material 10085940 in order 100239889. this material 10085940 was set for material substitution for material 10007152 on September 7, 2008 effective when i refer to BOM but the production order was created this august.why do we have this COGI error? we have 10007152 in house and none of the 10085940 material please answer and explain why this happen?
    More thanks,
    Ryan

    Hi,
    Where could i see this percentage for this in BOM? i have noticed in the production order compenet overview of my material the two material was there already both backflushing indicator was check, discontinuation column was populated on both material = 1 (simple discontinuation - maintain in master record). could this be a factor? why does my production order pick both this two material in its BOM 10085940 will be effective on 07.09.2008 this is weird and problematic to us.
    Please advice what happen and fixed this one my cogi error said enter storage location for this 10085940 component.
    and in CS03 when i look at the BOM:
    10074921 (valid fr) 14.05.2008 (valid to) 07.09.2008 (change # 500001258 (change # to) 500001311
    10085940 (valid fr) 07.09.2008 (valid to) 31.12.9999 (change # 500001311 (change # to ) blank
    Please any help with this one for me to resolve this issue expert. please
    Thanks
    Ryan
    Edited by: Ryan Lazaro on Aug 22, 2008 10:22 AM
    Edited by: Ryan Lazaro on Aug 26, 2008 4:30 AM

  • Need a user exit before material substitution executes in VA01, 02

    My client has a unique need in SAP AFS.  When entering an order, they have material substituion turned on and they want it to always execute.  The problem is that we have a custom FM that must execute prior to material substitution - it will determine the material first and then material substitiion should use THAT material to detemine if it needs to substitue a material/grid.  I have put break points in every exit I could find in the SAPMV45A exits.  The one I would normally use is in MV45AFZZ for changes for VBAP, VBEP, etc. - but no matter what exit I put a break in for debugging (to see when it is called during order entry) - material substituion always executes first.  yes, the exit for VBAK executes prior to material substition but that is at the header - I need the order lines.  Also note that we are talking about the UPC/EAN tab - we are entering a UPC code and that gets the material/grids we need - this is not on the normal order line screen.
    Does anyone have any ideas?
    As always - points for helpful answers.
    Thanks.
    Scott

    Only solution was a repair to SAP, so we found way for standard SAP to handle it.

  • Need to bypass Material substitution rule for SO created through RFC

    Hello SAP Geniuses,
    I have an external process that creates Sales orders using a RFC calling BAPI_SALESORDER_CREATEFROMDAT2.
    My Users want to create orders for Materials that have substitution rules defined, but they want to bypass these rules when the Sales Orders are created from the external process. Other Users in the same Sales Organization and Distribution Channel need the substitution rule to sell these materials, so config cannot solve this.
    I have already tried detecting when  VBAP-MATNR NE VBAP-MATWA  and calling BAPI_SALESORDER_CHANGE with the original MATNR, but the same substitution occurs in this FM.
    Can anyone point me to a User Exit or BADI that can add flexibility to the Material Substitution mechanism in SD module?

    Jack,
    You are a genius!
    These are the steps I followed to implement this idea:
    1) VOFM -> Requirements -> Material determination -> New rule in the 800 series
    2) Insert code into rule with SSCR key; Activate code; Activate rule.
    3) Run utility program RV80HGEN to create rule in FG V61D -> SAPLV61D -> LV61DNNN -> RV61DNNN -> RV61D8xx
    4) SPRO-> Sales and Distribution -> Basic Functions -> Maintain Prerequisites for Material Determination -> Maintain procedure -> select procedure -> double-click "Control data" -> enter rule into box "Requiremnt". Save.
    5) SPRO-> Sales and Distribution -> Basic Functions -> Assign Procedures To Sales Document Types -> select doc type of interest -> enter procedure name into field "MatDeterm." for doc type. Save.

  • Warning message for material substitution in ERP E-commerce

    Hi Gurus,
    We are implementing SAP ERP E-commerce with TREX, ECC 6.0 backend.
    Automatic material substitution is working in ECC. The material is also dispalying a warining message before substitution.
    In B2B shop the substituion works - material X is replaced with matereial y but there is no warning message during substituion.
    I believe matereial substituion in E-commerce is standard funtionality and it should work as configured in ECC for VA01.
    Any susgestion why there is no dispaly of any message during matereial sub in E-commerce.
    Thank you

    Hi Ram,
    What type of messags can be displayed on ECO ERP can be configured via XCM "UI" component. By default only error messages are displayed, You can create a customer component with message  severity set to 'Warning" / "info" as required. After this all the messages raised by the Standard BAPIs are displayed on the basket.
    However you need to be careful what severity level you want to use as apart from the message that you require, lot of other messages might also be displayed on the basket.
    Regards
    Roopali

  • Material Substitution List in VA01

    Hi,
    In VA01 I would like to create Material Substitution. Could someone tell me how do we do it. Any kind of inputs are highly appreciated.
    Thanks & Regards,
    ABAP'er

    Hi,
    The first step is to visit transaction SPRO -> Sales and Distribution -> Basic Functions -> Material Determination.  If you expand the Material Determination branch, you should see three IMG activities: (1) Maintain Prerequisites for Material Determination (several configuration steps), (2)Assign Procedures To Sales Document Types (specify a material determination procedure for the sales document types for which you want to carry out material determination), and (3)Define Substitution Reasons (specify additional control parameters and system responses for each substitution reason).
    There is detailed information for each of these IMG activities in transaction SPRO.  Just click the little sheet of paper next to each IMG activity.
    Normally I would think that the SD functional consultant would perform these configuration steps.  Note that http://help.sap.com also has information on this topic.
    Cheers,
    James

  • Reg: Material change Management.

    Dear Friends,
    can i get some information about Material change management.
    Please let me know..
    thanks in advance.

    Hi,
    Pl go through the sap help... will get deatail idea.
    [http://help.sap.com/erp2005_ehp_04/helpdata/en/d8/731cab4b7511d1894b0000e8323c4f/frameset.htm]

  • Problem with Material Substitution

    Hi Guys,
    In VB12, we set the order reason to something that will make the substitute material as a sub-item. Then we create the SO via VA01, and the subtitute material is correct to be in the sub-item.
    We have changed the order reason of material determination from something that makes the substitute material as a sub-item to something that makes it automatically replaced. Meaning, no sub-item, instead, the substitute will replace the original material in SO line item.
    We change the qty of SO created via VA01 but the original material was not replaced with the substitute material, instead the sub-item has been removed and the original material is maintained in the line item. We are expecting that since the order reason in material determination has been changed, the material number should also be automatically replaced when we do VA02.
    Thanks.

    Hi Freishz,
    Please go to configuration from SD >> basic functions >> material determination >> define substitution reasons. Reason needed to define in creation material determination from VB12 should be should be deined as below:
    -warning should be ticked,
    -strategy should be selected as automatic,
    -outcome should be defined as B.
    I hope these will help you on this issue.
    Thanks,

  • Material substitution with BAPI_SALESORDER_CREATEFROMDAT2

    Hi, I'm creating sales orders with BAPI_SALESORDER_CREATEFROMDAT2 in background, I have some materials that have substitutes, but when I use the bapi, the material is does not change. When I create the sales order manually in the VA01, the material is replaced.
    thanks.

    It should behave exactly the same. Usually when you run something online, there are certain fields that get defaulted and you will not notice. But when you call the BAPI, you have to pass those default values as well so that you will see the same result. You will have try it out in a couple of different ways and also debug the code where it decides whether or not substitution allowed and you can trace it back to the value that is missing.

  • Tracking of Changes in Material Determination type or Material Substitution

    Hi Gurus,
    Can anybody suggest how to keep track of the changes made in VB11/VB12/VB13 which is for Material Determination type Maintenance?
    Is there any TCODE or tables for tracking the above changes??
    Thanks in advance
    VIJAYB.

    material determination is based on custom condition tables, that are created like one creates tables for pricing or message determination.
    Because of this, SAP cannot know that it has to track changes.
    You have to activate change records yourself.
    Go SE11, enter the table name of your substitution, then click the button for technical settings. in the lower part of the screen you will see a box that need to be flagged if you want log changes.

  • Material substitution

    Hello,
    I am just writing an essay at university about lot sizing models with product substitution and thereby want to give a short look at the possibilities in SAP.
    I already found some topics in the SAP Help Portal concerning giving a customer a substitution product when the preferred one is out of stock. What I could not find is wether it is possible to substitute components/ materials in the production process. That means if SAP (perhaps APO PP?) can choose the cheapest component according to given setup cost and per unit production and substitution/conversion costs. E.g. using other available half-finished products that need more conversion but that avoid setting up the prefererd half-finished product, so that the total costs are minimized.
    I hope you understand my problem and someone can help me. Thanks in advance.
    Kind regards,
    Kari

    Hi YM REDDY,
    thanks for your answer and for your offer for further help. There are still some points that are not clear to me.
    to 1) I couldn't find anything about "alt. item group" concerning substitution. Could you perhaps send me a link about that? Of course only if you know where to look for, so it doesn't take you too much time.
    to 2) on http://help.sap.com/saphelp_erp2005vp/helpdata/en/ea/e9b3f84c7211d189520000e829fbbd/frameset.htm
    it is said
    "You can define discontinuation data for the following item categories
    -stock item
    -variable-size item"
    I suppose stock item means that a substitute is used when the preferred component is out of stock. Do you know what case "variable-size item" is for?
    Apart from that, there are two more things. In your answer you mentioned "comparison costs". Is this the difference in costs between using one component or another? What decisions depend on these costs, is it just setting the price of the product or even planning the production with either one or another component?
    At last there are the substitution rules. Are there given rules you can choose of, or do you have to set any boolean rules by yourself? Are there further rules than "is there enough material available? yes/no" or "does the customer accept the properties of the substitute? y/n" to make SAP choose a substitution component?
    I know these are a lot of questions. So I would already be glad, if you just answer the ones, that you don't need to look up. Thanks very much.
    Kari

  • Material Batch Management

    HI All:
      when I creat batch for a material use "msc1n", it remind me of:
    "If you want to create batches for this particular material, you must first set the indicator that specifies that the material is to be managed in batches in the material master record.
    and where to set the indicator ?
    and which configration is related?
    Any help will be appreciated
    Cynthia Yu

    In material master(mm02) either in Workscheduling view or Purchasing View you have to Check the check box for Batch Management.
    After then system will allow you the create the batch in msc1.

  • Material batch managed or not

    Hi,
        How to findout a material is batch managed or not.

    hi,
    Batch managed and SLED materials
    thanks

  • Lock material and manage language

    hi
    1- What is the transaction that can lock a lot of materials in the same time?
    2- when i creat a purchase requisition, the followin message display :
    "No designation in french, complete material "
    so, how we can manage the language for a given material?
    best regards

    Hi
    Goto, T.Code: MM06....there you can Lock your material as per your required level....
    To maintain French Language for your Material.....Goto   MM02 -
    > Additional data -
    > languages -
    > There you can maintain the language...
    Reward if useful
    Regards
    S.Baskaran

  • Material wh management

    I had a material with no warehouse management. Then, I have added a warehouse to that material.
    How to remove the wh management to this material in order to be in the intial status?
    Alb.

    HI
    U have to delete assignement for warehouse management.
    regards

Maybe you are looking for

  • Satellite M645 - How to reset the touch buttons?

    Hello everyone. I have a Satellite M645 with Windows 7 / 64 bit and recently some of the touch buttons have stopped working. These include the eco utilities, wireless, lighting, play/pause, mute and touch pad on/off button. Strangely the volume up an

  • Tried opening iTunes but keep getting Error 7 (Windows error 1114)

    Tried to open iTunes and cannot ~ error 7 (Windows error 1114) not installed properly. Do I uninstall and re-install? Will I lose my library?

  • Dynamic Insertion of graphics in Smart from

    Hi guys, I want to insert a dynamic graphic image from the presentation server into smart from its possible? Reg, Hriharan

  • Accessing existing iWeb site via second computer

    My iWeb / Mobile me/ website was created and is maintained on my Macbook but I need to now update it from my office iMac machine. I can find no menu option or path that allows me to access my site from the iWeb application on the iMac - how is this d

  • Mkfs.ntfs crashes the system

    Hi all, Here I am again with a weird kernel & swap bugs! But I'm pretty sure the kernel itself is okay, so newbie corner it is. Here the problem: Doing this (/dev/sdb is a 16 GB USB key I want to format) % sudo mkfs.ntfs /dev/sdb1 Cluster size has be