Pro-Rata Allowance Calculation based on WSR

Hi,
We need to perform an enhancement for a allowance to be calculated based on their WSR. Could any one please advise what would be the best approach to perform this customisation.
Following are the details:
A calculation needs to be made based on an employee’s 0007 & 2003 records for a given month to determine what percentage of the planned hours for the month that a person has worked and then apply that percentage to the Monthly Staff Supplementary Allowance applicable for the Work Schedule Grouping.
Example A – Employee on Work Schedule for the Whole Month Employee has a 0007 infotype record that has them on Work Schedule SC112 for the whole of April 2008. System pays 100% of the allocated payment of $166.67 per month
Example B – Employee on Work Schedule for part of the Month, Employee has a 0007 infotype record that has them on Work Schedule SC112 for the part of April 2008 as they only started on 14th April 2008. Planned Hours for April for SC112 are 180 hours and this person has worked 108 hours which is 60% (=108/180). System pays 60% of the allocated payment of $166.67 per month which results in a payment of $100.00 for the employee.
Example C – Employee on Work Schedule for part of the Month Employee has a 2003 infotype record that has them on Work Schedule SC112 for the 14th April 2008. Planned Hours for April for SC112 are 180 hours and this person has worked 12 hours on SC112 which is 6.67% (=12/180). System pays 6.67% of the allocated payment of $166.67 per month which results in a payment of $11.11 for the employee.
Example D – Employee on 2 eligible Work Schedules for the Month Employee has a 0007 record for Work Schedule SC112 from 01.04.2008 to 14.04.2008 and then for SC412 from 15.04.2008 to 31.12.9999. This person has spent 100% of the month in an eligible Work Schedule grouping System pays 100% of the allocated payment of $166.67 per month which results in a payment of $166.67 for the employee.
Example E – Employee on 2 eligible Work Schedules for the Month, Employee has a 0007 record for Work Schedule SC112 from 01.04.2008 to 14.04.2008 and then for SC512 from 15.04.2008 to 31.12.9999. This person has spent 100% of the month in eligible Work Schedule groupings The period on SC112 represents 40% of the hours for SC112 for April 2008, 72 of 180 hours. The System calculates 100% of the allocated payment of $166.67 per month which results in a payment of $66.67 for the employee. The period on SC512 represents 50% of the hours for SC5112 for April 2008, 96 of 192 hours. The System calculates 50% of the allocated payment of $0.00 per month which results in a payment of $0.00 for the employee. Overall this employee receives a Staff Supplementary Allowance of $66.67 for April 2008.
Your help would be really appreciated.
Regards
Ranjith Yama

Hi Guys,
Could you please advise on this,
I'm trying to build a rule to get the Actual worked hours so that I can use the SSOLL and constant from T511k table to calculate the alowance.
I'm pretty new in writing rules, your help would be really appreciated.
Regards
Ranjith

