Use of Constraints in Variant Configuration

Hi ,
I am facing a problem during Usage of Constraints as Object dependency. The Scenario is We are using two reference characteristic :
CUSTOMER_ CODE ( Ref. Table VBAK & Ref. Field KUNNR)
MATNR ( Ref. Table VBAP & Ref. Field MATNR)
and another single value Charac. COLOUR_CODE which is restricatable also.
A Variant Table Z_COLOUR  is maintained with CUSTOMER_CODE & MATNR as a Key Field. The Constraint XYZ( With No Syntax Error) written is as follows :
OBJECTS :
(300) ES_BILLET where CC = CUSTOMER_CODE, MAT= MATNR, CCD = COLOUR_CODE.
*CONDITION:
RESTRICTIONS:
TABLE Z_COLOUR
( CUSTOMER_CODE = CC,
MATNR = MAT,
COLOUR_CODE = CCD)
INFERENCE :
CCD
This has been assigned to the Configuration Profile a Material.
Now, a case is there where no entry is maintained for this particular material in the table mentioned.
So, during Sales Order Creation , in configuration system throws and Inconsistency Error ' Constraint XYZ Violated'.If an entry is maintained in the table, then it works.
But, my question is like using Procedure if no entry  is maintained in the variant table system doesn't throw any Inconsistency error.Same should be here, as its always possb. no entry avb corresponding to a material.
Kindly advise if Iam missing something.
regards

hi,
The Constraints checks the enteries in the table and pops up the message and checks the consistecy and if no suitable combination is found it will inconcistency.
enjoy,
Jai

