Changing overall staus of workflow

Hi
I want to change the overall staus of error workflow to complete. The workitem is of type 'F'. Please guide me how to set the overall status of error workflow to complete.
Note : I have already used the following function modules, but not working:
- SAP_WAPI_PUT_BACK_WORKITEM
- SAP_WAPI_SET_WORKITEM_STATUS
- SWWW_WI_ADMIN .
Thanks in advance
Rasheed

HI
I Dont think you can complete the workflows which are in error status. Only thing you can do it is logically delete them  using FM
SWP_WORKFLOW_INSTANCE_COMPLETE
Regards
Sachin

Similar Messages

  • Change display name of workflow email address in sharepoint 2010

    Hi
    How I can change display name of workflow email address in sharepoint 2010. I want to configure display name (from address)of email
     for each site collection separately.for example I want to change "software unit"
     in below pic to another name for my software unit site collection.
    How I can do this?
    Thanx.

    Hi,
    According to your post, my understanding is that you want to change display name of workflow email address in sharepoint 2010.
    In my environment, if I assign a task to a user, the email is as below:
    The “test” is the site name, the [email protected] is the “From” user.
    Do you want to change the “From” field in the workflow?
    If so, you can have a look at the "Send email extended" custom SPD workflow activity (http://www.codeplex.com/SPDActivities
    ) which allow you to specify the sender.
    Here are some similar threads for your reference:
    https://social.technet.microsoft.com/Forums/en-US/22d95510-95b7-4882-b988-4038e59fb031/how-to-change-the-display-name-for-sharepoint-emails-sent-using-workflows?forum=sharepointgeneralprevious
    http://sharepoint.stackexchange.com/questions/19186/changing-from-email-address-in-sharepoint-designer-2010-workflows
    http://sharepoint.stackexchange.com/questions/61964/how-to-change-the-from-address-in-feedback-workflow-email
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • How to change the recipients in workflow?

    I'm not  a workflow expert. Please help me how to change the recipients in workflow.
    The approver already resigned and we would like to change it to a new approver.
    We already deactivated the user and I stiil see him in SOST.
    In some releases, he is the approver and we would like to change it.
    Hope you can help me. Just kindly let me know if you still have queries.
    Thank you!

    Ask your workflow admin to define a substitution and/or forward the workitems.

  • How to find the recent changes done in the workflow by user id ?

    Hello all,
    How to find the recent changes done in the workflow by user id ?
    I have made changed in Production system .
    Like changing the status ,
    changing the agent ,
    but for these it will , not ask for any request .
    So i want to know is there any method to find what are the changes done by me ?
    Thanks and regards
    Prem

    Hi,
    This is caused by mandant settings in scc4. It's better not to make changes in PRD, because then your DEV en QA systems differ.
    Kind regards, Rob Dielemans

  • Changes to an existing workflow

    Hi,
    I have a rather major change that needs to be done on an existing and active (production) workflow. I am wondering what should be the best approach.
    1) Back up a copy of the workflow in DEV and make the necessary changes to the <b>old workflow</b>. Transport the <b>amended old workflow </b>to PROD.
    2) Back up a copy of the workflow in DEV and make the necessary changes to the <b>copied workflow</b>. Transport the <b>amended copied workflow</b> to PROD.
    Any comments? Points will be awarded for helpful advice. Thanks.

    Thanks for the advice.
    Actually, I have a custom screen that's dependent on the workflow. At every step of the workflow, the user will go to the screen and fill in remarks in a field corresponding to that step. The remarks will be stored in a maintenance table. They are non-key fields.
    The new requirement is to remove several steps of the workflow. This means that other than changing the workflow, I have to remove some fields from the custom screen.
    If I use versioning for the workflow, it looks fine for the workflow as the correct version will be used. However, I will face problems with the screen as there can only be one version at any time.
    I can think of 2 solutions.
    1) Disallow the users from triggering a new run of the workflow until all active sessions are completed. After that, transport all changes (new version of workflow and screen) to PROD.
    2) Create a new workflow and new screen.

  • Regarding the change status of leave workflow.

    hi friends,
    i have copied the standard leave worklfow "WS12300111" and customized it just to meet our requirement means for multiple approvers.
    everything is working fine in production  means if user ID "AIHR01' raise a leave request the workitem will go to "AIHR02" after his approving the workitem will go to the final approver means "AIHR03" after his approval the leave request will be completed and the status in the TC - PTARQ is coming as "APPROVED" means only after the approving of "AIHR03" the status is coming "APPROVED" but in some cases when user id "AIHR02" is approved instead of coming status "SENT" it is coming "APPROVED"  in TC-PTARQ and because of this status the workitem is coming blank in UWL of "AIHR03".
    I have already incorporated the given below method in the "WORKFLOW" just to change the status from "APPROVED"  to "SENT" after the approval of user ID "AIHR02" but in some cases it is not working fine it is giving BUG.
    begin_method changestatus changing container.
    DATA:request TYPE ptreq_header-request_id,
              wi_id TYPE swwwihead-wi_id.
    DATA: request_instance TYPE REF TO if_pt_req_request,
               event   TYPE tim_req_xfer_event VALUE
               cl_pt_req_const=>c_reqtrans_send,
               ex_status TYPE tim_req_status,
               container_wi TYPE swcont OCCURS 0,
               agents TYPE STANDARD TABLE OF swhactor WITH HEADER LINE.
              swc_get_element container 'REQUEST' request.
              swc_get_element container 'Wi_id' wi_id.
    DO.
      CALL FUNCTION 'ENQUEUE_EPTREQ'
       EXPORTING
        MODE_PTREQ_HEADER       = 'S'
        MANDT                   = SY-MANDT
         request_id              = request
        X_REQUEST_ID            = ' '
        _SCOPE                  = '2'
        _WAIT                   = ' '
        _COLLECT                = ' '
       EXCEPTIONS
         foreign_lock            = 1
          system_failure          = 2
          OTHERS                  = 3
        IF sy-subrc = 0.
          EXIT.
        ENDIF.
        WAIT UP TO 60 SECONDS.
      ENDDO.
      IF sy-subrc = 0.
        CALL METHOD ca_pt_req_header=>agent->get_request
          EXPORTING
            im_request_id     = request
          IMPORTING
            ex_request        = request_instance
          EXCEPTIONS
            request_not_found = 1
            OTHERS            = 2.
        IF sy-subrc = 0.
          CALL METHOD request_instance->initiate_state_trans
            EXPORTING
              im_transfer_event = event
               im_external_call  = 'X'
       im_ret_value      = 0
                     ex_new_status     = ex_status
       ex_ret_code       =
          swc_set_element container 'Ex_Status' ex_status.
        ENDIF.
        CALL FUNCTION 'DEQUEUE_EPTREQ'
         EXPORTING
      MODE_PTREQ_HEADER       = 'S'
      MANDT                   = SY-MANDT
           request_id              = request
      X_REQUEST_ID            = ' '
      _SCOPE                  = '3'
      _SYNCHRON               = ' '
      _COLLECT                = ' '
      ENDIF.
      swc_create_container container_wi.
      swc_set_element container_wi 'WI_ID' wi_id.
      agents-otype = 'US'.
      agents-objid = sy-uname.
      APPEND agents.
      CALL FUNCTION 'SWW_WI_START_SIMPLE'
        EXPORTING
          task                         = 'TS90000089'
          called_in_background         = 'X'
        TABLES
          agents                       = agents
          wi_container                 = container_wi
        EXCEPTIONS
          id_not_created               = 1
          read_failed                  = 2
          immediate_start_not_possible = 3
          execution_failed             = 4
          invalid_status               = 5
          OTHERS                       = 6.
      end_method.
    Request you to plesase help me to solve this issue .why in some cases instead of coming status "SENT" it is coming "APPROVED"  after the approval of user id "AIHR02".
    BECAUSE of the  "APPROVED" staus the same workitem is coming blank in the UWL OF "AIHR03".

    solved by own

  • How to tell if column value has changed for use in workflow actions

    Hello,
    I am using Sharepoint 2010 and for one of my Lists, I am using a general list workflow.  What I need to be able to do is determine if a column value has change (say an "Assigned To" field) because I only want to take some action if that particular
    value has changed.  I want to be able to have a workflow action that would be something like:
    If Current Item: Assigned To not equals [OLD VALUE]
    I have found some web searches that talk about creating a duplicate list or duplicate (but hidden) column but that doesn't seem to be the way to go.  I have document versioning set but don't if that can be used to help with this.  One possible
    thought (although I haven't tried it to see if it works) is to create local variables and have the values in the variables be the "old value".  Just not sure if there is a best practices for doing this.
    Thanks for any thoughts - Peter

    Helen,
    Not sure I fully understand your goal.  We don't use "tasks" at all but if you are looking to have your workflow check certain valus and be able to send email messages to people based on whatever, then you can certainly do that (as long as your Sharepoint
    has the email setup.  We do this for alot of workflow tasks.
    So, in the workflow you can have a blanket statement like what I previously listed:
    if Current Item:hiddenStatus  not equals Current Item:Status
        .... do something
    or you can do something like:
    if Current Item:hiddenStatus equals "In-Progress"
        .... do something
    Else if Current Item:hiddenStatus  equals "Completed"
        .... do something
    or combine the two and do nested "if" statements.  Then you add an email statement wherever you need it like:
    if Current Item:hiddenStatus  equals "Completed"
       then email "these users"
    To add the email part, just type in "email" on the line where you want to add a statment.  There is only one option to choose from.  That will display the line "then email these users".   The "these users" will be a link.  When you
    click it you will get a popup to add the email info.  We typically will send the email to a user (or users) that are already listed in one of the PeoplePicker fields.  On the email form, you can type in your own text, designate that a value is based
    on a column value (like our PeoplePicker), designate that a value is based on a workflow variable, add a link to the current item, etc.  To get to these options you will click the button to the right of the fields or use the "Add or Change Lookup" button
    in the bottom-left for the text area.  There is alot you can set in the mail.
    Does this help answer your question?
    - Peter

  • Creation of change document to trigger workflow.

    Hi,
    I need to trigger a workflow when there is a change in the PO line item (EKPO). For this, I can use the standard change object EINKBELEG, but this only bears the purchasing document number as the key. hence when ever a change event is triggered in the custom BO, the key is just the PO#. This should be not the case.
    The key field should be a combination of the purchasing document number and the line item number, hence I created a custom change object ZEINKBELEG refering to EKPO and generated it too. The steps in SCDO, SWED, SWEC has already been handled. But the custom event in the business object does not get triggered. I need some help regarding this.
    Precisely speaking, if there is a change in the line item value (in ME22N). The business object event should trigger.
    Thanks,
    Sukumar.

    Hey Sukumar,
    Do one thing  instead of creating  custom change document. create a new  event in bus2012 using condition editor of SWEC only create a event only when there is a change in EKPO. that resolves your issue..  just a suggestion

  • BAPI_PO_CHANGE - changing overall limits and expected value to 0.

    Hi,
    I created a normal purchase order with a service item is srm (the overall
    limit and the expected value are filled). In R/3 system the corresponding
    PO got created.
    After that, in SRM we change the overall limit and the expected value to zero.
    In R/3 system the net price is updated, but the overall limit and
    the expected value are not updated. Could you please help me witht this?
    Thanks in Advance,
    Best Regards,
    Vidya
    Edited by: Vidya K Moorthy on Mar 18, 2009 3:06 PM

    Finally found the answer.
    BAPI_PO_CHNAGE does not support this functionality to delete limits.

  • Ability to Change Overall limit in Purchase Requisition after PO creation.

    Hi,
    I have created a Service Purchase Requisition and released it.Then, I created a Service Purchase Order with reference to the above created Purchase Requisition and released and saved.
    Now, when I go to the Purchase Requisition after creating a Purchase Order, I want to change the values for the Overall Limit and the Expected Value but they are greyed out.
    But what I have noticed is that if I create a Standard Purchase Requisition and release it and then create a standard Purchase Order with reference to the standard PR and release it and save it, I am able to edit the values even after the PO has been created.
    Any help is appreciated.
    Thanks and Regards,
    Puneet Jhari.

    Hi ,
    I need to change the Accoun assignment category in back end not in fore ground.
    Is there any EXIT or BADI available for the same.
    Thanks,
    Ranjit

  • Programme SDV03V02 changes Overall status of credit check in table VBUK

    Dear All,
    I happened to go through the previous threads pertaining to this program on rescheduling  the sales orders. Adding to that too
    i have an important aspect which needs the suggestion of you legends. As in my support this jobs runs every day night and reschedules all the open / back orders and it is found to change one key field "CMGST" (overall credit status)  from parameter
    B-Credit check was executed, document not OK     to     A-  Credit check was executed, document OK.        in the table VBUK.
    Due to which the blocked sales orders for delivery against credit checks  were being released and hence getting the goods issue and billing done. Users are panic on this and it created a lot of mess. Can any one suggest how to get rid of this please so that the program should not change the delivery block while it runs the batch job.
    An earlier solution might be definitely of great help for me.
    Thanks & Regards
    Krishna.K

    Dear Krishna,
    The backorder rescheduling program SDV03V02 can change confirmed quantities. The system uses confirmed quantities to calculate the credit value of the sales order. This change of the credit value can lead to a credit block or in your case a credit check where the document is ok.
    To stop SDV03V02 triggering a new credit check you could implement your own 'no credit check' routine 901 in transaction OVA8. Notes 895630 and 502930 provides more information on this.
    I hope this information helps.
    Best regards,
    Ian Kehoe

  • Urgent - not able to add or change start events in workflow

    Hi,
      I have added one event as start event for a workflow. Now I want to change the event to some other event.
      But it is not allowing me to do any changes to the start events.It is showing a pop up window with 'Client 002 has status 'not modifiable' & 'Choose 'Display object' or 'Cancel'.' But it is allowing me to do changes to my workflow steps.
    Where is  the problem?
    Is there anything I need to check with some customizing? Is it a Basis related issue?
    Thanks,
    Sivagami

    Well it depends on the settings done by basis. But usually this message comes in when you try to modify a workflow/code in CLNT2 but the code was developed in CLNT1. The cause to it is the CTS is specific to the client in which it is created and you can`t add a task (subrequest ) to it in a different client.
    Solution: Check the client you are working in . Should help you !!
    Let me know if it does!
    regards
    Anuj Sethi

  • How to change the sender name "workflow system" to Diff name

    Hi ,,
      How to change the mail sender name that is "workflow system" to different name. Whenever the mail is triggered it shows the sender name as "workflow system" . i want to change the name of the sender..Even i changed the name of the WF-Batch(name) user but no use.. Pls advice.
    regards,
    Roops.

    Hi Roops,
    Check if the following [link1|Re: How to change text of wf batch??] [link2|Update should not happen in the name of WF-BATCH] helps you.
    Regards,
    Saumya

  • Trigger workflow when PR changed and copmlete activ workflow for same PR

    Hi,
    i am triggering the workflow for all line item of PR when PR is created. now i want to create workflow when PR change also.
    but before triggering the workflow i have to check the any in process workflow for the same and if then complete is and delete all its work item.
    for Ex.
    PR -4500000001 created with item 10 workflow triggerd ,
    suppose i changed it and agan save next workflow trigged now before triggerin this workflow we have to complete the 1 instance of workflow , delete all workitem of that instant
    Please suggest how can i achive this .
    Thanks in Advance
    Deepanker Dwivedi

    Hello,
    We have already implemented this in our old  project.Please find below the solution.
    No config change is required.
    1.Go to tcode SWETYPV
    2. Double click on your linkage.
    3. You will see there check function module.
    4. MAke a custom custom function module of yours and it will have CDPOS and CDHDR as its component.
    5. When so pr is changed or created this function module will be triggered there you can identify whether pr is changed or not using cdpos and cdhdr.
    6. If it is change raise two events one for completeion of old worklfows which are in process second for creation of new workflow instance.
    7. Create a wait step in your workflow which will wait for the completion event to be raised.
    Hope it helps.
    Regards,
    Nabheet Madan

  • CRM ORDER CHANGE AND STATUS MANAGEMENT - workflow

    Hi,
    We have created a Changed method for bus2000120 which is configured to fire when the Order is saved via Status Management.  We have added an entry to BSVW for the object, bus2000120.changed with no restrictions.  We have also created a function module that checks to see if the user status is E0005 or E0007 or it deletes the object from the Event table.  I see that this works correctly, however, a given SAVE of a transaction is firing 2 bus2000120.changed for the exact same user and system status.  (I know that it is firing 2 bus2000120.changed because I ran swels and swel. The event was listed twice. Please remember that the Event table when read directly after the save only lists bus2000120.changed one time.)
    There is only 1 entry in the event linkage(swetypv) for bus2000120.changed and it has a condition of the same user status, e0005 or e0007.  No real problem here, however, since there were 2 firings it runs the workflow twice.
    When you look at the extras-change documents you can see that the Header is changed twice, once for a system status and once for the user status.  I am assuming that since there are 2 changes, this is what is doing both firings.
    The funny thing is that if I fall into our custom code in debug where we are reading the status and event tables I only see bus2000120.changed.
    Any ideas on how I might solve this problem?  Do you believe I am correct in assuming that the 2 status changes to the header of the transaction is how both events are being fired?  If not, any guidance you might give would be greatly appreciated.

    see post stream, solved via sap note 1063138

Maybe you are looking for

  • Adding more than one birthday to on person

    I keep searching but it seems all the tips are old form previous versions or I am missing something.  I am currently using Mac OS X 10.7.3 I am trying to add multiple birthdays in my Address Book under one person, thier family members and I want it t

  • Is anyone getting the dreadful "No Service" on iOS 8? Weaker/no reception? iPhone 5 and up!

    I am currently using an iPhone 5C and 4S. Upon updating from 7.1.1 to 8.0.2, both of my phone had literally been useless indoors now! I used to get a nice 3-4 bars within the comfort of my room to No Service. This is ridiculous by all means. I have t

  • How to open a pdf file only in one computer

    I would like to sell pdf publications by allowing  the user to open them only in one computer. I learnt that this has been done  the past when I bought  some publications but I don't know the way to do it. Could you help me? thank you Marco

  • [Xfce] Window decorations and transparency

    I am running compton and xfce with transparent window borders. The close, minimize, and maximize buttons are also transparent. Is there any way to make it so that they are not transparent? I assume that there must be some way because, in the xfce-pan

  • A problem about output

    for example: <?php // An example callback function function my_callback_function() { echo 'hello world!'; call_user_func('my_callback_function'); above example it outputs rightly. but from online book, it says: You can pass any builtin or user define