cancel
Showing results for 
Search instead for 
Did you mean: 

Object dependency setting for characteristic values.

Former Member
0 Kudos

hi,

i have two characteristic Car_type and Car_colour.

i am assigning this to one class CL_car_class(Class type = 001).

now i have to set object dependecy for these characteristic.

For example when my car_type = 'ZEN' i wants that characteristic

car_color gives me only color 'BLUE' else all the colour from car_colour.

Can you please provide me all the steps in brief.

Regards,

Virat

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi...,

in addition to "Angela Scott" solution, write a constraint for the reverse of preconditon. by becuase when customer try to select "colour" first then car_type second, configuration through error.

it is better to writer a constraint against precondtion then procedure.

regards.

former_member244309
Participant
0 Kudos

This can be achieved by using pre-conditions for the values of characteristic Car_color.

1. Create pre-condition in transaction CU01 (example Z_PRE_CAR_COLOR) so that the pre-condition logic is NOT (CAR_TYPE = u2018ZENu2019). After the pre-condition is completed, be sure to set the status = 1 (Released).

Another way to create the pre-condition is directly from transaction CT04. You would click on the u2018Valuesu2019 tab for characteristic Car_color. Then select a value and click on the u2018object dependenciesu2019 icon. Next, enter the name for the pre-condition & click enter. It will prompt you to create the new pre-condition & then proceed the same way as if in transaction CU01.

2. Using transaction CT04, assign this pre-condition (Z_PRE_CAR_COLOR) to each value in the characteristic Car_color, except to the value of u2018Blueu2019. This way, when the Car_type = ZEN, then only the Car_color value = Blue will show. To do this, you would click on the u2018Valuesu2019 tab for characteristic Car_color. Then select a value and click on the u2018object dependenciesu2019 icon. Next, enter the name for the pre-condition (Z_PRE_CAR_COLOR) & hit enter. Green arrow back to the values list. Select another value & repeat. Repeat this for all values except u2018Blueu2019.

Another option in order to automatically choose u2018Blueu2019 for the user would be to use a procedure to set the value of Car_color.

1. Build procedure in transaction CU01 (example Z_PRO_CAR_BLUE) so that the logic is as follows:

$SELF.CAR_COLOR = 'BLUE' IF CAR_TYPE = u2018ZENu2019

2. Set the procedure status = 1 (Released).

3. Assign the procedure to the appropriate material(s) configuration profile in transaction CU42.

I hope that this information helps you.

Regards,

Angela Scott