Skip to Content
avatar image
Former Member

Restriction on characteristics

I'm probably using the wrong terminology here, but here goes:

I understand how you 'assign' a value to a characteristic through something like:

$SELF.CHAR_NAME=’value’ IF CHAR_NAME_A=’x’

BUT is there a way to restrict the values a characteristic can take on?

For instance:

if CHAR_NAME_A is 2, CHAR_NAME may only be set to 1, 2, or 3.
If CHAR_NAME_A is 1, CHAR_NAME can be 1, 2, 3, 4, or 5.

I hope this makes sense.

Using the motorcycle example that appears online that has a couple of different colors and 3 engine sizes, the analogy to our application would be that we wish to limit choices to 2 engine sizes if you order a red bike, but allow all three engines if someone orders a black bike.

Thanks

Jeff

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 25, 2017 at 03:21 PM

    Jeff G,

    You can achieve the expected result through the constrain.

    Restriction:

    $SELF.CHAR_NAME IN (1, 2, 3) IF

    $SELF.CHAR_NAME_A = 2,

    $SELF.CHAR_NAME IN (1, 2, 3, 4, 5) IF

    $SELF.CHAR_NAME_A = 1

    Reference Document below

    Constraints: Restricting the Allowed Values

    https://help.sap.com/saphelp_erp60_sp/helpdata/en/38/63b6531de6b64ce10000000a174cb4/frameset.htm

    Add comment
    10|10000 characters needed characters exceeded