Negative carry over sholud not be allowed in fast formula

Hi,
I have coded like this so that it will not allow negative carry over (note: no expiry for carry over )
but this will not work since line 8 will bring just carry over from the previous year.
To get absence i can use get_absence function.so if i get no of absence ,total carry over and total accrual pto i can calculte net entilement.
but to get Total accrual PTO in carry over formula , I am not able to use the procedure
PER_ACCRUAL_CALC_FUNCTIONS.Calculate_Accrual.If I use i get error as
ORA-20001: The formula XXCHR_CR_VACATON_ACCRUAL_FORMULA could not be executed because the context ASSIGNMENT_ACTION_ID was not set. All the relevant context values must be set before a formula can be executed.
Action: If this is custom code then please ensure that it sets all the appropriate context values. If this is not custom code then please contact your local support representative.
ORA-06512: at "APPS.PER_FORMULA_FUNCTIONS", line 608
ORA-06512: at "APPS.PER_ACCRUAL_CALC_FUNCTIONS", line 70
ORA-06512
so how do I not allow negative carry over.
1 Years_service = floor(months_between(Effective_date, Continuous_Service_Date) / 12)
2 IF (GET_ACCRUAL_BAND(years_service) = 0) THEN
3 L_Max_carryover = GET_NUMBER('MAX_CARRY_OVER')
4 ELSE
5 L_Max_carryover = 0
6 Max_Carryover = L_Max_carryover
7 l_exp_Effective_Date = ADD_YEARS(Effective_Date,-3)
8 L_tot_carryover = GET_CARRY_OVER(Effective_Date,to_date('0101'||to_char(Effective_Date,'YYYY'), 'DDMMYYYY'))
9 IF L_tot_carryover <0 THEN
10 (Max_Carryover = 0)
11 Process = 'YES'     
12 RETURN Max_Carryover, Effective_date, Expiry_Date, Process
tnx in advance

there are seeded Accrual formulas given out of the box, which you can edit for your purpose

