Preblem for Approver in Leave request

Hi All,
   Well i am facing a problem in Create leave Request For the Approver that is selected by default based on the organisation head.I don't now how it happens but thing that i noticed thta for an employee if i maintain a head position in the org  it picks up that head position of org as default.
My consulatant want this value to be picked up as we require i.e fetch a particular employee through coding on the screen itself and default on the screen.Can this be done else if any body can provide any better alternative for this solution is most welcomed.
Well we can actually send or sellect the approver what he wants but what about the approver that comes as default on screen and if there is no approver workflow will  not be triggered as it gives the error
Please reply soon.

1)   go to swdd tcode,give workflow name and then click on step which finds out the approver of the employee.u will find FM which is finding approver.
now u can go an change the FM in SE37 and put ur own logic to find the approver.
suppose u want to find approver by A002 relationship of employee then u have to write followign code in the concerned FM -
DATA: ls_sobid TYPE sobid.
  SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid
   WHERE otype = 'S'
   and   plvar = '01'
   AND   objid = i_plans
   AND   endda >= sy-datum
   AND   begda <= sy-datum
   AND   rsign = 'A'
   AND   relat = '002'.
e_objid = ls_sobid.
2) if not by A002 then u can create a new relationship say 'ZTV' and maintain this relationship for employees and find approver based on tht then as follows -
SELECT SINGLE sobid FROM hrp1001 INTO ls_sobid
   WHERE otype = 'S'
   and   plvar = '01'
   AND   objid = i_plans
   AND   endda >= sy-datum
   AND   begda <= sy-datum
   AND   rsign = 'A'
   AND   relat = 'ZTV'.
e_objid = ls_sobid.
3) reward poins if helpfull
amit