Similar Messages

  • Allowance calculation based on Planned & Actual working hours

    Hi,
    Please advise how to calculate an allowance based on employees Planned working hours & Actual working hours for a particular work schedule rules.
    Example A – Employee on Work Schedule for the Whole Month Employee has a 0007 infotype record that has them on Work Schedule SC112 for the whole of April 2008. System pays 100% of the allocated payment of $166.67 per month
    Example B – Employee on Work Schedule for part of the Month, Employee has a 0007 infotype record that has them on Work Schedule SC112 for the part of April 2008 as they only started on 14th April 2008. Planned Hours for April for SC112 are 180 hours and this person has worked 108 hours which is 60% (=108/180). System should pay 60% of the allocated payment of $166.67 per month which results in a payment of $100.00 for the employee.
    Your help would be really appreciated.
    Regards
    Ranjith Yama

    Hi Manoj,
    Suppose ABCD is the wagetype for xyz allowance. I hope you are getting this 1000 amount from T510.
    This is the logic of PCR for your requirement.
    ABCD
      NUM=TKAU**        --> Getting Unpaid Absences (Suppose 2)
      RTE=KCONS2        --> Maintain CONS2 constant in T511K Table with 200
      MULTI NRA            --> Multiplying No.of Absences with 200.. that is 400
      ADDWT &BUFF     --> Saving that in one Variable
      FILFF NRA            --> Restoring Actual values
      AMT- &BUFF        --> Subtracting from 1000 and you will get the 600
      AMT?0
         ADDWT *
       <              
         AMT=0             --> if amount is less than 0 then amount will bocome 0
    Hope this helps.
    Pradeep.

  • 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

  • Shipment cost calculation based on HU's allowed packaging weight

    Hi all,
    I need to calculate a shipment cost based on the Means of Transport's Allowed Packaging Weight (MARA-ERGEW). After condition record determination of cost per ton in each case, the system must multiply this value times the allowed packaging weight.
    I know that through customizing I can create a Condition Type with Calculation Base = 'C' (Handling Unit) and Calculation Type = 'D' or 'E' (Gross or Net Weight). This is almost what I need except for the Calculation Type, because Allowed Packaging Weight is not an option in the field's matchcode (Percentage, Fixed Amount, Quantity, Gross Weight, Net Weight, Volume, etc...).
    Is there any way through customizing I can achieve this? Or how can I program a routine in the Pricing Procedure for the Condition Type in order to make the calculation based on the HU's Allowed Packaging Weight.
    I appreciate your help!!

    Freight carriers charges weight on the basis of Weight / volume of the items.SAP shipment works on the same principle.
    Cost of transporting ton of Potataoes  is same as transporting 10 ton of aluminium between two known destinations.
    Hence it is illogical to distributes cost on the basis of item value. However if still you want to distribute the same on value basis then maintain freight condition(%) in PO as per your prefined logic of distribution of freight cost.
    It is well known fact that cost of freight % is always higher in  Low value items & iis low in case of High value items.
    Regards,
    Sanjay Kohli

  • Prorate calculation based on Martial status

    Dear Experts,
    We have two types of the minimum of Housing Allowance(IT0014 - HA01WT):
    1.        1000 Monthly for Single
    2.        1500 Monthly for Married
    And this changeable based on Marital Status Key on Info Type 0002. However; if the change of Marital Status happened in the middle of the month the Housing Allowance should be calculated on a pro rata basis.The System gives the employee the new Housing Allowance in full. Please provide me the logic or operation that we can use in the PCR
    Pls let me know for any further clarification
    Regards
    SB

    I found solution on my own. please find below the rule
    TABLEP0002 Read table fields
    VARGBFAMST Tab.field VVVVV v.ky
      1
        WPALL?LAST ID = LAST?
          N
          Y
            AMT?IZSHNG Comparison
                ADDWT *    OT   Output table
              <
                RTE=FZ7N   Set
                RTE?1      Comparison
                  =
                    ZERO= NRA  AmtNumRteTime = 0
                    RTE=FZ7T   Set
                    AMT=IZMHNG Set
                    MULTI RAA  Multipl.amt/no/rate
                    AMT/TKDIVI Division
                    ADDWT 1001 OT   Output table
                    RTE-TKDIVI Subtraction
                    RTE*-1     Multiplication
                    AMT=0      Set
                    AMT=IZSHNG Set
                    MULTI RAA  Multipl.amt/no/rate
                    AMT/TKDIVI Division
                    ADDWT 1001 OT   Output table
                  >
                    AMT=IZMHNG Set
                    ADDWT *    OT   Output table
    Now its calculating based on prorate basis for both single and married status...
    Regards
    Sanjai

  • Excise Duty sediment allowance calculation

    How does SAP deal with sediment allowance:
    For cask products we are able to claim a sediment allowance, for the undrinkable bits at the bottom of a cask. So if a product has a volume of 9 Gallons (40.9L) but there is a sediment figure of 0.7L we only pay duty on 40.2L.

    The tax code in PO follows the FI pricing in OBQ3, TAXINN...
        it is been maintained as u have described..
         first create tax code in FTXP  say F1= 8.24% excise and 4% vat
        then maintain conditions records for the above tax code if FV11
             for JMOP( BED)     =  8
                   JEC1(ECESS)  =  2
                   JSEP(SECESS) = 1
                   JMX1(BED % CREDIT) = 100
                   JEX1(ECESS% CREDIT) =100
                   JHX1(SECESS% CREDIT) = 100
                   JVRD(VAT CREDIT)      = 4
    then assign tax code to company code in tax on goods movement < basic setting < calculation based
    the check the condition type please try OBYZ...

  • Query for Auto Calculation based on input of 2 Fields

    Hi,
    I would like to write a sql query to allow for auto calculation based on the Inputs of 2 other fields before Adding the Order.
    For example. A query on Sales Order where I have Item 040634 (Code for a Flower) and Quantity 200.
    I have a UDF (Bunching) where the value is 10, 15 or 20.
    Based on the Bunching the result should be given in another UDF (Noofsleeves).
    (Quantity) 200 / (Bunching) 10 = 10 (Noofsleeves)
    The Order will be having multiple items where the Bunching can differ for each item.
    Is it also possible to remove the calculated noofSleeves from Inventory.
    I am using 2007A SP01 PL05

    Hi ,
    You may try this: Apply this fms on other udf and auto refresh on the udf mentioned in the query (in your case Bunching).
    SELECT $[RDR1.Quantity.number] / $[RDR1.U_UDF.number]
    You may check these too.
    cALCULATION OF udf ON UNIT PRICE
    FMS
    Thanks,
    joseph
    Edited by: Joseph Antony on Jul 8, 2010 12:31 PM

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

  • Formula function in formula of type Rate Value Calculation does not work

    Hi,
    We are trying to prorate eligible salary based on some business rules.
    We have defined Standard rates with calculation method as 'Calculate for Enrollment Rule' and attached a formula in the 'Value Rule' field.
    Now inside the formula, if i directly return a value like 'Return 9000' , it works correctly. However, if i have a fomrula function and return the value as follows,
    l_value = CUSTOM_FF_FUNCTION()
    retunr l_value
    it does not return value.
    I have attached a package function that simply returns 4000 just for debugging.
    Even this does not return the value back to the formula
    Any pointers will be useful
    Thanks,
    LN

    Sorry. I had not checked this post earlier.
    We had 2 functions with same name and same contexts on the same database. Each of the functions called a separate package function and had its own logic.
    So sometimes the first function was called.At some other times, the second function was called.
    We deleted one of the functions and the formula worked well.

  • 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>

  • Interest calculation based on Net Due Date

    Hi guys: I want the interest calculation based on net due date and not document date or posting date.
    I tried to check the box "ALWAYS CALCULATE INT FROM NET DUE DATE in prepare item interest calculation step, but system gives me message
    "Do not select "Calc.intrst from net due date" for this int.calc.type
    Message no. F7128"
    Here are my questions:
    1- how can i make the system to calculate interest only after the item is due for payment - right now its calculating anyday after the document date
    2- Is this the correct place in configuration to do this?  (ALWAYS CALCULATE INT FROM NET DUE DATE )
    3- Also in T code FINT, how can i run interest posting for only one item rather than all that show up in test run? I tried selecting/highlighting only one but it posts all.
    thanks much
    brian

    HI,
    The system always calculates the interest from the document date of the invoice,
    as of my knowledge there is no setting for the interest calculation from the net due date, so
    what u need to do is when u are running the open item interest run u specify the period of only the date
    from the net due date to required date as of u.
    if u  want to calculate the interest to paticular invoice and  having two invoices
    then u can run  as per the document date and other thing is u can block the invoice for dunnig.
    Regards,
    Padma

  • 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

  • What is the best USB powered portable 1TB hard drive for a macbook pro that allows Time machine to work, windows (thru Parallels software) and mac storage and is available in Australia?

    What is the best USB powered portable 1TB hard drive for a macbook pro that allows Time machine to work, windows (thru Parallels software) and mac storage and is available in Australia?

    I agree with teh OWC sggestion above, but why must it be USB powered? I find that far more unreliable, and the low power devices slow.
    I'd frankly get a good external enclosure and buy a bare drive.  But the OWC stuff is quite good - vastly better than some of the majors (WD being aprime example of stuff that's boderline quality and often not compatible)
    Grant

  • HT201180 What type of Fire Wire cable to use to connect MacBook Pro 2009 to tape-based Sony TRV720 camcorder

    What type of Fire Wire cable to use to connect MacBook Pro 2009 to tape-based Sony TRV720 camcorder

    USB is the slowest. Firewire is faster. eSata is the fastest (and will be superceded by Thunderbolt).  The old Fire was 4 pin (Firewire 400 and is essentially obsolete), new is 9 pin, Firewire 800.  All of the will transmit data, simply a different speeds.
    For eSata connectivity, you MBP must have an express card slot (and the appropriate eSata connection card) and you external enclosure must have an eSata input.  eSata cables will only transmit data, therefor it will require power by Firewire or USB cables.
    Ciao.

  • How rate is calculated for activity types

    Hi Gurus,
    There is activity type XYZ created and when in do KB21N and enter the cost center and activity type the rate is calculated.
    I do not know where is the rate maintained. It is coming 27.96 hence how the system is taking 27.96 rate for 1 Qty.
    Regards.

    Planned Activity rates are calcualted in KPSI and updated in KP26. Actual rates are calculated in KSII and can be viewed in KBK7.
    Please check the rate in KP26 for the period/cost center/activity combination

Maybe you are looking for

  • Error while deplying from NWDS 7.0 to PI 7.1

    Hello Frenz, I am trying to deply an webdynpro application developed with NWDS 7.0 on PI 7.1 server. But i am getting the following error. Any idea about this. Please help. Description:'1. [ERROR CODE DPL.DS.6193] Error while ; nested exception is:  

  • Looking to buy, SSD question, and more..

    Howdy, I have a MacBook Air (original, 3 years old or more). I love it. I have the SSD. I love it too. I have had a few MBP's in the past with normal HD. However, I have never used a MBP with an SSD... I am intending to buy a MBP (15" or 17") and am

  • Music ive purchase and imported wont sync over to ipad

    music ive purchased on itunes wont sync onto my ipod, any ideas

  • Balance Score Card

    Friends Is there any document which gives steps to create a simple balance score card in SEM system. Like transaction used and what exactly we need with some examples. My friends have created one balance score card and they are facing the following p

  • How to Handling XML footnote which have attributes

    Hi all, I searched in this forum related to XML footnote discussion. Still I need more clarification/discussion related to this process. I need maximum input and suggestion related to this topic to streamline our process. Our projects have around min