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

How to trigger the same gp process once again pogrammatically

Hi

I have aGP process implemented in Webdynpro.

After the completion of this process, itshould automatically trigger the same GP process once again.

It should happen from the webdynpro coding.

Can anybody help me.

thnaks

Smitha

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 27, 2007 at 04:51 AM

    Hi Smitha,

    Please go through [this|http://help.sap.com/saphelp_nw04s/helpdata/en/43/fcdf77fc6510b3e10000000a11466f/content.htm]. It explains how to Start and Terminate Processes Using the GP API step by step.

    Regards,

    Rupam

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Dipankar Saha

      Dear Dipankar ,

      Sorry for this delay. Today Only, I could try your suggestion .

      Anyway I'm really thankful to you.

      It is working fine,. After completing one process, I am able to trigger a new process through coding and instantiation view is also coming correctly.

      Thanks a lot

      Regards

      Smitha

  • Posted on Dec 20, 2007 at 09:47 AM

    Hi,

    I can't understand what you mean by "a GP process implemented in Webdynpro". Do you mean a Web Dynpro callable object implemented using GP interface? If you want to start a new process instance before completing the running process instance you can use either of the two options:

    1) Use Start Process callable object which will trigger the new process instance if used anywhere in your process template. Before this CO use a Business Logic CO to check the parameter which will determine whether this is the first or the second run. Set the resultstate target of the decision action to the start process CO if it's the first run.

    2) Use the GP API or the Web Service from the last CO or a new background action CO to start a new instance of the process. Use the decision/business logic CO as in the previous case.

    Thanks,

    Dipankar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Dipankar,

      I tried , what you had told also.

      I created one "Initiate Process" CO.

      In my first action, on submission, I set the result state to next action.

      Along with it should start a new process Instance.

      But for my first action I can set only one result state. is it?

      Other wise I should be able to set 2 result states ..1 to resume the existing process. and the other to start "initiate Process CO".

      is it possible?

      Please help

      thanks

      smitha

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.