Variant configuration constraint syntax

hi everybody
i have product A and B. B is subassembly of A. class for A is A_class and for b is B_class. class of B is attached to the class of A.both are configurable materials. there are four characteristics of B char1, char2,char3,char4 all these contains five same values like val1,val2,val3,val4 and val5.
these characteristics are there in  A also (these characteristics are common for both) .
Now at the time of configuration of A whatever the values i enter for these common characterstics these should be copied to the characteristics of B.
how can i write the constraints syntax in this situation pls suggest.
thanks and reagards
ramakant

Hi Ramakant...,
Create the Dependency Net in Cu21. and write a constrain like this
Objects:
X IS_A(300) A_CLASS,
Y IS_A(300) B_CLASS,
RESTRICTIONS:
X.CHAR1 = Y.CHAR1,
X.CHAR2 = Y.CHAR2,
X.CHAR3 = Y.CHAR3,
X.CHAR4 = Y.CHAR4,
X.CHAR5 = Y.CHAR5,
INFERENCES:
Y.CHAR1,
Y.CHAR2,
Y.CHAR3,
Y.CHAR4,
Y.CHAR5.
in the configuration if you assign a value to characteristics of A_class then automatically Class of B_class wil get the value.
if you want the exact syntax give the real data and i will write the syntax.
regards.

