Skip to Content
author's profile photo Former Member
Former Member

launching WF from WF

Hi

I would like to , in situation when sth has not ended correctly, launch in my WF the same WF once again.

it just needs to insert step.

but how it would like in WF logs (tcode SWIA)?

Instance of first WF will wait until the second instance will finish?

what if second instance will launch third instance? how will SWIA look like?

regards

Radek

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Dec 12, 2008 at 04:44 PM

    Hi Radek,

    What does Sth mean? How about looping the same workflow instead of triggering another instance or adding additional stps?

    Let me know if you have any queries.

    Regards,

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      >Karri, how to create step that will launch this WF once again? Write abap method in task that will >create the same event that starts WF?

      Well, yes. That's one way to do it. You could also create a new custom event (STARTEDAFTERERROR or whatever), and then trigger that in the method (in the same way you described). Maybe it is a better idea than raising exactly the same event, which starts the workflow at the first place (eventually the functionality is the same, but from logically it would make more sense). You could also call a function module which start the workflow directly. Check SAP_SAPISTART.

      Regards,

      Karri

      PS. Actually isn't there a step type in the workflow builder for triggering events? So, no coding required at all.

      Edited by: Karri Kemppi on Dec 15, 2008 11:44 AM

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2008 at 03:39 PM

    Hi,

    If you just start the workflow as a substep of yout workflow, it will not look too good in the workflow log. You will have workflow(s) inside workflow(s).

    Maybe a better idea is to create a separate custom step (with custom method), in which you start the workflow programatically (with an event or direct start with the function module).

    Regards,

    Karri

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 19, 2008 at 03:09 PM

    also possible to use few loops to check value at the end of workflow and if condition is not fulfilled , go to the beginning of workflow within loop.

    regards

    Radek

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.