Its a long shot but....

Alon Raskin araskin at 3i-consulting.com
Tue May 10 05:10:28 EDT 2005


Michael,

You are spot on. I think you are right about the WAPI being called
outside the User Context and hence why the next dialog task is not
displayed. I am not too hopeful about OSS but I might give it a go (and
definitely will let you know when it happens). Would be great if SAP
could add a flag to the WAPI which tells the WAPI whether to follow the
dialog chain....

Appreciate everyone's reply.

Regards,

Alon Raskin
e: araskin at 3i-consulting.com
p: +61 3 9625 2189 (Head Office)
f:  +61 3 8610 1239 
c:  +1 207 756 0370
w: http://www.3i-consulting.com

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Michael Pokraka
Sent: Tuesday, May 10, 2005 4:53 AM
To: SAP Workflow Users' Group
Subject: Re: Its a long shot but....

Hmmm, I interpret Alon's description differently. I think what he didn't
describe clearly is that the WAPI is called through some user action
outside the WF which completes the decision..... Alon? 

If this is the case then this is a very curious situation indeed. There
is no 'advance with dialog' as it is not within a workflow context, but
nevertheless the WAPI could put the process into a WF context. However,
the WAPI could be called within a LUW which needs to complete, or
something which has it's own sequence of events.

Advance with dialog causes a potential paradox: what if the WAPI is
called from a different WF in a dialog task, which has it's own advance
with dialog successor? Which task is the user shown next? 

I suspect the WAPI just changes the state and triggers the WF engine
into action to progress the WF - outside the user context.
I'm curious about any possibilities though, it wouldn't hurt to ask OSS
(and let us know if you do).

Cheers
Mike

--- Thomas Maue <Thomas.Maue at ipaper.com> wrote:

> 
> Alon,
> 
> This is working as designed.  If there are two dialog steps together 
> then it works, but when a background step is placed in between the 
> Advance with Dialog will not work (makes sense if you think about it).
> 
> You might try taking off the background processing indicator for the 
> background task and then setting the Advance with Dialog for the 
> background/dialog step.
> 
> Regards,
> Thomas Maue
> 
> 
> 
>

>              "Alon Raskin"

>              <araskin at 3i-consu

>              lting.com>
To 
>              Sent by:                  "SAP Workflow Users' Group"

>              sap-wug-bounces at m         <sap-wug at mit.edu>

>              it.edu
cc 
>

>
Subject 
>              05/09/2005 04:38          Its a long shot but....

>              PM

>

>

>              Please respond to

>                "SAP Workflow

>                Users' Group"

>              <sap-wug at mit.edu>

>

>

> 
> 
> 
> 
> I am not sure if there are going to be any takers for this one but 
> then you guys/gals always surprise me....
> 
> I am calling the WAPI provided in 4.7 called
SAP_WAPI_DECISION_COMPLETE .
> This Function Module allows me to programmatically enter a decision 
> item for an outstanding work item. It is a thing of beauty and works
perfectly.
> 
> But (and there's always a but)....
> 
> The WAPI does not respect the Advance with Dialog flag that I have set

> on my workflow. When I execute this work item from my inbox it 
> proceeds to immediately take me to the next step. However, when I 
> complete the work item via the WAPI, the chain is broken and I am not
taken to the next step.
> The subsequent step does appear in my inbox but I want it to popup 
> straight away.
> 
> Is this working as designed or do you think this could be an OSS note?
> 
> Any ideas/suggestions?
> 
> Alon Raskin
> e: araskin at 3i-consulting.com <mailto:araskin at 3i-consulting.com>
> w: http://www.3i-consulting.com
> 
> (See attached file: winmail.dat)
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> > _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> 

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



More information about the SAP-WUG mailing list