Order type validation on the basis of plant

hi
I am a Functional consultant and i have a requirement where the sales order type 'AUART ='ZAOR"  should be valid for plant 1000 only and it should return with an error message if the plant is other than 1000.
Kindly help in the logic.
Is it like VBAK-AUART="ZAOR" and VBKD-WERKS='1000' then only the user can create a order if not a error message
regards
prashanth sphoorthi

Hi sphoorthi,
At what moment exactly do you want to check this?
You don't enter the plant in VA01 initial screen, so you can't check immediately, right?
If you want to check it when saving you can use for example userexit MV45AFZZ, FORM userexit_save_document_prepare. You will have to loop all item to check each plant.
Hope this helps,
Rui Dantas

Similar Messages

  • Service/maintenance order type SM01 not completely maintained in plant 1001

    Dear All,
    Am trying to configure Service Management where there is a scenario in which , when the user creates a Sales order for a installation item say TV or Fridge, automatically Service order has to be generated.
    I have checked all the item Category Settings but am getting an error
    Service/maintenance order type SM01 not completely maintained in plant 1001
    Message no. IW216
    Diagnosis
    For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
    Procedure
    A check control must be maintained for this combination of order type and plant.
    Can anyone throw some light on this as i know you would have faced this problem.
    Satish

    Nothing

  • Service/maintenance order type SM03 not completely maintained in plant 1000

    Dear experts,
    when I use T-code:iw31 create a service order,It show the following error message:
    Service/maintenance order type SM03 not completely maintained in plant 1000
    Message no. IW216
    Diagnosis
    For the selected order type and plant, no check control is maintained in Plant Maintenance/Service in 'Availability Check for Materials, PRTs and Capacities'.
    Procedure
    A check control must be maintained for this combination of order type and plant.
    Best regards,
    Lance

    Hello,
    Go to SPRO --> Plant Maintenance & CS --> Maintenance and Service Processing --> Maintenance and Service Orders --> Assign order types to maintenance plants.
    Maintain the order type SM03 against the plant.
    Go to SPRO --> Plant Maintenance & CS --> Maintenance and Service Processing --> Maintenance and Service Orders --> Completion confirmations --> Define the parameters for completion confirmations.
    These both should be done, try to raise the SM03 order now.
    PRase

  • Service/Maintenace Order type ZMSO not completely maintained for plant SE50

    Hi All,
    Am trying to create a Service Order with T.Code IW31 and after entering the order type, priority, Llyods code, Plant and Bus.Area and press enter I got error " Service/Maintenace Order type ZMSO not completely maintained for plant SE50 "
    Diagnosis:
    For the selected order type and plant, no check control is maintained in
    Plant Maintenance/Service in 'Availability Check for Materials, PRTs and
    Capacities'.
    Procedure
    A check control must be maintained for this combination of order type
    and plant.
    Please suggest me what should I do in this case as my knowledge in CS is zero.
    Awaiting your replies,
    Thanks in advance,
    Regards,
    Anil.

    Hi Anilku,
    Go to SPRO --> Plant Maintenance & CS --> Maintenance and Service Processing --> Maintenance and Service Orders --> Assign order types to maintenance plants.
    Maintain the order type ZMSO against the plant.
    Go to SPRO --> Plant Maintenance & CS --> Maintenance and Service Processing --> Maintenance and Service Orders --> Completion confirmations --> Define the parameters for completion confirmations.
    Thanks,
    Swamy H P

  • How to order CM25 profile on the basis of a field values?

    Hi,
    I'd like to order a capacity planning table on the basis of values (decreasing) of the field USR02, that is already present in the table. Where could I set that records must be shown in that order? I attach a screenshot to explain you better my scenario
    Thank you.
    Angelo

    Hi Angelo,
    Try to use t-code OPDT and define a sort criteria profile with field USR02, after that assign the sort profile into your list profile (With t-code OPD0). Hope it can help you!
    Best regards
    Tao

  • Order type while converting the planned order to prodcution order

    Hi All,
    While converting planned orders to production orders, it is always creating the production order with same order type. Can I change the order type?
    Is there any configuration settings for it??
    Thank you.
    Anil

    Anil,
    If you want to have different order types for different materials then you can define that in transaction OPPR for MRP Groups - Planned order conversion section and assign this MRP group to the relavant materials in Material Master MRP1 view.
    If you are looking at having different order types for a material based on MTS or MTO scenario, then please assign the different order types for the process in Production scheduling profile through transaction OPKP and then assign this profile to material master- work scheduling view.
    Regards,
    Prasobh

  • Having an inherited function return the derived type instead of the base type

    I am writing two classes in C#:
    A Matrix class
    that represents a general Matrix with n-by-m dimensions
    A SquareMatrix class
    that inherits from Matrix and
    has the constraint of being n-by-n
    The reason I designed it this way is because square matrices support additional specific operations like calculating the determinant or the inverse, so being able to guarantee that those functions are avaliable with the specific type you're using are nice things
    to have. Additionally it would support all the regular Matrix operations and can be used as a Matrix
    I have a function in Matrix called getTranspose().
    It calculates the transpose of the Matrix and returns it as a new Matrix
    I inherited it in SquareMatrix,
    but because the transpose of a square matrix is guaranteed to be square matrix, I also want it to return a SquareMatrix
    I am unsure about the best way to do this.
    I can re-implement the function in SquareMatrix,
    but that would be code duplication because it's essentially the same calculation
    I can use implicit typecast operators, but if I understand correctly that would cause unnecessary allocations (upcast SquareMatrix to Matrix,
    create a new Matrix as
    the transpose, create a new SquareMatrix during
    typecasting and throw away the tranposed Matrix)
    I can use explicit typecast operators, but it would be stupid to have to typecast the transpose of a SquareMatrix explicitly,
    and it also has the same problem of the implicit operator with unnecessary allocations
    Is there another option? Should I change the design of having SquareMatrix inherit
    from Matrix?
    This problem also applies to operators. It seems that I have to either implement typecasting operators which might cost in performance, or have to re-implement the same code.

    Inheritance not helping to eliminate repetition and typecasts is often a sign that generics would help. You can do something like:
    public T getTranspose<T>()
    // or non-member function
    T getTranspose<T>(T input)
    I haven't fully worked it out, but it seems it might get awkward on the calling side. I know C# does some inference with generic methods, but I don't know C#, so I'm not familiar with the details. That might be the way you have to go, though, if you want
    full compile-time type checking with the least amount of repetition in the implementation.
    Another option would be to create private helper functions, then pass in the result type you want, for the helper to populate, like:
    public SquareMatrix getTranspose() {
    SquareMatrix result = new SquareMatrix();
    transposeHelper(result);
    return result;
    This gives you more boilerplate on the implementation side, but at least it isn't full repetition.
    A third option is just to check if the result is square in the Matrix implementation, and return a
    SquareMatrix if it is, like:
    public Matrix getTranspose() {
    Matrix result;
    if (resultIsSquare())
    result = new SquareMatrix();
    else
    result = new Matrix();
    // calculate result
    return result;
    This has the advantage of not needing any implementation at all for getTranspose() in
    SquareMatrix, but at the expense of requiring type checking of the return value at the call site. It also works for cases like multiplying two non-square matrices that happen to give a square result. You give up most compile-time type checking,
    though.
    If your application happens to mostly require run-time instead of compile-time type checking anyway, you might as well just give up the different types and throw an exception if you call a method that a non-square matrix doesn't support. I believe this is
    the approach most existing libraries take, especially since there are other conditions than being non-square that can cause methods like
    inverse() to fail.
    Speaking of libraries, there are a lot of good ones out there for matrix math, that are already heavily tested and optimized. Don't reinvent the wheel if you don't have to.

  • Is it possible to create Order type with different number ranges-Plant wise

    Hi Experts
    Client wants to get the different number ranges for the order types created in the different plants. Is there any user exit for the same.
    I have assigned the order type to the different plants. And Order type is assigned to a no range. So whenever a order type is created in different plants; order types uses the same number ranges.
    so with this situation one cann't know the total no. of order created within a plant.
    Is there any solution for the same.
    Pease give your valuable solutions.
    Regards
    Pankaj

    Hi
    Best way is to create different order types for different plants.
    like we have order types OR15 ,OR20 & OR30 for different plants 1500 ,2000 & 3000 .
    you can assign different number range for different order type.
    this is simplest solution.
    Regards
    Sujit

  • Want to select the Order type automatically when creating production order

    Hi Gurus,
    Please help to select the order type automatically while creting the production order..??
    Please what configuration settings are avialble to make this happen to me.
    THank you in advance.
    Naveen.

    Naveen,
    First priority is the order type defined in the Production schedulling profile(OPKP), assigned to that particular material in workscheduling view. If this is not maintained then,
    Second priority is configuration at MRP Group parameters in transaction in OPPR, this MRP Group if assingned to Material master MRP1 view.
    Third priority is Configuration at Plant level parameters in transaction OPPQ, this defines the order type when convert planned order to Production/Process order.
    Regards,
    Prasobh
    Edited by: Prasobh Karunakaran on May 28, 2009 8:49 PM..added MRP group paramters also

  • How to get the order type from notification number

    Hi,
    i have the notification number,
    fromthis number how can i get the Maintenance Order type.
    what is the table name to get the order type.
    Please tell me.

    Hi,
    First you read table QMEL with notification number and get AUFNR. Then go to AUFK and get AUART (order type).
    Some thing like,
    SELECT SINGLE aufnr INTO lv_aufnr FROM qmel WHERE qmnum EQ <your notification>.
    IF sy-subrc EQ 0 AND NOT lv_aufnr IS INITIAL.
      SELECT SINGLE auart INTO lv_auart FROM aufk WHERE aufnr EQ lv_aufnr.
    ENDIF.
    Hope this helps..
    Sri

  • How to change the internal order type when it has been created?

    There is an internal order, when it being created, the user chose the incorrect order type and save it. but the internal order number is useful. so we just want to change the order type or delete the order to release the number.  so can you give me some solutions to solve it. I can not find the way neither change the order type nor delete it.  thanks very much.

    You are unable to change the internal order type once an internal order has been created, however you can delete the IO if there haven't been any postings made.
    In change mode (tcode KO02), go into the internal order.  Go into the following menu:  Edit > Deletion Flag > Set.    Before you exit the IO, save the master record.
    Depending upon your archiving settings, you should then be able to select the menu path:  Edit > Set Deletion Indicator.
    If the IO isn't deleted, you can "clobber" it by going into the IMG and deleting the IO using the function "Delete Test Data".  This should only be done by a technical person to ensure that a mass-delete doesn't occur.
    Please note that if the IO was an internally assigned number, you might just want to block it and re-use it later.
    Hope this helps.
    Kylie

  • No valid task list for material ""  plant "" for selection criteria

    I am getting the following error while creating a production order:
    No valid task list for material ""  plant "" for selection criteria
    Does anyone know how to fix this?
    thanks,
    Scott

    Dear,
    1. Check in Order type dependent parameter - OPL8, select your Plant & Order type. In this check the task list, it should be N. then selection priority in OPJF settings
    2. Chek the routing valid from date for this material by CA02. The production order start date must be between valid date.
    3)Kindly check the routing header.Whether it is for usage 1 and Release status '4'
    4) Task list we maintain in OP8B please check and come back.
    Regards,
    R.Brahmankar
    Edited by: R Brahmankar on Nov 19, 2008 9:57 AM

  • Planned order to prod order----order type and prod version/ routing

    Hi,
    My client produces a material in three different locations. The process at all the locations is same. Each location has the set of same work centers. We have differentiated the workcenters at the three different locations by naming conventions. I am mainting three counters in the routing with different set of work centers.
    We want different order types for the production orders processed at these three locations. Also I should be in a position to select the routing/ production version manually for the production orders processed at the three different locations. When I am creating a production order manually, I can select the order type and even the routing or production version.
    But here I am converting the planned order to production order. The system is picking the order type as maintained in OPPE. In OPL8 I maintained manual  selection of prod version. But version 1 is selected default by the system. Can I have any control over the selection of order type and prod version/ routing?
    Thanks and Regards,
    Raghu

    Dear,
    Selection of production version is only possible at manual creation of production order, but not when converting planned order to production order. you can manually change the production version if u want to in the planned order.When you have a planned order it would default contain a valid production version. So system would just take the Production version in the planned order to use the same in Production order. If you want to change the production version in production order then go to CO02-FunctionRead PP Master data and change it.
    (Goto OPL8 and select Manual Selection of Production Order in Production Version field
    And in MRP4 view of material master select - Selection only by production version as the option for the Selection method field )
    Hope clear to you.
    Regards,
    R.Brahmankar

  • PP Order types

    Dear All,
    My client has a requirement that he needs two different Order types for both semi finished and Finished product..But we can assign only one order type in plant parameters for MRP...How this can be possible...
    Please Suggest...
    Regards,
    Pawan Shetty

    Hi,
    the order types in MRP parameters are for default only.
    You can more order types.
    For this you create order types, create Order type dependent paramerters, Production scheduling profiles (normally for each order type) and availability check control, scheduling paramters and confirmation parameters.
    In the material master data for the semi finished materials assgin the production scheduling profile (which contain the semi finished order type).
    In the material master for Finished material as the respective scheduling profile.
    during the planned order conversion to production order system will pick the order type based on the scheduling profile attached in the Work scheduling view of the material master.
    Thanks,
    JK

  • Order type is not picking while converison Plnd to process order

    Dear Dudes,
    i have maintained production scheduling profile in all material masters in which order type is specified. while converting planned order to process order order type is not picking.
    thanks in advance.

    Robert,
    Since you are using same order type for both MTS & MTO, you can define this order type "PI01" in the MRP plant parameters using transaction OPPQ in the Conversion of Planned order section.
    I am not sure, why production scheduling profile is not working for you, hope you are using the Production scheduling profile configured using CORY transaction check this part alone.
    Regards,
    Prasobh

Maybe you are looking for

  • Midlet gets null values from servlet

    hey, based on one of the source code examples on the java.sun.com website i made a midlet/servlet application. the midlet is sending a product id to the servlet, the servlet queries the database and shows the productinformation, the midlet reads the

  • Client and Server in one process

    Hi all, I am trying to create a process which can act as both Client and Server. How can I do this? Thanks!

  • InputStream / OutputStream Help

    I have in a series 10 commands to be executed on a server. so i am using Buffered OutputStream and DataOutputStream to write those commands to server. these commands have a set of protocol rule to be followed. for example i am creating a byte array a

  • More problem with JFormattedTextField

    Here is the code where I want size and input validation for JFormattedTextField MaskFormatter f10=new MaskFormatter("***************"); f10.setValidCharacters("0123456789"); t4= new JFormattedTextField(f10); It's behaving in funny way. It allows me o

  • Screen wont tilt anymore after updated to iso7, cant play games anymore

    Help my screen wont tilt anymore after updated to iso7. When playing a game the person wont move when i tilt to left or right. ive unlocked the portrait and still wont work. Nothing tilts when  i trun phone side ways. any help would be great Cheers