How to prevent new leave request from SSHR in case of negative PTO accrual

Hi folks,
I am stuck with a peculiar problem.
There are employee in our system who have negative PTO accruals and when they try to create Leave from SSHR, the system allows them to create a leave with a warning.
*"This absence will decrease the employee's PTO net entitlement to less than zero for one or more of their accrual plans."*
I want to prevent the users to complete the Absence form from SSHR, if they have negative PTO accruals.
How can I achieve this, I thought it would be pretty straight forward controlled by a profile !!!
Any help would be appreciated.
Regards
Shah Alam

Hi,
I also have similar requirement, I have done the following to achieve this.
1. Created a custom package with the following procedure.
PROCEDURE NEG_ACR_BAL_CHK ( P_ABSENCE_ATTENDANCE_TYPE_ID NUMBER
,P_EXCEEDS_PTO_ENTIT_WARNING BOOLEAN)
IS
CURSOR CSR_GET_ABS_CAT IS
SELECT ABSENCE_CATEGORY
FROM PER_ABSENCE_ATTENDANCE_TYPES
WHERE ABSENCE_ATTENDANCE_TYPE_ID = P_ABSENCE_ATTENDANCE_TYPE_ID;
l_abs_category varchar2(20);
BEGIN
--Get Absence Category
OPEN csr_get_abs_cat;
FETCH csr_get_abs_cat INTO l_abs_category;
CLOSE csr_get_abs_cat;
IF (l_abs_category <> 'NWPL_AL') AND (P_EXCEEDS_PTO_ENTIT_WARNING = TRUE) THEN
fnd_message.set_name('PER','HR_LOA_EMP_NOT_ENTITLED');
fnd_message.raise_error;
END IF;
END NEG_ACR_BAL_CHK;
2. Then hooked this custom procedure, to the hook package of absence, "HR_PERSON_ABSENCE_BK1.CREATE_PERSON_ABSENCE_A". As per the, note: "Understanding and Using API User Hooks".
Hope this is of help to you.
Regards,
Sri.

