Material Determination during order change

Hi,
There is a requirement to trigger Material Determination when a flag gets set on the sales order line item (VBPA). Basically if the flag value on the sales order line item changes via BAPI or VA02 then the material A needs to be swapped with material B. I know that material determination works at the time of order creation or at the time of addition of a line item to an order, does anyone have any experience with this kind of a requirement of material determination trigger during VA02, please share it.
I have been trying to figure out program MV45AFZZ to look for a user exit but not been able to figure out as yet. I also feel that FM PRODUCT_SUBSTITUTION will need to called through one of these user exits, its just which user exit?

Well I had got a solution to this problem and happened to login today so posting it now:
We can make the change in MV45AFIZZ which is screen exit. Flip the material here and everything else gets re-determined.

Similar Messages

  • Determine Sales Order change (ECC6.0 using Enhancement-point)

    Hi all,
    I want to determine Sales Order change e.g. if any item added to sales order or any item deleted fron sales order and also if Sales Order is deleted .... how can I achive this???
    I am using ECC6.0 , in which I am using Include          MV45AFZZ and FORM USEREXIT_SAVE_DOCUMENT to determine change at SAVE. The table XVBAK and structure VBAP is available but from this I am not able to determine the change.
    How to do this..?
    Regards,
    NiLesH.

    Hi Nilesh,
    Please see USEREXIT_SAVE_DOCUMENT_PREPARE instead of the one you are using in the Include MV45AFZZ.
    SAP comments this customer form as:
    * This userexit can be used for changes or checks, before
    * a document is saved.                                           
    * If field T180-TRTYP contents 'H', the document will be  
    * created, else it will be changed. This form is called at the
    * beginning of form BELEG_SICHERN
    For the deletion, try to code your check in the form USEREXIT_DELETE_DOCUMENT in the Include MV45AFZZ provided for the customers.
    I feel these would be more suited for your requirement.
    Cheers,
    Sougata.
    You can use tables CDHDR/CDPOS for change documents but on a large scale reporting this would be very slow.
    Alternatively, for performance reasons, you can use the form USEREXIT_READ_DOCUMENT to capture the sales order at its original state (in an internal table) then use form USEREXIT_CHECK_VBAP for any changes made while in the sales order create. Then in USEREXIT_SAVE_DOCUMENT, compare the previous and current condition values. If any changes exist, insert a row in a custom table with the change information. At the end you can base your report on your custom table rather than change document tables which will be slow on processing large volume of data.
    Note: Go the user-exit way only if you are dealing with high volume of data
    Edited by: Sougata Chatterjee on Jan 1, 2008 11:38 PM
    Added after considering Ranjith's post

  • Automatic batch determination during order confirmation

    Dear experts,
    We have defined automatic batch determination using stock determination (OPJ2, for plant/order type, operation 3, check column BD).
    This works fine, only problem is that now both backflushed and non-backflushed materials get batches assigned, but for the non-backflushed we do not want this.
    Does anybody have an idea how to achieve this?
    Edited by: ton teuns on Jun 8, 2011 9:01 AM

    Dear Ton,
    As you have mentioned non-backflushed materials,it means the backflush indicator is not set in the material master or else in
    the work center or in the production order.
    So assuming the indicator is not how are you able to see these components during the order confirmation?
    So first remove the backflush indicator so that it means those components are manually issued and check these threads to
    explore more,
    Automatic batch determination during goods issue
    Regards
    Mangalraj.S

  • Material Division during order entry

    We have the Header Division set to Active in configuration and have all divisions, including the material divisions, defined in CRM.  In our SD system, we set the configuration to not use the material division as this is being used for another purpose.  During order entry in CRM, specifically in the IC, we are getting an error message that the material division doesn't exist.  Is there any way to configure CRM to not use the material division?

    Hi Seguin,
    CRM configuration supports only for header division. There is no configuration for material division as far as I remember. Looks like a custom development
    <b>Reward if helps</b>
    Regards,
    Paul Kondaveeti

  • Partner Field Mandatory during Order change

    Hi,
    Can u pls suggest me as to how to make the "Partner" field mandatory during the change of Maintenance order (ie IW32). I tried Field selection for Order Header Data(PM) but the Field name "partner" is not appearing there. Kindly suggest me the way out.

    You mighht have to work with your developer to find an appropraite user exit then!

  • Material determination during goods movement

    Hi Guys,
    I am using the BAPI 'BAPI_GOODSMVT_CREATE' to create goods movement. And I want to check the material availability and execute the material determination based on atp check results also. Does this BAPI implicitly handles material determination based on ATP? OR should I write the logic to the material determination explicitly before calling this BAPI?
    Regards,
    Rahul

    As Jurgen has mentioned, material substitution is a part of SD and has to achieved prior to the goods movement BAPI.
    Have a look at FMs for the material substitution logic:
    RV_MAT_SUB_SAVE
    RV_KONDITION_SICHERN
    RV_KONDITION_SICHERN_V13A
    is there any BAPI or Function Module for Materi... | SCN

  • Material determination Vs Product selection

    Hi
    What is the difference between Material determination and Product selection ?
    Regards
    Mahesh

    Hello Mahesh,
    <b>Material determination or Product selection</b>
    1.     Material determination <b>(sometimes referred to as product selection)</b> is a method in SAP-SD to substitute or swap one material in the sales order for another using the condition technique and is triggered by the material entered in the line item of the sales order. Material determination can also use a pop-up window with a number of products the user can choose from the list.
    2.     Material determination can be automatic or manual and is used
         When an old product is becoming obsolete (outdated) and the business is releasing a new product in its place starting from a specific date. In this case the old item gets automatically replaced by the new item in the sales order.
         You may configure the system to automatically to swap one material for a number of other materials, the one material being determined based on which one is available.
         It is also possible to swap the material for a number of materials, where the user is presented to choose from the list.
         Material determination is specifically useful should you wish to swap your customer’s part number automatically for your own at the time of the sales order.
    <b>The functionality of manual and automatic product selection is available during material determination.</b>
    a.     Reason for substitution 0005: manual product selection (list of default values)
    b.     Reason for substitution 0004 & 0006: automatic product selection (depends on product availability in order and delivery)
    In manual product selection (0005), the system does not automatically replace the product. Instead, it displays a list of all the substitution materials and other information in the master record doing the availability check such as quantity available that can be confirmed on the customers requested delivery date and if the full quantity cannot be met, the system proposes a new date on which the material can be completely delivered. You can then select the required material from the list.
    During automatic product selection (0004 & 0006) the system replaces the entered material automatically if it is not available. When you enter an order, the system tries to fill the quantity of the order with the first material in the material determination master record. If there is no enough quantity available then it fills the remaining quantity with the next material.
    You can choose whether or not to run the material determination during the delivery process for the same material, as the result of the substitution may change due to the new availability situation of the material.
    <b>Reward if helps</b>
    Regards
    Sai

  • Material availability on order creation

    Hi Experts,
                    In OPJK for availability check during creation under "material availabilty" tab i have maintained checking rule PP, collect. conversion 3 (no creation if material missing) and checked box "check availability while saving".
                                 For availability check during release under "material availabilty" tab i have maintained checking rule 01 and release material 1 (user decides if parts are missing) and checked no other box.
                     But on order creation, inspite of material shortage scheduling is taking place. Only on trying to release material shortage is being shown. How to ensure that during creation itself user gets the option to decide if order is to be created in spite of shortage ?
    Regards

    Hi,
    I have maintained following settings in the system, system gives a information Message during order creation and system is rejecting the order release because of the missing parts.
    1: Availability Check during order creation:
        No check - unselected.
        material availability during order save - checked
        checking rule - (anyone) PP 
        Check type - atp
        collective conversion - (any)
    2: Availability check during order release:
        No Check - unselected
        Status check - unselected
        material availability during order save - checked
        Checking rule - (anyone) 01
        Check type - atp
        Release material - no release if parts missing
       With this settings you should get the warning message " Order has missing parts" (CO292)
    This is just a information message
       If you try to release the order, it will get rejected because of the missing parts ( check the logs, again system will show the missing parts as information message only (CO281))
      It is possible to save the order. If you want to check the missing parts click on the materials button to see the missing parts list.
    Hope this will be helpful to you.
    Pavan

  • In DP50 Error during material determination for service order

    Hi,
    While doing Resources-Related Billing request,the following error is displaying..
    Kindly Help
    Error during material determination for service order
    Message no. AD01156
    Diagnosis
    An error occured during material determination for a dynamic item.
    System Response
    The system cannot perform the function.
    Procedure
    Check in the profile being used whether its characteristic allows the assignment of a material to each dynamic item.
    501384
    Message no. AD01156
    Diagnosis
    An error occured during material determination for a dynamic item.
    System Response
    The system cannot perform the function.
    Procedure
    Check in the profile being used whether its characteristic allows the assignment of a material to each dynamic item.
    Thanks,
    Mohit

    Hi mohit,
    You need to check DIP profile setting if profile is attached to your order type or not please check this
    Thanks and regards
    Sachin Kadam

  • Batch determination during process order release

    Dear Experts,
    I am facing a problem, and not able to figure out the reason. There is material having base unit as 'EA' and Issue unit as 'NO' and conversion is 10 NO= 1 EA. The same material is maintained in the BOM as 1 NO. At the time of creation of process order, system is copying the same quantity in the process order (1NO). When I release the process order, the batch determination is happening. Now the issue comes, instead of doing batch determination of 1 NO, system is doing batch determination for 1 EA (which is equivalent to 10 NO.!). Can anyone help me to find out the reason for same.
    Thank you.
    Sagar

    Dear Mohit,
    If you want to go for external batch numbering during order release then
    - Set no automatic Batch creation in order in T.Code CORY.
    This setting only restrict the automatic Batch Creation in order only.But to fulfill second your requirement of restricting order release or save without assigning external batch no you have to either go for,
    - User exit.Below are the user exits which are trigger at the time of order saving
    PPCO0006 to predefine entries for order header fields when
    an order
    PPCO0001 to provide information at the time of saving (for
    production orders and process orders)
    PPCO0007 to check or change header data when saving
    or
    - Create screen variant using T.code SHD0 and make Batch Field compulsory.
    Regards,
    Dhaval

  • Material Determination error during Transaction DP90

    Dear Experts,
    I am configuring the Depot Repair scenario for a Hitech Industry.
    The Process is as follows;
    1. Ceating the  Notification
    2. Creating a repair order using Notificaion. and getting the repaired items in to the plant
    3. Creaing and confirming the service order and delivering the repaired product to the customer.
    4. Creating a Billing Request using service order during transaction DP90.
    I am facing the following error!!! -
    Material Determination error in the service order line item xxxxx/xx!!!!!!
    I have configured the DIP Profile YBR00099 as below.
    The characteristics Activity Number, Activity Type and Cost Elemnt were given the Material Determination Check.
    The source is---- " Actual Costs and Line Items " with 100 Percent, No sets are used for the source characteristics.
    In the Material Determination a Blank Item is used with a Check for the field " Material Direct"
    In the Material Determination Criteria for the Blank Material, it is configured as below;
    Activity Type            No Set Used - No Value used
    Activity NUmber        No Set Used - No Value used
    Cost Element           YBR-Material-01(Set values are 608110 and   * )
    Note : the above configuration was done using the Config guide AS IS.
    The material that was used in the Service order is not maintained in the  ODP1 transaction ---> Material Determination.. instead ,only a blank material is used and configured as above.
    The subsequent Process should continue as follows;
    5. After saving the billing request, two more line items are determined in the repair order.
    6. Debit memo is created using the repair order. where the Actual confirmed hours of service and spare parts confirmed if any are billed for the customer.
    Basically I am very much new to this RRB concept and I was facing the above error and could n't be able to proceed further.
    Please help me in this regard.
    BadariNath .G
    Answerthink India Limited, Hyd
    9989425075

    Material Determination error in the service order line item
    Check note 460415 and 545095
    thanks
    G. Lakshmipathi

  • PPCO0007 User Exit for  Changing Header Fields During Order  (CO40)

    .. Hi !!!!
      I need your help or suggestions,
      I need to change the standar order  before to save, i found the user exit PPCO0007,
      i assign the new value for the order, but when finish the fuction, EXIT_SAPLCOZV_001, the new values are
      lost, and finally the system set the standard order.
        Someona know how can change the order and the the batch.
         Thanks
    Noemí Huerta

    Hi Noemi
    You can use the enchancement PPCO0007 (exit when the production order is saved).
    Use the function module EXIT_SAPLCOZV_001 (User Exit for Checking or Changing Header Fields During Order Save) to update the field priority starting the information in the material-customer info record.

  • Automatic Batch Determination during Goods issue of Production Order

    Hi,
    Iam trying to set up automatic batch determination during Goods Issue against a production order. My requirement is system should automatically run the batch determination similar to the case in production order.
    I have set up all the required configs for batch determination. But to get the batch I need to click on the batch determination button. What I need is without clicking on anything. How can I do this. Whats the config needed
    Thanks and Regards
    Enrico

    Dear Enrico
    It is required lot of set up both in production order parameters and Batch Managemnet .I am providing you a summery of it .
    Configuration Required for your above issue are as follows :
    1.Activated Batch Management in the Material Master-MRP2 view and Work Scheduling view of the FG
    2.check material master MM02, tab MRP2 and set field "Batch Entry" to value 3 here
    4.You maintain a Search Procedure in OPL8 - Order Type Dependent parameters .Before that you should have Batch serach strategy :The sequence of steps are as follows -
    Create Condition Tables
    Create Access Sequences
    Create Strategy Types
    Batch Search procedure definition
    Batch Search procedure allocation and check activation
    Define Selection classes
    Define sort rules
    Maintain Batch Allocation Strategy Number Ranges
    All the above are available in the Path - SPRO --->Logistics-General ---> Batch Management ---> Batch Determination and Batch Check
    5.Maintain the setting in T.code OPKP (production scheduling profile). Select automatic batch creation on order creation.
    6.If u want to execute the batch determination for components in the component overview of production order , then u have to create batch search strategy at COB1
    7.If u want to execute during order confirmation u have to create batch search strategy at MBC1.
    Refer the below link for your farther reference :
    http://help.sap.com/saphelp_47x200/helpdata/en/25/28428b4f7811d18a150000e816ae6e/frameset.htm
    Hope this will be useful
    Regards
    JH
    Edited by: Jiaul Haque on Jun 22, 2010 11:28 PM

  • Capture re pricing during order creation/change

    Hi,
    I have to differentiate between standard pricing and re-pricing ( when user has pressed update button on the conditions tab ) in a sales order.
    How and where can i get this information during order creation / change.
    Thanks for your replies.
    Abhishek

    hi,
    KALSM is the pricing procedure and it will be same for the document during creation and re-pricing, how dose it help in determining if user pressed update button.
    Thanks,
    Abhishek

  • Error Message "error during material determination"

    Hello Gurus
    My end user reversed transaction DP90...the reversal took place with a goods issue still being shown (reversal of goods issue was not done).  When trying to run the DP90 again...I get this message
    I am receiving this error when running DP90. for character. combination w/o mat assign in DIP profile ZXXXXX
    It gives the cost element and the cost center....I have found the source document, but not sure where the source document is located in the process or if I need to do soemthing with the source document....I see the source document number and it is associated with a name of someone in finance.  There is not any invoice on this.
    I have looked on the forums and see where it mentions different notes, to check the config in material determination...but it worked before the reversal was done and other orders work with the same material.
    I am unsure that the config needs to be changed (transaction ODP1) as it works for others....same material
    Please advise what I need to troubleshoot or if maybe I do need one of the many notes that the forum has mentioned.  The notes atre 301117,438282, and 460415

    Yes my order type (repair order) is under the sales document type with warranty indicator selected and the DL w/material is not selected...looking at the help on this indicator it states "If the indicator is not set (the default setting), an error message appears if you try to process a dynamic material that has no material number"....could this be my issue?

Maybe you are looking for