Please help me to write forumal to calculate accrual plan

Please you can help me
I want formula do this cases :
1. Grade: from 01 – 06
Number of days: 21 Days (Working Days)
Employees Carry forward for 2 years (42 Days)
Plan started in 01-Jan and end in 31-Dec for each year
2. Grade: from 07 – 13 & Grade Special (EXEC)
Number of days: 30 Days (Working Days)
Employees Carry forward for 2 years (60 Days)
Plan started in 01-Jan and end in 31-Dec for each year
3. Contractual Employee under Employment:
Number of days: 30 Days (Working Days)
Employees Carry forward for 2 years (60 Days)
Plan started in 01-Jan and end in 31-Dec for each year
note : I want to give him all Balance if calculation date in any time of period of year
for example if accrual plan 21 in year and calc date in 01-02-2011 then entitlement 21.
and i used this formula PTO_SIMPLE_MULTIPLIER
Edited by: user5321329 on Feb 24, 2011 1:13 PM

I've answered your duplicate post here:
I want to setup accrual plan like this rule
If that answers your question you can flag this post as answered. Thanks.

Similar Messages

  • Please help to re-write this query using exists or with

    Hi please help to re-write this query using exists or with, i need to write same code for 45 day , 90 days and so on but sub query condition is same for all
    SELECT SUM (DECODE (t_one_mon_c_paid_us, 0, 0, 1)) t_two_y_m_mul_ca_
    FROM (SELECT SUM (one_mon_c_paid_us) t_one_mon_c_paid_us
    FROM (
    SELECT a.individual_id individual_id,
    CASE
    WHEN NVL
    (b.ship_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 45
    AND a.country_cd = 'US'
    AND b.individual_id in (
    SELECT UNIQUE c.individual_id
    FROM order c
    WHERE c.prod_cd = 'A'
    AND NVL (c.last_payment_dt,
    TO_DATE ('05-MAY-1955')
    ) >= SYSDATE - 745)
    THEN 1
    ELSE 0
    END AS one_mon_c_paid_us
    FROM items b, addr a, product d
    WHERE b.prod_id = d.prod_id
    AND d.affinity_1_cd = 'ADH'
    AND b.individual_id = a.individual_id)
    GROUP BY individual_id)
    Edited by: user4522368 on Aug 23, 2010 9:11 AM

    Please try and place \ before and after you code \Could you not remove the inline column select with the following?
    SELECT a.individual_id individual_id
         ,CASE
            when b.Ship_dt is null then
              3
            WHEN b.ship_dt >= SYSDATE - 90
              3
            WHEN b.ship_dt >= SYSDATE - 45
              2
            WHEN b.ship_dt >= SYSDATE - 30
              1
          END AS one_mon_c_paid_us
    FROM  items           b
         ,addr            a
         ,product         d
         ,order           o
    WHERE b.prod_id       = d.prod_id
    AND   d.affinity_1_cd = 'ADH'
    AND   b.individual_id = a.individual_id
    AND   b.Individual_ID = o.Individual_ID
    and   o.Prod_CD       = 'A'             
    and   NVL (o.last_payment_dt,TO_DATE ('05-MAY-1955') ) >= SYSDATE - 745
    and   a.Country_CD    = 'US'

  • Please help me to write PCRs... can any body give on real time PCRs .......

    hi to all,
    can any one please help me to write the sample PCRs.

    hi thanks to that...
    but i need some simple PCRs from u r end ......
    please explain to me..
    u said that i need to learn operations and functions ..
    i know those but i don't know how to use it...
    i have had U000 schema material...
    but i am not understing .... it....
    so if u can explain the one or 2 sample PCRs so that i can develop with the help of them........
    waiting for u r soooooooooon replay.............
    bye
    ravi

  • Please  Help me How write the BDC program for the MIGO inbound Delivery

    Please help me how to write bdc program for the MIGO Inbound Delivery in 4.7EE Version. Please help me.
    Not in LSMW.  Required call transaction or Session Method. Please help me.
    Mohan

    Run transaction BAPI . Select Logistics Execution/Shipping/InboundDelivery/SaveReplica.. You can use function module BAPI_INB_DELIVERY_SAVEREPLICA in your ABAP program.

  • Please help me to write a function for this requirement!

    Hi,
        I have created a stored procedure which accepts 2 input parameters (param1 & param2 ) and its output is 'Score'
    Eg:
    Exec uspScorecalculation StudentID,DeptID 
    output: 85
    Now, My requirement is , I want to populate this value as one of the columns in a 'Select' statement.
    Can you please give me some input like how can i write a funtion to retrieve this score from the procedure and use it in the select statement?
    I assume,  the funciton should pass the two parameters into the stored procedure 'uspScorecalculation'  and retreives the Score.
    Can you please help me on this?
    thanks!

    >> I have created a stored procedure which accepts 2 input parameters (param1 & param2 ) and its output is 'Score' <<
    We have no idea from this posting what this procedure does. No code. No spec. Only a vague, useless narrative. 
    We do not put that silly “usp_” prefix on a proc name; this is one version of tibbling. When we wrote in FORTRAN I and II, we had to put “fn_” on user functions name. A procedure uses a “<verb>_<object>” format. Have you read ISO-11179 Standards
    or any book on data modeling?  
    EXEC Calculate_Something_Score student_id, dept_id; 
    >> Now, My requirement is, I want to populate this value as one of the columns in a 'SELECT' statement. <<
    Populate a column? We do not do that in a declarative language like SQL. The row with that column comes into existence all at once, and all the rows in the table come into existence all at once. This is a set-oriented language. 
    >> Can you please give me some input like how can I write a function to retrieve this score from the procedure and use it in the SELECT statement? <<
    NO! An SQL programmer will take the body of the procedure and replace the parameters with column names. It will be part of a SELECT statement and not a function call. We hate UDFs and other procedural constructs. 
    Please post the code and DDL, if you want help. Your failure and rudeness in not following Netiquette only hurt yourself. Your mindset is still locking into 1960's FORTRAN, not SQL. 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Please help me to write a file from applet to server with a servlet.

    In an applet the client elaborates a string and stores it in the variable of the name "line"
    I would Like to write the string "line" in the file myfile.txt on the server.
    I am in an applet trying to make the URLconnection to a servlet.
    The part of the applet which calls the servlet is the following:
    private void writeToSer(String line)
    try
    URL u = new URL("http://192.168.1.103:8180/servlet/ScriviFileServletFor1?stringa="+line);
    HttpURLConnection urlConn = (HttpURLConnection)u.openConnection();
    catch(IOException ioe)
    JOptionPane.showMessageDialog(null,"IO Exception ","attenzione",JOptionPane.ERROR_MESSAGE );
    the code of the servlet is the following:
    import java.io.*;
    import java.io.File;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ScriviFileServletFor1 extends HttpServlet {
    public void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    //read the parameters
    String string = request.getParameter("stringa");
    try {
    File file = new File("/home/icurrado/myfile.txt");
    FileWriter out = new FileWriter(file);
    out.write(string);
    out.close();
    catch (Exception e) {
    e.printStackTrace();
    When I call the servlet from the bar of the URL with :
    http://localhost:8180/servlet/ScriviFileServletFor1?stringa=prova
    It works and writes the string "prova" in the file "/home/icurrado/myfile.txt".
    When I call the servlet from the applet it doesn't work and it doesn't write the string in the file.
    What is wrong or is missing ?
    Please help me.

    You dont need to go through the URL mechanism.
    From an Applet you can directly save the file on the server at destinated location.
    You can look for "Uploader Applet" in google.

  • Please Help Me to write a query

    I have a table called CLAIMs and I want to find out the rows which have the same claim and member id
    having cert ='MEMBER' and Insert date is greater than Other rows within the same claim and memberid.
    Eg:
    Insert date             claim                    member Id        cert     
    7/17/2009               2009106                  1345678         1345678 
    8/8/2009                2009106                  1345678         MEMBER 
    12/11/2009              2009107            1345679         MEMBER
    12/14/2009          2009107                   1345679         1345679
    Expected row:
    7/17/2009               2009106                  1345678         1345678 
    8/8/2009                2009106                  1345678         MEMBER  Please help.

    hoek wrote:
    Edited by: hoek on Dec 14, 2009 6:14 PMYour solution will show MEMBER even if there are no non-members for the claim, while OP stated:
    Insert date is greater than Other+* rows within the same claim and memberid
    SQL> with claims as (
      2                  select to_date('8/8/2009','mm/dd/yyyy') insert_date,2009106 claim,1345678 member_id,'MEMBER' cert from dual
      3                 )
      4  select *
      5  from   claims a
      6  where exists ( select null
      7                 from ( select b.insert_date
      8                        ,      b.claim
      9                        ,      b.member_id
    10                        ,      b.cert
    11                        ,      row_number() over (partition by b.claim, b.member_id order by b.insert_date desc) rn
    12                        from   claims b
    13                      ) b
    14                 where b.claim = a.claim
    15                 and   b.member_id = a.member_id
    16                 and   b.cert = 'MEMBER'
    17                 and   b.rn = 1
    18               );
    INSERT_DA      CLAIM  MEMBER_ID CERT
    08-AUG-09    2009106    1345678 MEMBER
    SQL> with claims as (
      2                  select to_date('8/8/2009','mm/dd/yyyy') insert_dt,2009106 claim,1345678 member_id,'MEMBER' cert from dual
      3                 )
      4  select  insert_dt,
      5          claim,
      6          member_id,
      7          cert
      8    from  (
      9           select  c.*,
    10                   max(case cert when 'MEMBER' then null else insert_dt end) over(partition by claim,member_id) max_non_member_dt,
    11                   max(case cert when 'MEMBER' then insert_dt end) over(partition by claim,member_id) max_member_dt
    12             from  claims c
    13          )
    14  where max_non_member_dt < max_member_dt
    15  /
    no rows selected
    SQL> SY.

  • Please help me to write a class file?

    Hi;
    I want to write a class that
    after i input an integer say X in a dialog, it will calculate and display the answer of 2 raised to power X. The smallest value of X my program need to handle is 0. Teach me please!

    Which part of the program you need help with? Is it the interface, the actual calculation, the compilation, the editing ... etc.
    I don't think you're asking someone to do the whole program for you. Be a little more specific in:
    1. What you have tried so far
    2. What's not working ...
    3. What you don't understand and need clarification with ... etc.
    4. Do you have an education in Java ... how about in programming ...
    The question, as you posted, is just too vague ...
    But then again ... its quite possible that someone will post an entire solution for you ....
    Good Luck
    Kamran

  • Please help me to write the reports

    Hi everyone, This is rohith here, Please can anyone help me out to write the reports
    1. Developed material master details report. Input of material and plant as select-options and material type as parameter. Output list will have quantity by material group and plant.
    2. Created an Interactive report for displaying vendor information. Based on the selection made the corresponding Vendor Bank Details are listed such that the line selected in the basic list was visible along the secondary list.
    3. Developed an ALV report lists all deliveries that have been shipped but not yet billed
    4. Generated a report  which displays vendor invoice details.

    hi Rohit,
    <b>Welcome to SDN.</b>
    Design the Selection screen first with MATNR & WERKS as Select-options.
    and Material type as Parameteres.
    declare the req internal tables to fetch the data from DB tables .
    Validate the selection screen fields with their check tables according to req..
    write the logic of fetching the data in START-OF- SELECTION.
    and display the output internal table in the output list.
    <b>
    Reward points if useful</b>
    Cheers,
    Chandra

  • !please help me to write method in my program!

    I have written this program however � have to add something but I could not do it. I have to use four method for each selection. For chasis type four different type which are hatchback, sedan etc. this should be single selection. Moreover option part should be multi selection. Please could you help me for writing and adding these two method in to my program
    import java.util.Scanner;
         public class CarConfiguration {
              public static void main(String[] args) {
                   int choise = Menu();
         processSelector(choise);
              private static int Menu() {
         System.out.println("\nWELCOME TO CAR CONFIGURATION APPLICATION PROGRAM");
              System.out.println("======================================");
              System.out.println(" Enter _1_ to Chasis Type");
              System.out.println(" Enter _2_ to Engine Type");
              System.out.println(" Enter _3_ to Transmission");
              System.out.println(" Enter _4_ to Options ");
              System.out.println(" Enter _5_ to Finish ");
              System.out.println("======================================");
              System.out.print("Select Your Choise: ");
         Scanner input=new Scanner(System.in);
         int choise=input.nextInt();
         return(input.nextInt());
         switch(choise){
         case 1:
         break;
         case 2:
         break;
         case 3:
         break;
         case 4:
         break;
         case 5:
         break;
         default:
         System.out.println("Invalid selection");
         break;
         }

    Hi,
    This works now. You just need to create your methods and link them in with your case statement as flounder showed you.
    import java.util.Scanner;
    public class CarConfiguration
         public static void main(String[] args)
         int choise = Menu();
         processSelector(choise);
         private static int Menu()
              System.out.println("\nWELCOME TO CAR CONFIGURATION APPLICATION PROGRAM");
              System.out.println("======================================");
              System.out.println(" Enter _1_ to Chasis Type");
              System.out.println(" Enter _2_ to Engine Type");
              System.out.println(" Enter _3_ to Transmission");
              System.out.println(" Enter _4_ to Options ");
              System.out.println(" Enter _5_ to Finish ");
              System.out.println("======================================");
              System.out.print("Select Your Choise: ");
         Scanner input=new Scanner(System.in);
         int choise=input.nextInt();
         return(choise);
         private static void processSelector(int choise)
              switch(choise)
                   case 1: //enter mehtods here and for all other empty cases
                   break;
                   case 2:
                   break;
                   case 3:
                   break;
                   case 4:
                   break;
                   case 5:
                   break;
                   default:
                   System.out.println("Invalid selection");
                   break;
    }

  • Please help me to write a simple script.

    I wonder to tell a application named "Alien BBS", to input "right key" then wait for 5 seconds to input "left key".
    How can I do that by using a simple script ?
    tell application "AlienBBS"
    activate
    input ?
    end tell
    Please do me a favor to write~ cause I don't have any computer language background. Thanks in advance.

    Hi Tim,
    When you run an application it becomes a process. You can do stuff with the process. One thing is ui scripting which means that you're interacting with the user interface of tghe process. Some Processes don't have the same name as the application it was launched from, but usually they're named the same. You can try this:
    tell application "AlienBBS"
    activate
    end tell
    tell application "System Events"
    tell process "AlienBBS"
    keystroke (ascii character 29) -- right key
    delay 5
    keystroke (ascii character 28) -- left key
    end tell
    end tell
    You need to test it out and adjust.
    gl,

  • Please help; how to write XML document with JSP?

    I try to write XML document with JSP...
    But I got wrong results everytime.
    The result is not XML file displayed in the browser,
    but HTML file.
    I even tried to use HTML special code for <, >, "
    but still display as HTML file not XML file.
    How to do this?
    Thanks in advance. I put my codes below.
    Sincerely,
    Ted.
    ================
    Here is code for the JSP (called stk.jsp):
    <%@ page contentType="text/xml" %>
    <%@ page import="bean.Stock" %>
    <jsp:useBean id="portfolio" class="bean.Portfolio" />
    <% java.util.Iterator pfolio = portfolio.getPortfolio();
    Stock stock = null; %>
    <?xml version="1.0" encoding="UTF-8"?>
    <portfolio>
    <% while (pfolio.hasNext())
    stock = (Stock) pfolio.next(); %>
    <stock>
    <symbol>
    <%=stock.getSymbol() %>
    </symbol>
    <name><%=stock.getName() %> </name>
    <price><%=stock.getPrice() %> </price>
    </stock>
    <% } %>
    </portfolio>
    =================
    Here is the code for bean.Stock:
    package bean;
    public class Stock implements java.io.Serializable
    String symbol, name;
    float price;
    public Stock(String symbol, String name, float price)
    this.symbol = symbol;
    this.name = name;
    this.price = price;
    public String getSymbol()
    return symbol;
    public String getName()
    return name;
    public float getPrice()
    return price;
    ===============
    And here is bean.Portfolio:
    package bean;
    import java.util.Iterator;
    import java.util.Vector;
    public class Portfolio implements java.io.Serializable
    private Vector portfolio = new Vector();
    public Portfolio()
    portfolio.addElement(new Stock("SUNW", "Sun Microsystem", 34.5f));
    portfolio.addElement(new Stock("HWP", "Hewlett Packard", 15.15f));
    portfolio.addElement(new Stock("AMCC", "Applied Micro Circuit Corp.", 101.35f));
    public Iterator getPortfolio()
    return portfolio.iterator();
    }

    Hi
    I'm not sure whta your query is but I tested your code as it is has been pasted and it seems to work fine. There is an XML output that I'm getting.
    Keep me posted.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems
    http://www.sun.com/developers/support

  • Please help me to write a JavaScript script? Thank you very much!

    Hello everyone!
    In Acrobat 9 Pro Batch, execute JavaScript, please provide a script to add the footer and displays the date and file name,
    Thank you very much!

    Hi Tim,
    When you run an application it becomes a process. You can do stuff with the process. One thing is ui scripting which means that you're interacting with the user interface of tghe process. Some Processes don't have the same name as the application it was launched from, but usually they're named the same. You can try this:
    tell application "AlienBBS"
    activate
    end tell
    tell application "System Events"
    tell process "AlienBBS"
    keystroke (ascii character 29) -- right key
    delay 5
    keystroke (ascii character 28) -- left key
    end tell
    end tell
    You need to test it out and adjust.
    gl,

  • Please help me re write this query

    select case
    when MONTHS>=6 then YRS++
         else YRS
    end,
    from some_tab
    Edited by: user9027633 on Feb 25, 2010 1:44 AM

    Hi,
    It sounds like you want to round the length of service to the nearest year; the rounded figure may as much as 6 months more or less than the actual length of service.
    How to do that depends on your data.
    If you have 2 separate columns, months (a number, where 0 <= months < 12) and yrs (an integer) then you could say
    select  case
                when MONTHS >= 6 then YRS+1
                                 else YRS
            end     AS rounded_service_years
    from    some_tab
    ;but you might find it easier to say:
    select  ROUND (yrs + (months / 12))     AS rounded_service_years
    from    some_tab
    ;

  • Please help! I write out JPEG's and they're only black

    I've got this code and it all seems to be working fine except that all the images produced are solid black, can anyone see why?
    public static void writeJPEGImage(int[] pixels)
    throws FileNotFoundException, IOException {
    //find what saved file is to be called
    System.out.print("Enter what you would like the file to be called: ");
    String fileName = new String(UserInput.readString());
    //make a buffered image ready to take the array of pixels
    BufferedImage BI = new BufferedImage( w, h,
    BufferedImage.TYPE_INT_ARGB);
    BI.setRGB( 0, 0, w, h, pixels, 0, w);
    //This makes an encoder ready to encode the buffered image and
    //give the final image its name
    File f = new File(fileName);
    FileOutputStream fos = new FileOutputStream(f);
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(fos);
    //image is encoded and written
    encoder.encode(BI);
    fos.close();
    }//end writeImage method

    No reply necessary, i now know why.
    cej

Maybe you are looking for

  • Very poor speeds and here are my stats

    I live the contry so at best 2mb is excellent but check out these stats.  I have had my ip profile reset and I have a ADSL V10 socket Can anyone help?  Bt are working on it for the last two days etc but still no difference other than I can open a pag

  • G/L account 153040 cannot be used (please correct)

    Hello experts, While creating purchase order I am getting the error "G/L account 153040 cannot be used (please correct) " I tried in Tcode OBC4 and OME9 cost center, still not happening . Please help Thanks and Regards Urmila S.

  • Blackberry 8130 sync compatibility with Mac

    I am running Palm Desktop 4.2.1 on my Mac OS 10.4.11 and am considering getting a Blackberry 8130 in order to sync contacts, calendar, etc between computer and phone, plus run e-mail. I am aware of previous difficulties using software programs to all

  • Installation of Desktop Manager calls for an Application to run

    Does anyone know what application this may be? Where might I get it? Thanks

  • Ora-1445 in an interactive report

    I'm running into an issue adding an outer join to a SQL statement in an interactive report. When I add (+) to the where clause the I get the following error. 1 error has occurred * The report query needs a unique key to identify each row. The supplie