Similar Messages

  • How to delete a single request from DSO in BI 7.0

    Dear Experts,
    Could you please tell me how to delete a single request from DSO?
    I mean, in DSO if we delete one request it also delete the requests which are above it. But i don't to delete the above it.
    Please suggest me this issue.
    Regards,
    Prathap

    IN DSO--its a very basic thing....
    ACTIVE TABLE and CHANGELOG tables are overwritten after activation of each request.
    So ,each new request has a realationsip with the older request.
    So in the cases:
    1.If you activate the older request it will delete the new one ,because changelog entries have been written from the data of new request on the basis of the older one.
    e.g older request  entries:
    a x 1
    new request
    a x 2
    change log
    a x 1
    a x -1
    a x 2
    so its quite obvious you can't have  a x 2 directly (because in the infocube you will be sending wrong entries by deleting the just the older request and loadning new request).
    2.If you have activate new and old request toghterh then also system will not allow you to delete the newer request alone and you will have to delete both the requests.
    I guess already someone proposed correct solution to you ...thats selective deletion...but rahter than doing selective deletion there is a better way if you want to cancel out a particular request:
    thats request reverst posting
    IN the process monitor of any particular request you can find out the option for request reverse posting..Its good for individual request cancellation(keyfig values will become 0 for that particular request)
    regards,
    rk

  • How to prevent iTunes for Windows from "Updating iTunes Library"? (Library is on a NAS and managed by iTunes for Mac. Now getting update wars between Mac and Windows versions of the player.

    How to prevent iTunes for Windows from "Updating iTunes Library"?
    My library is on a NAS and managed by iTunes on a Mac. I can connect from wife's Windows laptop using iTunes for Windows but every time I do, it Updates iTunes Library. Next time I log in from my Mac it Updates iTunes Library in return. It appears I'm experiencing "Update Wars" between the Mac and Windows versions of iTunes. I would like to allow my wife to stream iTunes songs to her new laptop but I don't want any updates from this source... prefer to manage the library from my Mac and not allow Windows to do any thing other than listen to existing playlists.
    Thanks for any help/suggestions.

    Connect the PC to the library on the NAS. Wait while "updated".
    Under Edit > Preferences > Advanced make sure the media folder is correctly pointed at the media folder on the NAS. If not correct, close iTunes, wait a few moments, then open iTunes again.
    Close iTunes on the PC. Do not open iTunes on the Mac.
    Copy the library files, iTunes Library.itl, iTunes Library Extras.itdb, iTunes Library Genius.itdb, sentinel and the folder Album Artwork into an empty iTunes folder on the PC, for example C:\iTunes.
    Click the icon to start iTunes and immediately press and hold down SHIFT. Keep holding until prompted to choose or create a library. Click choose and browse to the copied .itl file, e.g. C:\iTunes\iTunes Library.itl
    The library should now work properly on the PC, however check the setting for the media folder. If needs be correct, close iTunes and reopen.
    Open iTunes on the Mac. It will update again, but that should be last time.
    tt2

  • New Leave Request not being shown in UWL

    Hi ,
    I have an issue in which when manager tries to approve a  leave request from UWL ,in the Pop up i,e in Request Waiting for approval" table the latest requests are shown but the same request are not being shown in the UWL. 
    I checked in SWI5 for the user and whatever leave requests are shown in popup are there for the user but the same is not updated in UWL.The user has refreshed the UWL but still it didnt show the new leave requests
    I dont want to reregister the webflowconnector in UWL configuration as we generally use reregister to register a new task in the UWL .
    Can someone please help me in resolving the issue.
    Thanks,
    Satish Kumar

    Hi Siddharth,
    Thanks for your reply.
    DYNPARAM parameter value as suggested in the note 1140959  is already maintained against the tasks  TS12300097 ,TS12300116.
    we have done Refresh from the UWL iview but still its not showing the latest Leave Requests but it is coming in the popup window when one of the existing leave requests in UWL is selected.
    Thanks,
    Satish Kumar

  • How to prevent duplicate web pages from loading

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [[/questions/930219]]</blockquote>
    how to prevent duplicate web pages from loading

    <s>Hi berternie, can you describe this in more detail?
    Are you saying the identical page loads in two different tabs? When does that happen -- when you click a link? or when you use a bookmark?
    Or do you have multiple tabs open every time you see your home page (i.e., when you start up, open a new window, or click the home icon)?</s>
    I see, you have more info in this thread: https://support.mozilla.org/en-US/questions/930219

  • How to submit a concurrent request from Discoverer report.

    I would like to know If any one has tried submitting a concurrent request from Discoverer Report?_
    This is no stupid question, but our team here finally decided with a solution to our long pending issues with few of the discoverer report. To Proceed further, we would like to know, how to submit a concurrent request from Discoverer report?
    We are looking for calling a package from the Disco admin by passing the parameters from the disco to the 6i report.
    All help us in this regards are much appreciated.
    Kindly help us in the same!
    Thanks
    Arun

    Thanks Rod for confirming the same.
    I will be trying the same today and will let you know if I succeed in doing it.
    If I can share the actual requirement with you, it goes like this.
    "I will be triggering the Oracle 6i standard AP Trail balance report through the Disco report. The standard report will be inserting the required data to one of my custom table. Once the concurrent program completes normal, my custom table will be having the required data to create the workbook specific to the current run of the concurrent program.
    The one problem which I think could happen is, How can I make my disco report to wait till the standard program to complete in normal so that my disco report can be generated with the data from custom table.
    Will the above requirement is possible If I follow the way you mention in the PDF or Could you suggest a better way for achieving the same.
    In short, my requirement is: The custom table(say XX_TABLE) will be populated with data when the standard 6i report is run and the disco admin will be making of the custom table (XX_TABLE) to generate the report.
    Please advice.
    Thanks
    Arun

  • How to transfer the http request from applet to servlet/jsp

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

    I use the JTree component to create a navigation of a website,but i don't
    know how to connect the tree's nodes with the jsp/servlet.
    I mean how to transfer the http request from the applet to a jsp.
    I use the "<frameset>" mark which will divide the web browse into 2 blocks.
    The left side is Applet,and the right side is the linked jsp page.
    what I say is as the weblogic console layout.
    who can help me!!!
    Thank You!

  • How to send the transport request from one client to other client?

    Hello Friends,
    I have generated one transport request in one of the client in Development server.Now as it is  customizing request so unless and until i transport it to other client within the same server, Changes will not be visible in other clients.So how to transport this customizing request from one client to other client within the same server.
    Thanking you guys in advance.
    Regards,
    Jitendra

    Hi Jitendra,
    Release your Transport Request via SE10, then go to STMS & import the request first to your quality server, then to your production server.
    Apologies for the incorrect inputs, please use SCC1 as advised by other forum members
    Hope the above clarifies your query.
    Regards,
    Vivek
    Edited by: Vivek on Mar 16, 2009 1:05 PM

  • Who can tell me how to find the leave request Webdynpro for ABAP iview

    Hi,Expert,
    As I know Portal only has Webdynpro for java iview for leave request iview in the past.
    but someone tell me SAP portal has delivered some new standard WebDynpro for ABAP iview.
    I have a requirement to create a employee role for new Leave Request service created by WD ABAP . Under Content Provided by SAP in Content Administration, I couldn't find the iView assocated to the leave request except the Java one. Is there have any Employee Self-Service Web Dynpro ABAP workset ?
    thanks
    Olivia

    The business package for ESS based on Webdynpro for ABAP is available only for ECC 6.0 EHP5.
    If you are on EHP5, you may choose to use this version of the BP.
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/25/340b0507434193adbfe3f8fc8896c7/frameset.htm
    Leave Request application:
    http://help.sap.com/erp2005_ehp_05/helpdata/EN/1f/a073be62744fcca7e1fae9942f0031/frameset.htm
    Thanks,
    Shanti

  • Generate new License Request from ELM

    Hello everyone,
    I am having a problem generating a new License Request from ELM.
    It was required to me by Cisco Licensing in order for them to provide me a new License file.
    Here are the steps that I made in generating a new License Request from ELM. (See attached file ELMaccess, LR1 & LR2)
    I first accessed the ELM under CUCM administration.
    Select License tab> Other Fulfillment Options> Generate License Request> Save to my computer
    I received a .txt file (lic_req_201.....) and that certain file was the one I sent to Cisco Licensing.
    Cisco Licensing replied:
    "It is still the same license request that you have here, just regenerated. What is needed is an entirely new and different ELM License request."
    I am not really certain for what kind of License Request file that he wanted, or maybe there is a different procedure in doing this?
    Can someone help on this?
    If I am missing something or if there is another procedure on generating a new License Request kindly guide me.
    Thank you so much.
    Kind regards,
    Art
    Network Engineer
    Net Pacific Philippines
    CCNA R&S
    CSCO12379161       

    Hi mkchandak,
    Thank you for your response!
    Yes we did, we actually at first generated a license request, submitted it to licensing and they provided us a license file. Now, upon the installation of the license file we received this error message "Insufficient Licenses".
    We went back to cisco Licensing, a new engineer assigned to us, provided all the details he requires, our license case was approved by their Product Manager and now he requests for a "Newly Generated License Request".
    I followed the same steps in generating a new License Request:
    I accessed the ELM under CUCM administration.
    Select License tab> Other Fulfillment Options> Generate License Request> Save to my computer
    I received a .txt file (lic_req_201.....) and that certain file was the one I sent to Cisco Licensing.
    Cisco Licensing replied:
    "It is still the same license request that you have here, just regenerated. What is needed is an entirely new and different ELM License request."
    So maybe he is referring to something other than the License Request that I have provided.
    Maybe there is a different procedure in generating a "fresh and newly generated License Request"
    If you know a step-by-step procedure in achieving this, please guide me.
    Any help would be greatly appreciated.
    Thanks again!
    Cheers,
    Art
    Network Engineer
    Net Pacific Philippines
    CCNA R&S
    CSCO12379161

  • How to Prevent SharePoint Farm Password from Changing

    I have been trying to stop the SP farm account, spfarm, from password changing.  SharePoint Central Administration is used and I go to Central Security -> Configure managed accounts.  I set spfarm not to change but it makes no difference. 
    It still changes.  When that happens it screws up the SharePoint VSS Writer service account and backups fail (the password synch script has to run to fix).  When the setting in SP CA is changed to allow password changes, the SharePoint VSS Writer
    service account still has a problem and backups fail.
    Additionally, I have run the two below scripts when necessary to try to correct the problem and it works until the password changes again.  It seems as though the password changes whenever the server restarts or at least once every week or so. 
    Can anyone help me with this?  I don't care if the password changes on a schedule as long as it doesn't cause the SharePoint VSS Writer service to fail during backup.
    Repair-SPManagedAccountDeployment (This checks synch of passwords)
    set-spmanagedAccount -UseExistingPassword
    This is on a Windows Small Business Server 2011, which runs SharePoint 2010.
    Tony

    Hi Tony,
    In SBS 2011, use 3 different accounts to run Windows SharePoint Foundation. The accounts are spfarm (SharePoint
    Farm Account), spsearch, and spwebapp. For security reasons the passwords on these accounts are periodically reset. The password for spfarm is reset every 7 days that the Windows SBS Manager service is running.
    à
    How to Prevent SharePoint Farm Password from Changing
    I will suggest that set the password expiry to be longer (such as: a month or 365 days or even more) and apply
    it. Maybe a workaround.
    By the way, the Windows SBS Manager service manages the spfarm account. This spfarm account will be found under
    MyBusiness-> Users-> SBS Users in ADUC. If you navigate to the spfarm account in ADUC and open the Properties of it, then select
    “Password never expires” under Account options in Account tab. Please check if this can help you to achieve target.
    Hope this helps.
    Best regards,
    Justin Gu

  • How to remove new line character from query output?

    Hi,
    How to remove new line character from query output?
    have tried select replace(column_name, CHR(10), ' ') from table_name.
    Edited by: GreenHorn on Sep 11, 2008 12:53 AM

    Please consider, that windows uses a sequence of chr13||chr(10) Unix uses only one character chr(10).
    The new line character(s) may be OS-dependent.
    You could consider both with:
    replace(replace(column_name, CHR(13)||CHR(10), ' '),CHR(10),' ')
    Hartmut
    Edited by: hartmutm on 11.09.2008 01:32

  • How to delete 100+ released requests from the import queue?

    Hello
    How to delete 100+ released requests from the import queue?
    One by one or there is more convinient way?
    Thanks

    To delete multiple non-imported transport requests, you do the following while in the import queue on STMS:
    1) Highlight the status field of the import queue.
    2) Sort the import queue by the status.
    3) Put your cursor on the first non-imported transport, right-click, and click on Select Block.
    4) Scroll down and put your cursor on the last non-imported transport, right-click and click on Select Block. This will highlight all requests from the first one selection to the last one selected.
    5) Go to menu option Request > Delete.
    If all of the requests in the import queue haven't been imported (no imported, including failed import, requests), you can jump to Steps 3-5.

  • Does anyone know how to prevent the YouTube volume from going up automatically?  I keep my volume down and it increases automatically when I play a video.

    Does anyone know how to prevent the YouTube volume from going up automatically?  I keep my volume down and it increases automatically when I play a video.

    Have you tried Windows Update in the Control Panel?
    Many times it will find the newest supported drivers for Hardware.
    Just be sure to install everything not just the Important ones.
    Let us know if this helps.

  • Leave request from/to time in non-military format - how to get military bak

    Dear all,
    we are migrating from the old stand-alone ESS to the ESS in EP7.
    During testing we found that the t0/from time fields in the leave request are not in military format anymore but rather have to be used with AM and PM.
    We trained our users for many years to use military time. How can we get it back?
    Thanks in advance!
    Mathi

    Dear all,
    we are migrating from the old stand-alone ESS to the ESS in EP7.
    During testing we found that the t0/from time fields in the leave request are not in military format anymore but rather have to be used with AM and PM.
    We trained our users for many years to use military time. How can we get it back?
    Thanks in advance!
    Mathi

Maybe you are looking for