Similar Messages

  • Using ALE to synchronize Variant Configuration data from Production to Dev

    SAP Gurus,
    We are trying to move away from opening our production environment every time with need to add new Variant configuration for products.
    In order to do so, we need to ensure that our development and staging systems are in line with production LO-VC data. We have been looking at a possible ALE solution but I would like to get other suggestions.
    Any thoughts you may have with regards to either pros and cons of ALE, or another solution we may have overlooked.  If your clients are transporting Variant Configuration to production, what method are they currently using to ensure data consistency between environments.
    Our landscape currently has two production environments for two separate business lines but both use LO-VC therefore we would like to standardize the process.
    Thanks and Regards,
    Kevin Webb
    SAP SD Senior Consultant

    Hi Webb,
    General its a complex process to transport VC but for system consistency you can:
    1. do the changes Manually in each system
    2. Use ALE idoc process to transport.
    But ALE transport generally used for fresh VC transport, if the VC already present in transporting system, it may cause inconsistency. Hence if you want to transport some changes then I can suggest you to do MANUALLY.
    But if you are transporting VC freshly in each system, go for ALE.
    try and revert

  • Is it possible to use variant configuration (with a Non-SAP solution) when creating ERP sales orders in SAP CRM WebUI

    Hello,
    our customer plans to use a Non-SAP solution for variant configuration (Camos) in SAP ERP (ECC 6.0) and in SAP CRM 7.0 EHP1 as well.
    ERP sales orders (and ERP quotations) should be created in SAP CRM (CRM WebUI).
    Is it possible to use variant configuration (with an external variant configuration tool) when creating ERP sales orders and quotations in the SAP CRM WebUI or do we have to implement SAP IPC for this?
    Thanks in advance.
    Regards,
    AEV

    Dear AEV,
    I think LORD (lean orders) should work with variant configuration as well. In the note 1236015 there is not restriction listed. However you need lord2 activated in ECC, and ECC system should be on EHP4.
    Best regards
    Rene

  • Where used list for variant configuration

    Hello,
    We use a lot of configurable BOMs in our company.  In the case of deleting a material we need to know where the material is used. Is there a possibility to find out where a material is used in multi levels.
    For example a material is used for producing raw material this material is processed again to a more specified product and this product is processed again. We need to explore 3 variant configurations ...
    We need to display the bom level by level bottom up. If a material is part of an assembly which is part of a material we need to display it somehow.
    Thank you in advance.
    Regards,
    Christiane Hetzenauer

    dear Friend ,
    See there are 2 things material used in BOM direct assigment
    another is material is bond to BOM via a characterstic value.
    so if you want to see how many materials have values 123 attached to there classic=fication  view search through MM02 search via class , select the class and inout the value for example "01" it will return with all the materials which have value 01 attach to this class , in the same way you can use CL30N search objects assign to class.
    in your example
    For the BOM motor cycle the materials R123 B456 and Y789 are assigned.
    If i search in CS15 for 123 I get as example , also use tick classes in the first screen of CS15
    R123
    B456
    Y789
    then you will only get  R123 motorcycle as result.
    Check and revert back.
    Regards
    Ritesh
    Edited by: R S D on Jul 21, 2009 12:44 PM

  • Configuration management (LO-CM) used with Variant configuration (LO-VC)

    Hi
    I am new to SAP, working with Variant configuration (LO-VC).
    I wish to enforce configuration management during development of a new Variant configurator.
    Would Configuration management (LO-CM) work together with Variant configuration (LO-VC)?
    My expectation is that SAP Configuration management (LO-CM) will work similar to solutions like e.g. MsVisualSourceSafe, SubVersion, CVS, IBM/Rational ClearCase etc. in the software development domain.
    best regards Henrik

    Hi Amber
    Thanks a lot for answer, and please apologize my late response.
    I am not confused by the term 'configuration', being used in two different meanings.
    (1) Variant configuration (VC) is the dicipline of creating product variants by making a set of choises from the characteristics describing the product. A complete and consistent set of choises is a 'configuration'.
    (2) Configuration Management in the 'traditional' software development meaning: Software Configuration Management (SCM). E.g. Microsoft VisualSourceSafe, IMB/Rational ClearCase, Subversion etc. are examples of tools used for the kind of SCM I wish to apply to VC models.
    My confusion is whether the SAP CM that I can read about in the SAP online help, is similar to traditional SCM, and whether it can be applied to VC models.
    I wish to apply SCM to a VC model. All the objects that together make up the VC model may then each exist in various versions (version control). A complete set of the objects (in a given version) make up a configuration of the VC model.
    What is achieved is : you can control the development of VC model in just the same way that all serious software is under the control of SCM. This will allow an evolution of the VC model, like e.g. version 1.0 is released in January, then version 1.1 is released in June. A major upgrade of the model may become version 2.0 in December etc. The 'source code' (the objects) of each of the versions can be retrieved at any time from the SCM system. Also with SCM several developers may work on the same VC model at the same time, and merge their individual work into the same model.
    This is very different from todays VC model development. In todays VC model development, only one version exists, that is 'todays version'. Any change to the model is released immediately, and you can undo model changes only if you remember what it was like a little while ago.
    We do develop and test VC models in one SAP system, and then move them to the production system. This is however still very far from the benefits of SCM.
    best regards
    Henrik Saugbjerg

  • How to Create Sales Order using BAPI with Variant configurations

    Hi All,
    I need to create a sales order using BAPI BAPI_SALESORDER_CREATEFROMDAT2 with Varaint confiugartions. I will get Header ITEM and variant configuration items in the flat file. Kindly help me in this regard.
    One more thing, is there any way to findout all the Varaint classifications for a particular Material?
    I have done the below coding. Sales order is getting created but variant configurations are not populating.
    *...Configuration: Reference Data
    DATA: gt_order_cfgs_ref TYPE TABLE OF bapicucfg,
          wa_order_cfgs_ref TYPE bapicucfg.
    *...Configuration: Instances
    DATA: gt_order_cfgs_inst TYPE TABLE OF bapicuins,
          wa_order_cfgs_inst TYPE bapicuins.
    *...Configuration: Part-of Specifications
    DATA: gt_order_cfgs_part_of TYPE TABLE OF bapicuprt,
          wa_order_cfgs_part_of TYPE bapicuprt     .
    *...Configuration: Characteristic Values
    DATA: gt_order_cfgs_value TYPE TABLE OF bapicuval,
          wa_order_cfgs_value TYPE bapicuval.
    *...Configuration: BLOB Internal Data (SCE)
    DATA: gt_order_cfgs_blob TYPE TABLE OF bapicublb  ,
          wa_order_cfgs_blob TYPE bapicublb.
    *...Configuration: Variant Condition Key
    DATA: gt_order_cfgs_vk TYPE TABLE OF bapicuvk,
          wa_order_cfgs_vk TYPE bapicuvk.
    *...Configuration: Reference Item / Instance
    DATA: gt_order_cfgs_refinst TYPE TABLE OF bapicuref,
          wa_order_cfgs_refinst TYPE bapicuref.
    *...Configuration: Reference Data
      wa_order_cfgs_ref-posex = '10'.
      wa_order_cfgs_ref-config_id = '1'.
      wa_order_cfgs_ref-root_id = '1'.
      wa_order_cfgs_ref-SCE = '1'.
      wa_order_cfgs_ref-CBASE_ID_TYPE = 'G'.
      wa_order_cfgs_ref-CONSISTENT = 'T'.
      wa_order_cfgs_ref-COMPLETE = 'T'.
      APPEND wa_order_cfgs_ref TO gt_order_cfgs_ref.
    *..2nd item
      wa_order_cfgs_ref-posex = '20'.
      wa_order_cfgs_ref-config_id = '2'.
      wa_order_cfgs_ref-root_id = '1'.
      wa_order_cfgs_ref-SCE = '1'.
      wa_order_cfgs_ref-CBASE_ID_TYPE = 'G'.
      wa_order_cfgs_ref-CONSISTENT = 'T'.
      wa_order_cfgs_ref-COMPLETE = 'T'.
      APPEND wa_order_cfgs_ref TO gt_order_cfgs_ref.
    *...Configuration: Instances
      wa_order_cfgs_inst-config_id = '1'.
      wa_order_cfgs_inst-inst_id = '1'.
      wa_order_cfgs_inst-obj_type = 'MARA'.
      wa_order_cfgs_inst-class_type = '300'.
      wa_order_cfgs_inst-obj_key = '2021B'.
      wa_order_cfgs_inst-quantity = 1.
      wa_order_cfgs_inst-PERSIST_ID_TYPE = 'G'.
      wa_order_cfgs_inst-CONSISTENT = 'T'.
      wa_order_cfgs_inst-COMPLETE = 'T'.
      APPEND wa_order_cfgs_inst TO gt_order_cfgs_inst.
    *..2nd item
      wa_order_cfgs_inst-config_id = '2'.
      wa_order_cfgs_inst-inst_id = '1'.
      wa_order_cfgs_inst-obj_type = 'MARA'.
      wa_order_cfgs_inst-class_type = '300'.
      wa_order_cfgs_inst-obj_key = '2021B'.
      wa_order_cfgs_inst-quantity = 1.
      wa_order_cfgs_inst-PERSIST_ID_TYPE = 'G'.
      wa_order_cfgs_inst-CONSISTENT = 'T'.
      wa_order_cfgs_inst-COMPLETE = 'T'.
      APPEND wa_order_cfgs_inst TO gt_order_cfgs_inst.
    *...Configuration: Characteristic Values
      wa_order_cfgs_value-config_id = '1'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BASIC_MACHINE'.
      wa_order_cfgs_value-value = 'L28'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
      wa_order_cfgs_value-config_id = '1'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BUCKET'.
      wa_order_cfgs_value-value = 'PL1001'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
    *..2nd item
      wa_order_cfgs_value-config_id = '2'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BUCKET_FOC'.
      wa_order_cfgs_value-value = '023OP0049'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
      wa_order_cfgs_value-config_id = '2'.
      wa_order_cfgs_value-inst_id = '1'.
      wa_order_cfgs_value-charc = 'BUCKET_HOE'.
      wa_order_cfgs_value-value = '028MS0004'.
      wa_order_cfgs_value-VALCODE = '1'.
      APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
    wa_order_cfgs_value-config_id = '2'.
    wa_order_cfgs_value-inst_id = '1'.
    wa_order_cfgs_value-charc = 'TYRE_PRESSURE_GAUGE'.
    wa_order_cfgs_value-value = '81004402'.
    APPEND wa_order_cfgs_value TO gt_order_cfgs_value.
    *...Configuration: Reference Item / Instance
      wa_order_cfgs_refinst-posex = '10'.
      wa_order_cfgs_refinst-config_id = '1'.
      wa_order_cfgs_refinst-inst_id = '1'.
      APPEND wa_order_cfgs_refinst TO gt_order_cfgs_refinst.
    *..2nd item
      wa_order_cfgs_refinst-posex = '20'.
      wa_order_cfgs_refinst-config_id = '2'.
      wa_order_cfgs_refinst-inst_id = '1'.
      APPEND wa_order_cfgs_refinst TO gt_order_cfgs_refinst.
    Regards,
    Rajesh

    Hi all,
    Please help me in solving the issue.
    Rajesh

  • User Exit - VA01 / VA02 Sales Order, using Variant Configuration Fields

    Hi,
    I'm doing a user exit for creating / changing a sales order (VA01/VA02), and in my program I'm trying to use the characteristic values in variant configuration: Extras -> Configuration.
    I know there's a whole bunch of data in SAPMV45A, but I can't seem to find what I need. Structure RV45A is the closest I can find, but the characteristic name / value fields appear empty during the execution of the user exit.
    Any help would be greatly appreciated.
    Thanks!

    R u creating your own user exit or using the ones which are available for VA01/VA02?
    If you can use existing ones, to get the more details abt them, please have a look at below link.
    http://help.sap.com/saphelp_46c/helpdata/en/1c/f62c7dd435d1118b3f0060b03ca329/content.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Custom ATP Check using Variant Configuration Data in sales order

    I have a requirement to modify the standard SAP ATP check by including the variant configuration data entered on a item.  Standard SAP does not use/include the characteristics data when doing the ATP. None of the available user exits would allow me to do this.
    The scenario is the client has a configurable product that exist in inventory as one item, base unit as IN2.  The batches that exist in inventory have the characteristics of width and length.  The order data specifies a width and a length, they need the ATP to identify the availability based on the characteristics of the batch.
    The solution was to present the user with a list of batches based on the characteristics that meet the criteria.  The user would then have the option of choosing one of the batches which would mean that the line item would include the batch #.  If the user does not want any of the batches, they could choose to select a Make to Order option, which would change the item category of the item, so that it creates a production order upon saving the order.
    The problem I am having implementing this solution is I have not been able to identify the internal table(s) that contains the characteristics data in SAPMV45A after the configuration screen is called.  If anyone knows where that information is during the sales order processing, it would be greatly appreciated.

    Hello Jean,
    Have you managed to find a solution as yet? I know you have not received any replies but am hoping you were able to resolve the problem as we are facing the exact issue on our project.
    Please let me know,
    Thanks,
    Tanya

  • 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 configuration using Bapi

    hi folks,
    i have an issure regarding variant configuration using bapi 'BAPI BAPI_SALESORDER_CREATEFROMDAT2 '.
    Can this BAPI be extended/modified to accept characteristic
    values - based on characteristic values, it should perform variant matching
    - in case variant matching is successful, the BAPI should replace the
    KMAT material with the exact matched variant material.
    - in case the variant matching is unsuccessful, then retain the KMAT
    material in the sales order line item.
    i have done one sample program where i am executing this bapi by passing all the mandatory values ,....its taking everything except the charactersitics of the material. can any one say me what are the mandatary fieds we need to pass for variant configuration using this bapi..or is there any other bapi which satisfies my problem.
    thnx in advance,
    santosh.

    Hi,
    Just debug your SAP BC service in which you are calling the RFC and check if proper values are getting mappend to your input variables of RFC.
    If that is correct than there wont be much chances of problem in BC.
    \[removed by moderator\]
    Regards,
    Siddhesh S.Tawate
    Edited by: Jan Stallkamp on Jul 1, 2008 4:32 PM

  • Preparation of Cost Sheet using Variant Configuration

    We have a requirement which needs to be configured in Standard SAP using variant configuration ( as Suggested by our client )  without using any customized functionality the scenarios is as fallows:
    Preparation of Cost Sheet:
    Company XX needs to procure material M1 (Like Cartons) for Plant A, plant B which is manufactured by Primary Vendor PV1, PV2.
    The price for procurement of material M1 has to be determined using cost sheet
    Primary Vendor PV1, PV2 Procures Raw materials and Packaging materials required to manufacture material M1 from Secondary vendor SV1, SV2, SV3
    The rates of these materials are added into cost sheet as cost of components.
    The rate for these materials varies depending on quota allotted for that particular
    Secondary vendor SV1, SV2.
    Cost sheet consists of
    Cost of Component materials required for mfg Material M1( These components called Feed stock
    Materials are procured by secondary vendor)
    Working Capital of Primary Vendor
    Conversion cost
    Discounts
    Surcharges
    Transportation cost
    ETc.....
    Well Thanks in Advance....

    hi Rav,
    as you said i have configured the system and it is working fine.
    but the problem is, when creating sales related documents only Sales BOM selection should happen i.e. characteristics which have values related sales must only be shown to the sales person where he makes required selection.
    other materials/assemblies which are also configurable and which make complete production BOM are selected by the production person.
    what selection a production planner makes must not be shown to the sales person. 
    for eg; if you want to purchase a color printer you only tell sales guy , i want a color printer which can print at least 10 pages / min. you will not tell him what printer should be made of, what ICs or what PCBs it must have.  and also company management may not wish to show all things to the customer/sales person.
    if this is the situation how it can be mapped?
    alternative item concept can be used, but for a single material if there are 3 or 4 alternatives, will it work properly??
    Regards,
    Pavan

  • BOM  explosion using variant configuration

    Hi
    I have a material (LAPTOP) and it has two BOM(RAM and HARD DISK).
    LAPTOP is my main material.
    Through VA01, when I try creating a Sales Order, I give the Material as LAPTOP and when I click "Configuration" menu, I will be showing the Variant Configuration Characteristic values for this material (LAPTOP) namely RAM and HARD DISK.
    When I select them and come back to VA01 scree, I could see both the sub materials (RAM and HARD DISK).
    But my question, I want to see only the one which I select. If I select RAM, then only RAM shoudl be displayed in my sales order not HARD DISK.
    I have created the Characteristics as "Multiple Value" assignmetn
    Please help.
    Thanks in Advance,
    Priya

    Hi Priya,
    Use Dependency concept ,to achieve your requirement.
    Regards,
    Subash.

  • 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

  • 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.

