cancel
Showing results for 
Search instead for 
Did you mean: 

variant configuration -object dependancy?

Former Member
0 Kudos

how can we know that this object dependancey assign to this charactristic value of particular charactristics.

Ex. CAR is a material, and one charactristcis is engine capaceity says 800 CC, 1000CC 1200CC and 1400CC and other charactiristics is Fuel says petrol or diesal. now i create a object depency is that in 1400 CC either petrol or diesal has to selected. while others are only availabe in petrol.. so maintain source code for that. now this O.Depedancy assign to what value. so. i can get 1400cc with either petrol or diesa.

regrds

pinal

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Pinal,

CASE 1 :----


>>>>>>>>>>>>>>>>>>

If your material CAR is a configurable material KMAT and has variant class type 300 attached to it.

Then Please do the following :

1. Execute T.Code CU42,

2. Goto Object dependencies section

3. specify the name of Procedure e.g. PROC1

4. go to dependency editor

5. write following code:

$SELF.FUEL = 'PETROL' IF $SELF.ENGINE_CAPACITY IN ( '800 CC', '1000CC', '1200CC' ).

6. Compile and save.

7. set status to 1.

8. come back and save.

9. Now configure material in CU50 to check the effect.

If you want to to it by Constraint, let me know. I will tell you the details.

CASE 2 -


>>>

IF YOU ARE ASKING THIS FOR CLASSIFICATION SYSTEM,

revert back , then I will suggest another way to achieve this.

***************IMPORTANT***************

FYI----


>

writting dependencies directly on char level, char value level is not the preferred way of managing good variant configuration projects

Plz reward if found useful.

Regards,

Gaurav raghav.

Former Member
0 Kudos

Hi gaurav, u r absolutly right, but how can i know that this O.dependancy has to assign which charactrsitc value.i know that how to assign, but i would like to know that whom to assign.......

regards

pinal

Former Member
0 Kudos

Hi Pinal,

OK. If you want it this way, then you please use Object dependency type: Precondition as described below :

Precondition is used when you want to keep a characteristic value hidden and make it appear only when certain condition becomes true.

For your case, we consider that we will make the value 'DEISEL' appear only when engine capacity selected is '1400 CC' . Right ?

Now proceed as follows:

1 .goto char. FUEL

2. now select value DEISEL

3. press Object dependency button ( I hope you know this )

4. Select dependency type as Precondition

5. Write following code in editor :

$SELF.ENGINE_CAPACITY = '1400 CC'.

6. complie and save.

7. Simulate material CAR.

8. If successful , then Reward Points as Problem Solved

9. If not or any other issue in this, Please come back again.

Regards,

Gaurav Raghav.

former_member183879
Active Contributor
0 Kudos

In a particular characteristic, go to the characteristic value, select the value, and then in the menu goto Extras---Object dependencies-Assignments

Here you can see all the dependencies assigned to a particular value of characteristic.

Unfortunately the details are updated in a structure RCUKD and hence we may not be able to extract the particular dependency assigned to characteristic values.

Reward if this helps you.