‎2014 Aug 12 6:21 PM
Hello Gurus,
I have a pricing question.
I have 2 condition types ZABC and ZXYZ. ZABC has higher priority i.e., if a condition record is found for both ZABC and ZXYZ then SAP should pick ZABC for process and ignore ZXYZ.
Because of other reasons I cannot use condition exclusion here.
ZABC and ZXYZ has multiple key combinations
So i have to add logic in requirement.
If condition type is ZXYZ, get the key combination and pricing date from ZXYZ condition type and check if a valid ZABC condition record exists.
Exclude ZXYZ, if valid ZABC condition record is found.
********************************************************
Loop at KONV-KSCHL = ’ZXYZ’
Get the Key combination and pricing date,
check if, for the key combination and pricing date a valid ZABC condition record exists. If SYSUBRC = 0 then IGNORE ZABC.
*********************************************************
Can you suggest if the logic above is correct?
Thanks for your help
Nidhish
‎2014 Aug 12 6:44 PM
Hi Nidhish,
I'm not sure this is the best way.
Maybe you could try to use just one condition type with different access sequences.
What do you think? So this way you can prioritize the most priority.
Best regard,
Diogo Angelo Gonçalves
‎2014 Aug 12 6:54 PM
Hi Diogo,
Thank you for your response. these two condition types serves 2 different purposes. Using one condition is not possible. Can you suggest if the logic that I mentioned is ok ?
Thanks
Nidhish
‎2014 Aug 12 7:24 PM
Ok, but in this case your logic is wrong, because you told us that ZABC has higher priority, however in the logic you are ignoring ZABC if there is record.
Note what you wrote about the logic: "If SYSUBRC = 0 then IGNORE ZABC."
‎2014 Aug 12 10:28 PM