I have a following scenario for "profit centre" in sap. and for the same wants to utilize CO substitution functionality, with 0KEM t code,
If system determine
Distribution Channel + Plant = Profit Centre
10+1000=1000
10+2000=2000
10+3000=3000
20+1000=4000
20+2000=5000
20+3000=6000
I have create a rule and create 6 steps for each above scenario, where incorporate the above relationship, but the step that is at the top or can say first step only successfully executed, if create order for 10+2000 system cant determine the profit centre.
step 10 > distribution channel = '10' AND Plant = '1000' > Profit Centre 1000
step 20 > distribution channel = '10' AND Plant = '2000' > Profit Centre 2000
step 30 > distribution channel = '10' AND Plant = '3000' > Profit Centre 3000
step 40 > distribution channel = '20' AND Plant = '1000' > Profit Centre 4000
step 50 > distribution channel = '20' AND Plant = '2000' > Profit Centre 5000
step 60 > distribution channel = '20' AND Plant = '3000' > Profit Centre 6000
please suggest what mistake I am doing, or while writing code what kind of program or logic should I adopt.
Looking for the gurus feedback.
Regards,