Custom Leave approval task problem

Dear All,
   I have a problem with my custom leave approval webdynpro task.
  Actually I was using standard task , TS12300097 for leave approval. It was working fine from SAP worklist from portal. If someone tries to approve from SAP R/3 it was providing an information like, this cannot be executed from SAP R/3.
  I had a requirement to add certain custom fields information to the task description, so I copied and created a new task similar to that and added the containers and filled the description to that. Then i cofigured the new task in SWFVISU also. It working fine from enterprise portal sap worklist.
  But some tries to approve from SAP Inbox in R/3 the workflow results in error. Its not providing the same information which was coming earlier with standard task.
The error is as follow :
Work item 000000885207: Object CL_PT_REQ_WF_ATTRIBS method DUMMY cannot be executed
Dereferencing of the NULL reference
Dereferencing of the NULL reference
Error handling for work item 000000885207
Let me how we can solve this issue.
regards,
Sabari Prabhu.

We are changing our Leave Request workflow, and I also came across this problem while testing.
In our situation, the problem is that we changed the approval task.  We used to have it as a call to report RPTARQAPP, but then changed back to the standard method of calling CL_PT_REQ_WF_ATTRIBS DUMMY.
For us, it is only the old work items that go into error if the user tries to execute them in R/3.  If the workflow is then re-started, the item is once again available and can be processed in the UWL.  New work items come back with the pop-up message "The request cannot be started from the Business Workplace", like in the standard workflow.
I think we will just add some encouraging wording to the task so that people will (hopefully) not attempt to execute the work items in R/3, like this:
Please log on to ESS to approve this Leave Request through the Universal Worklist (UWL).
It is not possible to complete this work item from within R/3, DO NOT execute this work item here.
Once you have processed the request in ESS, this work item will automatically be completed.
Good luck

