cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with Object Dependencies Syntax Error in VC Constraints

former_member196521
Active Participant
0 Kudos

Hello All,

I am trying to simulate a constraints scenario in VC where I have created a table. Following the e.x. of the below blog

I have created a variant table

Created the dependency net in transaction code cu21 and assigned the object dependency to it. However I am getting a syntax error

Kind Regards

Atul

Accepted Solutions (1)

Accepted Solutions (1)

Flavio
Active Contributor
0 Kudos

Hi Atul,

looks like the dependency is not completed, thus generating syntax error.

Just complete it, like in the following screen shot:

After that, it should hopefully work

Thanks and bye,

Flavio

former_member196521
Active Participant
0 Kudos

Hello Flavio,

Thank you for the quick response.

I am looking the code snip let of point No 6.2 in the document which looks at error messages with regards to validations of characteristics.

The code got saved.

However no such message appeared or the red cross below in cu50 transaction code

Please advice further.

Kind Regards

Atul

Flavio
Active Contributor
0 Kudos

Hello Atul,

I see.... So, just comment out the last statements concerning Inferences, and it will work:

Here the simulation with CU50:

Thanks and regards,

Flavio

former_member196521
Active Participant
0 Kudos

Hello Flavio,

Could you please help out to comment out the last statements. I removed them however still no luck

Next when I go to simulation in cu 50 transaction code, still no luck.

Kind Regards

Atul

Flavio
Active Contributor
0 Kudos

Hello Atul,

let's try to see with Trace what's happening with the Constraint:

  • when you are in the CU50 selection screen, click on Extras menù, then Trace and Settings. In the pop-up, make these selections:

    and Activate.


  • run CU50, and make the characteristics evaluation as usual. After having pressed enter, go to the Extras menù and then Trace and Display. Now, search for the dependency CONSTRAINT_COMPUTER1:

    and check the messages.

I do hope this will reveal something.....

Thanks and regards,

Flavio

former_member196521
Active Participant
0 Kudos

Hi Flavio,

Thanks for helping out, appreciate all your efforts. I have got the below messages. Please advice further.

Kind Regards

Atul

Flavio
Active Contributor
0 Kudos

Hello Atul,

looking at the above messages, I believe that the constraint is not triggered (we cannot see the part at the bottom saying 'Use of Constraint...' with the variables (PC.CH_....) evaluated, here how it should look like:

This could be due to the dependency status (Locked / not released).

Could you please check the constraint dependency status in the Basic data:

It shout be 'Released'.

Please also check the Dependency net status, again 'Released'.

Hopefully it should work......

Thank you and regards,

Flavio

former_member196521
Active Participant
0 Kudos

Hello Flavio,

Thanks for the response it is in released status only. However no luck

Kind Regards

Atul

Flavio
Active Contributor
0 Kudos

Hello Atul,

that's fine for the Dependency net status, what about the Constraint dependency one?

This latter usually gets 'Locked' if there are syntax errors, and we must manually switch it to 'Released' once the errors are fixed....

Good luck....

Flavio

former_member196521
Active Participant
0 Kudos

Hello Flavio,

Thank you for your detailed reply appreciate the same can you let me know in which transaction code should I check the constraint dependency one?

Kind Regards

Atul

Flavio
Active Contributor
0 Kudos

Hello Atul,

you are welcome!

Constraint dependency status could be checked with CU02 (Change Dependency), entering the dependency (CONSTRAINT_COMPUTER1). It's in Basic data tab.

Alternatively, from within the Dependency net, in Assignments, select the dependency and click on Basic data.

Thanks and regards,

Flavio

former_member196521
Active Participant
0 Kudos

Hello Flavio,

Brilliant response. My Object dependency code was in preparation mode. I changed to it release and the constraint code worked.

I was trying to change the dependency using transaction code cu02 however the system does not allow for the same

The same needs to be changed using the second point which you mentioned above.

Alternatively, from within the Dependency net, in Assignments, select the dependency and click on Basic data.


Thank you for helping out again and going all out to resolve my issue.


Kind Regards

Atul

Flavio
Active Contributor
0 Kudos

You are welcome, Atul.

I'm happy that it's working now

Have a nice day1

Flavio

Answers (0)