Issue in Workflow

Hi Guys,
I have two issues in WF.
1.     I have created Task and assigned function to that and in function i am raising an exception but in my WF log it doesn’t show in error.
2.     Normally  if there are two person holding same position the WF goes to both of then and if any one of then takes the decision WF should go out from others in box its not happening for me.
Thanks
Atul

Hi Atul,
If you need to raise an exception in the workflow . It doesnot mean that Workflow should fails.
Following will be suggestion :
When Exception needs to trigger an error in Workflow Trigger Error Event to that instance use WAPI Interface for this,
Regards
Ajay

Similar Messages

  • CAT2 - Issue with workflow task TS20000460

    Reposting the query in ABAP General Section.
    CAT2 - Issue with workflow task TS20000460
    Waiting for any suggestion?
    Edited by: Amit Khare on Sep 10, 2009 3:01 PM
    Closing due to no responses.
    Edited by: Amit Khare on Sep 10, 2009 3:40 PM

    Hi,
    Could you figure out why the event linkage is breaking when you make it Gen.Task? I think, there is some problem in your wflow template. May be do a Syntax Check in the testing environment. If that time, some error happens, then by the System Defaults in the Event linkage SWETYPV, it will deactivate the linkage.
    I don't think this has got anything to do with you making TS as Gen.Task. Did you see the even trace to see what's the error for linkage breaking ?
    More info. would help in identifying the issue.
    Regards,
    venu

  • Issue in workflow related to PO

    Hi,
    A monthly job is scheduled to create PO's in SAP by using an Unix file in the application server which has the required details. Workflow would be triggered for all the error PO's after the job run. The workitem recieved displays all the error PO's on a screen and the user is given the option to reprocess the error PO's from the screen itself once the errors are rectified. This whole requirement is done using the files in the application server.
    The main problem which i'm facing is that the file into which the error PO's are written into the file for this month run would be overwritten with the other records for the next month run. User may take months to reprocess the PO's. so my requirement is that when the user clicks the workitem of this month run then the screen should display the relevant records and when he clicks the next months workitem he sh'd be able to view the error PO's of the next month. As of now, the old workitem displays the new error PO's as the contents of the file are overwritten for the next month run. Also i don't think the creation of a new file for every month is not a better option. suppose if i do that then how would i link the workitem to the file when the execution is done with the same program.
    Please help me out as the issue is a bit urgent
    Regards,
    Sam

    In order to do that you have to explain how your solution works.
    How is the workflow started? The date should be passed in the workflow container, and you should thus add a new importing container element for it. Alternatively, if the previous is not feasible, can you assume that the workflow is started the same date (or with a fixed offset) as the file is created. If so you can set the date in the workflow instead of passing it as a parameter.
    The date will of course have to be passed on to your step, and from your step to the BOR method you execute. This however, is just a matter of binding and importing elements, and I assume you are able to solve that on your own.
    What is this report you have mentioned? SAP standard? I assumed it wasn't. If it is a customer report, you will of course need a new selection screen parameter, and when your BOR method submits the report (or alternatively calls the transaction) the date must be passed as one of the parameters.
    Hope that helps, but if it doesn't you have to be MUCH more specific in your questions. You have to explain what you are trying to do and what your starting point (current solution) is.

  • CUP Issue in workflow - Approver not found after SP13

    Dear All,
    We are facing an issue after upgrade to SP13 in CUP. The request is not getting saved and throwing an error - Approver not Found.
    We uploaded the xml files also of SP13 after upgrade has completed.
    We have not changed the workflow after upgrade and verified all the attributes of Initiator, CAD and approver is already available in CAD - but still we are receiving the error "Approver Not Found"
    The same workflow is working succesfully in Production system which is under SP9.
    Is this an issue with SP13. If any body has encountered please let us know how to resolve.
    Thanks and Best Regards,
    Srihari.K

    Dear Chinmaya,
    Below is the error log
    Log :
    2011-05-09 08:13:17,375 [SAPEngine_Application_Thread[impl:3]_25] ERROR NoApproverFoundException in Save request
    com.virsa.ae.workflow.NoApproverFoundException: No approvers found for req no : 135, for reqPathId, 209, for path, CHNG_ANZ_Z6 and approver determinator : ANZ_LAC
    Also, we tried with simple workflow as well with just 2 attribute logic. Still we received the same error
    Thanks and Best Regards,
    Srihari.K

  • Attachment binding issue in workflow

    Hi All,
    I have used FM 'SAP_WAPI_ATTACHMENT_ADD ' in method of my workflow. Here after executing this FM i m getting id of the attachment for this workitem. But now i need to assign this to  '_Attach_Objects' of workflow container. so please help me for this binding issue. which i need to bind from method to> task to> workflow. so from next step onwards in workflow i will get that attachment.
    Smit Shah

    Hi,
    1) In the T.code SWO1, you have to create a custom method for the BO, there execute that method and check whether it working fine
    2) Then goto  T.code PFTC and Create a Task (Task no. will generate automatically), then call this method and generate the binding
    3) Goto  T.code SWDD and call that Task by assigning that Task no. and assign the binding
    Then test your workflow.
    For the Binding see this [link|http://help.sap.com/saphelp_nw04/helpdata/en/c8/bfc39b0fc57a49a0291378f8be0cd6/frameset.htm].
    Regards,
    Surjith

  • Version issue in Workflow

    Hi,
    I have made changes to a workflow in Development and moved it to Quality.
    After transportation in quality, its keeping on generating new version number .
    i got almost 20 new versions. Still it is increasing time to time.
    What could be the issue ?

    hi
    When we tranport a req to DEV to Quality ,then new version is created in Quality .
    but as you say "one req is being transported but its creating version continuously"
    I thing there some problem in transportation process , ask yr Basis person.
    and one thing you can check
    for any two version (which is created by your request ) compare :
    pftc_dis-> go to yr WF ->WF builder -> Basic data ->VersionOverview ->
    compare  change by , date  ,time ,release  of these version with yr DEV WF templet data .
    the active version should be same as yr DEV WF .
    perhaps you will get some clue.
    thanks
    kakoli

  • Approval issue in WorkFlow

    Hi experts,
         My workflow senario is
      Author -> Approver1 -> Approver2
    When author submit the form it should go to approver1 , when the approver1 submits the form it should go to approver2.
    In this i am getting a issue, when Approver1 submits the form it is not going to Approval2,but when the Author submits it is reaching Approver1.
    Can any one tell me what may be the reason for this..
    Thanks & regards,
    karthik.
    null

    Karthi,
    The 1st thing that u need to do is check the workflow template of that workflow in SWDD. Go to the task, and see if any object and its method is defined inside the particular task.
    In t-code SWI1 u cam also see the log which gives the return values from this task. This will show what exactly this task is returning.
    First see what kind of task is it and what business object is defined in this task.
    Thanks,
    Kajal

  • Locking issue in workflow with conseutive database update

    Dear Workflowers,
    We are in ECC 5.0 and release 6.40. We went live for SAP in February and we are currently using workflow in PLM module for DMS and ECM.
    We have been facing this locking issue randomly happened in our production and quality system. The error from workflow log is "Document XXXX is locked by WF-BATCH". I have two steps in workflow one is to update the document user( from originator to editor with custom BO "zdraw" new method "setuser") and the next step is to update the document status( BO "zdraw" "setstatus" method which inherited form standard BO "draw").  
    I have tried to use "wait" (1st try) , statements  "BAPI_DOCUMENT_ENQUEUE", "BAPI_DOCUMENT_DEQUEUE" (2nd try) and  "Commit work and wait" (3rd try) to add one step in between, however the issue remains.
    The other question I had was we need to write "commit work" when we use BAPI to perform database update in the ABAP program. But I don't see "commit work" in the method of BO(for example "setstatus" in "draw" object) which performs database update. How does workflow perform DB update properly without "commit work" by referencing standard method?
    Could anyone please share your expertise with the issue I am facing?
    Thank you in advance,
    Merta

    Hi Merta,
    Regarding COMMITs: theoretically you should never use COMMIT statements because the Workflow runtime handles that - the transaction of executing the task is the LUW, not your method. By adding COMMIT WORK you are also committing the workflow task execution.
    In practice however there are the occasional exceptions where something just won't work without an explicit commit - but the theory remains that you should always try it without.
    Regarding your problem, the one way to be certain that a DB update is complete is to use a terminating event - either through change documents or status management.
    Failing that, you can write a wrapper method for SETSTATUS that does something like:
    do 10 times.
      try to lock it.
      if success.
        unlock.
        swc_call_method self 'SetStatus' container.
        set success flag.
      else.
        wait up to 3 seconds.
      endif.
    enddo.
    if no success, raise exception.
    Cheers,
    Mike

  • Issue in Workflow- Field Update is not happening

    Hi Friends,
    I am facing an issue to update a check box field Released.
    I have created a task having Advance with Dialog opiton,Background processing to update the Checkbox field.
    The BOR Object type used is BUS1006 and method is CHANGE. Everything looks fine when tested the task as well as the workflow in test mode and it is working fine in both the cases. But some how, this field update is not happening over the CRM 2007 Web UI. We are assuming it is due to user authorizations or some other settings ( like assignment of backend user to the workflow)
    for doing this task. Can some one give us some pointers on this. This will be of great help.
    Thanks,
    Udaya

    Hi Imtiaz,
    I am new to this. Can you please give me some pointers on how to check whether WF-BATCH has the needed authorisations and the process can be executed in background.
    Reply me at your convenient time.
    Thanks a lot for your response.
    Regards,
    Udaya

  • Issue in workflow binding of Table in send mail step

    Hi All,
    I am working on a Travel Management workflow where mail needs to be sent to the manager along with the trip details.
    We are displaying data in tables (html format). Now i need to add another such table with details into this already existing workflow but i am facing issues in binding.
    Issue: For already existing tables, the binding is like this,
    Export to task,
    &TRIP& --> &T_SUMMARY##&
    Import to w/f,
    &T_SUMMARY##& <--- &T_SUMMARY##&.
    But when i am trying to add my table in binding as, &TRIP& --> &T_MILEAGE##&,
    I am getting a binding error, &T_MILEAGE##& is not available in the container.
    I checked the container both in workflow and in task, both contain multiple declarations of the variable &TRIP& which is of type the BO.
    Kindly help me how to proceed further.
    Regards,
    Jose

    Hi Anjan,
    The status of  note  1658491 is also cannot not be implemented.
    I checked the correction given in this note. All changes exists into system.
    Following is code of method SEND ( (CL_SWF_UTL_MAIL_FACADE)
    *- check if document has recipients at all
           lt_recipients = lo_send_request->recipients( ).
           if lt_recipients is initial.
             lo_send_request->delete( ).
             ls_t100msg-msgid = 'WZ'.
             ls_t100msg-msgty = 'E'.
             ls_t100msg-msgno = 619.
             raise exception type cx_swf_run_wim
               exporting
                 t100_msg = ls_t100msg.
           else.
    *-       Send document
             call method lo_send_request->send( ).
           endif.
    The exception is thrown, because lt_recipients table is blank.
    With same parameter the workflow is running successfully if 'Long mail title' is not set in SWPA.
    When is field is active, workflow returns message Document <> could not be sent
    The method "SELFITEM->SendTaskDescription" does not send mail if Long Mail Title" indicator is set .   
    Thanks & Regards,
    Mounj K

  • Issue in Workflow - Records not created at times

    Hi All,
    We are using oracle workflow. I am facing an issue in live at times. Here in my case a procedure is called from a workflow function which in turn inserts records in a table automatically.
    Some times even though all conditions met to insert records, there is no insertion in the particular table. Also no error is logged. The stage is also successfully passed without any error.
    Please help me out to solve the issue.
    Thanks and Regards,
    K.Gopinath.

    You can start by running wfstat.sql passing it the item_type and item_key for your workflow process and see what the workflow has done - you can check that the execution path actually went through the activity using that PLSQL code of yours.
    Also, if any errors occurred, a notification must have been sent and you can see the number of such notification in the output from wfstat.sql as well.

  • Issue in workflow mail-link while receiving on MS OUTLOOK

    HI All,
    Weu2019re having an issue in the links send to approver via Workflow email.
    The link being sent is as below :
    https://******.eu.*******.net:8443/3a_tm_approve?SAP-client=710&KEY=100001070610000480022463541A&RECID=000001461607&SAP-language=EN
    Since the workflow canu2019t send link with more than 120 digits, weu2019re breaking the link into multiple parts.
    Part 1: https://******.eu.*******.net:8443/3a_tm_approve?SAP-client=710
    Part 2: &KEY=100001070610000480022463541A
    Part 3: &RECID=000001461607
    Part 4: &SAP-language=EN
    The mail is defined in HTML.
    Our client-(end-user) uses two application for email u2013 Lotus notes and outlook.
    The above mentioned link works fine on Lotus notes, but is creating issue when received on Outlook.
    Issue :
    When the mail is received on outlook u2013 A space is introduced in the link, due to which on clicking of link u2013 nothing opens up.
    It seems that when the first line of link is generated a space is introduced after that.
    Solutions tried:
    Weu2019ve tried to combine 3 variables into 1 and created link with just one line.
    But this doesnu2019t seem to be working.
    Any pointers towards the solution for Outlook will be really helpful.

    a possible solution that we implemented is:
    create a method or Function module, by using classes like cl_bcs, cl_document_bcs, to send any kind of email (with any length text, even markup, attachments etc) to outlook (you can see standard program BCS_EXAMPLE_5 for reference).
    invoke this function module from within the workflow, instead of using standard "Send Mail" step.
    regards,
    BJagdishwar.

  • Issue in workflow - Logically Deleted Scenario

    Hi,
    We have an issue in Journal Entry Workflow. The user has tried to upload a document for Journal Entry Posting. Document is in Parked Status. In the workflow, when it has come to the required step of workflow approval and checks for the document type, it has got logically deleted. Thereby the workflow got terminated.
    Kindly let us know as how to proceed further. What would have been the reason for this automatic logical delete? Mail us the solution regarding the same.
    Regards,
    Veera

    Automatic Logical deletion ! I think this is not possible check with the log of the workitem whose user id is appearing then in the code check weter you have assigned any FM to locially delete the work item which is being trigered by mistake if not just start another WF and proceed with your work.
    Regards
    Bikas

  • Issue in workflow workitem that gets triggered to two users at one time.

    Hi All,
    Below are the query  details:
    Module:  HR
    Area:      Workflow
    Process: Hiring
    There is an workflow in HR module that is triggered when an hiring action is run against an candidate.
    There are two or three maximum approvers  which is based on the position to which the candidate is hired.
    Issue:
    During the hiring process some times the workitem is getting triggered to two users at once.
    One is the actual approver who should receive the workitem in his UWL and other is the user of our service center who is no where involved in the approval process.
    Analysis Done:
    We checked the workflow log and found that the actual approver's ID is getting displayed under agent and workflow is complete. But the other user's ID is no where shown in the log but he has received an workitem in his UWL that makes the issue still confusing.
    Awaiting for experts suggestions.

    Reply to Susan Questions:
    You say that 'the workitem is getting triggered to two users at once' - do you mean that there are two workflow instances that are being kicked off at the same time when the hiring action is performed? Or is it that the workflow is generating two tasks that go to these different users?
    Ans : There is a single task attached to the activity.
    Is this a custom workflow?
    Ans : Yes.
    Are you certain that the erroneous task is only going to the user in the service center, or is it perhaps going to everybody (marked as a general task)?
    Ans : The task is marked as general but the workitem is received by only one user of the service center at a time.
             As this issue has taken place 4 times in the past year all the 4 receiver were different belonging to different position.
    Reply to Pavan Questions:
    1. Did you try to check the SPRO settings with respect to Hiring Process ,is there any where based on the position does workflow is forwarding the workitem to the other user.
    2. Check the other user Roles and in the Org Structure where he is located , there could be a possibility of wrong position holding.
    Ans : We checked the org structure, but org structure of both the centers are different and independent there is no linkage    between the two.
    *3. IF you are using custom workflow then check if any standard workflow is also getting triggered. Check *
    Ans : Yes this is a custom workflow, but no other Standard workflow is being called.
    4. Check in the SWEHR3 is any custom entries maintained.
    Ans : No, entries are maintained in SWEHR3.
    Additional Info :
    The task that triggers the workitem has an send mail step before it.
    The send mail activity is to notify receiver that there is an workitem lying in the UWL.This mail is received by the actual user and not by the other one.The next step is the task that creates workitem which gets triggered totwo different IDs.
    This scenarios mostly has come up when the number of approver is 1. If the approver is more than 1 the  workflow runs fine without  deviating the workitem to any worng user.

  • Issues in Workflow before/after Upgrade

    Hi All,
               Our project is going to upgrade from 4.7 to 6.0. The customer has some concerns over the workflows.
               The concerns are:
    1.What happens to all the open workflows? I mean all the workflows which are still active and running at the time of upgrade. Should they be terminated or brought to an end? Can workflows be terminated? Or if we want them to get complete can we do so?
    2.What are the scenarios post upgrade where the workflows are likely to fail or pose a problem?
    I have one SAP document already which gives an insignt into the second concern but am clueless on the first one.
    Please advice on both the issues.
    Thanks in Advance,
    Saket.

    Hi,
    mass closure and mass restarting of all the workflows
    This is not possible.
    For your Scenario try this in the Dev. Server or Sand Box. If this working fine, then go ahead.
    Check this below possibilities.
    1) In the dev. server or Sand Box  create some workflows. That should me in Process (Not completed)
    2) Then upgrade your dev. Server/ Sand Box & check status of the workflow.
    3) If found all the workflow end up in errors, go to SWPR and Restart it.
    4) If the workflows are working fine, then test in QA & further.
    5) If this not working, then better you have to complete the workflows & after upgrade trigger the workflow.
    Regards,
    Surjith

Maybe you are looking for