Fastformula to Identify employee on Particular leave

Dear Friends,
I have scenario in Accruals, Where I need to identify the employee who were on particular leave on the pay period to calculate different accrual rate for the days on that particular leave..
Can any 1 pls help me out...
Guru

Hi Guru,
There is an issue with the way you are using GET_ABSENCE. If you see the definition in Formula function definition this function has two context parameter and two input parameters p_calculation_date and p_start_date. If you want to use GET_ABSENCE in fast formula you wil have to use it as below
GET_ABSENCE(p_calculation_date, p_start_date) else it will raise error.
As per your requirement it would be better if you create a custom formula function with one input parameter p_absence_attendance_type_id.
1. Define a database function which will get the absence name for your
CREATE OR REPLACE FUNCTION get_absence_type_name(
p_business_group_id NUMBER ,
p_absence_attendance_type_id number)
RETURN VARCHAR2
as
l_absence_name varchar2(250);
begin
select name
into l_absence_name
from per_absence_attendance_types
where 1 = 1
and business_group_id = p_business_group_id
and absence_attendance_type_id = p_absence_attendance_type_id;
return l_absence_name;
exception
when others then
l_absence_name := 'XXXXX';
return l_absence_name;
end get_absence_type_name;
2. Define the formula function: example Name - XX_GET_ABSENCE_NAME
Definition - get_absence_type_name
Contex usage - Business_group_id
Parameters - p_absence_attendance_type_id, Type as Number and Class as Input Only.
Save the definition
3. Now in your BG_ABSENCE_DURATION use the condition as below:
IF XX_GET_ABSENCE_NAME(p_absence_attendance_type_id) = 'XXXXXXX' THEN
Accrual_Rate = get_number('ACCRUAL_RATE')
Annual_Rate = get_number('ANNUAL_RATE')
Accrual_Rate = ((Annual_Rate / Payroll_Year_Number_Of_Periods) *60)/100
Assignment_Inactive_Days = GET_ASG_INACTIVE_DAYS(Period_SD, Period_ED)
Hope it helps. Please feel free to let me know in case of any issues.
Thanks,
Sanjay