Similar Messages

  • Custom SOA Approval Task Flow

    Hi,
    I am trying to do some customization to a SOA Approval task flow.
    My requirement is, I have to present a checkbox with a message.
    The user has to click the box, only then should be able to approve.
    I have tried this whole tutorial with no luck
    http://docs.oracle.com/cd/E27559_01/dev.1112/e27150/request.htm#BABIDHGH
    The page pops with no page found. No errors in the log.
    Can you please advise,
    Thanks

    In 11GR2 we cannot customize the Approve/Reject buttons.
    There is an enhancement request logged for customizing the email body, Bug 12829287 [https://bug.oraclecorp.com/pls/bug/webbug_edit.edit_info_top?rptno=12829287] - HUMAN TASK EMAIL NOTIFICATION BODY TO BE CUSTOMIZED AS THE SUBJECT IS.
    It is still under review.
    Workaround for customizing the body is given in this tutorial: http://docs.oracle.com/cd/E23943_01/dev.1111/e10224/bp_designtf.htm#SOASE743
    [Section 30.7 Creating an Email Notification]
    Thanks,
    TS

  • Custom Event Notification (email) for Approval Tasks in OIM 11g

    Hi,
    how to create event notification for approval tasks in OIM 11g. I mean how to send email notification to user who sholuld accept or reject approval task?
    best
    mp
    Edited by: J23 on 2011-05-30 04:08

    Here is the documentation http://download.oracle.com/docs/cd/E21764_01/integration.1111/e10224/bp_notif.htm#SOASE548
    Search for SOA BPEL Email Notifications for more information:
    http://soa-bpel-esb.blogspot.com/2010/01/email-notification-in-bpel.html
    http://download.oracle.com/docs/cd/B31017_01/core.1013/b28764/bpel013.htm
    There are many more search links that can help you out.
    -Kevin

  • 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

  • Customizing OIM request or approval task pages

    Hi,
    I need help in changing the layout of a particular screen in OIM 11g R1.  Below is the scenario:
    User submit request.
    Request is assigned to corresponding manager(s).
    If request is assigned to multiple managers, one of the managers will ‘Claim’ the request.
    Manager opens the request details and click on ‘Additional Information’.
    Request is again assigned back to requester.
    Requester will open the request from ‘Approval Task’ to submit additional information to approver.
    In this page, request is divided into two parts i) Basic details, Additional Request details, Request information ii) Role/Request details.
    By default, ‘Additional Request Information’ response section can be completely viewed using scrollbar OR can be dragged down. But our requirement is to align the page such that no adjustment should be made to page to view complete content of the page.  Can anyone let me know how to do this?  I wanted to know in which request/approval task ADF pages files (JSFF) are available to customize. I could see only user page (JSFF) to customize, but not related to request/approval task pages.
    - Kalyan Mutya.

    Pending Tasks works in the following manner:
    - User : Any task assigned to a user remains to be visible under its pending tasks unless re-assigned to someone else by the user/admin.
    - Group : Any task which is assigned to a group would not directly come to the user work flow. Whenever you login to OIM, the system checks all your groups and then do a smart calculation for these assigned tasks. So if the user is removed from a group then it would not see these tasks anymore.
    Now for your case, the Group=Business Owner itself is changed. So for new requests the assignment would be to done to the new group but existing tasks remains in the work-flow of the older group, if still required them you might want to re-assign it using OIM API's.
    Thanks
    Sunny

  • Leave Request Task TS12300097: Status is not changed

    Hi All!  maybe you have some idea ...
      For the ESS version Leave Request, we are using a copy of standard workflow WS12300111.
      When applying leave, the workflow template is triggered and processed to task TS12300097. In this task, we use customized rule to find agent.
      In Universal Worklist, we can do the approval process and after approved, the leave request’s status is changed. But the problem is the approval task is still in the UWL, status is still “new” and the workflow template gets stuck at this step.
      The description of TS12300097 said: Once you have processed the request, the work item will automatically be set to "completed." automatically be set to "completed."
      And we can not find out why our leave request is not behave like that. Please kindly advise the possible reason.
    Thanks a lot!

    Hi All!  maybe you have some idea ...
      For the ESS version Leave Request, we are using a copy of standard workflow WS12300111.
      When applying leave, the workflow template is triggered and processed to task TS12300097. In this task, we use customized rule to find agent.
      In Universal Worklist, we can do the approval process and after approved, the leave request’s status is changed. But the problem is the approval task is still in the UWL, status is still “new” and the workflow template gets stuck at this step.
      The description of TS12300097 said: Once you have processed the request, the work item will automatically be set to "completed." automatically be set to "completed."
      And we can not find out why our leave request is not behave like that. Please kindly advise the possible reason.
    Thanks a lot!

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

  • Fiori Leave Approval App -  Scenario Defenition Error

    When I execute the Leave approval service in browser I get the below error, maintained the scenario definition settings as per the installation guide, my service pack level is Fiori SP03, so all the relevant, mandatory notes are applied.
    Could you suggest anything else that I have missed out. attached the screenshot in scenario defn.
    Check the URL parameters and the scenario definition. To check the scenario definition, go to customizing for SAP NetWeaver Gateway and choose SAP NetWeaver -> Gateway Service Enablement -> Content -> Task Gateway Service -> Scenario Definition.
    Tags edited by: Michael Appleby

    Hi Jegadesh,
    The scenario ID should be LEAVEREQUESTAPPROVAL. Please double check the installation guide.
    FYI.
    I think you use old UI.
    Important Note: Please use new SAP Fiori Launchpad
    Regards,
    Masa
    SAP Customer Experience Group - CEG

  • Launch Leave Approver Application without using UWL

    Hi
    Feedback from initial UAT has been that the users find the UWL awkward to use and the leave approval process has too many steps.  They would be happier if they could get to their list of leave applications requiring approval directly ie avoiding the UWL.
    Is this possible?  In portal content it is possible to open the Leave Approver iview directly and previewing the iview appears to be OK.  However when I add this link into the Navigation in our custom MSS role and access through MSS the same iview appears to be blank.
    Is it possible to access this application directly?
    Regards

    Just as an update we have managed to do this avoinding the UWL and it appears to work fine.  Just created a new page with the leaver request approver iview on it.  My initial problems with the link from the portal were down to my home page configuration and nothing to do with the fact that you need to use the UWL.
    We do intend to use the UWL in the future when more functionality is incorporated, it just seemed overkill for one wrkflow application.

  • SRM Invoice Approval worklfow problem

    Hi All,
    I have customized 2 step invoice workflow in SRM, only to the extent , as to determine agents as per custom rules.
    The problem I am facing is , once first level approver approves the invoice from the task list i.e without going to details screen, work item is going to second level approver.
    However if first level approver uses option of radio button Approve  or reject from details screen,
    <b>Changed event</b> of Invoice is getting raised and worklfow is getting termined and a new workflow is started.
    Has somebody faced this issue?
    If so, pls suggest the course of action. I thought, for only clicking approval radio button and pressing save button, changed event should not be triggered.
    Regards,
    Akshay Bhagwat

    Hi Akshay,
    Had something similar a couple of years ago in the old EBP3.  We ended up creating a check function module to interrogate the circumstances of the event and determine whether to start a new workflow, or do nothing if an appropriate instance existed.
    If nothing better springs to mind this method will work.
    Regards
    Gareth

  • Modify generated leave approval screen

    I need to add a checkbox to the leave approval screen so that the manager can indicate if supporting documention has been sighted.
    Task TS20000193 usea BO FORM-HTMLPROCESS to call program SAPMWS2000081H with transaction code WS20000081.
    I tried copying the program and includes but there are more includes that are generated from I don't know where.
    What is the correct/best way to modify screen 150 in this program?
    Is there another way of going about it?

    Hi Neil,
    I probably shouldn't say this but... here's one exception to the rule about modifying SAP standard. Just change it. Make sure you have a backup available.
    a) It's hellishly complex to copy as there are a lot of little objects that interact & it's quite nasty code with individual tasks hardcoded. seen. Some OSS notes even recommend changing bits of code when you change the WF tasks.
    b) Any difficulties you may experience due to modding the standard will be less than the difficulties due to copying.
    c) That incarnation of leave request has reached the end of it's life. The ECC6 version has been completely rewritten form scratch and shares no common elements with it whatsoever, so upgrade problems are also not a factor.
    d) Because it's been around for some time I don't imagine there will be too many patches, which aren't that difficult to resolve anyway.
    Cheers,
    Mike

  • Leave Approver in ESS

    Dear All,
    I am facing some problem  in the Leave Approver:
    Employee  A was previously reporting to Manager B.
    Now Employee A is reporting to Manager C.
    I have maintained the reporting relationship in the position for Employee A.( A reports to C -> It is Ok).
    But when I execute the report RPTREQAPPRCHK,  the system is picking up his old manager :
    1. Check Applicaiton Function - It shows A reports to B (which is not right as per our expections)
    2. Check Basis Function - It shows A reports to C (which is OK).
    I have maintained the following values in the table V_PTARQ_TPROCESS
    --> Determine Next Agent = MNGR Line Manager.
    While applying for leave the approver for Emp A is still displayed as Manager B.( it should be Manager C).
    Please let me know if any extra config is required for this?
    Thanks & Regards,
    Param

    Param,
    You have to get the workflow refreshed for that. As the Determine Next Agent would have already determined the old Manager and kept it in the cache. See the date on which the Agent Determination has taken place in the Workflow for that Task. If the Agent determiantion has taken place before the transfer then you have ask you workflow adminstrator to correct the workflow with the new manager details or kill that task and re-execute the branch of that task again.
    Hope this helps.
    cheers, Bharath.

  • Send Email from approval task form

    In my reusable workflow, I have added an approval action. Everything works perfectly. What I want is - When approver comes to approval form, he should be able to send notification email to the initiator (From that form) that he has started working on that document.
    What I have tried - I have added a button clicking on which will submit the form to initiator. 
    But it fails. possible reason - when I create a data connection in workflow's infopath form to submit form as email, I am getting following warning
    "Domain trust form templates cannot be sent as email attachments. to fix this problem, modify the form option to change the security level of form template to restricted".
    I also tried to update status field and wait for it to changes in workflow and send an email from sp designer workflow. it didn't work.
    Please help or suggest any other possible way to achieve this functionality (Send Email from approval task form to initiator).

    Hi mry,
    I could reproduce on my SharePoint 2013 on-premise based on your another
    post.
    Based on the the following article, SharePoint workflow cannot use the InfoPath form in restricted mode which doesn't allow the data connection, but as your image warning message shows sending InfoPath form as mail attachments will need restricted level.
    http://msdn.microsoft.com/en-us/library/office/ee526352.aspx
    You can consider to send a mail to initiator in "Whe a Task Completes" step when you click button approved/rejected, and construct the current task form link format as follow,
    http://sp/_layouts/15/WrkTaskIP.aspx?List=WorkflowTasksListGUID&ID=[%Current Task:ID%]
    Thanks
    Daniel Yang
    TechNet Community Support

Maybe you are looking for