Similar Messages

  • Mass Approval of Leave Request...need function module or any program

    Hi All,
    I have developed Custom Application in webdynpro java  for Leave,Travel,now i got the new requirements for mass approval of Leave and Travel can any baddy provide me any input ,i don't know which functional module or program i use , help gurus...
    Regards,
    Pramod gupta

    Refer below links to get an idea :
    uwl mass Approval- Select all option
    UWL Mass Approval XML changes or Custom App
    Mass leave approval?
    As an alternative to this service, you can use the Leave Request: Mass Approval report (RPTARQMASS_APPROVAL) in the back-end system. These reports enable you to approve multiple leave requests in batch.

  • Error in approve the leave request in MSS

    Hello,
    i m new in ESS/MSS.. right now working on maintanance project...All configuration settings are done by other guy. -
    I m facing error in approving the leave request in MSS .. it open a error page as of no page found ... can any body tell me the solution of this problem.
    thankz and regards,
    Sumit

    Hi,
    Sumit Malhotra ,
    Can you check with other user who is having all the roles.
    This error has something to do with the roles.navigation is occuring with URL means check the roles or try with other user.
    Look into permissions and also in different browser also.
    Log file u have to search in OS LEVEL.
    Mail meto [email protected] if it doesn,t work and we can try for other ways.
    Sorry if it doesn't work.
    Thanks,
    Gopal.sattiraju

  • Workflow for Approval of Appropriation Request

    Dear experts,
    I have been working on Workflow for Approval of Appropriation Request.
    Even after carrying out all the required configuration, the process is not working. Following are the symptoms:
    When appropriation request is submitted for Approval, I am maintaining user ids of approvers in the Partner field.The moment I click For Approval status the Approve Button is deactivated.Even when I log in from the Approver's user ID the button is Deactivated. 
    When I check the Business Workplace Inboxes of Approvers there are no Workflow related mails.
    please help me out
    Regards,
    srikanth

    srikanth,
    Have you maintained all the configurations related to Work flow in IMG? like activating event linkage, assigning agents, approval schema etc...
    Also, have you maintained the workflow automatic configuration in transaction SWU3,
    you have to maintain the following:
    1. create a user id WF-BATCH, user type system and maintain a password for this user (seek BASIS team help for doing this)
    2. Assign SAP_ALL & SAP_NEW in user profile tab.
    3. in SWU3, under Maintain Runtime Environment --> Maintain Workflow System Administrator , select line and click on execute button, select user - WF-BATCH, save and back.
    4. then in the same screen select *Configure RFC Destination * click on execute, system prompts with the user id mentioned in the above step, you enter the password mentioned in the first step, click OK.
    5. now select *Maintain Runtime Environment * click on perform automatic configuration button (f9).
    6. Ensure that the option Maintain Runtime Environment turns to Green tick mark.
    7. select Classify Tasks as General click on perform automatic configuration button (f9).
    8. Ensure that the option Maintain Runtime Environment turns to Green tick mark.
    Now can go to transaction SWDD, on the left side of the screen, in the field WORKFLOW enter this value* WS00300022* press enter. Click on test (F8) button.
    In the Test Work flow screen select BUS2104 line, it shows a new line at the bottom of the screen with the following options:
    Object type:  BUS2104, Key:
    You enter the appropriation request number in the  field key (you cannot directly enter value here, choose drill down option (f4) then a new window pops up, enter the approp request number, click ok.
    then click on execute (f8).
    Now you can check in the approver's business work place under Inbox - workflow.
    Praveen

  • Line Manager (A002) remains default approver in leave request, despite determining different agent through WF.

    Hello Experts
    I am facing a issue in Leave Request.
    I have requirement where for a leave, HR should be the approver not Manager.    
    I have determined the approver through Rule, and used a FM which modifies ACTOR_TAB internal table which is passed to the Task.
    When a request is raised, I can see only HR as an agent in workflow log. Thats correct.
    But If I go to Manager's inbox, request is sent to Manager as well for approval.
    He is not there in agent log.
    But then I checked the container element "Req". It shows Manager's userid as approver.
    I dont want Manager to receive any request by default. I can determine through WF.
    Can anyone help me remove Manager as Default approver.
    Thanks

    for your scenario check your configuration in Table V_PTARQ_TPROCESS as proposed above but in this case you need to use the BADI as above refer here http://wiki.scn.sap.com/wiki/display/ERPHCM/Leave+request+Configuration+steps http://scn.sap.com/thread/1349663

  • Approver not availabale for approving the leave rquest

    Hi Guys,
    I Had One problem ,
    In the leave request work flow ,
    When a   leave request is raised , if the approver is not  available i want to approve that one with out his notification in back ground, for this one is there any std. program or any another process is there.... plz help me with quick responce 
    Thanks,
    Durga Prasad.

    Thanks rob,
    But I don't want to do like this,  is there  any another way ?
    Why because my project manger is already on vacation , I can't asign substitute for him.
    and Oslo all the leave request which are pending and also new request need to be approved  in back ground.
    Plz advice me
    Thanks,,,,
    Durga Prasad

  • Wrong agent picked if manager not maintained for employee in leave request

    Hi All
    We are using std. workflow WS12300111 for leave request approval which is run from the EP side.
    It is working all fine, but the problem arises when there is no manager maintained for an employee. Idealy it should have given a error message; but here the workflow runs and the agent is the manager of the previous leave request.
    Is there any setting that is missing anywhere? Or there is someother reason that I can't forsee?
    Please help me out in this

    Hi Varsha,
         who the agent is getting selected for that step of wrkflow.... r they using any rule or they are referring and org structure..
    if they are referring org structure then it will take the next  line manager of that employee...
    so if the picking agent is next line manager then it is working fine .............
    Regards Dev

  • ESS Error in EP for Working time -- Leave Request.

    Hi,
        We are on ESS 600 and EP 7.0. We have configured for the leave request and hence using the standard one. We are able to see the process succesully till steps as followed:-
    1) Employee can apply to leave from ESS on EP.
    2) Approver gets mail in the UWL.
    3) Approver can Accept the leave.
    4) We run the program to Post the leave.
    5) Leave gets updated in infotype 2001.
    6) We run program to send mail.
    But the employee doesnt get any mail of approval from the approver in his UWL on EP. Any thing needs to be done to make this whole process successful. Kindly let me know.
    Also kindly let me know whether the above steps are right and how do we make it automatic without any manual intervention. We need to schedule the jobs, if i am not wrong, but what programs need to be run at what time do let me know.
    Thanks and regards,
    Gaurav J.

    Hi Gaurav,
    The mails will be sent to the user's mail box. If you want it to appear in UWL, you need to set uo the SONIC connector. By default, UWL only reads workitem tasks. If you install SONIC, then this connector will enable UWL to read the sap r3 inbox as well.
    You can go this link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8525afd0-0d01-0010-aaa0-ac6b9e3a2907. You can try searching for SONIC in sdn forums also.
    If you want to send mailos to external mail id's then configure SCOT and SOST.
    Hope I am clear.
    Regards
    Reshma

  • How to configure and test workflow for Creating a leave Request?

    Hi,
      When I select <b>leave request</b> iView I get an R/3 screen  titled "Create Leave Request".And when I fill in the details for <b>approver</b> and press <b>send</b> I get this error message <b>"You are not one of the possible agents of the task"</b>.
    So help required to configure and test the workflow behind <b>Create leave request iView</b>.
    Regards,
    Pavanmeet.

    Pavanmeet,
    you have to set all activities in the workflow to "general task" as well, not only for WS12300111 itself (doubleclick on each symbol with the "triangle").
    check the status of the sent leave request in transaction PTARQ (Display Documents). Here the "next agent" & the "pers. no" of the next agent is of interest.
    logon with the user, that is saved in infotype 0105 of the above mentioned pers.no. there should be the approve request.
    you can check the status of the workitems with SWI1 (i assume your system is prepared for workflows , check SWU3)
    Message was edited by: Achim Hauck

  • Providing Calender option for dates in Leave Request form in ESS Portal

    Hello All,
    Can anyone tell me how to get the calender option for the From date and To date fields in the craete leave request iview in ESS ?
    In the backend R/3 transaction, we are able to see the calender option. But it is not visible in the portal.
    Thanks for your help...
    Regards,
    Bindu

    Go to:
    IMG > Personnel Management > Employee Self-Service (Web Dynpro ABAP) > Service-Specific Settings > Working Time > Leave Request > Processing Processes > Define Processing Processes for Each Rule Group
    Select your Rule Group
    Under Record Partial-Day Absences in   you have three options: Hours and Clock Times / Hours / Clock Times
    You should select Hours and save the record.
    With this, you will only have the duration and clock times will not be displayed.
    Regards,
    Harshal

  • Using CAF GP for Approving MDM Record Request.

    I am going to use CAF GP for approval workflow.
    I need to understand how to approvve the record using Java API. I know it needs to be moved from checked out stage to Checked in stage. But how do we do that from Java APIs.
    I am using SP4 for now, but need the information for SP6 too.
    ~Nitin

    If you look at your process description:
    Requestor - Submit a request - store in MDM in checked out mode.
    [Create a webdynpro callable object implementing IGPWebDynproCO|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e3f07a7a-0601-0010-ebbd-b9cfb445b814]
    Have it use the checkout(new)recordCommand (this works similar as the checkincommand I described above)
    Have validation at MDM to take care of all the required parameters/fields.
    Approver - Approves > Change the record to check in
    Use checkin as described above
    Rejects > Delete the record.
    For Reject you probably do not wantto delete the record but use the rollback command.
    [Here some more info on how to create a GP with Webdynpro COs|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0957cb6-5103-2a10-6d9d-a0a4d68c8bf1]
    This should get you started. You'll run into more questions though

  • Idea for Extensibility and Leave Requests | Fiori Apps RDS |  Fiori Apps RDS General

    Hi everyone,
    I have an idea and some questions in relation to Extensibility and Leave Requests... etc.

    Shoot them

  • Need Extra Validation for Attachments in Leave Requests

    Hi All,
    We intend to validate whether a user requesting for leave (ex.: Sick Leave) using SSHR has attached any documents or not (in case the request is for more than 5 days).
    Can someone please help me out with this? I tried to do this by using 'User Hooks' but the hooks that I have used so far (create_absence_entry BP, per_absence_attendances RH) validate the data on the absence entry page itself (i.e. even before the review page where files are attached is reached).
    Is there any user hook available on the review page in SSHR? Or, is there any alternative to this method?
    - Vikram

    Hi,
    If so your Message Flow is -
    RFC->XI->Http->RFC(R/3)->File
    After getting the response you need to send the Response back to the R/3 and same time the response should be sent to File system. Now you can go for BPM here.
    This blog will give you some idea-
    /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
    So your BPM will contain these steps-
    1) Receive the RFC Request
    2) Send the RFC request Synchronoulsy
    3) Recieved Response will be mapped to the file system structure
    4) send the Mapped file structure
    Asumption is Mapping i.e Request to Http Request and Http Response to RFC response is done outside the BPM.
    Hope this helps,
    regards,
    Moorthy

  • Trying to add functionality for Approve/Reject a request

    Hi,
    I'm using Oracle OIM 11g, currently I need to add the functionality to Approve or Reject a given Request through API. I have gone through the following classes in "*Oracle Fusion Middleware Java API Reference for Oracle Identity Manager 11g Release 1*":
    1- oracle.iam.request.api.RequestService
    2- oracle.iam.request.vo.Request
    Nothing was available in the above classes to help add Approve or Reject functionality.
    Can somebody please help me out on how to Approve or Reject a Request through API. It would be really help full if somebody who has implemented this functionality can please post the code or any help full links etc.
    Thanks in advance.
    Regards,
    Arjun Choudhury

    No probs buddy. Just as a thumb rule all approvals are managed by soa/bpel and in OIM its just a link to that task in soa. So any custom code for approvals would have to be done via bpel apis.
    Try your hands and let us know if you face any specific issue. I have worked a bit on these and would be glad to help.
    -Bikash

  • ESS Leave Request Approval Not working

    Hi All,
    We here have ESS1.0, ECC 6 and EP 7 on NW2004s.
    Problem which i am facing is in Leave Request.
    An employee enter his leave details and send it to its boss.
    and the boss check the same in his UWL uptil this its working fine.
    But when the boss click on the Leave request in UWL to approve or reject the same then error comes.
    The error is "<u><b>Application error occurred during request processing.
    Details:       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Wrong WebDynpro-URL: no application name specified
    Exception id: [001125C556F8005400000500000B2052000432CAF4C7A0CF]</b></u>"
    Kindly help me out on how can i resolve this issue.
    Regards,
    Sidhartha Chatterjee

    Hi Sidhartha,
    proove, if you use the following things:
    In the portal under "Universal Worklist - Administration" you must fill out the parameter "Web dynpro launch system" for the binded ECC system you use. Use a portal system (the alias name for the portal system you have created) which links to the Web Application Server where you have deployed(!) your application (if web application server and portal is the same you also must create a portal system with the local web application data). In general, you create and named a portal system like SAP_WebDynpro_XSS and bind it as parameter.
    If you do not use this system the Web Dynpro for Approve/ Reject leave request generates a wrong URL with the Web application data from ECC, not for web dynpro.
    More information:
    Configuring The Business Package For Employee Self Service (ESS)-mySAP ERP 2004
    (to create the system SAP_WebDynpro_XSS)
    http://help.sap.com/saphelp_nw04/helpdata/en/92/a88931f2dd4631b9e8d530697d89c9/content.htm
    (to bind it into UWL)
    Hope that helps,
    Regards,
    Frank

