cancel
Showing results for 
Search instead for 
Did you mean: 

Restricting allowable values of multi-value characteristic using table/constraint

former_member595928
Discoverer
0 Kudos
2,098

Hello,

I have two characteristics, F (single value, char) and S (multi-value, char).

I want to restrict the allowable values for characteristic S based on value selected for F.

I have a table with columns for F (key) and S. I created a constraint which calls table rest_S and infers the value of S. The syntax check comes back error free.

Example of table

If I enter value of 1 for F, I should only be able to select values of A,B, and C for S (not D). If I enter value of 2 for F, I should only be able to select A and D (not B,C). However, the constraint is not working as expected, it is not restricting any of the values. This exact scenario works fine if both characteristics are single value, only running into an issue with one of them being a multi-value.

Is this above mentioned scenario something that can be achieved using a table and constraint. If so, is there something I should change in constraint or table? If not, is there a better way to achieve this requirement?

Thank you!

View Entire Topic
a__engfehr
Active Participant

Hello rfolino , you did not mention if you were using LO-VC or AVC. Since AVC is still pretty new I will assume LO-VC.

In LO-VC multi-value characteristics do not have the option in CT04 to be restrictable (they do have that option in AVC). That means you can't use them in constraints the same way you can single value characteristics to restrict value domains. It seems that you discovered this in testing.

If you are required to continue to use the multi-value characteristic, one of the often recommended methods for restricting it is to use a precondition. Please view the links below for methods and syntax. The process is similar to using selection conditions and in the second link you can see an example using tables if you want to keep your table.

https://help.sap.com/saphelp_47x200/helpdata/EN/92/58c25c417011d189ec0000e81ddfac/frameset.htm

https://help.sap.com/saphelp_47x200/helpdata/EN/92/58c5e7417011d189ec0000e81ddfac/frameset.htm

naveen_chepuri
Participant
0 Kudos

Dear Andrew,

I am not able to access to links you provided above. Any possibility that you can post the latest links?

I am having the same scenario where we are striving hard to get the solution.

Thanks,

Naveen.

a__engfehr
Active Participant

Hello naveen.chepuri, I'm sorry I do not know what those links were to as I posted it nearly 2 years ago. It's disappointing that direct links to SAP help broke. My guess is that they were for how to use preconditions (which you can do a search on sap preconditions).

I would recommend not using multi-value in a restrict-able senario (unless you have moved onto AVC).