Quantcast
Channel: SCN : Unanswered Discussions - Supply Chain Management (SAP SCM)
Viewing all articles
Browse latest Browse all 5579

Macro question

$
0
0

Hello experts,

 

Need to write a macro that can handle the following requirement:

 

We have monthly view/ planning book and the following KFs Sales History, Budget, Leftover Budget. The requirement is to calculate the leftover budget for current year. The macro should be able to calculate the " Left over Budget" by taking  annual difference of budget and sales history and spread it to the remaining months in the current year.

 

Details of steps:

1. Calculate total of Budget for current year ( for example Jan 2014 to Dec 2014), should roll to 2015 next year and so on...
2. Calculate total of Shipment for current year (Jan 2014 till last month)
3. Calculate the difference of (Total budget for current year  - Total Shipments happened for current year till last month)
4. Spread the difference calculated in '3' above and should be spread evenly in the remaining month for the current year of KF 'Leftover Budget' (current month - March, april...Dec )

 

Any input is appreciated.

 

Tej


Viewing all articles
Browse latest Browse all 5579

Trending Articles



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