<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body dir="auto">
<div>Hi Robert </div>
<div>Please look again at my suggested alternative if you can't get your preferred option working (but by all means try that first - it looks plausible). </div>
<div><br>
</div>
<div>You really do *not* want to call the wda or iview in a method. We have seen a number of sites try this and it leads to all sorts of unfortunate side effects particularly around web browser sessions. </div>
<div><br>
Task expressions are very easy to use and a great technique to add to your collection</div>
<div>Rgds</div>
<div>Jocelyn<br>
Sent from my iPhone with many apologies for the spelling, grammar and any other deficiencies </div>
<div><br>
On 04/07/2013, at 6:54 PM, "Robert van den Berg " <<a href="mailto:wug@bergtop-ict.nl">wug@bergtop-ict.nl</a>> wrote:<br>
<br>
</div>
<blockquote type="cite">
<div>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">Jocelyn, all,</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"><br>
</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">I have a container element with the correct webdynpro application (and/or URL).</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">I also have a containerelement with a parameter for the caseID for which the task is concerned.</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px; min-height: 8pt; height: 8pt;">
<font face="verdana"> </font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">So I want to call the WebDynproLaucher with the correct application and also pass the parameter so the data from the backend can be retrieved within the WebDynpro application.</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px; min-height: 8pt; height: 8pt;">
<font face="verdana"> </font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">I thought maybe it is possible to change the UWL XML so the value for the WebDynproLaucher is a variable?</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px; min-height: 8pt; height: 8pt;">
<font face="verdana"> </font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">For example (with CONTAINER_ELEMENT_URL and caseID):</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"><br>
</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"><ItemType name="uwl.task.webflow.TS99900078" connector="WebFlowConnector"</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">defaultView="DefaultView" defaultAction="launchWebDynPro"</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">executionMode="default"></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> <ItemTypeCriteria externalType="TS99900078" connector="WebFlowConnector"/></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> <Actions></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> <Action name="launchWebDynPro" handler="SAPWebDynproLauncher"></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> <Properties></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> <Property name="WebDynproApplication" value=<em style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;"><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; vertical-align: baseline; background-color: transparent;"><em style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-weight: inherit; vertical-align: baseline; background-color: transparent;"><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 0);">"${item.CONTAINER_ELEMENT_URL}"</strong></em></strong></em>/></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> <Property name="WebDynproDeployableObject" value="<span style="font-size: 13px; line-height: 20px;"><a href="http://sap.com/tc~wd~tools">sap.com/tc~wd~tools</a></span>"/></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> <Property name="System" value="SAP_LocalSystem"/></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<em style="margin: 0px; padding: 0px; border: 0px; outline: 0px; vertical-align: baseline; background-color: transparent;"><strong style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-style: inherit; vertical-align: baseline; background-color: transparent; color: rgb(0, 0, 0);"><font face="verdana">
<Property name="caseID" value="${item.caseID}" /></font></strong></em></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> </Properties></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"> </Action></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"></Actions></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"></ItemType></font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px; min-height: 8pt; height: 8pt;">
<font face="verdana"> </font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px; min-height: 8pt; height: 8pt;">
<font face="verdana"> </font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">Other possibilities:</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">- call the WebDynpro from the method in de task. So then the XML in the UWL must be a tasklauncher in the back-end. But how can I call a WebDynpro from ABAP (with a parameter)?</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">- or call the iView URL direct from the backend. So then the task in the UWL must be a tasklauncher in the back-end. But how can I call a URL from the UWL via a workflow task/method?</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana"><br>
</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">Regards,</font></p>
<p style="margin: 0px; padding: 0px; border: 0px; outline: 0px; font-size: 12px; vertical-align: baseline; background-color: rgb(255, 255, 255); color: rgb(51, 51, 51); line-height: 18px;">
<font face="verdana">Robert</font></p>
<font face="verdana"><br>
</font>
<p style="font-family: Verdana, Arial, Helvetica, sans-serif;">On Jul 3, 2013 09:21 "Dart, Jocelyn"
<a href="mailto:jocelyn.dart@sap.com"><jocelyn.dart@sap.com></a> wrote:</p>
<blockquote type="cite" style="font-family: Verdana, Arial, Helvetica, sans-serif;">
<br>
Hi Robert,<br>
<br>
You can pass whatever parameters you need to DYNPARAM but that’s usually<br>
for the parameters passed to the application itself.<br>
<br>
The difficulty might be in getting the UWL to launch the correct<br>
application, but its theoretically possible. An alternative is to pass<br>
it as a container element of the task.<br>
<br>
Remember SWFVISU is only used to generate the UWL XML file entry – you<br>
can always override it in your custom UWL XML file.<br>
<br>
<br>
<br>
Give it a go but I don’t promise anything.<br>
<br>
<br>
<br>
Just thinking an alternative may to be to use a Task Expression to solve<br>
the problem – i.e. have a task for each application but use the Task<br>
Expression field on the workflow step to default in the correct task for<br>
the correct application using a workflow container element. Then your<br>
SWFVISU would still have 7 different tasks, but your workflow would only<br>
have one task at design time.<br>
<br>
Just a thought… as that’s how I would approach it personally… i.e. work<br>
with the existing functionality rather than counter to it.<br>
<br>
Up to you though…..<br>
<br>
Regards,<br>
<br>
Jocelyn<br>
<br>
<br>
<br>
From:sap-<a href="mailto:wug-bounces@mit.edu">wug-bounces@mit.edu</a> [<a href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>] On Behalf<br>
OfRobert van den Berg<br>
Sent: Tuesday, 2 July 2013 5:07 PM<br>
To: SAP Workflow Users' Group<br>
Subject: SWFVISU WebDynpro - application as paramater<br>
<br>
<br>
<br>
All,<br>
<br>
<br>
<br>
We have an application where we have 1 workflow task in de UWL which we<br>
want to be used for 7 WebDynpro applications. In the workflow, I can<br>
determine the correct webdynpro application.<br>
<br>
<br>
<br>
Is it possible to pass the application as a paramater? So the setting<br>
"APPLICATION" inSWFVISU with the type WebDynpro ABAP?<br>
<br>
<br>
<br>
Or should I use an iView and let the method call the URL? And if that is<br>
the solution: how can I pass a parameter to the iView? Using DYNPARAM?<br>
<br>
<br>
<br>
Kind regards,<br>
<br>
Robert</blockquote>
</div>
</blockquote>
<blockquote type="cite">
<div><span>_______________________________________________</span><br>
<span>SAP-WUG mailing list</span><br>
<span><a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a></span><br>
<span><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></span><br>
</div>
</blockquote>
</body>
</html>