Workflows : Leave Workflow problem in EP

Hi,
I am using the workflow template WS12300111, which gets triggered from EP 6.0.
Well, the workflow is getting triggered when I create a Leave Request using the ESS-Working Time-Leave Request. But we were unable to execute the workitem. The Workitem is not updating the R/3.
I checked the workflow template and I cant find any coding for any step. All the standard steps ..
TS12300097 : Approval Process
TS12300104 : HR Administrator - Check
TS12300116 : Process Leave Request by Employee
are attached to the same method DUMMY of Global class CL_PT_REQ_WF_ATTRIBS.
When I checked that method, I found that there is no codiing attached to this method. So I dont find any coding for this workflow, which calls a BAPI or any transaction to update R/3 as it was earlier in BUSINESS OBJECTS.
Can anyone help me in understanding this new architecture-Class based Workflow Development.
Is there any configuration which had to be done from R/3 side also?
Regards,
<i><b>Raja Sekhar</b></i>

Hi Raja Sekhar,
the dummy entry in the task is there because the tasks should be executed only via the portal UWL and not directly in ECC5.0. In other words, you can't execute it from Business Workplace at all using R/3 functionality.
The config you are missing is most likely in transaction SWFVISU. Here you can define the visualization for a specific task meaning that you can define what gets launched when the work item gets executed in the UWL.
Just add the following entries to the task visualization section and it should work:
- Task TS12300097, visualization type Java WebDynpro
visualization parameters:
    ' Application: LeaveRequestApprover
    ' Package: sap.com/ess~lea
- Task TS12300116, vis type Java WebDynpro
params:
    ' Application: LeaveRequest
    ' Package: sap.com/ess~lea
I haven't tested the HR admin check myself if there is a wd app for it, but the method is the same if you can find one.
So instead of launching the dummy method, the work item launches now the standard web dynpro apps designed for the leave request processing.
Hope this helps,
Mikko