Maybe you are looking for

  • Problem while calling RFC function module in java

    Hi all com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: Connect to SAP gateway failed Connect_PM  GWHOST=<system.ab.ydydy.yyyd.com>, GWSERV=sapgw00, ASHOST=<system.ab.ydydy.yyyd.com>, SYSNR=00 LOCATION    CPIC (TCP/IP) on local host ERROR

  • Lightroom 3.5 copy/paste settings is different, and IMHO, broken

    For some reason now you cannot paste the settings you copy when you are in the loupe or grid view.  Command-shift C still copies in loupe and grid, but you are no longer allowed to paste, unless you are in the develop module.  You must copy them in t

  • MTV/VH1

    Does anyone know what video format MTV or VH1 takes to air music videos? MacBok Pro / Power Mac G5   Mac OS X (10.4.9)  

  • Use of com.evermind.server.rmi.RMIHttpTunnelServlet

    Hi, Is therea way to make use of RMIHttpTunnelServlet to calls a standard RMI servers running in the standard registry (1099). If Yes How Can I do this? If I do : try {           java.rmi.registry.LocateRegistry.createRegistry(1099);      } catch (ja

  • How do you encode getmessage calls in the following code below?

    Im trying to HTML/JavaScript ecode the getmessage calls in the code listed below. Can someone explain how to properly do this? The code below is a snippit from a program which is used to handle a failed authentication attempt. Thanks in advance for y