Using  BG_ABSENCE_DURATION

Hi,
I want to use the BG_ABSENCE_DURATION fast formula differently for different absence types.But Absenec Type/Id is not an Input parameter to the formula.Also no such database item is available.
Can any one please advice how to differntiate the Absence Type within the formula.
The requirement is to include weekend for Sickness & not to include weekend for other absence types.
Many many thanks in advance.
-Subrat

Add a input parameter called absence_attendance_type_id(number) which will return the absence type id for the absence which you are applying.

Similar Messages

  • How to use the manually entered Hours/Days in the Duration field for BG_ABSENCE_DURATION

    Hi All,
    How to use the manually entered Hours/Days in the Duration field for BG_ABSENCE_DURATION fast formula?
    Requirement is to restrict employees for applying for leave more than the accrued balance. In SSHR, apply leave functionality, the employee enters the start date, end date and duration manually. The entered duration must be used in the fast formula to check against available balance.
    In the BG_ABSENCE_DURATION FF, I have a function to calculate the net accrual balance as on the calculation date.
    I want to add the logic as - If to_number(Duration) /*[manually entered value]*/ > net accrual balance then
    Duration = 'FAILED'
    invalid_msg = 'Error'
    return duration, invalid_msg
    Thanks!

    Hi,
    We have a standard functionality to override the duration calculation and you don't need to add a validation for the same. Please set the value of profile option HR: Absence Duration Auto Overwrite to Yes
    When you do this user will not have to enter the duration value manually. It will get auto calculated based on the duration calculation in BG_ABSENCE_DURATION when you click on the next button.
    For not allowing negative leaves to be applied, If you are on R12 then, this is a standard functionality and you need to set profile option HR Allow Absence Negative Balance to No
    If you are on 11i then refer Note: 268171.1: How Do You Stop Accrual Plans from Going Negative?
    Try and let me know in case you need further help.
    Thanks,
    Sanjay

  • How to use DFF value in BG_ABSENCE_DURATION Fast formula

    Hi All,
    I would like to know how can we use DFF values in BG_ABSENCE_DURATION fast formula.
    Can we pass them as input values?
    Also, when we use them as DATABASE ITEMS how does Fast Formula identifies them.
    For example I have created a DFF value HALF_DAY that can take either "YES" nor "NO".
    I tried to use that as input value but that didnt work, not sure if it is possible at all or not.
    I also tried to use that as Data Base ITEM, as follows:-
    IF (ABSENCES_HALF_DAY WAS DEFAULTED ) then
    duration = 'FAILED'
    invalid_msg = 'DFF not working'
    Any help will be much appreciated.
    Thanks,
    Avinash
    but i am getting following error when i access SSHR
    Formula BG_ABSENCE_DURATION: ORA-01403: no data found ORA-01403: no data found Cause: During the PL/SQL execution part, an Oracle error was detected. Action: Please refer to your system administrator.

    Thanks Vigneswar  and Avaneesh for your helpful comments,
    Actually I want to retrive the DFF value that I pass while applying the Leave Request and not that already stored in the data base. I checked and found that the query you have mentioned is retriving the data from base tables.
    select target.ATTRIBUTE6 -- Attrinute6 is database item ABSENCES_HALF_DAY+
    from    per_absence_attendances                target,+
    per_all_assignments_f                  ASSIGN+
    WHERE   sysdate BETWEEN ASSIGN.effective_start_date+
    AND ASSIGN.effective_end_date+
    AND    ASSIGN.assignment_id                  = 647--&B2+
    AND    ASSIGN.assignment_type                = 'E'+
    AND    target.person_id                      = ASSIGN.person_id+
    AND    target.absence_attendance_id  =+
    *(select max (absence_attendance_id)*
    from   per_absence_attendances+
    where  person_id   =  ASSIGN.person_id+
    and    date_start <=  sysdate+
    I have only added folloing lines In my BG_ABSENCE_DURATION FF
    DEFAULT FOR ABSENCES_HALF_DAY is 'XX'+
    if (1 = 1) then+
    duration = 'FAILED'+
    invalid_msg = 'DFF not working: '+ABSENCES_HALF_DAY+
    But evry time output is *"DFF not working : Yes"* no matter what the value I am passing while applying leave. This value "Yes" is stored in DFF attribute 6 for the test employee and I guess FF is retriving this value from DATABSE not from current transaction.
    Could you please help how to retrive run time data.
    Thanks,
    Avinash

  • Need to use ABSENCE_ATTENDANCE_ID in BG_ABSENCE_DURATION formula

    Hi,
    Can you please help me how can i use ABSENCE_ATTENDANCE_ID in BG_ABSENCE_DURATION formula.
    Thanks,
    Anil

    Thanks Brajesh..
    When staff click on Update Button on Approved Leave to change leave dates, then I want to compare existing leave dates with new leave dates.
    Eg: Leave Start Date : 01-Jan-2010
    Leave End Date : 01-Jan-2010
    BG Absence Duration -- Calculate Duration -- 1 day
    Now staff want to change their leaves, so they will click on update button on leave self service page.
    Leave Start Date : 02-Jan-2010
    Leave End Date : 02-Jan-2010
    BG Absence Duration -- Calculate Duration -- 1 day
    For this I want to compare new leave dates(02-Jan-2010) with old leave dates(01-Jan-2010).

  • Bg_absence_duration sql function not working in Self Services

    I Have SQl Function registered and used in formula BG_ABSENCE_DURATION, it is working fine in the professional forms, but in "Leave management" form in self services it gives error:
    PER_EMP_NUMBER not found at line 231 of bg_absence_duration Cause: a sql select statement obtained from application dictionary return no rows when executed.
    Edited by: Elrefai on May 29, 2013 10:11 PM

    Hi Jay,
    were you finally able to access DFF in BG_ABSENCE_DURATION , did the following piece of code worked ?
    IF ABS_INFORMATION_CATEGORY = 'CA'
    THEN
    (If ABS_INFORMATION3 = 'Half Day'
    THEN
    ( IF date_start = date_end THEN
    (deduct_days = 0.5
    days_between = days_between - deduct_days
    duration = to_char(days_between) return duration, invalid_msg
    ELSE
    ( duration = 'FAILED'
    invalid_msg = 'Half day leave can be applied only for a day'
    return duration, invalid_msg

  • Work Schedule vs BG_ABSENCE_DURATION

    Hi,
    If I have Work Schedule functionality working, do I need to configure BG_ABSENCE_DURATION Fast Formula as well ?
    I know I can calculate the duration based on the logic in BG_ABSENCE_DURATION fast formula. But If I have the work schedule functionality in place and have done the necessary configuration, do I still need the fast formula ?
    Also, If I have both the Work Schedule in place and BG_ABSENCE_DURATION, which one takes precedence ?
    Thanks,
    -Debo

    Note 413541.1 says there are two options
    ===========================================================================
    Two possibilities :
    A)
    1 - Open and understand the structure of the seeded fast formula
    TEMPLATE_ABSENCE_DURATION
    2 - Create a new fast formula with name BG_ABSENCE_DURATION of same type as
    TEMPLATE_ABSENCE_DURATION for custom absence calculations considering the work
    schedules. Use the function GET_WORKING_DAYS instead of DAYS_BETWEEN.
    That should exclude the week-ends from the absence duration calculation.
    B)
    HR Dev has provided a Work Scheduling Component, which is available starting HR.PF.K, please review note
    330021.1
    The functionality is delivered in patch that you need to apply on top of HR.PF.K, or it is already included in HR.PF.K.1
    Users will need to setup in HRMS Manager > Work Structures > Work Schedules
    Users must ensure ensure the profile option HR: Schedule Based Absence Calculation is set to
    ‘Yes’.
    ===========================================================================
    Now my question is if I go for option B, and also have BG_ABSENCE_DURATION setup in my system, how will my system behave ? Will it as per the fast formula
    or will it be as per Work Schedule ?
    Currently I have both in my system and I am not able to delete the BG_ABSENCE_DURATION fast formula. It is giving some error.
    I only want option B.
    Regards,
    -Debo

  • Is BG_ABSENCE_DURATION called again for duartion calculation after final ap

    Dear All,
    1. Create an absence request using self servcie and submit for approval, absence duration calculated is X
    2. change the BG_ABSENCE_DURATION fast formula, in such a way that the duration of the leave created in step 1 changes to Y
    3. approve the absence created in step 1
    4. the absence is committed to database but note that the absence duration is not as per the change in the BG_ABSENCE_DURATION fast formula, the absence committed shows absence_days as X and not the actual Y
    Is the duration not being calculated again before the absence is committed after final approval?
    Thanks & Regards,
    Supriya

    I finally got the call that my phone has arrived at the centre on Friday and is ready to be collected.
    I'll finally get my phone back on Monday, 4 December i.e. after 4 and half months ! And it cost me Rs. 2500 (Around $50).
    So now I ask is it worth waiting for 5 months for a phone repair which will cost you 50 dollars?
    I love Sony Ericsson phones and that is the only reason I'm going to stick up for them. But there's no way I'm giving the phone to any Sony Ericsson outlet in future for repairs and nor am I encouraging any of my friends and aquaintaces do the same !
    Thank you.

  • ASSIGNMENT_ID context in BG_ABSENCE_DURATION

    Hi,
    Can anyone tell me if ASSIGNMENT_ID context can be used in BG_ABSENCE_DURATION formula ?
    I tried a statement like
    test = ASSIGNMENT_ID
    But it gives me an error saying - 'Local variable used before initialization'
    Isn't ASSIGNMENT_ID a context available in the BG_ABSENCE_DURATION fastformula ?
    How do i use it ?
    Please help.
    Regards,
    -Debojyoty

    The contexts available in QuickPaint Formulas (of which BG_ABSENCE_DURATION is an example) are:
    ASSIGNMENT_ID
    DATE_EARNED
    BUSINESS_GROUP_ID
    You would not normally expect to have direct visibility of context values; rather, you would make use of them automatically by referencing a database item or a user-defined function.
    If you really want the formula to 'see' the assignment id, you'll need to write a UDF to return it.
    what would you do with the assignment id once you'd found it?
    Regards
    Clive

  • BG_ABSENCE_DURATION formula

    Hi, I have a question about the BG_ABSENCE_DURATION formula.
    We have a a situation where people want to apply for an annual leave that is greater than the time they have available. When this happens, a warning message comes up:
    "Warning - This absence will decrease the employee's PTO net entitlement to less than zero for one or more of their accrual plans."
    Which is all well and good but the problem is that it now allows the employee to make the leave request. In the BG_ABSENCE_DURATION formula there is a variable called error_or_warning. Now I wonder if it is possible to make the page error out using this variable since I don't want a warning. I don't want the user to make the leave request at all if it is a certain type of leave request. In this case (annual leave).
    Can anyone help? What should I set the variable to if this is really the problem.
    Thanks.

    Hi
    The error is coming, might be u haven't defined the minimum/maximum value the person can have in the accrual plan screen.Define values as 0 to 99999 in accrual screen, then test again.
    If you don't want that user can't take this type of leave then u can write the business logic in the BG_ABSENCE_DURATION Fast Formula to restrict the user to take particular leave type.
    thanks
    arun
    Edited by: Arun Sharma on Oct 12, 2008 11:43 AM

  • Using Work Schedules but require additional calcualtions

    Hi,
    I am using work schdeules to setup shifts which are used to calcualte my absence durations - and it all works perfectly...
    EXCEPT - for employees on a 12 hour shift, the absence duration calcualted has to be multiplied by 1.5
    This was taken care of in the BG_ABSENCE_DURATION formula, but now that the Schedules are enabled, this formula is ignored.
    What is the best way to achieve this additional calculation?
    Regards,
    Bernard

    to remove watermark i have added license key in WEB-INF\flex\license.properties file as key = value

  • How do I use Edge Web Fonts with Muse?

    How do I use Edge Web Fonts with Muse - is it an update to load, a stand alone, how does it interface with Muse? I've updated to CC but have no info on this.

    Hello,
    Is there a reason why you want to use Edge Web Fonts with Adobe Muse?
    Assuming you wish to improve typography of your web pages, you should know that Muse is fully integrated with Typekit. This allows you to access and apply over 500 web fonts from within Muse. Here's how you do it:
    Select a text component within Muse, and click the Text drop-down.
    Select Add Web Fonts option, to pop-open the Add Web Fonts dialog.
    Browse and apply fonts per your design needs.
    Muse also allows you to create paragraph styles that you can save and apply to chunks of text, a la InDesign. Watch this video for more information: http://tv.adobe.com/watch/muse-feature-tour/using-typekit-with-adobe-muse/
    Also take a look at these help files to see if they help you:
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-1.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-2.html
    http://helpx.adobe.com/muse/tutorials/typography-muse-part-3.html
    Hope this helps!
    Regards,
    Suhas Yogin

  • How can multiple family members use one account?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

    My children have iphones, ipads, ipods and mac books, my problem is how do you use home sharing with the devices and not get each others data.  My Husband just added his iphone to the account and got all of my daughters contacts.  I understand they could have there own accounts but if i buy music on itunes and both children want the same song, I don't feel i should have to pay for it twice.  Is there away we can have home sharing on the devices and they can pick and choose what they want? and is this icloud going to make it harder to keep their devices seperate?

  • Iphoto crashing after using mini-dvi to video adapter

    Hi, IPhoto on my Macbook is crashing. I can open it, then as soon as I scroll down it locks up and I have to force quit.
    This started happening right after I used a Mini-DVI to Video Adapter cable to hook my macbook up to my TV. The adapter/s-video connection worked and I was able to see the video on the tv. But iphoto immediately locked up the computer when I went to slide show and now it locks every time I open it.
    Any ideas?
    Thank you:)
    Dorothy

    It means that the issue resides in your existing Library.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    Regards
    TD

  • How do multiple family members use iTunes.? One account or multiple?

    How do multiple family members use iTunes. One account right now but apps gets added to all devices and iTunes messages go to all devices.  Can multiple accounts be setup and still have ability to share purchased items?

    Hey Ajtt!
    I have an article for you that can help inform you about using Apple IDs in a variety of ways:
    Using your Apple ID for Apple services
    http://support.apple.com/kb/ht4895
    Using one Apple ID for iCloud and a different Apple ID for Store Purchases
    You can use different Apple IDs for iCloud and Store purchases and still get all of the benefits of iCloud. Just follow these steps:
    iPhone, iPad, or iPod touch:
    When you first set up your device with iOS 5 or later, enter the Apple ID you want to use with iCloud. If you skipped the setup assistant, sign in to Settings > iCloud and enter the Apple ID you’d like to use with iCloud.
    In Settings > iTunes and App Stores, sign in with the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match). You may need to sign out first to change the Apple ID.
    Mac:
    Enter the Apple ID you want to use for iCloud in Apple () menu > System Preferences > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in Store > Sign In. In iTunes 11, you can also click iTunes Store > Quick Links: Account.
    PC (Windows 8):
    Enter the Apple ID you want to use for iCloud in the Control Panel. To access the iCloud Control Panel, move the pointer to the upper-right corner of the screen to show the Charms bar, click the Search charm, and then click the iCloud Control Panel on the left.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes. In iTunes 10, select Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    PC (Windows 7 and Vista):
    Enter the Apple ID you want to use for iCloud in Control Panel > Network and Internet > iCloud.
    Enter the Apple ID you want to use for Store purchases (including iTunes in the Cloud and iTunes Match) in iTunes 10 in Store > Sign In. In iTunes 11, click iTunes Store > Quick Links: Account.
    Note: Once a device or computer is associated with your Apple ID for your iTunes Store account, you cannot associate that device or computer with another Apple ID for 90 days. Learn more about associating a device or computer to your Apple ID.
    Thanks for using the Apple Support Communities!
    Cheers,
    Braden

  • Using SQVI to generate report of open and released delivery schedule lines

    All,
    I'm using SQVI  to generate an excel spreadsheet for some buyers to show open released schedule lines because they are a 1 line item per scheduling agreement company.
    I used the logical database MEPOLDB instead of a table joint and pulled fields from EKKO(vendor, SA #,&purchasing group), EKPO(Material Number), EKEH(schedule line type), and EKET(delivery date, scheduled qty,previous qty).
    Does this sound like I'll get the results I want on paper as long as I use the right selection criteria, because the report I'm getting isn't quite what I expect? I am unable to identify which lines are authorized to ship vs. trade-off zone, planning, etc. in the report thus far.

    Hi Mark,
                 I have faced same requirement. I am not sure about transporting to TST and PROD. I done by this way.
    After generating SQVI program in DEV , I assigned that program  to a transaction and tested in DEV. Later i have regenarated SQVI in Production. then I assigned the generated Program to same transaction in DEV. And transported the Tcode assignment of program to Production..
    About authorization , if its not sensitive report, BASIS can restrict at transaction level.
    Regards,
    Ravi.

Maybe you are looking for

  • Animating a line by moving bezier handles, points

    I'm working on a clip that simply moves lines around the stage and makes them bend. It seems very easy to do this, in a sloppy and uncontrolled kind of way, with the record button on, moving to different points along the timeline and moving the handl

  • JSF OutOfMemory Error when use ResponseWriter - how can I stream the output

    I am trying to output a large quantity of data and would like to stream the output in chunks. ResponseWriter writes the data into memory and then renders all the content of the response in one pass. Flush() does not change this behavior. Is there som

  • FLV Video Goes Black

    Hello, I have a FLV video playing through the Media Display componet, however, when the video is finished playing, the image goes black. I've tried reseting the video, adding an extra frame at the end of the FLV video, moving the componet off the sta

  • Support job in integated planning

    Hi all,          I am new to integrated planning.. and i got a job SAP BI support consultant.. my question is.. 1. what r the roles and responsibilities of a support consultant in BI INTEGRATED PLANNING.. 2. what r the  major issues or tickets that w

  • Change server for ALEREMOTE user

    Hi Guys, I want to change the server on which the ALEREMOTE user's jobs are run. They currently run on ou CI and I want to change it the app server. How do you do that? Thanks Cyrus