Skip to Content
avatar image
Former Member

Workflow variable not refreshed after restart


In our company we have a customised PO Release workflow. Sometimes the business asks us to logically delete a PO WF and restart a new one with reference using 'SWUS_WITH_REFERENCE'.

Now I have noticed that sometimes a particular workflow container is not refreshed, i.e. the new workflow triggers using old value, hence the new workflow does not work properly.

I tried using FM 'SWL_WI_CONTAINER_MANIPULATE' to change the workflow container before restarting the workflow with reference but it didn't help.

Any help?

Thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Aug 26, 2017 at 04:59 AM

    I am a little confused, are you using the transaction or a custom program?

    If a program, then please note that the FM you mention is SAP internal, use SAP_WAPI* FMs instead.

    If transaction, did you know you can edit the container directly from the work item display (Menu Edit > Change), but you must be in the technical view.

    As to your problem, can you be more specific, what is the 'old value'? SWUS_WITH_REFERENCE takes an exact copy of the container, there is no old and new. What is in the container the point in time when you do the copy is what should appear in the new WF.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 28, 2017 at 11:03 AM


    If the workflow was started with an event then you should retrigger it with transaction SWUE.

    Kind regards, Rob Dielemans

    Add comment
    10|10000 characters needed characters exceeded