HELP: Customizing ESS Leave Request for multiple entries in one submission

Hi experts,
I appreciate help on this urgent problem. We're on ECC6 with EP7. My customization requirements are below:
1) Allow multiple leave entries to be submitted at one go. Standard ESS only allows one date range entry per submission. We've customized the Webdynpro Leave request form to allow multiple entries in table form.
Assuming there's 3 requests:
R1 ~ 01-Oct-2007
R2 ~ 03-Oct-2007
R3 ~ 05-Oct-2007
Whenever user clicks 'New Entry' button, Webdynpro will call bapi PT_ARQ_REQUEST_PREPARE to generate a new request ID.
When user clicks on 'Review' button, I will loop at the requests internal table and check each of the entries, which is an individual request, via BAPI PT_ARQ_REQUEST_CHECK. Am I doing correctly so far?
The checks return no error. Next comes the problem. When I click the 'Send' button, I will loop at the request IDs (in ascending order) into BAPI PT_ARQ_REQUEST_EXECUTE. I will get a dump, saying that the object cannot be found. Debugging shows that it cannot find the first request ID (R1) in the memory. I found that if I sort the request IDs in descending order, it will be able to find the last request (R3) and could process it. However, when it comes to the 2nd last request (R2), it will give me the same dump saying that object can't not found. Both R1 and R2 cannot be found whereas only R3 can be found.
In overview, the logic we adopted is like this:
1) PT_ARQ_REQUEST_PREPARE-CREATE (R1)
2) PT_ARQ_REQUEST_CHECK (R1) upon clicking 'New Entry' Button
3) PT_ARQ_REQUEST_PREPARE-CREATE (R2)
4) PT_ARQ_REQUEST_CHECK (R2) upon clicking 'New Entry' Button
5) PT_ARQ_REQUEST_PREPARE-CREATE (R3)
6) PT_ARQ_REQUEST_CHECK (R1, R2, R3) upon clicking 'Review' Button
7) Loop PT_ARQ_REQUEST_EXECUTE ( R3 - Returns OK, R2 - Returns object not found and terminates, R1 - not processed because execution terminated by R2).
Can anyone please advise me how I should go about changing the BAPIs? Or are the CLASSes/BADIs to be changed?
<b>Points will be rewarded for helping with this urgent requirement.</b> Thank you.
Regards,
Damien

Hi Kiran,
Thanks for replying. My guess initially was also that the requests are overwritten.
I heard of another company's implementation who did the same concept and was able to do it. Unfortunately, I'm unable to get any information from them.
Initially, my frontend programmer and I thought of adopting the 'dummy checks' methodology. i.e. Do dummy checks when clicking 'New entry' or 'Review' button. This is to ensure that the entries were entered correctly at front end. Only when the user clicks on the 'Send' button, my BAPIs take in a table of request entries and perform the Request_Prepare&Request_Check&Request_Execute one at a time.
This may be expensive as there will be double the processing needed. One set for dummy checks and one set for the actual backend processing.
Is there any way that I can create multiple requests in 'transcient' state so that it won't be overwritten and I can still find it when I call the BAPI PT_ARQ_PREPARE_EXECUTE? PT_ARQ_PREPARE_EXECUTE only takes in request IDs instead of request structures.
Thanks again, Kiran, for replying. Have a good weekend.
Regards,
Damien

