How to show no. of actual working days in Payslip in case of +ve time mgt

Dear Experts,
We have a requirement of showing no. of actual working days in payslip, which should be Calendar Days-(Paid+Unpaid absence). I created an w/t 1WRD for actual working days. Our paid absence w/t is 2006 and unpaid absence is 2005 copied from /845 and /846 respectively, both the absences are included in absence valuation table and working fine in that respect. But issue is i wrote a small PCR for calculating actual working days like below:
ZWRD
     NUM=TKSOLL Set
     NUM-E 2005
     NUM-E 2006
    ADDWTE1WRD
But still its fetching full working days i.e. calendar days 30 or 31 not deducting paid or unpaid absence for a month.
Pls help, what else should i do.
Regards
Tan

Sorry, i am unable to paste RT, but its exactly as below
01, April, 2011
1WRD Working days     30.00
2006  Paid Absence       2.00                
02, May, 2011
1WRD Working days     31.00
2005  Unpaid Absence   1.00                 
regards
Tan

Similar Messages

  • How to Calculate the Actuall work days ....

    Hi Friends,
    how to calculate the Actuall Working days Based on the Joining date for 5day work and 6 days work?
    is there any FM to calculate this?
    Thanks in Advance,
    sudha.

    Hi Sudha,
    In your company , If they are maintaining Time Events then you can get the information of Employee's Presense or Absense from infotype 2011 (Time Events) and Absense from 2001 (Absense)..
    Also Consider Factory Calender for it.. and check out working days..
    Table TEVEN
    Try below FM as well..
    HR_DV_TIMEEVENTS_GET
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • Fetch actual working days

    hi experts
    i need to retrive the following data
      1. actual working days of company
        eg: toal calender years 28 or 30 or 31
       company working days = total calender days in a month - day off' +public holidays.
      2. actual working days of employee = actual working days of company - leaves.
        this is from 2002
      3. total absences = all kinds of absences  as of my knowledge we can get this 2001
       individually but i want to get in total.
    please help me
    regards

    Hi,
    You can write a custom rule by using the partial period factoring methods.
    http://help.sap.com/saphelp_erp2005/helpdata/en/d8/c9e93401bdee06e10000009b38f83b/frameset.htm
    Hope this helps,
    Reward points if helpful,
    Thank You,

  • How to create an 8/6 working day calander in Projects

    I need to set my calander to 8 days work 6 days not working on a 12 hr day
    If the calander had a 2 week cycle option this would be easy, but I need help please

    Dale,
    Sorry to butt in but you did throw out the challenge even if it was to Trevor. It's tough (for me) to ignore a challenge.
    Actually the calendar is not that hard but a little tedious. First I created a custom calendar called "86" based on a 7 day a week calendar. I then set the working times for each day from 6:00am to 7:00pm with 1 hour lunch. Finally I created an
    exception for 6 days off. I repeated that exception span every other week for as many weeks as necessary to cover the project. That gives an 8 days on, 6 days off pattern with 12 hour work days, just like the poster wanted. The tedious part of course is entering
    each of the exception periods, which could be automated with VBA.
    John
    For the benefit of the original poster, here is a screen shot of the custom calendar. I only took the exceptions up through January 2015 to illustrate the process. Obviously additional exceptions are required, basically two per month, for the remainder of
    the project.

  • How to show one prompt that works for both Graph and Table views?

    Have an analysis with a graph and a table. The information in the table and graph are different so cannot use a pivot table w/graph.
    Each view has a view prompt for Year and Month (tried both separately and also as one combined column ‘201001’) so user can easily change months.
    Too much data to use the slider because it will not graph.
    Page prompt does not allow user to switch dates easily.
    Since this will be a link from a dashboard, do not think making this a dashboard from a dashboard would be good so not a dashboard prompt.
    Saw something about Master Detail linking, but does not appear to work with graph prompts.
    How would the analysis be configured to show one prompt that works for both the Table and the Graph?
    One prompt would change both the table and the graph.

    Master Detail Linking almost works.
    Table view can show all the results without error.
    Graph view needs to be limited or errs with "Exceeded configured maximum number of allowed input records."
    Is there a way to set the initial Master Detail Linking value to the top sorted value?

  • How to query the number of working days between two dates

    I'm looking for a solution to calculate the number of <i>working</i> days between two dates that I can use in a formated search. 
    Calculating the total number of days is pretty straight forward but does anyone know how to take into account the settings in the HLD1 (Holiday Dates) table?

    Hi Eric,
    If you are purely looking to exclude holidays defined in the HLD1 table, then you should be able to do it with the following query
    NOTE: The following query is an example using OINV table and the fields DOCDATE and DOCDUEDATE for a Particular DOCNUM  'xxx'
    If you planning to use within the SAP module then replace DOCDATE and DOCDUEDATE with dynamic field references $[$x.x.x]
    SELECT DATEDIFF(DAY,T0.DOCDATE,T0.DOCDUEDATE)-
    (SELECT COUNT(STRDATE) FROM HLD1 WHERE STRDATE >= T0.DOCDATE AND STRDATE <= T0.DOCDUEDATE)
    FROM OINV T0
    WHERE T0.DOCNUM = xxx
    Best Wishes
    Suda

  • How to get Itunes to actually work? cant use it. Help

    Since upgrade nothing is working right. It doesn't recognize my iphone or ipad, evrything that I need to do is grayed out where I cant use it. What is the use of having this if it isnt going to work? It doesn't sync, won't let me restore from backup. Totally worthless now.

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • In PI7.1 channels showing RED status actually working without issue

    Dear All,
    In PI prod environment, we have two decentralized server on which SFTP channels are deployed.
    once few SFTP channels got into error with socket exception stating: Could not connect to remote host or directory.
    However there was something strange to see that the communication channels were in the error status but the messages were still processing. No issues reported by the business: business impact = 0.
    this incident has happened twice.
    Can someone tell me what could be the reason of this wrong status?
    before raising OSS , I want to know if someone has faced this issue?
    Regards,
    Ratnapriya

    Hi ,
           There might be some issue with the channel initialy but it would have resolved after some time. When the channel retried after certain time the channel polled successfully.
    Channel shows in RED status untill all the 25 entries are filled in your channel processing details(if all your channel entries in processing details is filled with successfull message ID's  the channel will automatically change to green ).
    Regards,
    Naveen.

  • How does the assignment schedule actually work?

    Hi,
    I have a task sequence deployed to some servers and checking the status of it, it says that "Program Received" but I don't see it in software center. I have it set so that it is available today the 17th with an assignment schedule for tomorrow
    at 3:00. My question is what actually is the assignment schedule for? Is that when it will actually be on the client and running?

    Hi,
    The available time is when they clients will see the new policy and start to download the requred packages in the TS depending on the settings you have made for the TS and the assignment schedule is when the installation will actually take place.
    Regards,
    Jörgen
    -- My System Center blog ccmexec.com -- Twitter
    @ccmexec

  • The return of 'Random'.........& how to get it to actually work!

    It's good to see 'Random' return in the transition menu when playing album slideshows.....unfortunately you can't select it!?
    That's not completely true, you can select it, but it ignores your selection & reverts to the previous chosen one (even when you tick 'Use options as default').
    After upgrading to '09 & subsequently loosing the 'Random' option, I changed all my albums to use the dissolve transition. So after updating to 8.0.2 today I got all giddy when I noticed that we'd got 'Random' back. I prepared myself for the laborious task of going through all my albums & changing the settings (yet again). But only if it were that simple............
    The only way to select 'Random' is to choose another transition first (eg. cube), tick 'Use options as default', then play. Then, re-enter the settings & change the transition to 'Random', tick 'Use options as default', then play. If all went well it should now display randomly.
    Even Frontrow plays them randomly again. It still ignores the specified delay time, but hey....you can't have everything
    Whether this update has fixed the forgetting chosen music problem I've been suffering from, only time will tell, it usually takes a few restarts for that one to show up

    TD.......Just for a laugh I tried your customary cure all response, as expected it didn't change anything
    I've got 3 machines here (with different libraries) that are all exhibiting the same problem, so it looks like you're lucky if you're not effected by it..........or am I just the very unlucky one?!?!?!?

  • How do Exceptions in cookies ACTUALLY work?

    I have normally "Accept cookies from site" off (unchecked) and I use the Exceptions list for sites that I want to allow then to put cookies.
    However, when I add a certain site to the Exceptions list and set "Allow" cookies for it, the site still tells me that the cookies should be on! I have to activate "Accept cookies from site" so that the site works properly.
    But then, what's the purpose of the "Exceptions" list???
    Alkis

    OK, thanks.
    Alkis

  • Show Working days transaction on Weekends and Holidays

    Hi,
    I have an objective to show last working days transaction (consider Friday) on Saturday and Sunday, also
    if the next day is also a Holiday then i have to post previous days transactions on Holiday too.
    Example:I need to show Friday Sep 1,2006 Transactions on
    Sep 2,2006
    Sept 3,2006
    Sep 4,2006 (Labor Day -- Holdiay)
    Restriction:PL/SQL not allowed( i know it is hard to believe ..sorry)
    Here is the Query that i have written which takes care of Sat and Sundays.I am having problem with Posting the data on Holidays.
    -- This Query selects all working days only
    select TRADE_DATE,
    Case when PORT_ID = 'FFSEX5' then SUM(PRINCIPAL) End as FFSDirect,
    Case when PORT_ID = 'FFSEX5' then trunc(AVG(RATE),2) End as FFSDirect_Avg,
    Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then SUM(PRINCIPAL) End as FFSBroker,
    Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then trunc(AVG(RATE),2) End as FFSBroker_Avg,
    Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then SUM(PRINCIPAL) End as Euro3,
    Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then trunc(AVG(RATE),2) End as Euro3_Avg,0 AS FLAG
    FROM CV_TRADE_HIST
    Group by port_id,Trade_date
    Union
    -- Accumulates Saturdays
    select (TRADE_DATE+1) as Trade_Date,
    Case when PORT_ID = 'FFSEX5' then SUM(PRINCIPAL) End as FFSDirect,
    Case when PORT_ID = 'FFSEX5' then trunc(AVG(RATE),2) End as FFSDirect_Avg,
    Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then SUM(PRINCIPAL) End as FFSBroker,
    Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then trunc(AVG(RATE),2) End as FFSBroker_Avg,
    Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then SUM(PRINCIPAL) End as Euro3,
    Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then trunc(AVG(RATE),2) End as Euro3_Avg,0 AS FLAG
    FROM CV_TRADE_HIST Where to_char(trade_date,'dy')='fri'
    Group by port_id,Trade_date
    Union
    -- Accumulates Sundays
    select (TRADE_DATE+2) as Trade_Date,
    Case when PORT_ID = 'FFSEX5' then SUM(PRINCIPAL) End as FFSDirect,
    Case when PORT_ID = 'FFSEX5' then trunc(AVG(RATE),2) End as FFSDirect_Avg,
    Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then SUM(PRINCIPAL) End as FFSBroker,
    Case when PORT_ID in ('FFSEX3', 'FFSEX2', 'CLS') then trunc(AVG(RATE),2) End as FFSBroker_Avg,
    Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then SUM(PRINCIPAL) End as Euro3,
    Case when PORT_ID in ('EPIEX3', 'ACK', 'ETCEX3', 'CKD') then trunc(AVG(RATE),2) End as Euro3_Avg,0 AS FLAG
    FROM CV_TRADE_HIST Where to_char(trade_date,'dy')='fri'
    Group by port_id,Trade_date
    UNION
    -- TO ADD HOLIDAYS TO THE RECORD SET
    SELECT HOLI_DT AS TRADE_DATE,
    0 AS FFSDirect,
    0 AS FFSDirect_Avg,
    0 AS FFSBroker,
    0 AS FFSBroker_Avg,
    0 as Euro3,
    0 AS Euro3_Avg,
    0 AS Euro4,
    1 AS FLAG
    FROM V_INTR_SRC_HOLIDAY
    WHERE TO_NUMBER(TO_CHAR(HOLI_DT,'YYYY'))=2006 and TO_CHAR(HOLI_DT,'DY') NOT IN ('SAT','SUN')
    ORDER BY 1 DESC
    Logic i was trying (I NEED TO POST THE PREVIOUS DAYS TRANSACTIONS WHERE FLAG=1 WHICH IS A HOLIDAY.using Lag())
    ****My constraint is no PL/SQL and no DML is allowed.
    Please let me know is there anyway i can achieve this.I tried using Lag(), it did not work for me,Any suggestions?
    Thank you,
    Jay Brahmanapalli
    Message was edited by:
    user530625

    Here's a simple version:
    Setup:
    drop table trade_history
    create table trade_history
    ( trade_date date not null
    , amount number not null
    , ticker varchar2(6) not null
    declare
        tdate date;
        tamount number;
    begin
        tdate := trunc(sysdate);
        for i in 1..365 loop
            tdate := tdate - 1;
            tamount := 200 - i;
            insert into trade_history (trade_date, amount, ticker)
            values (tdate, tamount, 'ORCL');
        end loop;
    end;
    commit
    drop table holidays
    create table holidays
    ( holiday_date date not null
    , previous_business_date date not null
    , holiday_name varchar2(240)
    insert into holidays (holiday_date, previous_business_date, holiday_name)
    values ('25-DEC-05','24-DEC-05','Christmas Day')
    insert into holidays (holiday_date, previous_business_date, holiday_name)
    values ('26-DEC-05','24-DEC-05','Boxing Day')
    insert into holidays (holiday_date, previous_business_date, holiday_name)
    values ('06-SEP-06','05-SEP-06','A midweek example')
    insert into holidays (holiday_date, previous_business_date, holiday_name)
    values ('04-SEP-06','01-SEP-06','A Monday example')
    insert into holidays (holiday_date, previous_business_date, holiday_name)
    values ('07-AUG-06','04-AUG-06','A two day post w/e example')
    insert into holidays (holiday_date, previous_business_date, holiday_name)
    values ('08-AUG-06','04-AUG-06','A two day post w/e example')
    insert into holidays (holiday_date, previous_business_date, holiday_name)
    values ('26-DEC-06','24-DEC-06','Boxing Day 2006')
    commit
    /And a very simple example query
    select last_business_day, ticker, sum(amount), count(amount)
    from (
    select nvl(hol.previous_business_date, trade_date)
           - case to_char(nvl(hol.previous_business_date, trade_date),'D')
                        when '7' then 2
                        when '6' then 1
                        else 0
                        end last_business_day
         , ticker, amount
    from   trade_history th
    left join holidays hol on hol.holiday_date = th.trade_date
    group by last_weekday, ticker
    order by 1,2You should be able to build on that example, I hope. If you can't add the previous_business_date to your holiday table, then it gets slightly more complicated (because you have to skip back through consecutive holidays AND weekends AND any more consecutive holidays - ie in UK you'd have to skip back through Easter Monday, the Easter Weekend and Good Friday - last busines day is what we call Maundy Thursday.
    HTH
    Regards Nigel

  • Calendar Rules showing the same day holiday as well as working day

    Hi All,
    I am using OBPM 10.3.
    I have created a holiday rule say "holi_rule" and declared a user defined holiday. I have created a Calendar rule and set "holi_rule" as holiday rule in calendar rule.
    When I am trying the below code
    calendarRule = Fuego.Lib.CalendarRule.fetch(calendarName : "India_Calendar_Rule");
    workDate = calendarRule.isWorkDate(time : timeObj.time);
    logMessage( " Is working day : "+workDate);
    boolean isHoliday = calendarRule.isHoliday(time : timeObj.time);
    logMessage( " Is holiday day : "+isHoliday );
    timeObj.time is a input which I getting from the BPM presentation object."Both the log messages are displaying as true. I am not sure why both are displaying as true. Can any one help me to fetch the user defined holiday as holiday?
    Thanks in advance
    -Narasimha

    Hi,
    I hope the timeObj.time that you have defined/fetching from presentation is a holiday which you have defined in Holiday Rule.
    Accoring to the Holiday rule it is a holiday but according to the working day that you have defined in Calendar Rue is also a working day.
    So you should make use of thest two logic to find out an actual working day
    if(calendarRule.isWorkDate(time : timeObj.time) == false && calendarRule.isHoliday(time : timeObj.time) == true) {
    //Put your logic here
    Bibhu

  • Calculating Work Day Formulas

    We've recently adopted BOBJ/Webi at my company and I find the software to be rather easy to use in some instances and mind-wreckingly hard in others. One roadblock myself and other users are bumping into is calculating work days. A definition of a work day in this instance would be Monday through Friday. The monkey wrench is that we would also like to subtract out holidays, such as July 4th and Thanksgiving. Then end product would be calculating out what work day the current date is and how many days it is out of so that a simple straight-line extrapolation can be made (Metric/Current Work Day)*Total Work Days. Also, what we invoice/ship is not accounted for until the following day... for example, today (2.22.10) would be the 15th workday in February out of 20 total work days.
    Appreciate any and all help/assistance/counsel I can get on this.
    Ryan

    Hi Ryan,
    If I have understood your question then I think following solution may help you.
    Do you have your Universe created on the top of BW query or is it some other Database?
    If it is some other database then create couple of Filter at Universe level: Such as Holidays so that you can use this one to subtract holidays:
    For Example:
    ucase(Calendar_year_lookup.Holiday_Flag)
    ucase(Calendar_year_lookup.Holiday_Flag) = 'Y'
    Then you create another Dimension for Work days that would be between Monday to Friday.
    Once they are created in Universe you export Universe.
    Now create a formula where you would use month minus custom dimension workdays and minus holidays to get actual work days which would be from Monday to Friday and son on.
    Basically we can achieve this by using filters and formulas.
    Wish you good luck.
    Bashir Awan

  • LOP Scenario and working days

    Dear Gurus,
    Requirement is
    Incase of LOP , actual working days to be taken into account for
    calculating
    For example
    if Basic salary is 4800 for the month of June-2010
    then work days is 26
    and if he/she has one day LOP
    then it has to be calculated as below
    4800/26=184.61
    so 4800-184.61=4616/-
    But SAP now calculating as below
    4800/30=160
    so 4800-160=4640/-
    Kindly do the needful
    i am very new to PCR and changes explain me how to do it step by step pls
    with regards
    Partha

    Hi
    i have changed the processing class somewhat it is working
    But perday wage becomes 185 correctly and it calculates for the whole month
    185*30=5568 without affecting LOP
    where i am missing
    with regards
    partha

Maybe you are looking for

  • Question:  Working MP3 Audio Embedded in PDF but won't work in IBooks

    I am working with a large PDF file that is mostly scans of old letters.  I also have three audio MP3 files currently embedded and working well on my PC but the audio files do not work when I bring the PDF into ITunes as an IBook.  Everything else wor

  • Sender JDBC: help to construct Update statement

    Hi, I need help in writing a update statement to DB2 database in sender JDBC adapter. The sender adapter picks up only few records say 10 at a time which match the Select query condition. So I would need to update only those selected "n" records and

  • Wireless home theatre system

    Hi guys, I am a bit confused here and really need your help. BACKGROUND: I am moving to a new house and looking to set up wireless audio system with 6 speakers - 2 in living room, one each in bathroom, kitchen, balcony and bedroom. I have iPad, iPhon

  • Offsetting Account

    Dear Friends I want to put the opening balance of Income and Expenditure.Please tell me in which drawer should i define the offsetting account for Income and expenditure. warm regards anand

  • Empties management in Materials Mangement

    Hi Sap Guru, I have activated Empties Materials Magement tick in SPRO, Please suggest the process to activate and explode BOM of empties in purchase like sales BOM and other activities involved in this process. Thanks & Regards Sunil Singh