To Restrict Hiring on Holidays

Dear Friends,
I have an issue where my client wants to restrict hiring action to be performed only on working days. i.e if we hire a person on a holiday the system should throw a message stating that the start date of an employee cannot be a holiday. Like if we do do hiring and leaving on a same day the system throws an error. Similarly my client would like to have this.
Is this possible from our perspective i.e Functional HR or we need ABAPers help.
Pls let me know how to proceed.
Thanks
Nelson

Hi Nelson,
   you will require abapers help most probly.
  They need to create an User-Exit or Badi which checks for the
  date when an user tries to save.
  The date can be checked with the factory calender. But for this it needs
  Personal Area and Personal Subarea. Then get the Mofid from T001P for
  the combinaton and use a FM thats says weteher the day is a holiday or
not.
The PA u can get in the same screen but PSA i am not sure.
Hope this is helpfull.
Points if helpfull.
Regards,
  sandeep.

Similar Messages

  • Date of hiring action..

    Hi Team,
    Need your help to understand how to restrict hiring for the future date(hiring date = Current date /System date) and to restrict hiring on holidays and weekly off Sunday.
    Regards,
    Dev

    Hello,
       You dont have any user exit in the main screen actions menu, but that is not a problem, you just have to create a validation using this user exit http://www.****************/Tutorials/HRABAP/Wageamount/Default.htm for transaction PA40, the corresponing hiring action (field MASSN) and infotype 0000, that way if  infotype 0000 begda is in a future date (ie bigger than sy-datum) you send an error message, and the user wont be able to continue with the action unless the begda date is same or lower than sy-datum, the user can correct the entries as many times as he wants
    The user exit should looks like this:
    DATA: lw_p0000 TYPE p0000,
    IF sy-tcode = 'PA40' AND innnn-infty = '0000'.
         CALL METHOD cl_hr_pnnnn_type_cast=>prelp_to_pnnnn
              EXPORTING
                prelp = innnn
              IMPORTING
                pnnnn = lw_p0000.
       IF lw_p0000-MASSN = 'XX'  AND p0000-BEGDA > SY-DATUM.   "here XX is the code of your hiring action
            MESSAGE .....
       ENDIF.
    ENDIF.
    It should work
    Best regards,
    Federico

  • Time Schema

    Hi Everybody,
    I would like to know if any way i can specify employees hire date in Time schema.
    My requirement is When an employee is hired his holiday pay starts after 60 days of hire date.
    I have to put this condition in schema.
    Could somebody tell me how can i write a schema on this, Will it be ok if i get the Hire date from 0041 infotype or is there any other suggestion.
    Appreciate any kind of help.
    Thank you,
    HR

    Hi Prakash 
    Thank you for the reply and sorry for responding you late.
    I was working on the HRS=YSAO in my schema.
    I could partly change my schema but getting stuck  at one place. Hope you can help me in that. This is really very urgent. Appreciate any kind of help.
    My current schema looks like this:
                       D OUTWPMASSN
            D OUTWPSTAT2
    3       D HRS=L9053 HRS?60
    3*     HRS=L9053 ADDDB9053Z
           **3<      HRS=L9053 HRS+1     ADDDB9053
           99
    The change that i made is  to this schema is
                       D OUTWPMASSN
              D OUTWPSTAT2
    3        D HRS=YSAO HRS?2
    3*      HRS=L9053 ADDDB9053Z
          **3<       HRS=L9053 HRS+1     ADDDB9053
          99
    above this whatever change i am trying to make the system is issuing syntax error.
    I am new to this schemas and trying to learn it.
    Could you please help me in this. Its really very urgent.
    Thanks,
    HR

  • Restriction of Inventory Transactions on a holiday in EBS

    We have a requirement that inventory transactions (e.g., Receiving) to happen only on calendar working days and we don't want any transaction to happen on the Holidays inbetween. Is there any std Oracle feature available to enforce the same in Oracle Inventory (R 12.1.3) ? Please advise.

    Duplicate post -- Restriction of Inventory Transactions on a holiday in EBS

  • Restricted holiday

    HI,
    Scenario: Employee has 12 restricted holidays out of which only 2 can be availed. For the days he does not apply it is treated as work/paid.
    Configuration:I have created RH as a quota for restricted holidays in 2006. I have created Leave Type RL-restricted leave...and used to link quota RH. The absence type RL- has min and max leave configuration as 1 day only and unit is R-payroll days.
    I have used public holiday class 3 for Restricted holidays in Calendar-IN and in  WSR- the day type rule assigned is such that for public holidays-3 it is working paid.
    Counting rule -Only public holidays-Class 3  checked so that  only public holidays-Class 3 -i.e restricted holidays are counted in absence calculation in 2001. Day tye- Work according to schedule is ticked. Onky full days is checked.
    Question: My question is how do I restrict in 2001 for RL type absence only- that it  is recorded only for public holidays class 3. For ex: Lets say 15th of April is restricted holidays configured as holiday class 3 . If he applies only for 15th it is ok, as the system is calculating 1 payroll day and 1 calendar day. if 15th is restricted holiday  and if employee applies from 13th to 15th it should stop him from recording. Right now it is showing  payroll days(quota deducted) as 1 and calendar days as 3 but the record is created.  How do I stop him from recording absence for days other than restricted holiday for absence type RL
    Edited by: hcmuser5880 on Mar 19, 2011 7:18 AM

    Have you tried to create a Time Evaluation PCR that will generate an error if the RL Absence is used on a day with Holiday Type different than 3 ?

  • Issue with PCR to restrict absence quota

    Hi Experts.
    i have a requirement where the absence quota should never be over 24 at any particular time.
    for this absence 24 leaves per annum with 2 leaves accumulate monthly.
    we are using -ve time mgt and written a PCR to restrict absence to 24 by using Time type
    VARSTLDYPP
    N
    Y
    HRS=FR55C
    HRS?24
    <
    HRS-24
    HRS*-1
    HRS?2
    HRS=2
    ADDDBXXXX
    <
    ADDDBXXXX
    now the issue is when i run the simulation of time evaluation it is generating 2 leaves per year instead of
    2 per month. can anybody help me solve the issue
    Thanks & Regards
    ramayya

    I need a PCR for the below scenario.  I created two types to store day balance and max entitlement to 25 days.   We are not processing payroll from SAP.   Any help writing PCR  with details would be appreciated.
    Schema we are copying TM04
    Time types - storing  daily balance one for below 60 days &  one for after 60 days planned working time.
    Vacation per calendar year 25 days not based on seniority.
    Scenario:
    2.       Prorated entitlement for employees who will work fewer than 60 work days for company in a given year are calculated as follows:
    a.     1/12 of annual vacation for every 21 days s/he performs work
    b.    For these purposes (60 days worked rule) the following is also considered as work performance: Planned working time from IT0007 and public holidays. 
    c.     e.g. if hired on Nov 11, 2011, there < 60 wd remaining. They get 1/12 (25/12 = 2.1d) for every 21 work days remaining - in this case 2 periods of 21 wd, since RIM days and holidays are included as work days, for a total of 4.5 days (round up to half-day).
    3.       Prorated entitlement for employees who will work 60 or more work days for RIM in a given year are calculated as follows:
    a.     1/12th of annual entitlement for every calendar month of completed work
    b.    E.g. If George is hired on July 15 2011, he gets 10.5 days of vacation entitlement.
    c.     The number of full months George will have worked by the end of the calendar year is five u2013 Aug to Dec incl. George gets no entitlement from the 16 days from July 15 to July 31st.
    5 / 12 * 25 days = 10.4 days, rounded up to 10.5 days.
    Thanks,
    Mani.
    Edited by: saphrtime on Apr 21, 2011 5:19 PM
    Edited by: saphrtime on Apr 21, 2011 5:21 PM

  • I had started the process of removing my husband as the primary on my ipad2 device before the Holiday and never got back to it.  I keep getting a message on the ipad  for New icloud Terms and Conditions but I can't seem to log on.  when i go to it's locke

    I had contacted apple support before the Holiday and we had started the process of removing/replacing my husband as the primary on my ipad2.  However, I keep getting messages now 'New iCloud Terms and Conditions'  in a window that constantly pops up.  When I go to settings to log into icloud, it is locked with a grey screen.  What can I do?  Also, I had gone throught he process of syncing all 3 of my devices Ipad2, mini and my iphone5 to have the same passwords, etc. for ease of use.  Now that seems to be all wrong as well.  HELP!  I need these devices for my work and I'm short on time to go to the store, but will if I have to.
    Thank you!
    Julie

    If the setting is greyed out perhaps you have restrictions enabled that would prevent someone from changing accounts. Settings>General>Restrictions>Allow Changes>Accounts.

  • HRMS:PTO : Special Holiday Accruals

    Hell Gurus,
    We have a Accrual Special Holiday Setup which will give all the employees 32 hours at the anniversary date. If the Employee is a new hire it will be prorated.
    This is working as expected. The Users have the ability to add the Special Holidays by adding a adhoc Special Holiday Element at the element entries.
    This will enable the Employee to take the special holiday prior to actual accrual. This adhoc special holiday hours are added to the Accrual Plan.
    If the user enters more element entries by using the element entry form, the employee is getting more special holidays that he is entitled.
    I have added the Annual Rate,ceiling to the accrual Plan. In spite of that its allowing to accumulate more than what the employee is entitled.
    I want know if anybody has this problem and the steps to correct it.
    Thanks,
    A

    Hi,
    I think the better design for this requirment would have been to handle it as part of the accrual formula rather than giving the option to user to add an element entry.
    But in you case if the logis is already based on element entry then you can write a simple form personalization on element entry winow which checks if there is alreay an element entry existing in a particular calander year and throws an error. In this way you would be able to restrict the user from making multiple entries for that element.
    Hope it helps.
    Thanks,
    Sanjay

  • Restricting for creation or PO for material with other purchase group

    Hi,
      We have one requirement  we want to restrict the user for creation of purchase order for the materials which is not in there purchasing group
    on ME21N  in order data we enter the Pur. Group  e,g  101  and if user enter the material XYZ  for which the purchasing group is 102 system should issue the error message for this, so what setting can be done for this
    regards,
    zafar

    the purchasing group in material master is just a default for requisitions that are created via MRP.
    user can enter whatever purchasing group they want in a requisition if they create one manually.
    the buyer usually looks in his worklist e.g. in ME57 by selection all requisitions that are assigned to him.
    However, if the buyer 101  is the holiday replacement to 102, then the general concept allows that buyer 101 can pull the requisitions of buyer 102 and change the purchasing group to 101 in the PO.
    If you dont want that, then restrict authorization based on object M_BANF_EKG (purchasing group in requisition)

  • Public Holiday text not displaying in PT03 (Special Days)

    Hi Experts,
    For my client, I have to configure a public holiday and restrict it to only few WSRs. This public holiday is not part of any public holiday calendar. I have configured this holiday as a special day by defining the day type selection rule & special day.
    When I checked the work schedule in PT03, it is not displaying the holiday class and the text of the public holiday. It is only displaying the day type for this day.
    Please help.
    Many Thanks for your help in advance.
    Warm Rgds,
    Arun.M

                qPane = new JScrollPane(qTextArea);
                qPane.add(qTextArea);
                performedOpsPane = new JScrollPane(performedOpsTextArea);
                performedOpsPane.add(performedOpsTextArea);
                logPane = new JScrollPane();
                logPane.add(logTextArea); When you create a scrolled component, you either pass the component to the JScrollPane constructor or add it afterward, not both. If you're going to add it afterward, you use the setViewportView() method, not add().

  • 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

  • How to restrict PO delivery date to weekdays?

    Hi All,
      My factory calendar has all days (Including Week ends & public holidays ) as working days. In this case, some of my vendors prefer not to deliver on the week ends & public holidays. In the MRP run, system calculates PO delivery date using calendar days and it sometimes falls on weekends & public holidays.
      I'd like to know how can i restrict PO delivery date for certain materials to fall ONLY on WEEK DAYS.Your help on this is highly appreciated.
    Thanks in advance.
    Rgeards,
    Faizul

    Please go to
    Goto Spro
    Materials Management -> Purchasing -> Environment Data -> Define Attributes of System Messages
    Goto System massage and select
    There are messages related to your requirement.
    exact message number i do not know , but you an search

  • Can't seem to restrict access to screen sharing

    I'm running a macbook pro (10.6.2). I'm at my folks' place for the holidays and I tried screen sharing into my MBP from my dad's iMac (10.6.2) and noticed that I could access the MBP screen without any password prompt.
    I went into my MBP sharing system preferences and set screen sharing to: "Allow access for only these users: <my login>"
    Again, I tried accessing my MBP screen from the iMac, and again I was able to get in without any password prompt.
    Now I'm using my dad's login on his iMac, which is completely different from my MBP login which I thought I had limited screen sharing to. All of this is taking place within a home network.
    I would like to allow screen sharing on my MBP, but only if it's password protected. Can anyone see what I'm doing wrong here? Why does my MBP keep allowing open access to screen sharing when it appears that I am restricting it to only my profile?
    I tried messing with the options in "computer settings", but that didn't seem to help either.

    I would suspect that the first time you did it (may have been a while back) the password was saved in your father's keychain on the imac.
    open keychain access on the imac and see if it's there. if you delete the keychain entry for that password it should ask again next time you try to connect. and don't check the box to remember the password in the keychain.

  • The problems seems that the free trial what i am constantly paying for may have ran out/free trial time never contacted as i find this online to take to long and to hard to deal with  yet a paying costumer restricted by some weird fault i don't get this t

    the problems seems that the free trial what i am constantly paying for may have ran out/free trial time never contacted as i find this online to take to long and to hard to deal with  yet a paying costumer restricted by some weird fault i don't get this tried every thing how can i be billed and money taken for hired subscription  but end up with a "free trial" that cut me off having withdrawal as i live my life inside Photoshop 

    Use the trackpad to scroll, thats what it was designed for. The scroll bars automatically disappear when not being used and will appear if you scroll up or down using the trackpad.
    This is a user-to-user forum and most people will post on here if they have problems. You very rarely get people posting to say there update went smooth. The fact is the vast majority of Mountain Lion users will not be experiencing any major problems with the OS, or maybe with apps which are not compatible, but thats hardly Apple's fault if developers don't update their apps.

  • Scheduled SAP Job not executed as per restrictions

    Hi All,
    A job was scheduled to execute every Saturday (Job Frequency - weekly). Also in the Start time -  Restrictions, the check box for "Execute only on Workdays" is checked.
    Last saturday 27/08 was a holiday (displayed properly in the factory calendar), So the job should not have got executed.
    But it got executed. I cannot find any reason for this.
    Is there any other conditions that need to be provided so that it don't get executed on non-working days?

    - Check in job definition if the factory calendar of the job is the good one (TBTCO-CALENDARID for the job that executed saturday), check also if job definition was changed  (TBTCO-LASTCHDATE, LASTCHTIME and LASTCHNAME for next scheduled job) (or "Job details" on SM37)
    - Check in the factory calendat, if the holiday was changed after saterday (SCAL, Extras, Display change docs.)
    Regards,
    Raymond

Maybe you are looking for

  • Sales Order Block removal

    I have made an block in the Sales Order type as HOBlock for my order type.As every sales order is created it goes into that block and order get saved. Now i want other than VA02 Tcode to remove the block.

  • ABAP dump DBIF_DSQL2_SQL_ERROR in report /SAPAPO/OM_LC_UPGRADE_70 during up

    We are in the process of Upgrade of SCM APO system from version 5.0 to 7.0. Also we are upgrading livecache to version 7.7. While running report /SAPAPO/OM_LC_UPGRADE_70 in se38 to perform the steps under section 3, we are getting following ABAP dump

  • Deletion of pr/po

    hi friends,                        can we delete pr and po. if yes, how?.will be rewarded

  • G5 burner is not producing readable audio

    my g4 powerbook does a fine job with audio cds, why is it my brand new g5 dual procccessor will not create cds my car can read....same cd is readable when burned on g4 ....HUH? this is what i call paying more for less

  • About cme 4.x, SIP softphone and g729

    Hi folks, it's normal that a x-lite softphone (mac os x version) registered on CME 4.x system: - calls correctly all internal numbers (ip phones Cisco) - the client supports only g711a/u, GSM, iLBC and SPX ... then it uses g711a/u ... but all dial-pe