Skip to Content

Constraints: Restricting the Allowed Values

Hi, have you solved this issue?

I'm trying to create some constraints with INCONSISTENT COMBINATION VALUES

like:

A IS_A(300) Z_CB_WRL

CONDITIONS:

TABLE Z_CB_GRAMMAGE

(Z_T_BRAND = A.Z_BRAND,

Z_T_PRODUCTSPECIFICATON = A.Z_PRODUCTSPECIFICATION,

Z_T_GRAMMAGE = A.Z_GRAMMAGE,

Z_T_STIFFNESS = A.Z_STIFFNESS)

RESTRICTIONS:

FALSE.

IT WORKS, and it show a X when the inconsistence is reached....

but How can I hide the not allowed values from the characteristic drop down value list?

The INFERENCES command is supported in this contest? It give ever a sintax error....

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • May 02, 2017 at 04:21 PM

    Sorry,

    I'm trying to reply to this discussion opened by

    Former Member

    https://archive.sap.com/discussions/thread/3960312

    How to Hide characteristic values coming from VC table in a constraint

    Hi VC Experts,

    I have a configurable material say C001.00001 with Variant class 300 Z_CB_WRL. In this there are two Characteristics like Z_BRAND with single value setting no values are assigned and another characteristic Z_GRAMMAGE with Single value and restrict able without values assigned.

    Currently this material is assigned with a configurable profile in that dependency net assigned having Constraint Z_CB_GRAMMAGE

    While creating sales order in the VC screen the grammage values say 200, 220, 270, 330, 450 are coming from VC table which is defined in constraint Z_CB_GRAMMAGE based on the brand.

    Now the business requirement is to have a new set of Grammage values for a given Brand to be added in the VC table and don't want to use the old grammage values. During creation of Sales Order the old values should appear for the user for selection.

    How to hide these characteristic values which are coming from VC table in the constraint.

    Has anybody come across this kind of situation. If so, how did you resolve this please provide the code.

    The constraint code is as follows

    A IS_A(300) Z_CB_WRL

    *CONDITIONS:

    RESTRICTIONS:

    TABLE Z_CB_GRAMMAGE

    (Z_T_BRAND = A.Z_BRAND,

    Z_T_PRODUCTSPECIFICATON = A.Z_PRODUCTSPECIFICATION,

    Z_T_GRAMMAGE = A.Z_GRAMMAGE,

    Z_T_STIFFNESS = A.Z_STIFFNESS)

    INFERENCES:

    A.Z_PRODUCTSPECIFICATON, A.Z_GRAMMAGE, A.Z_STIFFNESS

    Please let me know what code do I have to include in this.

    Thanks and Regards,

    Kimo

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 09, 2017 at 01:03 PM

    Here

    1. you want to restrict the allow value - You might be knowing this is possible through constrain inferences. AS you said in first post. You are facing some syntax error. You can post error here to help you.

    Now when you say u want to give option to user to select the old value too, at the time of sales order booking.

    Here I have questions;

    • Are you going to remove old value from the table?
    • Are you maintaining possible value of features at CT04?

    Give more clarity in minimum words.

    Add comment
    10|10000 characters needed characters exceeded