<p>
Hello Mike,
</p>
<p>
I will do as you suggested, many thanks for your help (again)
</p>
<p>
Cheers
</p>
<p>
Tim&nbsp;<br />
<br />
On Aug 2 2011, Mike Pokraka wrote: <br />
<br />
Hi Tim,<br />
<br />
Sorry if not clear, I meant you can create a new task based on a<br />
class/method and then link your portal app to this task. When executed in<br />
the portal it will launch your app, when in the backend it will execute<br />
the code.<br />
<br />
You could create it as a BOR method, but I find WF classes quicker and<br />
easier for this type of thing. All you need is a class that implements<br />
interface IF_WORKFLOW so that it can be used in a WF task. Make sure that<br />
you implement all the interface methods (can be empty if you only create<br />
static methods), create your launcher method PORTAL_ONLY_WEBSERVICE or<br />
whatever and plug into task.<br />
In your method you&#39;ll have the momentous chore of writing perhaps two<br />
lines of code, something along the lines of:<br />
<br />
message &#39;Please lauch this task from the portal&#39; type &#39;W&#39; display like &#39;E&#39;.<br />
&quot; (Or use a popup window of sorts)<br />
raise exception type CX_BO_CANCELLED.<br />
<br />
The exception CX_BO_CANCELLED has exactly the same effect as the user<br />
cancelling out of a WF step.<br />
<br />
Hope that helps,<br />
Mike<br />
<br />
<br />
On Tue, August 2, 2011 11:45 am, tim_price@totalise.co.uk wrote:<br />
&gt; 
</p>
<p>
<br />
&gt; Hello Mike,<br />
&gt; 
</p>
<br />
&gt; 
<p>
<br />
&gt; Thanks for your suggestion.<br />
&gt; 
</p>
<br />
&gt; 
<p>
<br />
&gt; How do I assign the static class to the workflow task, do I use the<br />
&gt; program exit on the workflow task step?<br />
&gt; 
</p>
<br />
&gt; 
<p>
<br />
&gt; Regards<br />
&gt; 
</p>
<br />
&gt; 
<p>
<br />
&gt; Tim&nbsp;<br />
&gt; 
</p>
<br />
&gt; 
<p>
<br />
&gt; <br />
<br />
&gt; <br />
<br />
&gt; On Aug 2 2011, Mike Pokraka wrote: <br />
<br />
&gt; <br />
<br />
&gt; Hi Tim,<br />
<br />
&gt; <br />
<br />
&gt; Just create your own class with a static method to display a message to &gt;&gt;<br />
&gt; the user that this must be executed from the portal. It can either raise<br />
&gt; <br />
<br />
&gt; a CX_BO_CANCELLED exception or replace itself back into everyone&#39;s<br />
&gt; inbox.<br />
<br />
&gt; <br />
<br />
&gt; Cheers,<br />
<br />
&gt; Mike<br />
<br />
&gt; <br />
<br />
&gt; On Mon, August 1, 2011 6:27 pm, Tim Price wrote:<br />
<br />
&gt; &gt; Hello,<br />
<br />
&gt; &gt;<br />
<br />
&gt; &gt; System ECC6 and Portal<br />
<br />
&gt; &gt;<br />
<br />
&gt; &gt; I have developed a bespoke workflow that has workflow tasks calling a<br />
&gt; web<br />
<br />
&gt; &gt; dynpro.<br />
<br />
&gt; &gt; These workflow task call method DISPLAY on business object<br />
&gt; WEBSERVICE,<br />
<br />
&gt; &gt; this all works well. The tasks do not have Confirm end of<br />
&gt; processing<br />
<br />
&gt; &gt; checked.<br />
<br />
&gt; &gt;<br />
<br />
&gt; &gt; I was wondering, if it is possible to distinguish if the task has<br />
&gt; been<br />
<br />
&gt; &gt; process/completed directly in R/3 without using the Portal to execute<br />
&gt; the<br />
<br />
&gt; &gt; task, as the business only want the tasks to be processed from the<br />
&gt; Portal.<br />
<br />
&gt; &gt;<br />
<br />
&gt; &gt; Regards<br />
<br />
&gt; &gt; Tim<br />
<br />
&gt; &gt;<br />
<br />
&gt; &gt;<br />
<br />
&gt; &gt;<br />
<br />
&gt; &gt; _______________________________________________<br />
<br />
&gt; &gt; SAP-WUG mailing list<br />
<br />
&gt; &gt; SAP-WUG@mit.edu<br />
<br />
&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br />
<br />
&gt; &gt;<br />
<br />
&gt; <br />
<br />
&gt; <br />
<br />
&gt; _______________________________________________<br />
<br />
&gt; SAP-WUG mailing list<br />
<br />
&gt; SAP-WUG@mit.edu<br />
<br />
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br />
<br />
&gt; 
</p>
<br />
&gt;<br />
&gt; _______________________________________________<br />
&gt; SAP-WUG mailing list<br />
&gt; SAP-WUG@mit.edu<br />
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br />
&gt;<br />
<br />
<br />
_______________________________________________<br />
SAP-WUG mailing list<br />
SAP-WUG@mit.edu<br />
http://mailman.mit.edu/mailman/listinfo/sap-wug<br />