Maybe you are looking for

  • Is Custom print package "rotate to fit" still not implemented?

    On Dec 2, Al-R started a discussion thead for LR3 beta about a problem he was having with rotating an image to fit a frame he created using the Custom Print Package. He couldn't get the image to rotate to fit. I get the sense that the "rotate to fit"

  • New Sony website for XDCAM and NXCAM FCPX plugin!

    http://www.sonycreativesoftware.com/download/pdzk-lt2 Just got off the phone with Jorge at Apple Pro Apps FCPX support and also Doug Bierschenk with Sony Professional Support; I was unaware of the newest Sony XDCAM / NXCAM software support website. 

  • Latest Skype is bad

    I just had to upgrade my Skype to latest version and am not impressed. Firstly it saves all the files I get now to a directory which is dam hard to get to like user/appdate/.... Why on earth would they take away the ability to set to which folder you

  • To setup logon and passwd  info

    How do I create a log in and passwd forms for outside logging into our web site in Oracle Portal. I need them to login before they can access the web site. I want to type the url address and login to the web site. Any pointers?

  • TBD4 - Upload Polish rates in OB08 table

    We currently import daily exchange rates from FINISS to a central SAP server and replicate via ALE to other SAP clients throughout our organization.   We currently load the rates at the end of our business day in the US (16:00).  We are now implement