Pro Rate Monthly Values

Worked on variations for a while and now seek some help.
My Time Dimension
Time
--FY07
----Qtr1-07
------Jan-07
--------Wk1-07
----------01/01/2007
----------01/02/2007
--FY08
----Qtr1-08
------Jan-08
--------Wk1-08
----------01/01/2008
etc.
Forecast values are input at Jan-08 (lev2) and I want to prorate them down to daily levels (level0).
What I have that doesn't work because the @SIBLING value counts only siblings in the week:
Forecast = @ANCESTVAL ("Time",-2) * (1/@COUNT(SKIPNONE,@SIBLINGS(@CURRMBR())));
It was when i started looking to use @COUNT of @DESCENDANTS of @ANCEST @CURRMBR and subtract the @CHILDREN etc. that I decided . . . maybe I need a hint.
Hints anyone?
Thanks!
Edited by: The J on Apr 20, 2009 7:52 AM

This one works.
FIX(@LEVMBRS("Time",0))
Target = @ANCESTVAL("Time",-2) / (@COUNT(SKIPNONE, @DESCENDANTS(@ANCEST("Time",-2),0))-@COUNT(SKIPNONE,@Children(@ANCEST("Time",-2))));
ENDFIX
Is there a more efficient way?
Thanks again.

Similar Messages

  • Pro rate function in billing plan

    Folks
    Would any one know how i could pro rate the value for the last month of the billing plan cycle. You would think this is a standard SAP function
    I have looked, and i am not able to find a solution. Our customer does not want to do any code changes. Let me know if you know of any standard changes that can be done.

    Hi,
    Looks like you are not rewarding for the helpful responses.
    <b>Please do reward for the helpful responses.</b>
    SAP has <b>Retroactive Billing</b> funcitionality
    Use
    New pricing agreements that you make with your customers may affect billing documents that have already been processed and settled. If a new pricing agreement is effective before the pricing date of the billing documents, you can perform retroactive billing to call up a list of these documents and reevaluate them with the new price. You can then create additional billing documents to settle any differences.
    Integration
    Retroactive billing is a special billing function often used in  scheduling agreement processing.
    Features
    With the retroactive billing function, you can:
    Call up a list of documents affected by price changes
    Trigger the system to create the necessary retroactive billing documents directly from the list
    Create credit or debit memos directly
    Review any errors in a log
    Simulate the retroactive billing process for any document
    How does Retroactive Billing work?
    In this example, the system calculates the difference between the net value of the invoice ($100) and today's net value based on the new price ($90). It then creates a credit memo with the net value of $10 to be credited to the customer.
    Primary and Secondary Documents
    The system calculates retroactive billing values for primary documents. It can use secondary documents to help calculate this value.
    Invoices are always primary documents.
    Other billing documents, such as debit or credit memos, can be primary or secondary documents. This depends on the order reason entered in the billing document.
    For more information on how the order reason is used to control primary and secondary documents, see Order Reason in Retroactive Billing. This section will also provide a more detailed example of how retroactive billing works.
    Primary Documents
    Primary documents are:
    Invoices
    Credit memos that refer to returns
    Credit and debit memos in which you have entered the relevant order reason
    You can also assign an order reason to a memo request which then passes it along to the referenced credit or debit memo.
    Secondary Documents
    Secondary documents are the following billing documents in which you have entered the relevant order reason:
    Credit and debit memo requests
    Credit and debit memos
    The system displays such a document only when it has been created with reference to the invoice and when the currencies in both documents match.
    If you create a credit or debit memo (or memo request) without reference to an invoice, you will not be able to see in the retroactive billing list if the invoice has already been billed retroactively.
    When you create a credit or debit memo request which is relevant for retroactive billing as a secondary document, the system will use it to calculate retroactive billing for the referenced document.
    The system does not take into account whether or not a request has been rejected, partially billed, or billed using another pricing procedure. Also, it does not take into account any changes in the payer, sold-to party, sales organization, billing date, or material.
    <b>Reward if helpful.</b>

  • Pro Rata calc. based on monthly period of 30 days every period

    PY - NL:
    Hi,
    I want to create a pro rata calculation based on a 30 days calendar. So every month has 30 working days. I know that table T510H offers posibillities combined with operation KDIVP, ADIVP and SDIVP. Can I use the above mentione operations instead of operation TSSOLL or does SAP not support this at all?
    How must I use it and what effect will it have, If a WPBP split accurse on 28th of February or 31th of January ?
    Can anyone help me?
    PS: I know it will also effect the time part of customizing.

    Did u checked the Processing Classs 10  and Specification 1
    for Prorata caluculation
    and also check the Sub rules  XPPF thru PE02  take the hlep of F1
    Prorate will happen automatically if u set the PCL  10  specification 1 
    Check and let us know ur feed back

  • Pro rata billing in SAP FE-FX

    Hi,
    Can anybody tell me how can the pro rata billing in RE-FX can be done. What config setting we have to do for pro rata billing. and the invoice can be generated in RE-FX.
    Is there is any link for configuring the billing.
    Thanks,
    Shailendra

    Hi,
    I have exactly the same requirement. Making the value 'M', does not adjust the price automatically.
    Currently I have as below (dates in dd/mm/yyyy) in the billing plan schedule item level.
    11/01/2010 to 31/01/2010 - $3100
    01/02/2010 to 28/02/2010 - $3100
    01/03/2010 to 31/03/2010 - $3100
    01/04/2010 to 30/04/2010 - $3100
    01/05/2010 to 31/05/2010 - $3100
    01/06/2010 to 30/06/2010 - $3100
    01/07/2010 to 22/07/2010 - $3100
    What I would like is to have as below,
    11/01/2010 to 31/01/2010 - $2100   "Adjusted for 21 days of the month
    01/02/2010 to 28/02/2010 - $3100  + $520 
    01/03/2010 to 31/03/2010 - $3100  + $520
    01/04/2010 to 30/04/2010 - $3100  + $520
    01/05/2010 to 31/05/2010 - $3100  + $520
    01/06/2010 to 30/06/2010 - $3100  + $520
    01/07/2010 to 15/07/2010 - $1500      " Adjusted for 15 days
    " Additional $520 is the amount distributed equally among all entries except first and last, so that the net amount that will be billed to customer remains same.
    Please share some ideas on how I can achieve this - either through configuration or in coding.
    Thanks
    Vinoth

  • After 1 year earned leave should generate and pro-rata quota should generate next year on jan 1st.

    Hi Experts,
    Here is the client requirement and please let me know how to solve this.
    Earned Leave: after 1 year earned leave should generate and pro-rata quota should generate next year on jan 1st.
    Example: if employee joins on 01/07/2012 after 1 year i.e 01/07/2013 quota should generate 22 days next year on 01/01/2014 pro-rata quota i.e 01/07/2013, 11 days pro-rata quota should generate. Total 22+11 =33 have to generate on 01/01/2014. and next year 01/01/2015 (22+11+22)=55.
    Note: on 1/7/2013 = 22 days
    on 1/1/2014 = 11 days +22 days; total=33
    on 1/1/2015 = 33 days +22 days; total=55
    Conditions: if employee joins before 15th date of current month include the current month, if employee joins after 15th date exclude the current month.

    You will need 2-3 PCRs to address this.
    In one PCR you need to query the Date of Hire (from IT0041 - I guess you are maintaining this) using HRS=YDAYxx - where xx is the date type. You can then check it it is the first year anniversary or not by using HRS?01. If the condition satisfies populate a custom time type with 22 days.
    In another PCR, you need to check for 01 Jan by using HRS=BCURMO and HRS=BCURDY. In this PCR check again the length of service (see above). If it is more than 1, then proceed to give the pro-rata amount.
    If the pro-rata formula is simple you can use the second PCR or you would need a 3rd PCR to get the pro rata amount. Using HRS=Y**** operator you can query many date differences which will help.
    Regards
    Pramod

  • Why can't we have simple pro rata billing?

    I've been a BT Broadband customer for ten years, and I am sick of these sales packages with their prefabricated bandwidth allowances and telephone or TV options. It seems to me that the BT Broadband sales strategists have a philosophy more appropriate to selling fried chicken. It's comparable to "bargain basket, 3 pieces chicken plus chips; bumper basket, 5 pieces chicken plus chips and free drink, family basket, 7 pieces plus chips and relish pack." Hence the insultingly stupid photograph on the BT Broadband web page, of a young Internet TV consumer before a flickering screen, cramming chicken segments into his  mouth from a paper basket while laughing idiotically. BT's standard telephone service was never like this. You never found that if you didn't make 2 or more calls a month, you would be charged a non-use fee of £2, as happens with one of BT's Broadband plus phone packages. Nor did you get emails saying you had exceeded your allowance and would be charged a flat-rate fine, but "we know it can be confusing keeping track of your bandwidth usage; why don' you switch to a larger, more expensive package?" I suggest a simple solution: sack all the sales strategists and sell services with simple pro rata billing. Charge customers for what they use, plus a flat rate rental, just like you do with the simple phone service. You keep track of individual usage anyway, so that you can nag people about exceeding their allowances. So why not just charge pro rata and get rid of the sales packages? Or are you totally wedded to tricking people into paying for more than they need?

    Welcome to the forum, which is essentially a customer to customer affair and messages do not necessarily reach anyone in BT.
    As a fellow customer I couldn't agree more, except to say that it's not just BT. But you have to realise that we're ungrateful wretches, refusing to give thanks for the bountiful gifts of competition that were promised when telecoms and other utilities were thrown to the wolves of big business. The fact is though that when you're sending pretty much the same signals down the same wires, the same current down the same cables, the same gas through the same tubes, you've got to do something to snare more customers than the next firm. What better way than conning Joe Public into believing that your ever-changing, unfathomable price structure, all wrapped up in shoddy customer service from minimally-trained staff with little understanding and even less commitment, is better than anyone else's? If I was a cynic I could bang of for hours.
    You can click the white star next to this message if you think it was helpful.

  • HI, I am trying to connect my macbook pro,  18 months old, to a projector using the mini display port and a cable/connector to a VGA port on the back of the projector.  It all fits but the there is nothing happening? no mirroring option. Any ideas?

    HI, I am trying to connect my macbook pro,  18 months old, to a projector using the mini display port and a cable/connector to a VGA port on the back of the projector.  It all fits but the there is nothing happening? no mirroring option. Any ideas appreciated.  Many thanks

    to get to the Detect Displays button you have to hold down the Option key and the button appears.
    SeanfromFulham wrote:
    Many thanks, however I don't seem to have any relevant options under displays.

  • Excise rate and value is not getting defaulted from the purchase order

    Hi all,
    While capturing excise invoice , the excise rate and value is not getting defaulted from the purchase order and in Excise Item Tab BED,AED,ECS is Zero at both header as well as item level for only one material in STO process and if we are doing same process taking other material all things are coming perfectly and We are maintaining condition with respect to vendor,plant and material combination.Any input related to this will be helpfull and rewarded.
    Regards
    Vishal

    Hi,
    Follow STO Process for this;
    1.Create a vendor for the company code of receiving plant, using account group: 0007 using T-Code XK01.
    2. Assign this vendor to Delivering plant
    Go to XK02 >Purchasing view>Extras>Add. Purchasing data>Plant
    3. Create internal customer with the sales area of the vendor. Go To XD01
    4. In pricing procedure determination relevant to STO, assign document Pricing Procedure and customer pricing procedure appropriate for STO to get the pricing in the invoice.
    5. Maintain condition records for the relevant pricing condition.
    6. Some more setting for STO: Go to MM> Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Receiving plant >assign customer here & Supplying SA (for billing) to Receiving plant here
    7. Go to MM > Purchasing > Purchase Order > Set up STO > define shipping data for plants > Go to Supplying plant and assign the sales area of receiving plant.
    8. Go to MM > Purchasing > Purchase Order > Set up STO > assign delivery Type & Checking rule
    Assign the delivery type to document type. In this case, Delivery type NLCC is assigned to Document type NB
    9. Go to MM> Purchasing > Purchase Order > Set up STO > Assign document Type, One step Procedure, Under delivery tolerance
    Assign the document type NB to supplying plant and receiving plant
    10. After all settings, Create the STO using T-Code: ME21N and maintain pricing conditions of freight and Save.
    11. In supplying plant Maintain condition record in sales using VK11 the same will flow in receiving plant when referring the OBD no during MIGO.
    10. Create Delivery: VL10G
    12. Picking, PGI: VL02N
    13. Billing: VF01
    Save the document and its done
    14. J1IIN - Outgoing Excise Invoice
    15. MIGO - Goods Receipt against outbound Delivery
    16. J1IEX - Capture & Post Excise Invoice
    Rgs

  • I just got my MacBook Pro a month ago. However I am realizing I need more hard drive space due to aps and programs.  I use am external but am concerned about the space. Is there a way to upgrade my hard drive from apple and keep my warranty valid?

    I just got my MacBook Pro a month ago. However I am realizing I need more hard drive space due to aps and programs.  I use am external but am concerned about the space. Is there a way to upgrade my hard drive from apple and keep my warranty valid?

    That would depend on whether your model actually has a hard drive. If you have the new 2013 Retina model, then you have a fixed storage device built-in that cannot be modified after purchase.

  • How to get the current month value for a customer exit variable?

    How to get the current month value for a customer exit variable? 
    And also if we have an InfoObject with date value (including date, month, year), then how to derive the month value from this date type of Char.?
    Thanks!

    Hi Kevin,
    Check here........
    Re: Customer Exist for "From Current Date To Month End"
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/25d98cf6-0d01-0010-0e9b-edcd4597335a
    Cal month
    Regards,
    Vijay.

  • I bought the macbook pro few months ago can i get the lion upgrade for free as a part of my software support?

    i bought the macbook pro few months ago can i get the lion upgrade for free as a part of my software support?

    They announced it; sorry, no free Lion:
    "The Mac OS X Lion Up-To-Date upgrade is available at no additional charge via the Mac App Store to all customers who purchased a qualifying new Mac system from Apple or an Apple Authorized Reseller on or after June 6, 2011. Users must request their Up-To-Date upgrade within 30 days of purchase of their Mac computer. Customers who purchase a qualifying Mac between June 6, 2011 and the date when Lion is available in the Mac App Store will have 30 days from Lion’s official release date to make a request."

  • I bought my macbook pro 2 months a go..it has become very slow as i don't have movies etc. should i format my mac , please advice ???

    i bought my macbook pro 2 months a go..it has become very slow as i don't have movies etc. should i format my mac , please advice ???

    Have a read here...
    http://support.apple.com/kb/HT1147
    http://www.thexlab.com/faqs/maintainingmacosx.html
    http://www.thexlab.com/faqs/performance.html

  • I bought a new MacBook Pro several months ago.  I keep losing my wireless connection (my wife, sitting several feet from me has no problem with her iPad2).  I find the quickest fix ix to turn Airport off and back on.  Very annoying.   Suggestions please?

    I bought a new MacBook Pro several months ago.  I keep losing my wireless connection (my wife, sitting several feet from me has no problem with her iPad2).  I find the quickest fix ix to turn Airport off and back on.  Very annoying.   Suggestions please?

    What kind of wireless router are you using? more importantly which protocol are you connecting with? Are you and wife connecting using the 2.4Ghz band? or do you have a dual band router that offers the 5GHZ band?  Are you both connecting vie 802.11 a/b/g or n?
    The best thing to do is to go into SYSTEM PREFERENCES and select NETWORK, then select AIRPORT and click on the ADVANCED button.
    Under the AirPort tab you should delete all the preferred networks and only add back in your network with the proper security settings and passwords.
    If you hold down the option key on your keyboard while clicking on the airport icon at the top on your macbook pro. you'll seesome data that will tell you what band and mode you're connecting at, as well as in an indication of signal strength (RSSI) if you write down and post back that information it'll tell us what's going on.

  • How to Bring the Quarter Period and Previous Month Value for given Input

    Hi to all,
          I want bring Quarter Period and Previous Month value for the given Input. Plz help me on this
    Example :
    Input : 06.2008
    Output:
    Input     Prev.Month  Quarter 1   Quarter 2   Quarter 3 
    06.2008  05.2008      03.2008     12.2007     09.2008
    12.2008  11.2008      09.2008      06.2008    03.2008
      Is there any Standad Exit for this or we have to write coding ?
    Regards,
    Saran

    Hi,
    You can solve this by using Replacement path.There you have a option offsets.Here give the current period.Based on that give the number which previouse month you suppose to want.
    I think this 'll help you
    assign points if this helps
    Regards
    JT Goud

  • BEx Analyzer bug in selection mask when selectin month values?

    Hi Gurus,
    I´m working with NW BI 7.0 and using BEx Analyzer 7.X (based on 7.20, Support Package 5, Revision 1776).
    In a query I want to do a selection within a selection mask for the Cal/Month variable (0Calmonth InfoObject).
    The values for months are appearing in correct order for example for the years from 2009 - 2011.
    But for the last three month values the year description appears always wrong.
    It shows always the year for the next years.
    Its like this:
    Jun 2009
    Jul 2009
    Aug 2009
    Sep 2009
    Oct 2010
    Nov 2010
    Dec 2010
    Jun 2010
    Jul 2010
    Aug 2010
    Sep 2010
    Oct 2011
    Nov 2011
    Dec 2011
    Jun 2011
    Jul 2011
    Aug 2011
    Sep 2011
    Oct 2012
    Nov 2012
    Dec 2012
    Is this a bug?
    The values are appearing correct in query results after selecting for example Dec 2012 and executing the query (Dec 2011 appears correct in query results).
    Thanks in advance.

    Thanks! I checked it, but the appearance of months and order is okay in T247.
    Any other ideas?
    I thought I read somewhere that this is a bug but can´t remember where I found that bug hint.

Maybe you are looking for