Similar Messages

  • PTO carry over FF not reprocessing all employees

    Hi
    I have created a simple custom accrual plan with simple custom accrual formula and custom carryover formula.
    I am trying to modify the a custom carryover formula and run the PTO carry over process with the "REPROCESS ALL" parameter set to 'YES' but the carryover formula is not REPROCESSING all the employees.
    Am I missing something?

    Hi,
    Could you please correct me whether you have been attached multiple leave elements to this accrual plan ?
    Otherwise system only carry over particular leave attached to accrual plan.
    Thanks
    AshokP

  • Adjustments not carried over to external editor?

    I've noticed that all my adjustments are not carried over to my external editor (niksoftware). Is this intended? Is there an option I'm missing that would allow me to do so? Because basically this forces my workflow to first do any adjustment externally and then come back to aperture to do the aperture-specific adjustments. Is this how everyone does it?

    This answered my own question, sorry for asking.
    https://discussions.apple.com/thread/3339808?start=0&tstart=0

  • Header and footer of RTF template not getting carried over to Excel output

    We have Header and Footer in RTF template defined. The output of the report will be in Excel. When we run the report, the header and footer on the report are not getting carried over to excel has header and footer, instead the header and footer are printed as first line on the excel. Also, the RTF template is set to landscape but when the output is generated in excel, it is set to Portrait

    hi..
    chk this presentation...
    http://csc-studentweb.lrc.edu/swp/Berg/articles/NW2004s_what_is_new.ppt#352,3,Why NW 2004s?
    http://www.sap-hefte.de/download/dateien/1090/086_leseprobe.pdf'
    hope this helps...

  • Voice over does not allow me to open locked screen

    voice over does not allow me to open locked screen iPhone 6
    <Subject Edited by Host>

    Use two taps wherever you would use one tap. Navigate to Settings/General/Accessibility and turn it off.

  • Accrual Balance not getting carried over

    For one of my client's employees, the mid-year accrual balance is not getting carried over.
    08-JUL-2008 is the hire date of the employee. The client has end-dated the accrual plan element entry for this employee on 23-NOV-2009 and created a new one (for the same accrual plan) from 24-NOV-2009. The balance is getting carried over from 2008 to 23-NOV-2009, but NOT from 24-NOV-2009 to 31-DEC-2009.
    08-JUL-2008 TO 31-DEC-2008 - Accrual Balance is 19.828 days.
    01-JAN-2009 TO 23-NOV-2009 - Accrual Balance carried over from 2008 is 19.828 days.
    24-NOV-2009 TO 31-DEC-2009 - Zero Accrual Balance is getting carried over.
    Also, the client has run the PTO Carry Over process thru’ out for all the years. But no help there.
    I just noticed that the accrual plan 'Annual Leave Plan 41 Days' and the respective balances, elements, links etc., were created in the system on 19-DEC-2009. Could this be the reason why the net entitlement balance is not getting carried over to 2009?
    Would appreciate any pointers in this regard.
    Thanks
    Regards
    Trupti

    Hi,
    Are you running the carryover process for both the plans. Can you share the accrual carry over for the new plan. As you have said the elements and links are created as on 19-DEC-2009, the balance should be carried over for the days between 19-DEC-2009 to 31-DEC-2009 if you are doing the partial accrual.
    Thanks

  • HT4623 My old school iPod touch won't update.  Does apple mess it's customers over by not allowing updates for older models of the touch?  My last update is Ios5.  My touch says its up to date.  So has my old school touch reached its pinnacle?

    My old school iPod touch won't update.  Does apple mess it's customers over by not allowing updates for older models of the touch?  My last update is Ios5.  My touch says its up to date.  So has my old school touch reached its pinnacle?

    Correct. The 3G iPod does not have the hardware to support an iOS version higher than 5.1.1
    To more easily find compatible apps:
    iOSSearch - search the iTunes store for compatible apps.
    Apple Club - filter apps by iOS version.
    Starting when iOS 7 was releases, Apple now allows downloading the last compatible version of some apps (iOS 4.2.1 and later only)
    App Store: Downloading Older Versions of Apps on iOS - Apple Club
    App Store: Install the latest compatible version of an app
    You first have to download the non-compatible version on your computer. Then when you try to purchase the version on your iPod you will be offered a compatible version if one exists.

  • Existing settings do not carry over on updating. ie: tabs below.

    on updating firefox does not carry over and of the user adjusted settings. WTF
    in previous version I could hover over a thumnail with the curser and it would open to size in a new phantom window. was a great feature.
    I set firefox to check but not install updates. on the latest restart it installed updates anyway. please let me control this. ANOYED USER
    ''locking as a dupe of https://support.mozilla.org/en-US/questions/1007651''

    Hi,
    I have just downloaded the 5.1.7 update and saw the following
    Microsoft will end support for Internet Explorer for Mac on December 31st, 2005, and will provide no further security or performance updates.
    Additionally, as of January 31st, 2006, Internet Explorer for the Mac will no longer be available for download from Mactopia. It is recommended that Macintosh users migrate to more recent web browsing technologies such as Apple's Safari.
    So if you want it do it soon.
    Happy Christmas everybody,
    Alan
    indigo imac 350 slot loading + 256 mg Ram = 320. 6 gig hard drive   Mac OS 9.2.x  

  • How can you sort bookmarks in the Sidebar by date added? Works in Library but does not carry over to Sidebar.

    When opening the Bookmarks Sidebar, the oldest bookmarks added are at the very top, easily visible.
    The most recent bookmarks added are at the bottom, requiring me to scroll all the way down every time I want to visit a recent bookmark. This is a major nuisance. I'm actually a little shocked that this happens when it's such an obvious hassle.
    How can I flip the list of bookmarks so the newest ones are right at the top where I can easily access them?
    Sorting in the Library does not carry over to the Sidebar as far as I can tell.

    Looks as though the SortPlaces add-on should be able to do it.
    Similar thread: [http://support.mozilla.com/fur/questions/771606 I would like to find a way to save my bookmarks unsorted but with the newest saves at the top of the list. I don't want alphabetical order. 3.6.13 | Firefox Support Forum | Firefox Help]
    Add-on: [https://addons.mozilla.org/en-US/firefox/addon/sortplaces/ SortPlaces :: Add-ons for Firefox]

  • Just upgraded Elements 9 to 10.  my Neat Image plugin did not carry over.  Can anyone help me?

    Just upgraded Elements 9 to 10.  My neat image plugin did not carry over.  Can anyone help me?

      Go to Program Files or on 64 bit systems Program Files (x86) and find the file NeatImage.8bf in the PSE9 plug-ins folder. Copy it to the PSE10 plug-ins folder.
    Alternatively go to Program Files\Neat Image and copy the file from the source.
     

  • Inventory in storage bins should not be allowed to go negative

    Hi
    Inventory in storage bins should not be allowed to go negative?
    Regards
    Vivek

    you can uncheck the "Allow negative stock" for the combination of warehouse and the storage type.
    Path is-
    SPRO > Logistics execution > Warehouse management > Stock removal startegies.
    Then select your strategy.
    Check out if it helps.
    Regards,
    nilesh

  • Dashboard prompt value not carried over to report in a Link on Dashboard

    The Dashboard prompt value is not carried over to the report displayed as a link on the dashboard. The report has the 'Is Prompted' filter. It does not work in both cases:
    1. when the report in the shared folder is specified in the link.
    2. when the report in a different page on the same dashboard is specified in the link.
    Please help.

    First change column data format to HTML.
    Then use following syntax:
    '<aa href = "http://server/analytics/saw.dll?Dashboard&PortalPath=%2Fshared%2FPortal%2Ffolder&Page=pagename&Action=Navigate&P0=3&P1=eq&P2=Tablename1.column1&P3=1+'|| cast(Tablename1.column1 as varchar(30)) ||'&P4=eq&P5=tablename2.column2&P6=1+'|| cast(Tablename2.column2 as varchar(30)) ||'&P7=eq&P8=tablename3.column3&P9=1+'|| cast(Tablename3.column3 as varchar(30)) ||'" TARGET="_blank"> <ffont color = #000099>'|| cast(Tablename1.column1 as varchar(30)) ||'</ffont></aa>'
    change ffont to font and <aa to <a and </aa to </a

  • DNG Conversion Of Sony ARW Not Carrying Over In Camera Lens Corrections

    One of the great features of the Sony NEX-7 is that the NEX-7 makes automatic lens corrections for vignetting, chromatic aberration and distortion problems. These corrections are written to the file and the preview. However, when converting these images from ARW to DNG the correction data seems to be lost, and the images revert to their uncorrected state. This requires all images to then be re corrected with the Adobe lens profiles, which is both tedious, an extra step, and also seems to produce results that are somewhat less optimal than the original corrections made by the camera.
    Should not the ACR Converter and Lightroom retain the lens corrections made by the camera?

    A Tonal wrote:
    This is one of those confusing issues where the way Sony describes the feature makes it sound as though it's part of the ARW format, and the way Adobe describe ACR and DNG makes it sound like this would be one of those manufacturer specific details that DNG is supposed to convert into a the Adobe format.
    Yes, that might be so. It's similar with the manual of my Nikon D600. Nowhere does it say explicitly that all these adjustments (including lens correction, Active D-Lighting, etc) work only for the JPGs. And it cannot be otherwise.
    A Raw image is not defined yet, not written in pixels yet, heck it is not even an image.
    The Raw image is only affected by the exposure, that's pretty much the only thing. Even White Balance is nothing but a metadata tag that - luckily - is read by Lr.
    A DNG is Adobe's answer to the various Raw formats. But it is designed to behave like a Raw image. Therefore you cannot expect that camera settings that affect JPGs only carry over to DNGs.
    A Tonal wrote:
    There are so many features on cameras that are only supported with JPG output that it almost makes it not wroth bothering with RAW, as by the time you get to the end of the process, with all the extra steps and work involved in handling RAW, you pretty much wind up with something that looks like a JPG anyway, and you had to give up using some of the camera's features to use RAW.
    This shows that you don't understand what Raw is and what its advantages over JPG are.
    I would recommend that you educate yourself about the advantages of Raw. Your photography would benefit from this, believe me.
    Google "Why should I shot Raw?" and you will find lots of good webpages.
    Finally, Raw shooting is much simpler than shooting JPGs where you always have to fiddle with the virtual 100s of different settings for JPGs.
    What do you have Lr for? In Lr you can adjust your Raw image by looking at it on a large calibrated monitor, whereas for the settings in your camera you have to rely on a 3" monitor - at best.
    Make your life simpler and your photography better: Shoot Raw.

  • Changes that i make to song display in iTunes, will not carry over when I sync to my ipad. This is only since i upgraded to ios7 and downloaded the latest itunes. Any ideas why?

    I use my iPad for music when i teach my dance class. The default layout in the music program on iPad is: song title, artist and album. I need the name of the dance, so in iTunes, I right click on the song title, then choose "get Info".  I then edit the info and under album title I write in the dance name. Then when i sync the iPad still has the same three columns, but the info i need displays under the album column.  UNTIL i upgraded to ios7 and installed the latest iTunes.  When I synced last night, after adding new music, the songs that were already in the playlist, stayed the same. ALL the new songs were placed in the playlist but none of the info that i edited synced.  It shows it as i want it when i look at the playlist in iTunes, but it does not carry over after the sync. 
    I hope this makes sense and does anyone have any idea why?

    Amazing! I'm a dance instructor and am doing the exact same thing as you - and not seeing what I need on my iPad Air ... I can't believe there has been no reply on this! I also can't believe there isn't an easy way of seeing track info in the iPad or iPhone but I've spent hours searching and am not finding anything

  • Batch Renames do not carry over to Finder

    When I Batch Rename my photos in Adobe Bridge, the images file names appear to change in Bridge, but when I close out of Bridge and open my images in Finder the images keep their old names and do not carry over the new Bridge batched rename.
    Can anyone tell me how to get my files to permanently change their names from Bridge to Finder?

    Working across a server in general, is not supported by Adobe.
    Bridge in particular is very sensitive to any problem(s) in your server configuration, which we cannot troubleshoot for you.
    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

Maybe you are looking for

  • Billing Document not gettting generated in Intercompany Billing Scenario

    Dear Experts, I am trying to create Intercompany Billing Document with Billing Type IV, but unable to create the same. I have done all the necessary config. I am getting error as Sales Organization is not defined. I have created normal billing docume

  • Vendor Confirmation using BAPI

    Can anyone suggest me how to do vendor confirmation using BAPI

  • Same pdf shows different colors than in photoshop

    Hi, I´m new to Acrobat, I work with Mac-support basically. I have a client that complaints that colors är not identical in Acrobat, compared to when he opens the same pdf file in Photoshop or in Illustrator. All applications are latest versions of CC

  • PowerPc no longer supported?

    I have an iBook G4 10.5.8 Mac OS X, 1.33 GHz. Until today my flash player was working just fine, but after trying to watch a video it asked me to upgrade to the newest flash player. I uninstatlled my old flash, installed the new one only to see that

  • Update copied to multiple documents

    Hi We have a requirement to update a property or value within a document such as expiry date and for this update to automatically copied to multiple documents on different sites and libraries. We need to edit a 'master copy' and have this change copi