cancel
Showing results for 
Search instead for 
Did you mean: 

SD Pricing Requirement

0 Kudos

Hi,

I need to write a pricing requirement for tax condition type. So this requirement will be assigned to a unique tax condition. What we need to do is that if TOTAL condition value of this condition for the entire billing document is negative then I need to fail the requirement in turn not apply the tax to each billing item. Initially I though that I can access XKOMV or some pricing internal table but this table gets populated at each billing item. See my billing items can have positive or negative net value and total tax can be either negative or positive depends on which net value is higher. Looping through XKOMV or TKOMV is resulting in short dump. As I am guessing during creation of billing document tax condition is active while saving the same requirement is making it inactive. Is pricing requirement best place to put such logic?

billing item     net value           tax

00001            $209.30          $57.70

00002            $0.0               $0.0

00003          - $4,600.00     - $1268.22

---------------------------------------------------------

                   - $4390.70     - $1210.52

In this case total tax is negative so tax should not be applied at each item.

Please advise.

Thank you so much!

Accepted Solutions (0)

Answers (2)

Answers (2)

eduardo_hinojosa
Active Contributor
0 Kudos

Hi

Please, read SAP Note 156230 - Requirements: What is permitted, what is not? for understanding how this objects work.

I hope this helps you

Regards

Eduardo

moazzam_ali
Active Contributor
0 Kudos

Hi

Looping through XKOMV or TKOMV is resulting in short dump.

Can you share what is that short dump? What is system telling you in that dump. I think TKOMP should work here but if its not working then you can also try in RV60AFZZ in user exit

  USEREXIT_PRICING_PREPARE_TKOMP. Please test and update.

Thank$