Similar Messages

  • How can we debug an SRM workflow problem?

    Q: How can we debug an SRM workflow problem?

    Hi,
    In SRM system using transaction SWI6 you can troubleshoot the workflow process.
    if you are using N step badi in the workflow process, we can debug the badi BBP_WFL_APPROV_BADI
    method GET_REMAING_APPROVERS
    if required please take a help of Abap consultant to debug...
    Thanks & Regards,
    prasad.s

  • ESS MSS leave workflow problem when updating IT2001 & IT2006

    Dear all,
    We have one issue in our production portal leave system. Hospitalization leave was applied for 22.06.2011 to 28.06.2011. Workflow was done properly. I checked workflow log also. It was done properly. But some how Infotypes 2001 and 2006 were not updated at all for the leave applied. I don't understand what could be the problem. I checked the leave table PTREQ_HEADER. I could see the below statuses.
    1. SENT
    2. APPROVED
    3. ERROR
    4. POSTED.
    I want to know how the update to IT2001 & IT2006 missing. Is there any special program to post the data to IT2001 and IT2006 .
    I appreciate your inputs.
    Regards,
    Venkat.O

    Hi,
    Hmmm, clearly there had been some problems due to the ERROR status. Do you know who managed to fix the problem (and how) (for example check the POSTED line in table PTREQ_HEADER and check last changed (or similar) field. Maybe someone tried to manually handle the error and caused the problem.  Could you get some more information about the error in PTARQ?
    Actually from my point of view this is not a wokflow problem at all. Could you just ask the HR guys to fix it? Isn't it possible to make the infotype entries directly with PA30?
    Regards,
    Karri

  • 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

  • ESS/Leave Reqest Workflow Problem Still in Process when Escallated

    Helo Every one,
    My leave request workflow is Zworkflow which is working fine in the production.Recently in the last month business request for escalation of leave request when direct manager not approved with in the time frame.
    So i added latest end to the Approve task which uses the ABAP class CL_PT_REQ_WF_ATTRIBS and Method Dummy.
    So the task has 3 outcomes one is deadline reached,process obsolete and processed. and after that i added a loop which will create new work item when escalated.
    When i apply a leave on the portal the workflow is triggering and stopping in the Approve step in the log which is fine and when i with withdrawn the leave without any escallation it is taking one of the brach Processed which i mentioned above and reaching to the event and completing the workflow which is 100%.
    When the direct manager doe'nt approve then it is escallating to the next level manager which is fine.Once the escallation happen and the leave is withdrawn by the Employee(Initiator) then it is not taking any of the 3 paths which i mentioned above and not reacting at all.But the status in the workflow container REQ.STATUS is changing to "WITHDRAWN".
    The same thing is happening for the APPROVE once escallation happens.It keeps on escallating even the leave is approved and posted in the database.
    Please reply me if you are not clear.
    Thanks,
    Raja.

    Hi Raja,
    Here is how I can think of, based on your requirement.
    I hope you are using modelled deadline. Have the process control step in the deadline branch with function set workitem to obselete. This makes the actual work item to obselete everytime it reaches the deadline and make it create one with an escalated agent. And also keep the dialog task in the loop.
    Hope this helps.
    Thanks,
    Raj

  • The user does not exist or is not unique - workflow problem

    I am using Solution Starters Dynamic Management workflow on my Project Server 2010.  I was working fine for a year now, but today all workflows were broken when someone tried to submit them to a next stage. "Workflow terminated. An error has occurred
    in the workflow."
    I tried debbuging the workflow and it seems to be OK, but the problem appears when it needs to assign tasks to the approvers (they are in the Approvers group). When I remove users from the group that represents approvers (and leave that group empty), it
    works fine, so I am guessing that users (who need to approve the stage) are the problem. My administrators are saying that there were no updates or changes on AD machine.
    I don't have problem with users in any of people picker fields or anywhere else on the site. I am using claims auth.
    What could be the reason for this behavior??
    These are main errors from the log:
    Failed to persist workflow instance: 7dc2e035-cd02-4284-b851-a829e372a809 with error code: 5, instance data size: 29578, internal state: Running, processing id: 1e2211d2-ef7b-4416-90ef-ac041396c200    2f83db27-34da-4275-a42e-0625240af921
    The user does not exist or is not unique.
    WinWF Internal Error, terminating workflow Id# 7dc2e035-cd02-4284-b851-a829e372a809   
    System.ArgumentOutOfRangeException: Specified argument was out of the range of valid values.  Parameter name: additionalNodes     at Microsoft.Office.Workflow.Actions.OfficeTask.ProcessTaskError(Object sender, EventArgs e)    
    at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime)     at System.Workflow.Runtime.Scheduler.Run()

    It appears that this isn't the problem with users, but it is a problem with Office Tasks. This is the main error in ULS logs (same as in the previous post):
    "Specified argument was out of the range of valid values.  Parameter name: additionalNodes"
    I noticed that all content types are gone from my pwa site. Is it possible that my workflow is causing problems when adding tasks because somebody deleted all content types??

  • Workflow problem with status Ready

    HI,
    I have a problem with the workflow not getting completed.
    The workflow is for the employee attendace 20000081 .
    After the manager of the employee accepts the leave application posted by employee , The workflow is in the following state: -
    ID  000000340552 Work item type    Background step      
    Work Item text  Find Employee .
    Status <b>Ready</b>  
    Now the question is there any background job which needs to be scheduled for changing the all the workitem with status 'Ready' to be executed .
    since once I execute this step manually then the workflow again goes  in the ready status with the next step and the next step in this case is 'Create attendance/absence' This stpe of the workflow is in again status 'Ready'.
    Please let me know if some know about this problem. 
    Thanks in advance .
    Ankur

    Hi ,
    Thanks for the prompt reply.
    I have tried the auto customizing and I am geeting the following log generated :
    Auto-Customizing: General tasks                                         
             E WZ:119  Instances for task TS60001307 already exist          
    Task TS60001307     not classified as general task                      
             E WZ:119  Instances for task TS70008037 already exist          
    Task TS70008037     not classified as general task                      
             E WZ:119  Instances for task TS70008125 already exist          
    Task TS70008125     not classified as general task                      
    And  while checking  the customizing setting in SWU3 the folling entires exists but as I understand the seeting is proper, please have alook below:                                                                               
    An active plan version exists                                                  
         Workflow administrator maintained                                              
         RFC destination: User locked                                                   
         Generic decision task classified completely                                    
         Tasks for document generation fully classified                                 
         T77* tables all available                                                      
         Monitoring job for missed deadlines is scheduled                               
         Monitoring job for work items with errors is scheduled                         
         Sending to objects and HR objects activated                                    
         Entries missing in PD control tables                                           
         Default Domain for Internet Mail Maintained                                                                               
    Workflow development environment                                                    
         Customizing incomplete                                                                               
    Prefix numbers for standard object types maintained                            
         An active plan version exists                                                  
         T77* tables all available                                                      
         Number range defined for customer tasks                                        
         Entries missing in PD control tables                                                                               
    Please let me know if this is not proper .
    Thanks and Regards,
    Ankur

  • About workflow problem in 4.6C for PR

    Hello Expert:
    i met a quesiton about the workflow for PR in 4.6C.
    the detail is as following.
    The requestor created a PR for waiting for approve, there are 3 approvor to handle the PR.
    maybe the second approvor modified the quantity or amount of the PR before release, but system seems can't trigger the new workflow to go back to first approver in 4.6C. So once the second approvor released the modified PR, then the PR will go to next approver.  Now my requirement is to hope the workflow can get back to start point for waiting for approval. or could i close the PR completely.
    even i am cancelled the PR, the purchasing group can generate new PO with the cancelled PR as well.
    Did you face the same problem in 4.6C workflow?
    hope to get your help
    Thanks in advance
    Kevin

    Hello Kevin,
    you can find this setting in the customizing tree:
    I assume that you're using purchase requisition item based released based on classification
    MM>Purch.>Req>Rel.Proc.>with class. -->Set up procedure with classification
    Push "Release indicator"
    Select the release indicator that blocks your PO (e.g. X blocked)
    Using the SAP Standard only you have the following two choices that makes the most sense:
    - Changebility = 1  i.e. cannot be changed
    - Changebility = 4 and Value change = 0,00   i.e. changeable and new release on value change
    The first option locks the requisition for any changes at all, forcing your purchasing group to re-create the PR once it should be changed.
    The second option allows any change, but when the value is touched in any way (+/- 0%) all previously given release codes will be reset making the release all-over again.
    I tip that the second option is the one you're looking for.
    If both option are not workable for your requirement, you have to create an additional event (as one of the previous contributors Aditya already mentioned), which could be restricted to the fields that you want your requisition to reset with.
    Then you have to throw in an event coupling where you use as a receiver event function module a custom-made function module that runs through the release codes of the requisition to reset all releases. This is done using the function module BAPI_REQUISITION_RESET_RELEASE. If you're choosing this way, I propose that you go a bit forward and open a new thread. But I remember that I was proposing this solution a couple of months ago. So maybe searching the forum could be a good idea then.
    With the very best wishes,
       Florin
    Edited by: Florin Wach on Mar 4, 2009 6:03 PM:   The proposed paths also apply to all versions >= 4.6B

  • Shared Project Workflow Problem: Hitting a Wall with Markers

    Hi there,
    Apologies in advance for the long note.  We're using Adobe CC to edit and finish commercials and are having a significant issue regarding shared project workflow.  First, some context:
    We often edit projects remotely.  When this happens, assistants and other editors who remain in LA will have access to the media on our SAN while the editor and assistant traveling out of town will have their own copy of the media.  I know Adobe Anywhere would solve any issue relating to two identical sets of media in use in different cities, but we're a small shop and the hardware and software expense don't make sense for us at this time.  Please do not respond to anything mentioned from here on by stating we should just get Adobe Anywhere.  Thanks.
    What will regularly happen is that the remote editor and assistant will need work done on the project here in LA while they're in session with the clients.  Sometimes this work involves marking up clips with comment markers so the editor can more easily locate a specific moment.  Here's where the problem arises.
    Unlike FCP and Avid, Premiere handles markers within the clip's metadata.  So, if I have two separate projects linking to separate but identical instances of media, one of those media instances gets updated with new markers, there is currently no way to get those markers to the other project without also shuttling the new marked-up media.  This is not possible when a remote editor needs dailies marked up in a couple hours and is working across the country or abroad.
    But let's assume for the sake of argument that it is possible and we apply this workflow.  Let's also assume that in the time it takes the local assistant to mark up the clips for the remote editor, the editor has added a couple markers of his own, which is reasonable and happens all the time.  Now when the editor links to the newly marked up clips he's received via shipment, he'll wipe out all the markers he's made on his own since giving the order to mark up the footage.  That is a significant inconvenience, especially with clients in the room asking stuff like "can we look at the take where the guy says 'good' instead of 'great'?"
    So what happens if we just have repeating sets of media, so that every time the clips markers get updated, the editor actually imports those clips, even though the picture and audio data in those clips is completely redundant to what's already in the project.  The issues with this are, as I can see it, 1) increasing the amount complexity within the project so that you'd have to scan many bins of dailies to look for a single marker, 2) increasing by orders of magnitude the amount of storage space needed, 3) even if problems 1 and 2 are handled, if you have to go to finish with multiple versions of a cut, and those versions reference separate instances of the same clip from different bins, Premiere's dupe frame detection will not work and you'll need to spend a lot of extra time locating duplicate clips manually before sending your EDL or XML off to final color grading.
    At this point, I think it's necessary to interject something:  we're talking about markers here.  Why is this such a problem?  FCP and Avid have no such issues simply by making markers - even clip markers - part of the project metadata.  From what I understand, Adobe has chosen to do things differently because of dynamic link, so that After Effects and Prelude, for example, could add markers to a clip and those markers would ripple across all instances of that clip in the different applications.  It's a great feature which we take advantage of here from time to time.
    So what's the solution?
    My workaround in CS6, which does not solve the issue of needing to merge clip markers so that an editor's markers and an assistant's markers can be applied to a single piece of media, was to turn off "write XMP ID to Files on Import."  This would generate an XMP sidecar file which could be easily passed along with a project file to the remote editor, who could then overwrite his local XMP sidecars with the new ones containing the new marker info.
    However, in Premiere CC that is no longer possible.  It appears that if Premiere CC can access the XMP ID on a file, it will not generate a sidecar regardless of what you have set in your media preferences.  We use ProRes Proxy as our dailies format (again, please no comments on this, it is not up for debate at this time) and Premiere can get to the XMP ID within the files and will not, no matter what it seems, generate an XMP sidecar.
    We could change the company workflow to use DNxHD 36 instead of ProRes Proxy, which would give us XMP sidecars, but that would not solve the issue of needing to merge marker lists between projects non-destructively.
    The best solution I can think of would be to have a script or some kind or built-in feature which would allow for the batch export, import and merging of marker lists.  This way Adobe could keep its current clip-metadata-based marker workflow while giving professional users needing more flexible marker behavior the ability to have assistants non-destructively modify clip markers without necessitating the creation of extra media or project complexity.
    I would really love some input on this and ideas from the pro community out there who has experience with shared project workflows - especially projects being shared remotely.  There's not a lot of info out there about this and it would be great to hear what others are doing.
    Thanks a million for sticking with this, if you've made it this far.
    Best,
    Jon

    Thanks Jim,
    I understand that Adobe Anywhere solves this, but there should be this fairly basic functionality (which exists in Avid and FCP) in a non-enterprise edition of the software.  I have submitted a couple different feature requests about this, going back to CS5, so hopefully enough people make similar requests for a fix to be implemented.  Adobe Anywhere is really not a solution for our small shop as currently configured/priced, especially when we can have editors working remotely with very affordable USB 3 drives.  The only hangup is the markers, which just isn't worth a 5 figure fix.  As such it's hard to consider the problem solved for either us or any small shop or post crew.
    Best,
    Jon

  • Workflow problem

    Hi! I am working in SRM 5.0 with Server 5.5 and I have a problem with the workflow approval...
    I activate the workflow WS 10400010 without approval. And when I go to confirm the good, the workflow trows an error message that the workflow not started. It has errors.
    I go to the transaction SWUD, put WS 10400010 and press test environment.
    With the object BUS2203 simulate event, and the WS10400010 start, but the WS10000197 have an error: Workflow definition not activated. Link to event is desactived.
    In the transaction SWI1, I see my workflow error, and when I list the technical details, the system throw errors:
    - Exception ocurred: Error when starting work item 000000066649
    - Process Node: Error when processing node ´0000000007´(ParForEach index 000000
    - Create: Error when creating a component of type step
    - Create_with_handle: Error when creating a work item
    - Create_via_wfm: Unable to determine work item type for step at node 0000000007
    What can I do?? I suppose this error is a workflow error
    Thanks
    Rose

    Hi Rosa,
         I m using ECC 6.0 SAP, and while executing the workflow i am receiving following error message
    Result Processing : Error during result processing of work item 000000009132
    PROCESS_NODE : Error when processing node '0000000014' (ParForEach index 000000)
    CREATE  : Error when creating a component of type 'Step'
    CREATE_WIM_HANDLE : Error when creating a work item
    CREATE_VIA_WFM : Unable to determine work item type for step at node 0000000014
    Please guide me on that ..
    Thanks and Regards..

  • N-Level Contract Approval (workflow problem)

    Hello friends,
                        We are using SRM 5.0 , ECS scenario.. My problem is related to N-level contract approval. I had activated workflow WS 14000148 for N-level approval.. In development system it is working fine but in production system I am facing following errors after first release of contract.
          Executed Auction             Error Message
    Exception occurred        Error when starting work item
                                      000000008004
    PROCESS_NODE      Error when processing
                                     node '0000000007'
              (ParForEach index 000000)
    CREATE          Error when creating a
                                    component of type 'Step'
    CREATE_WIM_HANDLE   Error when creating a work
                                           item
    CREATE_VIA_WFM           Error within method
                         CL_SWF_RUN_WIM_FACTORY-
                        >CREATE_VIA_WFM
    GET_WITYPE        Unable to determine work item
                                 type for step at node                        0000000007
    GET_TASK_HANDLE         Error when loading task
                                        WS14000085
    FIND_BY_WFDWIZ         Workflow definition of
                                        task 'WS14000085'
                                        cannot be Activated
             Sub-workflow WS14000085 available in main workflow WS 14000075 which is deactivated. But problem is when I am trying to see workflow  WS14000085 through SWDD in production, no workflow is there but same workflow I can see in Development system.  Any expert have any idea why same workflow I can see in development but I am not able to see in Production system.
    Thanks in advance.
    Abhijeet Panse

    Hi,
    It looks workflow template is missing.
    Please check the note 962488 "Workflow definition '&' not in version '&'".
    1. Run the function module SWD_WFD_REPLICATE_FROM_9999 and copy it.
    2. Re-activate the WF definitions in the transaction SWDD
    3. Check Consistency in the transaction SWUD
    Also check the sub workflow.
    Regards,
    Masa

  • Need to send HTML email from Workflow : problem with sender

    Hi all,
    i need to send HTML email from my Workflow. I did it but i have a problem with the sender. The sender of email is always the agent responsible of workitem, and i don't want the receiver can answer to sender. So i need to put a false email address like nosender.at.mycustomer.com.
    Possible to do that ?
    Thanks for your help.
    Cheers

    Hi rick
    How to change the wf-batch to some other name  as you mention in previous reply. Can you give some details of that. If i use the function module SO_NEW_DOCUMENT_ATT_SEND_API1 how to change the wf-batch name and if i use send mail step in my workflow how to change wf-batch name.
    Regards
    vijay

  • Process rule and provisioning workflow problem

    Hi,
    we have designed a workflow to provision groups from a database resource to ldap and AD resources. We use the process rule in the activesync process. These groups creation
    works without problem now, but the update/creation of users from database don't work. In my workflow I try to use the workflow services provision and reprovision, the result it's ok, but nothing is updated in my AD and ldap.
    I have read in an old post that, in the process rule, the activesync offer a user view variable, but I don't receive nothing, and then I need to do a getview and then pass this view to the
    reprovision rule. This don't work.
    how is the correct process to reprovision from a process rule, and when we need to create a new user, from where I could get a userview for the provision process?
    Thanks

    Why do your supervisor start giving you such works until they don't give some trainings on IDM to you ?
    Need Approval process workflow?
    Re: Approval Process
    Forum is for Freshers too but people are using it for just completing their project not for learning/sharing.

  • SCSM Workflow problems

    Hi All
    We're having a problem with SCSM workflows running on incidents that they should be ignoring.
    Overview
    I have set up a new exchange connector to log incidents to a particular support group from an email address.
    this connector applies a template with the support group set to "communications" and the source as "e-mail".
    It runs an orchestrator runbook activity that applies some logic to correctly format emails that come in from an alarm system. This runbook does not change the support group or source.
    There is an incident event workflow, that runs for incidents generated by other email sources (separate exchange connector). In the event criteria it is set as follows:
    Incident source equals e-mail
    AND incident support group does not equal Communications
    OR incident support group does not equal Procurement
    This workflow changes the support group to "servicedesk" and the impact and urgency to "low".
    When you send an email to my comms address, the exchange connector runs correctly - picks up the email, applies the template, and creates the job. The runbook completes and everything is fine. The job sits in the 'communications' queue. Good stuff.
    BUT once the workflow runs to set the priority of the job (the urgency and impact are set by the runbook, or default to low if the runbook has no actions to perform), that's when things go wrong. It does that correctly (ie. high / high = P1). However the
    svc_scsm_workflow account then appears and changes the support group to servicedesk and the impact and priority to low.
    We've tried recreating the incident event workflow, changing the order (eg. so it checks support group first) and it does not seem to make a difference. Tried creating a seperate workflow for communications incidents, but it still applies the other one -
    but then re-runs the runbook and messes some things up. Not a good way to go so that was removed.
    We are on SCSM 2012 R2. I'm pretty sure that this behavior started after upgrading to R2 - but i cant be positive as we are only just starting more serious testing for the comms guys now.
    Any thoughts?

    Maybe this blog post is helpful:
    Using And/Or Criteria in Workflow and Notification Subscriptions
    Andreas Baumgarten | H&D International Group

  • Workflow problems...

    Hi partners!
    I'm working like basis here but right know we don't have the person of workflows and I need to resolve an issue. Two managers don't receive the request in the outlook that are receiving in the inbox of the portal like curses approve, clock in out correctiions and others things. I the past weeks they can recieve that in the outlook but right know for some error they don't recieved.
    I need to check where is the error.
    I check in the SO01 if the forwarding is active and is it.
    Someone can help me!

    And also test address and reply to address can not be the same.
    The message is pretty clear the reply to address
    Cannot be the same as what you enter into the test address
    This could cause a looping situation and bring down your mailer .
    To simulate what the mailer does.. you can't use the inbox of the IMAP mailer account to simulate a users workflow notification.
    The test address simulates a separate user.. the Inbox user should be dedicated to the mailer ONLY and not used for any other purpose or your testing will run into all kinds of problems.
    So in order to use the test address you will need to use a different email account then that of the mailer dedicated to the instance as the java mailer or the reply to account.
    Just use a different email address for the test address.
    Thanks.
    Edited by: user539835 on Oct 5, 2010 8:20 AM

Maybe you are looking for