Similar Messages

  • Variant configuration. constraints

    In which sap transaction do I write constraints. I have the syntax for the constraints. where do i write it. do I write it in CU01?

    Hi,
    Use CU21 give a name & description, click on assignments give a name for your constraint & click on enter, system will ask you to create the dependency then proceed with your constraint creation.
    Regards,
    Vivek

  • Variant configuration-- syntax error in creation of object dependencies

    In variant configuration when i try to create object dependency (tcode=cu01), after entering the dependency and also description when i enter the syntax in the source code it is giving error: error in syntax check for simple condition
    I have entered syntax as  : engine_cap in ('1000','1400','2000'), pls guide me with the solution to create object dependency

    Dear, Shakeer
    Please follow along with my very own config guide of variant config.
    1)     Create a configurable Material Using KMAT u2013Material Type. Item Category 0002 and Item Category Group 0002. Go to classification tab-here you maintain the class type 300 and assign the class, we will create this shortly. (So after creating class come back into MM02 and input the class that you create in step 2.)
    2)     Create a class in T-Code CL01. Use class type 300 for Variants. In this we assign the characteristics we will create shortly.
    3)     Create characteristics in T-Code CT04. Create your characteristic like for example, Z_Type, Z_Model, and Z_Color.
    4)     We must create a characteristic for the pricing. Example, Z_CarPrice inside this characteristic we must maintain. Table Name SDCOM, Field Name VKOND in the additional data tab. Also, go to restrictions tab and enter the class type 300 Variants. Now in order to make this pricing work for you, you must maintain (enter) all the values from the characteristics. For example, Red, Blue, Black, Honda, Toyota, GLI, XLI, and 2.0D.
    5)     Now going back to the characteristics in CT04 change mode. Make sure Basic Data has *Multiple Selections circled. * Character Format has 26 and a check in case sensitive. Make sure in restrictions tab class type 300 Variants is present. Go back to Values and highlight the first one. Example, Red then go to Extras->Object Dependencies->Assignments You must maintain this code $self.Z_CarPrice=u2019Redu2019 in basic data make sure itu2019s released & procedure is filled in. Go back to dependency editor and paste the same code there after 000010 $self.Z_CarPrice=u2019Redu2019 and do this for each and every value. Very Important * Maintain configuration profile in T-Code CU41 for the material -> Priority 01, Variant Configuration, Class 300, status, Released 1, then click save. Note: If 2 conditions are inactive use class group A instead of B in SPRO for Condition type VA00.
    6)     Go to T-Code VK11 and enter VA00 condition type. Enter all the values maintained in the characteristics for example, Red, Blue, Black, Toyota, Etc and enter the price then click on save. Now it should work fine in VA01. Make sure you have assigned the VA00 condition type in the pricing procedure.
    Good Luck,
    Muhammad Ali Lozada

  • Object dependecies---variant configuration

    HI PP team
    Any one can explain the difference between the 5 object dependencies in variant configuration as well little overview where it will differentiate in different business scenarios  like as auto,sanitary industries
    thanks
    shaik

    Hi,
    Five Object Dependencies are
    Pre Condition: This is used for Hide/display the Char and Char values.
    For Example CHAR_COLOR having a value RED only displayed IF CHAR_MODEL value 'SANTRO'
    Selected.
    Then you should assign the precondition at value RED level as
    Syntax
    CHAR_MODEL = 'SANTRO'
    Selection Condition: It is used for selection of BOM Components and Routing Operations and Make
    the Char as to be required entry in perticular condition.
    Actions: This is Obsoleted (now.not in Use).
    Procedure: It is used to Inference the Char Values to A char.
    IF SANTRO is available in only RED then IF you selected SANTRO for CHAR_MODEL system auto infer the value RED for CHAR_Color.
    Syntax
    $SELF.CHAR_COLOR = 'RED' IF $SELF.CHAR_MODEL =  'SANTRO'
    Constraint: Used to Restrict and infer the value for a Char.
    Procedure and are Constraints are assigned to Config Profile which is Central configuration object in VC
    Regards
    Praveen

  • Variant Configuration Issue

    Hi
    I want to pass one characteristic value description into other characteristic text value, which i am controlling with procedure dependency.
    Currentely i can able to pass Chars value into other text chars with same value.
    For examples
    Char X    01 - Description A
                 02 - Description B
                 03 - Description C
    Char Y : ( text free form field )
    If i select Char A  01 in configuration then through dependency syntax I can able to pass '01' into char Y, but i want to pass A  Description in place of char' value.
    Please let me know how it is possible.
    Vicky

    Hi
    I am facing issue in Variant Configuration functionality.
    I am having 1 characteristic XYZ with values
    1 - data
    2-  cable
    3 - wire
    Another characteristic is ABC with no value, it is text field.
    Now in configuration of material if i select XYZ = 1 (data) then through procedure depedency i am passing a value 1 (same like XYZ). But i want to pass decription of characteristics value in char's ABC
    means if i select XYZ = 1 then in char's ABC = Data should come instead of '1'.
    Regards
    Vicky

  • Using dependancy in variant configuration.......

    Hi
    PP gurus..
    Can u explain me wht is the convention of using"$" sign while creating dependancy in variant configuration.?

    Hi Yogesh,
    As Satish said, it is a syntax which is used to denote the start of a PROCEDURE in object dependencies. It is convention used to notify the compiler that the object dependency used is an PROCEDURE

  • Variant Configurator and ALE

    Has anyone had any experience with using ALE to transport all aspects of the Variant Configurator set-up to another SAP instance? We had planned to go this route, but have had people tell us that they wrote custom programs to download data from one instance and then use BDC's to load them in the new system. Is there a problem with using ALE for VC set-up data or anything we should be aware off?
    Regards.

    Hi Cynthia,
    I have done this in the past.  Definitely ALE is the way to go over BDC's etc.
    The only thing you have to watch is the sequence that you send the data in.  For example you must send dependency function module definitions before you can send any dependencies that call those functions.  Otherwise you get an Idoc failure.
    Where you get circular references (for example you have a characteristic which has a dependcy attached to it, and the dependency actually refers to the characteristic by name) then the best thing is to set the status of the dependency to deactivated, ALE it to the target system (syntax check will pass because its deactivated), ALE the characteristic, set the status back on the dependency, and then ALE it again.
    Apart from occasional circular references, however, it works really well. 
    Another thing to watch is that when you set up your ALE distribution model, that you consider the possibility of concurrent development and ALEing between systems.  For ease of administration, we set up our DEV system as the source for both QA and for PROD (rather than having DEV as source for QA and QA as source for prod) but this means that you shouldn't do any development on objects currently in QA as the latest changes will be ALE'd from DEV to PROD.
    I think the general sequence of ALEing that worked the best was:
    1. Characteristics
    2. Function module definitions
    3. Dependencies
    4. Configuration profiles
    I feel I have forgotten something there, but I guess you get the idea.
    Last thing, you can't ALE the configuration profile user interface.  So if you have designed your own layout for the characteristics (with tabs, and userexit buttons etc.) you have to recreate these manually in each environment.  Not much fun when you have 10+ clients in your landscape.  I kept meaning to write a program to handle it but, time got away from me.
    Finally, you have to ask yourself why SAP didn't treat all this stuff as configuration though, and allow you to migrate using change requests.  Wouldn't that be nice!!!
    Hope that helps.
    Cheers,
    Brad

  • MPC Time Varying Output Constraints

    Does anyone have experience with implementing time-varying output constraints for an MPC controller (from the Control Design Module)?
    So far, from playing around with the example VIs it seems that I'm stuck with fixed values.
    Cheers.

    Hi Signorec, 
    Can I ask what example VIs you've been looking at? The ones that come with the Control Design Module in LabVIEW example finder?
    When you say time-varying output constraints do you mean be able to change the MPC configuration settings during run time? From the examples I can find it seems that you set it all up and leave it to run. Where as you would like to be able to tweak the settings at particular times? Is that correct? 
    Assuming that it is the implmentation of the MPC controllor occurs within a Control & Simulation Loop. To change any constraints on the MPC you would need to stop that loop, change the settings and re-initalise the process before running that Control & Simulation Loop again. You can implement this with a state machine architecture or a while loop and some logic. I would recommend the state machine personally. 
    Please let me know if I have misinterprted the question or if there's something unclear. If you want me to take a look at an example you're working from I can show you the basic architecture you would need if you like? 
    Best wishes, 
    Charlotte N.
    Applications Engineer, NI UK & Ireland

  • SD Variant Configuration - characteristic value computation

    Hi Everyone
    Greetings from Vinod
    i am creating a variant material which has 3 characteristics. out of the 3 characteristics, 2 are inputed by the user and the third characteristic needs to be populated with the difference of the 2 chatacteristic values that we have entered before. is there a standard setting that we have to maintain, or should we do a custom development on the same. the third characteristic value which is computed based on the difference of the precious two characteristic will then derive pricing of the variant material. please throw some suggestions and inputs in this discussion.

    Hi,
    calculating values of characteristics is done with so-called dependencies.
    In a dependency you can define the rule how a value should be calculated.
    You have to create a class of class type 300 and assign your characteristics to this class.
    Assign the class to a material of material type "Configurable Materials".
    Open the material with transaction PMEVC (Modeling Environment for Variant Configuration).
    There you maintain a dependency of type procedure.
    The source code may look like this for your example:
    $SELF.CHARACTERISTIC_3 = CHARACTERISTICS_1 - CHARACTERISTIC_2
    You can find details for variant configuration on help.sap.com:
    http://help.sap.com
      -> SAP ERP
      -> SAP ERP Central Component
      -> Logistics
      -> Logistics - General
      -> Variant Configuration (LO-VC)
    Details on transaction PMEVC (Modeling Environment for Variant Configuration):
    http://help.sap.com
      -> SAP ERP
      -> SAP ERP Central Component
      -> Logistics
      -> Logistics - General
      -> Variant Configuration (LO-VC)
      -> Modeling Environment for Variant Configuration
    Information on dependencies:
    http://help.sap.com
      -> SAP ERP
      -> SAP ERP Central Component
      -> Logistics
      -> Logistics - General
      -> Variant Configuration (LO-VC)
      -> Dependencies
       and
      -> Dependency Syntax: General Rules
    Best regards,
    Sebastian

  • Variant Configuration Dependency Language

    Does anyone know a good reference to use when writing Variant Configuration Dependencies? I am interested in command syntax as well as structure of the dependency program.

    For syntax reference you'll just have to use the SAP material. A google search will also provide some links with OD (Object dependency) examples.
    As far as structure, if you mean line, character - spacing, there's nothing. Just structure so it is as readable as possible. If I have multiple AND / OR's I will break them into separate lines and use the ( ) a lot to ensure the statement's are interpreted correctly.

  • Production Order BOM with Variant Configurable Material

    Hi,
    I have a requirement to process the document items in the Production Order BOM for a variant configurable martial. I am not sure which Function Module will do this purpose. I checked the FM: CS_BOM_EXPL_MAT_V2 and does not seem to be working.
    Can you please help me with a suitable Function Module or program that will process the Production Order BOM? Appreciate Your Help.
    Thanks,
    Kanan
    Edited by: Kannan SA on Jul 6, 2011 8:59 PM

    What are you doing with the characteristics right now ?
    If you want operations selected based on characteristic values, you need to have dependencies written just like you do (or in your case, will do) in your BOM components.
    I understand the business-push to not do things 100% at the start and just "oh we'll add that part later" but I would really push back to get that part included initially.

  • Stock Report for Variant configuration

    Hi Experts,
    Request your help to get the following information.
    We have a material which are packed in to multiple packing modes. Inorder to ease the selection of packing mode in sales order, we are thinking of introducing variant configuration. I.e all the packed materials will be created as variants in SAP and the sales order will be created for the configurable material. When the proper characteristic is selected the material will be automatically replaced by the variant.
    But the requirement is to see the stocks of all the varaints along with the configurable materials as the header. For eg. Material A is having variants A1, A2 & A3. The sales quantites are 25, 30 and 35 respectively.
    In any of the standard report, can I see the sales of these along with the total sales of config mtl A as 90
    Please guide.
    Thanks & Regards
    Prathib

    Hi Prathib,
    On my last project, we define material code with the same code at the beginning like you do A1 A2 A3 (for variants) and AC for example for configurable material. Then for stock report you can use MB52, in material field just write A* it will show you stock from material start with code A. But make sure you define material type and material group for selection wisely. It works for me. Now depends on how well you define your structure.
    Regards,
    Arman

  • Error message while creating configurable material for variant configuration.

    Dear All,
    I want to create configurable material for the purpose of variant configuration. When trying to create configurable material using mm 01 or mm k1, it is displaying an error message that internal number assignment is not possible for the material type configurable materials as well in using external number also. Can anyone specify the steps to be done in creating the configurable material. Thank you all.
    Regards
    Akula Sivaji Kumar Madhu Kiran

    If you want to set these material type to another group (Which has a internal number and external number range), then you can do it.
    In MMNR, Click on the Edit Group.
    Then select the material type and click select element.
    Then mark a tick option in another group and then press Element/Group.
    Then you can see the material type will come under this group.
    Now save your entry, and create a material with this material type.

  • Variant configuration

    I have done all the settings for variant configuration. But still I am getting a error while raising sales order (VA01) (ERROR -configuration not possible for material)
    now what should i do.

    Dear pavan kumar,
    Check Delivering plant is maintained or not in sales order.
    Regards,
    Srikanthraj

  • Tolerance Limits for Class Character in Variant Configuration

    HI all,
    We are Using Variant Configuration, for this we have linked MIC's to Class character, When The Inspection Lot is created the Lower & Upper Limit in the specification comes as the character Value.it does not takes in to consedration the tolerance key assigned to it. For E.g. Charater Dia has value 20, & in the Tolerance key for 20 +/- 0.10 is maintained, when the Inspection lot is created the Upper & lower Limit comes as 20-20 instead 19.9 - 20.1
    I have gone through SAP Note 210658, the sample code provided in note is for "Material Specification" I have tried the same with minor code correction the specifications in the lot comes as desired i.e. specifications in the lot consider the tolerance key.
    Our Requirment is of task list, in the same not EXIT for task list is also mentioned but no souce code is provided, when we are using the above program (Used for Material Specification) after doing the desired changes, & when we run in de-bugging mode it shows all the calculations are being done, but finally in the lot specification appear as the charater value ( 20-20) & in the inspection lot One first MIC comes it delete's all other MIC's assigned in the Plan.
    Has any body worked on this requirment, please let me know how to do the same, & if any body has used EXIT_SAPLQPAP_001 (Enhancement QPAP0001.)Plese provide me with the soution if any one has worked on it.
    Thanks & Regards
    Gaurav Behl

    Hi ravi,
    I did't work on class hierarachies but i do have a document regarding classification.
    Regards,
    Kanth

Maybe you are looking for

  • How to use the arrays in BPEL

    I am giving the input below shows <to> <email>[email protected]</email> <email>[email protected]</email> </to> i will put the while loop and i count the index values. in while loop,it takes only one email id. my coding is <while condilition=('varinde

  • [tutorial: inserts_updates_deletes] sql ex. cannot save changes

    I working on the tutorial mentioned in the title. When I try to submit the changes on a new row I got the following error in the message box: Error:java.sql.SQLException: Expected to find "end of SQL command" instead found ";" at position 62.The exce

  • IPad Mini / iMessage not syncing

    Morning, Just noticed for the second time that my iPad Mini isn't updating iMessage, I had this problem last weekend. It has all the threads in there from about 2 days ago, now last time this happened when i replied within them outdated threads on th

  • Macbook Pro Wont Start Up After Update

    Hey All, I was in the middle of installing the most recent update for OSX when my computer froze completely. I shut it off by holding down the power button. Now, when I start it up, right after the apple, it goes to a screen with some script in the u

  • Local root folder does not exist...

    This has got something to do with the fact that I am working on a Mac as it never happened to me in a PC environment. Nothing's changed with my files and my sites were all perfectly defined just the other day. Why has it resorted to this message? Why