cancel
Showing results for 
Search instead for 
Did you mean: 

Constraint is violated

naveen_chepuri
Participant
0 Kudos

Hello,

Facing a small issue where i need your expertise.

I have Char1 has values A, B, C

Char2 has values 1,2,3

Created table for characteristics Char1 and Char2.

Table entries

A 1

B 2

C is not maintained in table.

Created Constraint to infer Char2 values when Char1 is selected.

When value C is selected on Char1 getting the error "Constraint is violated".

How to resolve this issue with constraint? Do i have to entry in table with Char value 'C'?

Thanks,

Naveen.

Accepted Solutions (0)

Answers (3)

Answers (3)

naveen_chepuri
Participant
0 Kudos

Thanks Andrew,

How about the case if i have huge list which should not be in variant table? Is it possible to create new variant table with the missing ones and add as a condition in constraint?

If yes, how to write the syntax?

Thanks,

Naveen.

a__engfehr
Active Participant
0 Kudos

Hello naveen.chepuri,

You could acomplish this by using the CONDITION: section, which comes after the OBJECTS: section. Your condition would be Char1 Not C. The constraint would not execute when a value of C is chosen.

Flavio
Active Contributor
0 Kudos

Hi naveen.chepuri,

looks like a system behaviour, see the SAP help, link here;

indeed, it says that:

'...the value set inferred during configuration is empty, 
which triggers an inconsistency.';

hope this could help;

with best regards,

Flavio

naveen_chepuri
Participant
0 Kudos

Thanks Flavio. I instead used 'Procedure' to fulfill my requirement.