Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Pricing question

Former Member
0 Likes
675

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

4 REPLIES 4
Read only

Former Member
0 Likes
641

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

Read only

0 Likes
641

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

Read only

0 Likes
641

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."

Read only

0 Likes
641

Sorry Thank was a mistake, its " ignore ZXYZ"