Leave approval authorisation

Hi All,
I have a scenario where the manager substitutes an employee reporting directly to him and when the employee applies leave he is also able to approve his own leave due to substitution. Can anyone suggest any authorization objects or BADIs that can be used to validate if the requestor and the approver are the same person.
Thanks
Shantanu

The possibility of the employee itself approve his own leave request
is a behaviour allowed on the SAP software. But, you can modify
this behaviour with BADI PT_GEN_REQ.
You can find further details on the BADI by reading its documentation
on the following SPRO-IMG path:
> Personnel Management
  > Employee Self-Service
    > Service-Specific Settings
      > Working Time
        > Leave Request
          > Business Add-Ins (BAdIs)
            > BAdI: Control Processing Processes for Time Management
Web Applications
Please read the documentation of the BADI, specially the section
- "Filter next agent". This would definitely assist you.
check note 1114251

Similar Messages

  • Leave approval authorisation/ validation

    Hi All,
    I have a scenario where the manager substitutes an employee reporting directly to him and when the employee applies leave he is also able to approve his own leave due to substitution. Can anyone suggest any authorization objects or BADIs that can be used to validate if the requestor and the approver are the same person.
    Thanks
    Shantanu

    The possibility of the employee itself approve his own leave request
    is a behaviour allowed on the SAP software. But, you can modify
    this behaviour with BADI PT_GEN_REQ.
    You can find further details on the BADI by reading its documentation
    on the following SPRO-IMG path:
    > Personnel Management
      > Employee Self-Service
        > Service-Specific Settings
          > Working Time
            > Leave Request
              > Business Add-Ins (BAdIs)
                > BAdI: Control Processing Processes for Time Management
    Web Applications
    Please read the documentation of the BADI, specially the section
    - "Filter next agent". This would definitely assist you.
    check note 1114251

  • Leave approval text changes are not displayed in UWL

    Hi friends,
    I have made some changes to text label of leave approval application using ctrl+right click(done in role->workset->page->iview) in content admin but it not reflecting in UWL(when calling leave approval application in UWL).any idea pls.

    Hi,
    aah i think the problem is at the uwl xml config file, which controls which iview is opening for a specific task id.
    please enable the support info, at this u can see which xml file is used and you can change the directory/iview which is called by opneing the "leave approval":
    1. Log on to the portal
    2. Navigate to the following path: system administration   > system
    configuration
    3. In detailed navigation click on the UWL & Workflow folder
    to expand out
    4. Then click on the Universal Worklist Administration link
    5. Scroll down to the bottom of the page:
    Optional Universal Worklist Service Configuration
      Open the Tray for the Optional UWL Service Configuration
    Click on the button to open the tray for the optional UWL service
    configuration
    6. Scroll down again
    7. Go into edit mode
    8. Display Support Information:   Set the parameter to true
    9. Save
    have also a look here:
    http://help.sap.com/saphelp_nw70/helpdata/en/44/c0001cdfcd1386e10000000a155369/frameset.htm
    i hope this can help u
    br,
    fabian

  • Error in Leave Approval Workflow

    Hello Experts,
    I'm Using Standard Workflow WS0040077 for Leave Approval . I Activated the Event Linkage in SWEL .Did General Task in Agent Assignment . But when i run transaction PA30 . i get this error in SAP Inbox.
    Following error occurred:
    00 341
    RFC_NO_AUTHORITY
    Message text:
    Runtime error RFC_NO_AUTHORITY has occurred
    SAP System: EDV
    Client: 100
    Event container appended as attachment.
    Event linkage not changed.
    Event stored temporarily.
    Events can be redelivered via event queue
    administration (transaction SWEQADM).
    so what should i do to solve this problem.

    Hi,
      Have you checked the workflow config in SWU3? It sounds like there may be a problem with the LOCAL RFC destination used by workflow. Click the 'Start Verification Workflow' button in SWU3 as a health check.
    Also, are you testing this in the right client?
    cheers
    Paul Bakker

  • Leave approver UWL - Multiple entry

    Hi Expert,
      We have configured the UWL to display the Leave Request. Lets say there is 2 entries pending for approver to approve. He/she would received 2 entries in UWL. This is fine. When he/she click the leave request in UWL, system would launch the Leaver approver application. 
    However, the Leave approver application would display all entires pending for he/she to approved. User need to select the row and approve one by one which is very confusing to them. Many user complaint that he/she supposed to approver leave request for one person (i.e cause he click the entry for particular leave request), how come system would display also the leave request for another person. Also, it was very often for them to forget to approve all entries.
    It this a bug or by desing? Any insight?

    hi,,
    Check this link
    http://help.sap.com/saphelp_nw70/helpdata/en/d6/eddef503944dc6bbe8d81a2cec44e8/frameset.htm
    Regards
    Sameer

  • Multiple Leave Approval problem in workflow  WS21500001 -webdynpro

    hi,
    We are using standard webdyppro leave approval workflow WS21500001, but inhere does not provide multiple approval level.  Our requirement is we need two approval levels for this. So I copy the stranded workflow and create the second approval leave.  In here Iu2019m unable to send second approval document into the mailbox, I was write rule to get the second approver, its working fine but once the 1st approval  finished mail doesnu2019t go to the second approver inbox. Can you help me to do this?
    Regard,
    nawa

    Hello,
    Do you mean mail or workitem? I think you mean workitem.
    Use tx SWI1 to look at the workflow log and you'll see what the workflow is doing and why it's skipping the second approval step.
    regards
    Rick Bakker
    hanbi technology

  • Best way to implement ESS, Leave approval matrix.

    Hi Gurus,
    Please suggest me the best possible way to map the leave approval matrix for ESS.
    we had a plan to prepare our leave approval matrix based on "Position". Just wanna know Is it the right way to figure out the Leave approval matrix. Initially We received a suggestion to prepare the Leave approval matrix with Employee number but by seeing the attration rate/separation/inter org.unit transfer etc., It'll be very difficult to maintain the post seperation data maintenance.
    We had maintained a unique position id for each position(at present), If in near feauture if the same piece of task is assign to two person, we'll descriminate through there entry date(i.e. date of confirmation/Date of Joining).
    IS it the right way of doing it. Seeking expert suggestion.
    Thanks for your continuous support.
    Thanks,
    SMrinal
    Edited by: smrinal on Oct 29, 2010 12:21 PM

    This is usually pretty easy.  Place all the files/pages you wish to appear as the sub domain in a folder on your site, then have your host create a "A" record for the subdomain you wish to create - so it will look like this  http://YourSubDomain.YourDomain.com - then route this "A" record to the folder. Be sure the home page in this folder is a default page, such as index.htm or default.htm, or whatever your server uses for the default home page file name.
    Hope this helps.
    Lawrence Carmer - *Adobe Community Professional*
    http://www.Cartweaver.com
    Complete Shopping Cart Application for
    Dreamweaver, available in ASP, PHP and ColdFusion
    Stay updated - http://blog.cartweaver.com

  • Unwanted leave approval notification mails to Non-Manager

    Hello All,
    I have a situation wherein one of our portal users started getting leave approval notification mails from other employees in that Org Unit. Now the interesting part is he is not a manager and never was. Checked his relationships, substitutes and delegations and every where it is normal and not supposed to receive such mails. Moreover we are not using workflows yet
    Where could we have gone wrong, after so many attempts now my I am gone blank so please do suggest me all tables or customizations where it could went wrong or possibly any silly mistakes that would trigger this kind of problems.

    Thanq, that was very prompt;
    Here are my settings in RPTARQEAIL.
    Send email to requestor with text HR_TIM_ARQ_REQUESTOR with general notification almost for all.
    But should I rather check the settings for mail to approver instead? Coz one of a non manager employee  is getting approver notification mail such as " your employees in your dept are awaiting for your processing..."
    Can you brief me out on why this document selection radio button could have gone wrong in sending mails to requestor regarding approvals.

  • Leave Approval in MSS Displays Only Header

    Hi all,
    I have a problem with leave approval in MSS using the MSS Add-On.  I checked all the backend configurations and they seem OK.  I modified the UWL config file following the SAP note (which by the way said the config file should have been updated when installing MSS Add-On - but that didn't happen!).
    When I click on the leave request in UWL, a new screen opened and after a few seconds a blank header appears in the screen and nothing else.  When I previewed the leave approval in portal content, it works.
    I've searched for notes on this but nothing.  Can anyone help?
    Thanks in advance.

    Hi Krishan
    solution is simple.
    1. Raise an oss message and SAP would ask you to apply patch update from note 1720040.
    I am not too sure if this would solve the problem.
    Second option is
    1. go to your uwl xml and in your default xml paste following code for task 21500003.
    <ItemType name="uwl.task.webflow.TS21500003.SAP_ECC_HumanResources" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="defaultAction" executionMode="default">
    <ItemTypeCriteria systemId="SAP_ECC_HumanResources" externalType=" TS21500003" connector="WebFlowConnector"/>
    <CustomAttributes>
    <CustomAttributeSource id="WEBFLOW_CONTAINER" objectIdHolder="externalObjectId" objectType="WebflowContainer" cacheValidity="final">
    <Attribute name="REQUESTID" type="string" displayName="Request ID"/>
    </CustomAttributeSource>
    </CustomAttributes>
    <Actions>
    <Action name="defaultAction" groupAction="" handler="ObjectNavigationLauncher" returnToDetailViewAllowed="yes" launchInNewWindow="yes">
    <Properties>
    <Property name="ObjectValue" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
    <Property name="Operation" value="approveleaverequest"/>
    <Property name="ObjectName" value="employee"/>
    <Property name="openInNewWindow" value="true"/>
    <Property name="System" value="SAP_ERP_HumanResources"/>
    <Property name="DynamicParameter" value="LRF_REQUEST_ID=${item.REQUESTID}"/>
    </Properties>
    <Descriptions default="defaultAction"/>
    </Action>
    </Actions>
    </ItemType>
    After applying above if you still face same issue then download your mss addon 1.0 zip file from uwl admin page.
    extract com.sap.pct.erp.mss.addon.xml from com.sap.pct.erp.mss.addon.zip.
    paste above xml code for task 21500003 (please assure there is only one action for this task).
    and UPLOAD THE com.sap.pct.erp.mss.addon.xml
    Please make sure you upload the xml and not the zip. Please don't upload zip as that causes issues.
    Please don't rename the zip to xml etc. upload the changed com.sap.pct.erp.mss.addon.xml.
    After above it will work. in case there are issues please respond on this message.

  • Time/LEave approval in Business Package for Manager Self-Service 60.1

    Hi all,
    Currently implementing ESS MSS on 4.7 system with EP 6.0 SP19.
    The BP we plan to use is Business Package for Manager Self-Service 60.1.
    My basic question is, we approve leave requests in BP for my SAP ERP (2004s) in the Universal worklist. How do we do the same in  Business Package for Manager Self-Service 60.1. There i sno mention on time approval and leave requests approval in the MSS standard documentation ( or probably i missed it).
    Any inputs in this regards are highly appreciated.
    regards
    Sam

    Balaji,
    in mySAP we had the opition to lauunch the applications in web dynpro. like launch leave approval in web dynpro. do we have this kind of optiion where the manager can approve the work item on the portal application or will it call a transaction based iview to open the work item in the R/3
    regards
    Sam

  • Business package for leave approval in BlackBerry

    Hello
    We just want to know is there any Business Package available for
    Leave Approval using BlackBerry Handsets.We are using SAP Netweaver 2004s
    having EP 7.0 and R/3 system is ECC-6.
    Regards
    Debasish

    Debasish ,
                  I want to know the busines Package for Leave approvel in BlackBerry ,If  you find the Let me know.

  • Automatic leave approval

    Hi Gurus,
    I am getting some problem in leave approval through workflow.
    While I am applying any leave through transaction PTARQ its s approved automatically as it should. But when I am doing the same in production it is not working. the status of leave is shown as sent (not approved). In workflow log is it showing that leave is processed without workflow . Whether the leave should be approved automatically. the workflow we are using is standard. pls let me know which setting I am missing because of that leave didn't go through workflow.

    Hi All
    Issue resolved. Actually IT0007 is not maintained for the suervisot. So leave is not approved automatically.
    Thanks All.
    Edited by: pramod s on Jun 1, 2010 11:50 AM

  • Standard Work flow for Leave approval in HR module

    Hi ,
    My query is there any standard work flow available in HR module for Leave approval and Over time approval. We have negative time management and with out ESS and MSS.
    Pl suggest if any one has used this earlier with out ESS or EP
    Regards
    Punit

    I can think of the following but not without enhancement for the workflow part.
    - Since you are not using ESS, you (leave admin) may create the absence record directly in IT2001 (in LOCK mode).
    - In the user exit of 2001 you may trigger your Workflow process (i.e. call the function module to trigger WF here) depending on the LCCK status. You have to explore if standard WF can be used to your requirement.
    - Upon approval, you can UNLOCK the absence.
    - In the event that UNLOCK is unsuccessful, trigger WF to your Leave Admin for him to update via PA30.
    Standard SAP Workflow
    - Only 1 level approval
    - Using Chief Position
    IF your workflow requirement deviates, then you have to also customize workflow, does not matter whether you are using ESS or not.
    Finally test and retest to make sure all possible events are covered.
    OT is the same, except that you need to use 2007 vs 2002
    Edited by: sapuser909 on Nov 18, 2009 12:07 PM

  • Default "SAPInitial" View for Leave Approval in NWBC 4.0

    Hello All,
    We are using NWBC 4.0 for Desktop. Requirement of client is to default SAPInitial from dropdown list in View Field under Work Overview>Leave Approval. I am not able to find in R/3 where the configuration is done to default SAPInitial view for Leave Approval.
    Any help on this will be highly appreciated
    Regards,
    Nishant Gaur

    Hi Nishant,
    just to clarify this from the NWBC team and to give some detailed background information:
    With NWBC 4.0 the default is that the index page is pinned when you connect to a system the first time on your local machine.
    The logic here is very easy. NWBC checks if there is a special *.tab file for the system in the following user directory -  %APPDATA%\SAP\NWBC\Tabs. The files have the naming convention SYSID_NWBC.tabs. If the file does not exist, the pinned index page will be shown as default and the file is written and stored into the Tabs folder.
    That means this logic is not dependent on the SAP system user, but on the OS/Windows user.
    The next time you start NWBC and connect to the same system, the tabs are read from the *.tab file and you can then unpin and pin other tabs.
    So your first question is somehow strange, as the default definitly is the pinned index page.
    Best Regards,
    Thomas

  • HR Leave Approval issues

    hi everyone,
    I have modified the standard HR Leave approval Workflow WS002000077. In that workflow user decision, Unlock step type, loop steps are available. I am getting user decision workitem in inbox. When i click approve option, i has to go to unlock step type. But it is not going for unlock step.
    The same scenario is working good without loop, i can able to unlock it.
    So, in this scenario with loop, I am getting following errors;
    1. variables of the work item cannot be generated.
    2. Error in the evaluation of expression '&EMPLOYEET<???>.NAME&' for item '10'
    3. Error when determining attribute 'NAME' of object instance '[BO.EMPLOYEET.]'
    4. Agent determination for step '0000000038' failed
    5. Source (expression '&EMPLOYEET.ADMINISTRATOR.ADMINISTRATOR&') of binding assignment is not available
    6. Source (expression '&EMPLOYEET.ADMINISTRATOR.ADMINISTRATORGROUP&') of binding assignment is not avaible
    7. Error in the evaluation of expression '&EMPLOYEET<???>.ADMINISTRATOR.ADMINISTRATORGROUP&' for ite
    8. Error in the evaluation of expression '&EMPLOYEET<???>.ADMINISTRATOR.ADMINISTRATOR&' for item '10
    here item '10' refers to loop step. I am using custom rule. It is working fine without loop condition.
    Thanks in advance!!

    hi,
      That one previous workflow and it solved. But now the same one with loop for Re-submission of Leave Request after change.
      Actually the values from Employeet is not flowing in the Unlock step for agent determination. Because of that the agent determination is not possible for me. But it works well without loop scenario. Employeet is not instantiated.
    Here i am using loop condition for re-submission of leave request.
    Thanks,
    Balaji.V
    Edited by: Balajisap on Sep 19, 2011 3:56 PM
    Edited by: Balajisap on Sep 19, 2011 6:22 PM

Maybe you are looking for

  • Down Payment reversal

    My Business process- I receives the down payment from the customer, we post that payment through F-29, now some how customer want to take back that advance. How can i able to cancell or reverse the down payment which i took from the customer. Waiting

  • Photoshop Elements 10 won't work and won't uninstall

    I have Photoshop Elements 10 and Windows 8 on a Lenovo g500s i7 laptop. Photoshop will not open. I cannot uninstall it either. The uninstall process stops at the first Installwizard screen which asks me to press next to continue. I have tried various

  • Required Expert Opinion

    Dear All, Required expert opinion about following points: 1) In peak hours our database concurrent session aprrox. 70-80 sessions 2) Can we configure shared server mode, presently our server configured dedicated mode?? 3) If we go for Shared Server h

  • New partner functions for datasource 0CRM_SRV_IBASE_ATTR

    Hello, in note 874267 is described how to implemention new partner function in datasource 0CRM_SRV_IBASE_ATTR. But i doesnt know how get the structure iba_partner in the badi. Is there are function modul simulare like CRM_BADI_GET_BDOC. Regards Sven

  • Task sync in Microsoft Exchange

    How can I sync my tasks in Microsoft Exchange?