Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8076

Distributed Condition Based on Total Value w/ Calculation Routine

$
0
0

Hello All,

 

I have an interesting pricing procedure requirement and I'm wondering if anybody else has had this issue.

 

I have a pricing condition that's currently maintained as a Manual Header Condition, that is a complex calculation based on a subtotal within my pricing procedure.  The calculation cannot happen based on the Item Value of this subtotal, but instead based on the total of the order.

 

Once the value is calculated, it must be distributed to the Sales Order Items based on value.

 

That's all working as expected, manually.

 

I would like to now automate this calculation, however because Header Conditions do not support calculation routines, how can I write a Calculation Routine and assign to the item, and have it calculate based on the header value, and distribute correctly at each item on the order?

 

 

Header:                        Subtotal $300

 

----

 

Item 10                         Subtotal $100

Item 20                         Subtotal $200

 

 

Based on $300, Calculate the total value (i.e. Header) via Calc Routine - which includes scaling, subtraction, etc. within ABAP, determine the result, distribute it to Item 10 and Item 20 proportionately.  Unfortunately the calculation cannot be accomplished via Scales and Pricing Tables in a standard fashion.

 

Any Thoughts?

 

Thanks!


Viewing all articles
Browse latest Browse all 8076

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>