Similar Messages

  • Accrual Balance is not getting for particular leave

    on 11.5.10.2
    we have defined four leave in leave management system but on of the leave is not working properly in regards of getting accrual balance while using this function "per_accrual_calc_functions.get_net_accrual", although all plan getting balance but except one is not do this, how can we diagnose the problem for particular leave.
    Could you please advice.

    What is the problem? Is the leave balance zero when you don't expect it to be? Is the leave balance non-zero but calculating the wrong value? Or are you receiving an error message?
    Please provide as much detail as possible.

  • Employee cant take leaves same date

    Hi,
    How to restick that employee cant take leaves same date .

    Hi,
    We can do this by following configuration .
    In SPRO transaction by following path.
    Personnel Management  Personnel Administration  Personnel Data  Employee self service  Service Specific settings  Working Times  Leave Request  Processing Process  Define processing Processes for Each Rule Group.
    In "Take Account of Ongoing request"
    Tick mark on "Check includes Unposted Requests".

  • Identify if a particular user is authenticated locally in Apps 11i/R12

    Hi,
    How to identify if a particular user is authenticated locally in Apps 11i/R12 or against OID?
    I think FND_USER TABLE.
    Thanks

    Correct - if the USER_GUID in FND_USER is populated, then the user is authenticated via OID/SSO, else user is authenticated locally.
    MOS Doc 444573.1 - Basic checks for user integration when using Oracle E-Business Suite 11i with Oracle AS 10g
    HTH
    Srini

  • How to identify whether that particular process chain is active or not?

    Hi all,
    How to identify whether that particular process chain is active or not ?
    thanxs
    haritha

    If see the process chain then it will not be greyed out if it is active. Or else check in these tables.
    RSPCCHAIN
    RSPCCHAINT
    to check the logs
    RSPCLOGS               
    RSPCPROCESSLOG
    Give the chain name and check in the object version.
    Khaja

  • No Quota for employee in EP- Leave Request error

    I am facing an issue with one employee.
    This employee is having a lot of quotas for all the absence types in R/3. However in EP when he goes to 'Quota Overview', it shows that the table is empty, and the dropdown list also does not contain any leave.
    When he clicks on 'Leave Request' there comes an error
    Critical Error
    +A critical error has occured. Processing of the service had to be terminated. Unsaved data has been lost.     +
    +Please contact your system administrator.     +
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
                    at java.util.ArrayList.RangeCheck(ArrayList.java:507)
                    at java.util.ArrayList.get(ArrayList.java:324)
                    at com.sap.aii.proxy.framework.core.JcoBaseList.get(JcoBaseList.java:268)
                    at com.sap.aii.proxy.framework.core.AbstractList.get(AbstractList.java:230)
                    at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCList.get(DynamicRFCList.java:281)
                    at com.sap.tc.webdynpro.progmodel.context.Node$ModelElementList.getElement(Node.java:2549)
                    at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
                    at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
                    at com.sap.xss.hr.lea.form.FcForm.setLeadSelectionForSubtype(FcForm.java:700)
                    at com.sap.xss.hr.lea.form.FcForm.setVisibility(FcForm.java:943)
                    at com.sap.xss.hr.lea.form.FcForm.prepareCommand(FcForm.java:308)
                    at com.sap.xss.hr.lea.form.wdp.InternalFcForm.prepareCommand(InternalFcForm.java:2041)
                    at com.sap.xss.hr.lea.form.FcFormInterface.prepareCommand(FcFormInterface.java:116)
                    at com.sap.xss.hr.lea.form.wdp.InternalFcFormInterface.prepareCommand(InternalFcFormInterface.java:1887)
                    at com.sap.xss.hr.lea.form.wdp.InternalFcFormInterface$External.prepareCommand(InternalFcFormInterface.java:1983)
                    at com.sap.xss.hr.lea.form.edit.VcFormEdit.onInit(VcFormEdit.java:299)
                    at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEdit.onInit(InternalVcFormEdit.java:1084)
                    at com.sap.xss.hr.lea.form.edit.VcFormEditInterface.onInit(VcFormEditInterface.java:165)
                    at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEditInterface.onInit(InternalVcFormEditInterface.java:204)
                    at com.sap.xss.hr.lea.form.edit.wdp.InternalVcFormEditInterface$External.onInit(InternalVcFormEditInterface.java:280)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:564)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
                    at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
                    at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
                    at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
                    at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
                    at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
                    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
                    at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
                    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:756)
                    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:291)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
                    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
                    at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
                    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
                    at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
                    at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1288)
                    at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:355)
                    at com.sap.portal.pb.PageBuilder.init(PageBuilder.java:548)
                    at com.sap.portal.pb.PageBuilder.wdDoRefresh(PageBuilder.java:592)
                    at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:864)
                    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
                    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
                    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
                    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
                    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
                    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:321)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:684)
                    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
                    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
                    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
                    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
                    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
                    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
                    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
                    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
                    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
                    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                    at java.security.AccessController.doPrivileged(Native Method)
                    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
                    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Any suggestion regarding this?

    When Quotas table is empty then customisation is missing for his ESG AND PSG in v_t556a_web
    check his groupings from It2006 overview and maintain those in above for his rule group
    java dump :
    Please can you check if the Pernr used
    has correct information like It0105 etc, also the rules are
    correctly defined.
    For the Employee, First of all check the Period Work Schedule also
    the Quotas of the pernr needs to maintained in 2006, Please do
    this customisation and it should solve the issue.
    Maintain the absence quota in the IT2006 and then try once.
    Also make sure that the Settings in Webmo and PTARQ etc all is done
    The pernr belongs to the a Rule and have absences defined for him.

  • Where can I find Appraisal and IPF data for Employee for particular Year.

    Hello,
    I want to see appraisal data and IPF data for a particular employee for a particluar year.
    Please suggest Tables, Infotypes, T-Codes that I may use.
    Thanks & Regards,
    Labanya.

    Hi Labanya
    You should be able to see appraisal data through SE38 --> RHHAP_DISPLAY_DB or PHAP_SEARCH_PA.
    Hope this helps
    Best Regards
    Reddy

  • How we get the lower level employee under particular level employee

    Hi ,
    i have query like
    select lpad(' ', 3*level) || empno, level
    from
    scott.emp
    start with
    mgr is null
    connect by
    prior empno=mgr
    output:-
    LPAD('',3*LEVEL)||EMPNO     LEVEL
    7839     1
    7566     2
    7788     3
    7876     4
    7902     3
    7369     4
    7698     2
    7499     3
    7521     3
    7654     3
    7844     3
    7900     3
    7782     2
    7934     3
    i want to get all hierarchy under particular employee id i entered during runtime. eg. if i entered 7566     then it should display the following output.
    7566     2
    7788     3
    7876     4
    7902     3
    7369     4
    is it possible , please suggest.
    thanks
    kam

    Hello,
    How about trying like this?
    SELECT LPAD(' ', 3*LEVEL) || empno, LEVEL
    FROM scott.emp
    START WITH empno=7566 -- Or any value from where you want to start
    CONNECT BY PRIOR empno=mgr -Ammad

  • HRMS Employee's Absence (Leave) Accrual Days

    Hello,
    I have implemented Oracle Global HRMS. I have created reports for leave balances and I need to show the current accrual for leave balances. The path for the leave value is:- On the People window, click on others, then select absence, Select Annual Leave for the type field then click on the Accruals button, then select the End of Plan tab, the leave balance value is stored in the PROJECT ENTITLEMENT field. I need to display that field on my report but Im unable to find it on the table which it is related to.
    Can anyone please help me out with this as soon as possible...
    Thanking you in advance,
    Tasneem.

    Hi,
    I was referring to the accrual bands button only. So if you cannot find any values under accrual bands button, then tell us what is the accrual formula your are using. Open the accrual formula to see from where it takes the entitlement value. If no value is found in accrual bands button, then the value should either be hard coded inside the formula (very unlikely) or it would have defined in user tables (Other Definitons > Table Values). From where it picks the entitlement value depends upon the type of accrual formula you use.
    Regards.
    KK

  • DWS variants for hours to be reduced for a particular leave

    I have a scenario wherein leave type A and leave type B have same absence grouping say 2. But hours to be reduced for absence is different for two, say its 12 hrs for A and 10 hrs for B.
    Now if I assign rules for variants, it reads only 1st rule in sequence (fr absence grpng 2) and assign 12 hrs fr both leave types.
    please suggest as to what can be done in this case.
    If i delimit table V_554S_O (assign absence grouping) and change the abesence grouping to accomodate my requirements, will it affect the rules created for earlier work schedules, where and how this change will impact...as absence grpng will change to a new one.
    pls suggest
    thanks

    Hi
    I have tried it through counting rules, however I am facing some issues:
    1) can we effect two of the absences using DWS variants only, and the one by using counting rules
    2) if I define counting rules accordingly, assign the counting rule to absence type....what other steps do i need to take to effect that in the absence quota to be reduced.

  • Identifying articles having particular value in characteristic.

    Hi,
    This query is related to SAP IS Retail, don't know if it is also applicable to SAP R/3.
    I want to filter a list of articles having a particular value in the characteristic assigned to it.
    From where can i find the linkage. (Tables)
    Thank you,
    regards,
    Abhishek

    Hi,
    Check tables CABN, CAWN, KSML and KSSK.
    I hope this helps you
    Regards,
    Eduardo

  • Headcount report when multiple position for an employee at particular time

    Hi
    I have to develop a headcount report which will show the employee count by each personal area. Now i can simply bring in headcount data from the R/3 by standard source system. My problem is that one employee can have multiple position at a time. In standard routine every record is assigned headcount by 1. Now problem is that there are multiple records for an employee as multiple position are assigned at the same time which will lead to wrong headcount.
    Thanks
    Kamal

    Hi Kamal,
    Can you write your report off of 0EMPLOYEE or did you change the key to include position?  Just include employee group and employment status to determine who your active employees are. 
    Brian

  • Best practices for disabling an employees account, but leaving mailbox available for others while not accepting messages

    I'm sure that other organizations have some policy for this. In our case, we want to keep the mailbox available for others to still access, but disable the user account and remove it from OWA.
    In this case, I've disabled the AD object, disabled OWA from the features, and set the mailbox to only receive emails from a dummy mailbox (so that no new emails are accepted).
    This all works fine and senders receive a NDR that their mail was rejected, however I'd also like to set a friendlier custom NDR to call the office instead when any sender attempts to send email to that recipient.
    What would best practices, suggestions be for this behavior?

    Hi,
    According to your description, the user object in AD has been disabled.
    In this case, the mailbox cannot mostly likely be accessed. Thus, maybe OOF couldn’t help you.
    If I misunderstand your meaning, please feel free to let me know.
    And we can depend on transport rule:
    The recipient is
    send rejection message to sender with enhanced status code:
    http://technet.microsoft.com/en-us/library/bb123506(v=exchg.141).aspx
    Thanks,
    Angela Shi
    TechNet Community Support

  • Adhoc Report-Employee leaving data

    Hi
    I tried to get a report in Adhoc  Query regardig Employees Date of Leaving data for Resigned/separated employees.  In the out put the data of Date of Leaving coming as blank.  .  In the Dev client in one user group I got the report where as in the Production in the same user group report is generating without the date of leaving data
    How to get the report any logic
    EKP Yadav

    Hi E K P,
    This may be an authorization problem.
    Pls. check whether your account's PFCG data is same for both systems.
    Regards,
    Dilek

  • Leave Quota generation with diifferent rules for different countries

    Hi,
    I have the following requirement need help in achieving this.
    Employers must grant 10 days paid leave to employees that worked for six consecutive months from the time of hiring and who worked on not less than 80 per cent of all schedule work days. This paid leave may be taken consecutively or separately. Where an employee's application to take paid leave will hinder the normal business operations, the employer may require the employee to take such paid leave at a different time.
    The number of days of paid leave available to employees increases in proportion to employees' length of service as set forth in the below table.
    Years of Service  0.5  1.5  2.5  3.5   4.5   5.5   6.5+
    Paid Holidays         10    11  12   14    16    18    20
    The right to annual paid leave expires after two years. In other words, annual paid leave left over from one year may be carried over and taken the next year only. For example, if an employee is awarded 10 days paid leave after their first 6 months of employment; those paid holidays will become invalid after 2.5 years of employment. Use them or lose them.
    Simply put, holidays from one year can be carried over to the next year, but not to the third year. So, if you don't take your leave from one particular year within 12 months of that year ending, you will lose that first year's allowance.
    Employee can take leave encashment of holiday leave only when leaving their employer. It is not legal for companies to buy up the holiday leave of those still working for the firm.
    In my organization one PSG grouping has been used for all countries, it wont be possible to change the grouping now. In such a case how can we provide different rule for different country without customizing the Leave module.
    Do we have to use any PCR for this, if yes which??
    Regards,
    Jailakshmi
    Edited by: Jailakshmi on Aug 3, 2011 7:16 AM

    Hi,
    Use QUOMO Feature to give different entitilement to employees.
    Leave entitlement as per seniority can be configured in base entitlement.
    Keep validity and deduction period for 2 years by using :Relative postion" option in validity and deduction period table.
    Rgds,
    Lata
    Rgds,

Maybe you are looking for

  • I can't get updates to work. it just loops forever

    i have a macbook air. when i get prompted to update, it loops forever

  • CALCULATING--HELP PLEASE!!!

    I have fixed everything in my code that was wrong; but I still cannot get it to do the calculation: When I enter the amount and click the calculate button I get nothing; just 0.0. pTax = tax * value; Here is my code: import javax.swing.*; import java

  • Error message in printing anything from the web

    I have an HP Pavillion Slimeline; Windows 7; 64 bit, and an HP Deskjet 6540 printer. No problem until during the last week.  When I attempt to print any web page (including pages that have a "print" button, I get window with HP forum, and when I clos

  • Yet another organizing aperture thread

    I saw some fantastic posts. I read them, but would love some personal advice. I am not a pro so I don't think in terms of organizing for clients or publishing. I basically upgraded to aperture for some pretty basic reasons: Books are more flexible Sl

  • How can I free RAM after running labview vi

     I am trying to acquire 7 channels of data for 60 secs at 44100 Hz using a PCI-6259 card and LabVIEW.  I am using the DAQmx Read polymorphic vi to acquire the data and the 'Write to Spreadsheet File' VI to write it.  When I run the program for the fi