Similar Messages

  • Can I create a PDF fillable form that allows form multiple entries and one submission?

    For example, I would like to enter new hire information for multiple new hire employees and only click the submit button once.

    Good Morning Randy -
    Sorry for not giving you a clear enough description. I was trying to avoid a novel.
    I hope to use FORMSCENTRAL for create a form for on-line users to register for meetings including paying via paypal.  Some of the people register and pay for the meeting by themselves and others are registered by their office assistant, so there might be as many as 25-30 people.
    The individual registrants are easy and doable with FORMSCENTRAL.
    However, for the multiple registrants, I would like to create a form that can handle multiple registrants and only one submission for payment.  So far, I have  only been able to do that by creating a form that has the registrant fields created multiple times.  I would really like to be able to have the set of fields created once unless I need to add the set of fields multiple times.  I am sure that complications keeping track of the total payment due as well.
    Being able to set-up a table with the fields across (left to right) for each registrant would be good.
    Maybe this does not explain it well enough in which case, I can call and explain our need.
    Thanks in advance.
    Paul

  • ESS Leave request workflow : ws12300111 : Customizing

    Dear experts,
    I need to customoze ESS leave request workflow WS12300111.
    Can you please tell me do I need to Copy this to a NEW workflow generating a new WF no or can I simply generate a new version for this only ? What is ideal ?
    1. Can anyone tell me step by step process(config) in ESS leave application workflow?.(SWFVISU????)
    2. Is workflow WS12300111, the only workflow that I need to look for leave application ?.
    3. If it is WS12300111 I don’t see any start event for this workflow. So how is it getting triggered?
    4. For the approval task TS12300097, agent determination is done by expression ‘&Agent_0001.Agents&’. How does it interact with Org.Structure.
    5. In my scenario, approver should be supervisor of the employee applying for leave. If it is pending with this approver for 5 days it should go to the next up level manager.
    For identifying first level approver is ‘&Agent_0001.Agents&’ enough.? For identifying 2nd level approval do I need to write a rule ?
    Kindly help.

    Hi Sourav,
    Try this step by step process(config) in ESS leave application workflow.
    ESS Scenario
    Workflow Process 20000081 u2013 Create Leave Request with HTML
    Steps for triggering the workflow:
    1) The employee logs with his user name in the ESS web page.
    2) The employee creates a leave request with an optional note and sends it to the appropriate approver (usually his supervisor). The approveru2019s name is automatically displayed in the leave request form and the employee can replace him with another if such a change is needed.
    3) The approver (us approver) logs on to sap system or to ESS
    web pages and reads his mails in the SAP Business Workplace. The employeeu2019s leave request form appears in the workflow inbox with approve and reject options.
    A) If the us approver approves the leave request, he pushes the
    button approve from his mailbox (processing status A with
    approve). A screen is appeared with a box (Table entry: 0001)
    and the approver must push the button continue in order that
    the workflow is continued. Then the form is sent to the
    employeeu2019s mailbox in Sap. When the employee opens his mails, he receives a note in his inbox that u201Cthe absence from u2026. To u2026..has been approved byu2026.u201D.After that the absence is
    automatically created in the sap system. Then the approver gets a mail (notification of completion & Return u2026u2026).
    B) When the approver cancels a leave request, he pushes the
    button reject and the processing status changes to u201CRu201D.
    Then the same form appears
    Realative OSS Notes:588262, 480103, 717560, 452841, 359197, 321439, 428394, 321439, 693368, 451998 (ITS), 197746 (ITS), 419297 (ITS)
    ITS - ESS stand-alone solution for 4.7
    This solution allows customers to schedule the 4.6C or 470
    install / upgrade independently from the Enterprise Portal or
    mySAP Workplace implementation and will be supported at least as long as SAP R/3 4.6C and R/3 Enterprise is supported.
    This ESS stand-alone menu is intended solely to allow independent scheduling of the 4.6C or 470 upgrade and the Enterprise Portal / mySAP Workplace installation. To use this solution, you have to take the following steps:
    1. If you do not already have R/3 4.6C, HR support package 8,
    please import HR support packages to at least this level. From
    HR support package 8 and above, the correct services are
    implemented. For 470, the corresponding recommended HR SP is 16 (See note 621589)
    2. Verify that the ITS you want to use does not contain a service or service-related files (HTML templates, MIME files) for the services PZLE, PZM3 or PZM3_start. If you find these files,
    delete them.
    3. Publish the services PZLE, PZM3 and PZM3_start from your R/3 4.6C system (or R/3 470 system whichever is the case) to your ITS using the SAP@Web Studio or the IACOR service.
    4. Maintain the username-employeenumber assignment in your system by customizing Infotype 0105, Subtype 0001 of those employees, who should be able to use ESS.
    5. Verify that your users have proper authorizations for
    executing RFCs (that is, authorization object S_RFC) from the
    function group EH08. If you run into problems, this is most
    likely due to missing RFC authorizations to start the service
    PZM3.
    6. Your users should now be able to access ESS by starting the service PZM3. They can do this by entering a URL like
    http://<ITS server>:<http port>/scripts/wgate/pzm3/!
    (the ! at the end is essential).
    7. ESS 4.70 Unicode System ITS 6.10 patch level 29 and above (With IE and Netscape). ITS 6.20, patch level 6 and above (With IE only).
    The ESS development tested these ITS versions.
    8. For Release 4.6C, ESS has the same browser requirements as the HTML (see also note 178788) and the mySAP Workplace 2.11 (if ESS is accessed through the mySAP Workplace 2.11).
    Hope it helps.Do award points if found helpful.
    Regards,
    Gourav

  • How to add new fields for ESS leave request

    Hi friends,
    Can u please help me with my issue.......
    My issue is to add new fields in ess/leave request i.e...
    The component needs to be Checked-out through Net Weaver Development Infrastructure, make the necessary enhancements, and finally Check-it-in back to NWDI.
    Custom Function Modules are to be invoked apart from the standard ones that are already available in the Leave Request component – ess~lea inorder to accommodate the extra absence-type logic.
    can u please sujjest me where should i make changes in the given 14 components
    means in which view i have to add these fields.................
    Regards
    Rajesh

    Hi Rajesh ,
    Check whether u are able to find the ess dc's under inactive dc's in webdynpro
    If ur not able to find it then Check the landscape configurator in CMS and also the transport studio and confirm that ess packages are imported fine
    Ganesh ,
               for creating a DTR client u need to open the DTR perspective right click and "create clients" before that go to windows ->preferences of the NWDS and check the development infrastructure URL is gven correctly ...try pinging it once...
    Do check ur SLD is up or not!!!
    Regards
    Krishna
    Message was edited by:
            krishnagopal Mukundan

  • How to approve Leave Request for Workflow in ESS?

    Hey! Experts,
    Currently, I am working on ESS Leave Request Workflow referening the Standard Workflow Template WS12300111. The requirements are as such, requested leave need to be approved using TS 12300007 'Approve Process'. Here, I have created a customized Rule to get the actual agent since the requirement is like i have to check if the employee who is apply for leave on the date is present in any project (alternative C-project Org. Structure is maintained) than his / her project manager will be the approver else i need to get the approver from the central HR Org. Struct. For simplicity consider the employee is currently present in only one project.
    Also, for information the Rule is working fine. That is the workitem is received in the appropriate agent UWL.
    Now my doubt is, there is no approve  / reject button coming in the workitem in UWL
    Also, after refering documentation on help.sap.com i came to know that some reports need to be run in background for approval to be done.
    Here, I am confused and I am stucked as I dont know which reports need to be run and how will the approval will be done in MSS.
    Kindly, give me some guidance on the same so that i can proceed.
    Thnx! in advance.
    And yeah points will be rewarded on giving suitable answer for this.
    Regards,
    Mistry Wasim

    Hi,
    Following are the some important points you should understand about ESS Leave Request Workflow
    1. The Visualization ( how should it appear in UWL and what should happen when you click on a particular workitem) is defined in SWFVISU. Check for TS12300097. Generally, it invokes com.sap.xss.hr.lea.appl/LeaveRequestApprover Java WebDynpro application. Just check whether you are able to get the correct Leave Processing application called when you execute your workitem from UWL?
    2. In general it should have option to process the leave request either approve/reject. When the leave request gets approved/rejected the status of the Leave Request document gets changed ( in workflow it is &REQ.STATUS&
    3. There is a need to schedule a background job for program RPTARQPOST which will pick up all the documents in APPROVED status and creates an absence record for the same.
    4. Apart from schedule job as mentioned above, you also have to schedule a background job for program  RPTARQEMAIL, which is basically used to send e-mails for all the documents which are yet to be approved to correct manager.
    as you say , you can not see Approve/Reject options from UWL, it looks to me that correct javawebdynpro application is not being called for this task. Just check this !!
    Good Luck !!
    Regards
    Krishna Mohan

  • Add a custom button in Ess Leave Request

    Hi Gurus,
    I have requirement, add a custom button in a Standard ESS leave request (Webdynpro Java). When i click the the button it has to call popview(custom view). I am new to webdynpro Java, If possible explain me with step by step preocedures(if possible with screen shots).
    Thanks,
    Mohammed.
    Moderator message: this is the wrong forum, please have a look in the "Web Dynpro Java" forum, but always search for available information before posting.
    Edited by: Thomas Zloch on Jun 17, 2011 9:54 AM

    Hi Gurus,
    I have requirement, add a custom button in a Standard ESS leave request (Webdynpro Java). When i click the the button it has to call popview(custom view). I am new to webdynpro Java, If possible explain me with step by step preocedures(if possible with screen shots).
    Thanks,
    Mohammed.
    Moderator message: this is the wrong forum, please have a look in the "Web Dynpro Java" forum, but always search for available information before posting.
    Edited by: Thomas Zloch on Jun 17, 2011 9:54 AM

  • How to use EP-ESS Leave Request using Custom Workflow

    Hi Experts,
    Can I use the EP-ESS Leave Request (ESS 1.0 for ERP05) with a custom workflow which is NOT a copy of the standard workflow 12300111?
    Regards,
    Shobhit

    Please post this question on Business process forum.
    U will have to follow the architecture of 12300111 template for ESS leave.
    Even though it says u can use ur own wf!!
    Cheers!!
    Ashutosh

  • ESS Leave Request - Customer fields default function not working

    Hi,
    a. SAP version being discussed
    SAP ECC6.0
    EP7.0
    ESS/MSS
    b. Here is the scenario
    1. We are using ESS Leave Request application for employees to request leave. We are using the standard web dynpro java leave request application delivered by SAP.
    2. Lately there has been a need to provide a customer field on the request form which will have a calculated value showing up when the employee opens the request
    3.We used one customer field called customer01 as per configuration steps.
    4. This field appears on the request form when it is opened.
    5. Our need is to display a value in that field when the form is opened.
    6. SAP/s documentation states that we can use BADI PT_ABS_ARQ to default a value to this field on the form. This value is calculated during runtime dynamically.
    7. We have used the method IF_EX_PT_ABS_REQ~SIMULATE_VIA_BLOP for this purpose
    8. After activating and coding this implementation, the system does not default anything on the request form when it is opened up.
    9. Once the employee hits the review button, this field gets its defaulted value but this is not what we want. We want the system to display this when the form is OPENED, that means at the prepare stage. For this field to appear after hitting the review button is meaningless as the employee needs to make a decision based on the value in this field before hitting the review button.
    It almost seems like this BADI is called when the review button is hit and not when the form is opened up. We may be wrong and missing something obvious which one of you can immediately point out, Hence this post.
    10. I did go thru the forum at great length and seen that there has been discusion surrounding the need to populate R3 from a value entered into this field. My problem is different wherein, I wish to populate this upfront as display information when the form is opened and then send it back to R3, once the employee submits the request.
    Would be grateful if anybody on this forum could point me in the right direction.
    Thank you,
    Rajesh

    Please, can I take this question a little further.
    Is it possible to add more fields to the leave request form on the ESS portal. For example, our customer wants additional fields like reason for leave, contact residential and telephone number during leave, Require leave entitlements (Yes/No).
    Would appreciate if a reply can be given on if it is possible or not and what to be done if it is possible.
    Cheers

  • 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.

  • ESS Leave request customer fields customization

    Hi all,
    I'm wondering how can add or modify the Data Type of one customer fields. I mean on the ESS leave request I need a customer field check box, or list of value for example.
    I try to append a structure to table PTREQ_CUSTOMER_STRUC, but this table cannot be enchanced....
    So any ideas?

    Please, can I take this question a little further.
    Is it possible to add more fields to the leave request form on the ESS portal. For example, our customer wants additional fields like reason for leave, contact residential and telephone number during leave, Require leave entitlements (Yes/No).
    Would appreciate if a reply can be given on if it is possible or not and what to be done if it is possible.
    Cheers

  • ESS: Leave Request - How to use a custom Leave Workflow?

    Hi Experts,
    I am implementing ESS 1.0 for mySAP ERP05. I have a custom workflow for Leave Request which I want to use for the ESS Leave Request. Can someone tell me what are the configuration steps required for this?
    I have already performed the following activity:
    SPRO --> Personnel Information --> ESS --> Service Specific Settings --> Working Time --> Leave Request --> Specify Processing Processes for Types of Leave
    Here I have defined the WF ID of New Request as the custom Workflow ID.
    Now when I trigger the Leave Request from EP-ESS, the message comes that the request was sent successfully.
    But in the backend no workflow gets triggered. I even tried to write an implementation for the BADI PT_ABS_REQ to trigger the custom workflow event, but still no activity in the ECC workflow upon submitting thwe portal request.
    Can some one please advise.
    Thanks,
    Shobhit

    Ohh.. So the standard WF also doesnt get triggered??
    Are you sure u have done SWU3 config??
    If u have, Try using SWU_OBUF to refersh the workflow buffer.
    Try swi1 to check what is happening with ur WF.
    Try login to requesters login ... SBWP ... check the outbox. Is there a WF with Error here.
    Cheers!!
    Ashutosh

  • Link for ESS leave request?

    Hi,
    Can some one tell me how to display Ess leave request form ( THR10_1, Lesson Time Data figure 74)
    Ejaz

    Hello,
    It's not a form, it's an Iview. You can access the Iview in 2 ways:
      1. Via Content administrator, on the following path:
    Portal Content
    Content Provided by SAP
    End User Content
    Employee Self-Service
    iViews
    Working Time
    Leave Request
      2. Via Portal Directly, on Links:
        ESS -> Working Time -> Submit Leave Request
       (opc). Or via the Service directly. But this is only used for testing purposes. You can access the service via the following url:
    http://HOST:PORT/webdynpro/dispatcher/sap.com/ess~lea/LeaveRequest
    Regards,
    Bentow.

  • Customizing standard ESS Leave Request Application

    Hi,
             We are using standard ESS Leave Request application in our project. I need to set a default value to " Type of Leave" to  some value say "Vacation".
        Anyone kindly let me know is it possible to set some default values in SAP standard applications and how can we do that.
    Regards
    Pavan

    Is this a repeat?
    Re: Customizing standard ESS Leave Request Application
    Yash

  • Standard functionality of ESS Leave Request Details.

    Hi Gurus,
           Can anybody share the links of Standard functionality of ESS Leave Request Details..?
    And,Is there any standard functionality in ESS Leave Requests that if a User raises a Leave Request and want to extend the leave...is there any rule that User First cancel the previous Leave Request and raise a New Leave Request .
    Please explain briefly for the same.
    Thanks,
    Prakash.

    Prakash,
    ESS Leave Request with WebDynpro technology:
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/5b/76a6d7fd3a4e91bfb422405bf3e04d/frameset.htm
    ESS Leave Request with ITS technology (old):
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/80/58dce8142711d289b50000e8216659/content.htm
    http://help.sap.com/erp2005_ehp_04/helpdata/EN/d9/359018129c11d3964400a0c930669b/content.htm
    You've all the customizing in SPRO > Personnel Management > Employee Self-Service > Service-Specific Settings > Working Time > Leave Request
    You define:
    1) A Rule with certain settings
    2) Absences/Attendances to display in ESS, with certain settings, and its assignation to a Rule
    3) A WF (commonly based on standard 12300111) --even you could not use a WF, check customizing
    4) Run process (manually or not) for analyze, correct and delete or save the entries finally in SAP through PTARQ transaction
    And,Is there any standard functionality in ESS Leave Requests that if a User raises a Leave Request and want to extend the leave...is there any rule that User First cancel the previous Leave Request and raise a New Leave Request .
    The employee can be able to cancel the request even when attendance/absence was approved. You define this behaviour for each Absence/Attendance in customizing.
    Regards

  • ESS Leave Request - Set Workflow status to Completed

    Hi,
    We are on ECC 5.0 and we are using ESS to process Leave Requests. We have a custom Workflow based on the standard Workflow template WS12300111 for approval of Leave Requests.
    Whenever an employee creates a Leave Request via ESS the Workflow is started. When the employee deletes the request the Workflow has to be stopped/completed. For this we have put a Wait for Event step in a parallel branch to the Approval Process. In the Wait for Event step we wait till a condition ( Request.status = DELETED ) is met.
    But when an employee deletes a Leave Request the request is deleted from the list but it gives a message as "Specify a class name".
    Can anybody please help us on this( how to complete the workflow whenever the Request is deleted ) and let us know what is the procedure to do this.
    Thanks in advance.
    Regards
    Immanuel

    Hi Prashanth
    Thanks for your quick reply. But that would not solve my problem. My Workflow looks something like this
                               WF-started by entries in configuration tables
                             Some activity in background
                         A fork with 2 parallel processes
                        Approval     Wait for an exception condition using Wait for event step
                          process          (wait till an attribute of a object has a specific value)
                              Workflow completed
    The wait step waits for the status of the object to change to DELETED.  The Workflow should get completed either if the Approval process is over or the condition specified in the Wait step is satisfied.
    But in the case of ESS Leave Request this doesn't work. Is there anything that we need to do to set the status of the Workflow to Completed if the Leave Request is deleted.
    Thanks
    Immanuel

Maybe you are looking for