cancel
Showing results for 
Search instead for 
Did you mean: 

To trigger the same Gp process once again after the completion of one

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

former_member197348
Active Contributor
0 Kudos

Hi Smitha,

At the end of your process add this GPProcess():


// if there is any condition use if() otherwise remove if()
if(condition) 
{
GPProcess();
}

regards,

Siva

Former Member
0 Kudos

Hi Siva

Thanks for the reply.

But GPProcess(); is giving syntax error-"Undefined" .

please help me out

thanks

smitha

former_member197348
Active Contributor
0 Kudos

Hi Smitha,

GPProcess() is nothing but your process only. Sorry, I forgot to mention.


// if there is any condition use if() otherwise remove if()
if(condition) 
{
<+nameofyourGPprocess+>();
// if it asks for parameters just enter same as your GP process
}

regards,

Siva

Former Member
0 Kudos

Hi Siva,

Thanks for the reply.

But How can I give process name ?

There can be more than 1 process with the same name.

Procees ID is the unique one what we can use.

Still that too we can't use as method.

we can give it as a parameter.

what I tried is,

IWDClientUser wdUser = WDClientUser.getCurrentUser();

IUser user1 = wdUser.getSAPUser();

IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(user1);

IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate("EB0B28E08B6011DBB1BE00145EB416E0",userContext);

EB0B28E08B6011DBB1BE00145EB416E0 is the process ID.

This code I have tried by giving before and after the completion of the previous process(process9executionContext.processingComplete();)

And I tried URL navigation also, by creating an outbound plug in the interfaceview. in the outbound plug I have called the process instantiation URL. But it is giving the error: "can not navigte :non-existent outbound plug"

Please help me out.

Thanks

smitha

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

I used Portal Navigation

It is working fine now

Thanks

Smitha