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

Similar Messages

  • Need extra storage for photos for my ipad ...

    I need extra storage for my ipad to store photos on ... I have so far been looking at the Airport Time Capsule & Seagate Wireless Plus.
    Can anyone recommend any? Thanks

    If you need to offload photos as you have too many, the best way is to plug the iPad into you computer running Mac OSX and dump them into iphoto.
    If you want to use something by wireless, without a computer then any network connected hard disk will work much the same. You cannot use file storage directly anyway.. you need to load a file app to start with.
    I think use whichever works out the cheaper for you.
    Do note the TC is really not designed to do this job and if you already use the TC for Time Machine it is messy loading files onto it. This is apparently a new purchase so you are not using the TC at all..
    The TC lacks a method to back itself up.. And this is one of its great weaknesses.. if the TC fails.. and they all fail at some point. How are you going to recover those photos?? From iPad you will not have the tools needed to do backups of the TC to another location.
    I have no idea if the seagate has built in proper backup but I would find out.

  • 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

  • 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

  • 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

  • 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

  • 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

  • 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 batteries for Rebel EOS SL1 - suggestions?

    I just got a new Rebel EOS SL1 and would like 2 extra batteries. The Canon batteries are so expensive. Does anyone have reommendation? Hate paying for a Canon battery, if a generic 2nd-3rd party battery would do. Yet, are there advantages to only using the expensive Canon Batteries? I did have another brand camera and bought cheap generic batteries off of ebay that worked wonderful. However, with this new Canon Camera, I'm wondering other Canon users experiences with batteris for the Rebel cameras.

    Yes... the canon batteries last longer and have more recharge cycles in them. I find that while generic 3rd part batteries cost about 1/3rd the price... I have to replace them three times as often.
    As reliability is important to me, I ultimately gave up on third party batteries.
    Tim Campbell
    5D II, 5D III, 60Da

  • Need extra cooling for Qosmio x875! Surprised?

    I'm looking for a laptop cooler and/or vacuum cooler for my Qosmio x875. I am currently considering the CM SF-19 and the CM Notepal X3. Which one is better for the Qosmio x875? I couldn't find exact specs on the Qosmio airflow, so I am loathe to simply make a judgement based on what I can guess.  I've already reapplied thermal paste and that brought my motherboard and CPU down from 100°C down to 75°C during maxed out gaming. A significant improvement, but still a bit too hot for my tastes, which is why I'm looking for extra coolers.  Any suggestions? 

    Hello Tom
    Maybe you should simple clean up your notebook, or be sure your notebook is placed properly on the desk.
    You can also put something under back side to make more distance between the desk and your laptop. I have placed two small books (about 1 cm) to allow better air circulation.

  • What needs to be done to include the leave request type in the work flow

    what needs to be done to include the leave request type in the work flow?
    the present request for work flow includes the notificationto be sent to the approver
    which doesnt include  leave request type inthe description
    to include this we need to maintain a container variable but what should be the method or abap dic object which has to be used for maintaining this leave request type container

    Hi,
    You can create and take where you pass leave type and get description of it and create an field in WF containr and fill it than you can use add that field when you are sending notification,.
    Atul

  • ESS Leave request Visual Parameters for the Tasks

    Dear All,
    I have a basic dought about ESS Leave request Workflow process.
    We have used  WS9100004  TS12300097 for this Visual Parameters are 
    Visual Parameters        Visual Parameter Value
    APPLICATION                     LeaveRequestApprover
    PACKAGE                    com.sap.xss.hr.lea.appl
    For Task TS12300116
    Visual Parameters            Visual Parameter Value
    APPLICATION                    com.sap.xss.hr.lea.appl
    PACKAGE                    LeaveRequest
    In the same way I have to use another workflow for canceling the leave request
    Workflow number is  WS12400005  in which I have used
    TASKS  TS 12400028, TS04200011, TS04200007, TS01000162, TS04200008 
    For above tasks what are the visual parameters I need to maintain. 
    Visual Parameters     Visual Parameter Value
    APPLICATION              ?
    PACKAGE              ?
    Please suggest me on this.
    Regards,
    Kishorekumar.R

    Hi Siddharth Rajora,
         With you r help i was able to resolve the issue. Thanks for the information.
    Regards,
    kishore.

  • Leave Request workflow in MSS - copying standard

    Dear All,
    can you please help me! Im new to this HCM and SAP.
    My Requirement is Manage or Team Lead creates the Leave request (on behalf of employee).
    If team lead creates the LR, then the approval mail has to reach manager's UWL. he has to approve or reject.
    If manager  created the LR, then no need to send the mail.
    What i did is, i copied the standard LR workflow - WS12300111 into a customized one.
    right now i didnt change anything.
    And dont even understand that how mail is going for approval in standard, since there is no mail step in standard.
    i have seen about two report also - RPTARQEMAIL & RPTARQPOST .
    whether i also need to use this..???????
    Please advice.
    Thanks,
    Rani.

    Hi,
    First of all, you should know the difference between workitem and mail.
    Work item - Action that needs to be taken on the request (i.e.)approve or reject
    Mail - notification saying that your leave request has been approved (or) employee A's leave request lying with you for approval.
    Work item - workflow generates it and it will go to UWL.
    Mail - External program or workflow will trigger and it will go to Outlook. (But standard workflow WS12300111 won't send mail)
    Now tell me your requirement.
    Do you need work item or mail not to be sent when manager raises leave request?
    I mean, Is no approval required for manager's leave request?
    Cheers,
    Raja.D

  • Changing leave request status.

    Dear all expert,
    I am trying to customize my leave application wf (12300111) to 2 level of approval. I am facing a problem, after my first approval approved the leave request, the status in PTREQ_HEADER will change to approved. How can i reset the status to any other status so that when the schedule posting job (RPTARQPOST) run, it will not pick up this request which has been only approved by first level manager.
    Thanks
    Regards,
    Bryan

    Hi,
    I remember seeing this same topic discussed earlier, and I think that there were also some solution explained. I just cannot find the topic now - maybe you have better luck.
    Anyhow, I think that you need to create a custom method for changing the leave request status back from approved to sent. Take a look to the existing leave request WF class - there should be a generic method for changing the status - or at least some sort of an example about how to do it.
    Then just place a new step after the approval step, which will execute this new method.
    Regards,
    Karri

  • Using function module PT_ARQ_REQUEST_EXECUTE to approve leave requests

    I'm building a screen to approve or reject multiple leave requests using function module PT_ARQ_REQUEST_EXECUTE as the SAP standard program RPTARQAPP does, and this seems to be working fine.  However, I also need to include a note from the approver which is a bit of long text that ends up in table PTREQ_NOTICE.  This is something that RPTARQAPP does not do.
    I cannot find any way of passing this text into PT_ARQ_REQUEST_EXECUTE.  The only way I can find of doing this is to call FM PT_ARQ_REQUEST_PREPARE first (command = PREPARE_APPROVE), update the CURR_NOTICE field it sends back in structure EX_REQUEST, then pass the changed EX_REQUEST structure into FM PT_ARQ_REQUEST_CHECK (command = CHECK_APPROVE)  and then call PT_ARQ_REQUEST_EXECUTE (command = EXECUTE_APPROVE).  This works fine for a single leave request, but when I try to use this process to approve two leave requests the CHECK FM gives me an error on the second record with a message referring to a time conflict with the first message even though the dates on each are not the same.
    I've searched and there are a few posts about these FMs, but I still can't fix this problem.  Has anyone ever dealt with this situation before and found a solution?

    I've replaced the call to FM PT_ARQ_REQUEST_CHECK with the following and it seems to work pretty well.  Though of course it will need a lot more testing.
    STATICS:
        request TYPE REF TO if_pt_req_request.
      CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id     = p_im_request_id
          IMPORTING
            ex_request        = request
          EXCEPTIONS
            request_not_found = 1.
      CALL METHOD request->set_notice
          EXPORTING
            IM_NOTICE               = p_approver_text.

Maybe you are looking for

  • Getting values from application context

    I want to set an input box with the value from the jsp getRemoteHost() in jsf page.. In my page i have this <h:inputText value="#{sok.Searchstring}">... where the reference sok is a java bean public class sok      private String Searchstring;      pu

  • I have read up, and am still having problems with RSS Feed

    Greetings Everyone. I really need some help with my RSS feed before I go insane. I would like to think I know what I am doing, but obviously there is some little (or big!) step I am overlooking. Ok here is my site: www.drewernst.com it is hosted by a

  • Trouble with TO_TIMESTAMP converting from Java Date

    I have a Jelly script that initializes my database. I have some "TIMESTAMP" columns that I want to set to the current time. I set a variable at the top of the script to the current time, so I can use that throughout the script. The resulting excerpt

  • Contacting skype

    Is there anyway I can contact skype by phone or email?  I need them to contact me otherwise.  I signed in for Premium, got an email saying that my billing had gone wrong, I went through the payment again, and suddently I received emails with the conf

  • Photoshop 6 Gif error message

    I am using Photoshop 6. I created an animated psd. When I save for web, I get an Unknown error message. Here are the specifics ... 84 frames GIF 128 Dithered Please advise. Thank you.