cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting Multiple value using Constraint

HEADY
Discoverer
0 Kudos
195

Dear Experts,

I have a situation with Multiple char values to be restricted based on key character maintained in the variant table1.

HEADY_1-1726132775431.png

Char1 - Single Value char

Char2 - Multiple value char

If A is selected in Char1 then Char2 should list 1,2,3 as values in a dropdown to choose. It can be achieved by define constraint net and constraint.

If A is selected in Char1 then Char2 list one of 1,2,3,It cannot be selected at the same time。Is there a way to achieve it?

thanks,

 

Michael_W
Product and Topic Expert
Product and Topic Expert
0 Kudos

I don't think that it is possible in classical LO-VC to restrict the domain of a multi-value characteristic using a constraint. That's only possible with S/4 advanced variant configuration.

View Entire Topic
Michael_W
Product and Topic Expert
Product and Topic Expert
0 Kudos

I don't think that it is possible in classical LO-VC to restrict the domain of a multi-value characteristics using a constraint.
You should not even be able to set the 'restrictable' flag for a multi-value cstics.

Workaround: Assign a separate precondition to each of the values of the multi-value cstic CHAR2 and try to use the variant table from there:

TABLE TABLE1 {
CHAR1 = $self.char1,
CHAR2 = '1' <- different in each precondition: must be the value to which the precondition is assigned
}

HEADY
Discoverer
0 Kudos
Thank you very much for your responses.
HEADY
Discoverer
0 Kudos
I will try your method, in our test system