<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>SAP-WUG Digest, Vol 18, Issue 1</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2900.2873" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=896440813-08052006><FONT color=#0000ff 
size=2>Just study RSWUWFML2 and you will see it. There is a function method that 
creates/compiles the actual attachment data.</FONT></SPAN></DIV>
<DIV align=left><FONT size=2>-- </FONT></DIV>
<DIV align=left><FONT size=2>Kjetil Kilhavn, Statoil ØFT KTJ BAS&nbsp;DEV 
SAP</FONT></DIV>
<DIV><FONT color=#0000ff size=2></FONT>&nbsp;</DIV><BR>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu 
  [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Shai Eyal<BR><B>Sent:</B> 
  8. mai 2006 11:18<BR><B>To:</B> sap-wug@mit.edu<BR><B>Subject:</B> Creating 
  mail with attachment link to transaction<BR></FONT><BR></DIV>
  <DIV></DIV>
  <DIV id=idOWAReplyText65548 dir=rtl>
  <DIV dir=ltr><FONT face=Verdana color=#800000 size=3>Hi all,</FONT></DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000></FONT>&nbsp;</DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000>My workflow sends mail message 
  to outlook. I wish to add attachment which link to transaction (with 
  parameters) so that the user can log into SAP to view object data (for example 
  display Purchase Order in ME23N, BUS2012 display metnod). I know RSWUWFML2 
  does it for workitem, however its not good enough since:</FONT></DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000>a. This workitem may never be 
  executed.</FONT></DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000>b. Once the workitem is 
  executed, you can't do it again.</FONT></DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000></FONT>&nbsp;</DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000>Any idea how to use the 
  &amp;Attachment&amp; in mail step for such issue ? I know to link documents 
  but not a link...</FONT></DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000></FONT>&nbsp;</DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000>Thanks in advance,</FONT></DIV>
  <DIV dir=rtl><FONT face=Verdana color=#800000 size=3></FONT>&nbsp;</DIV></DIV>
  <DIV id=idSignature40048 dir=rtl><FONT face=Verdana color=#800000 size=3>
  <DIV dir=ltr align=left><FONT face=Verdana color=#800000 
  size=2><STRONG>Regards,</STRONG></FONT></DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000 size=2><STRONG>Shai 
  Eyal</STRONG></FONT></DIV>
  <DIV dir=ltr><FONT face=Verdana color=#800000 
  size=2><STRONG></STRONG></FONT>&nbsp;</DIV></FONT></DIV>
  <DIV dir=rtl><BR>
  <HR tabIndex=-1>
  <FONT face=Tahoma size=2><B>מאת:</B> sap-wug-bounces@mit.edu בשם 
  sap-wug-request@mit.edu<BR><B>נשלח:</B> ב 01/05/2006 16:26<BR><B>אל:</B> 
  sap-wug@mit.edu<BR><B>נושא:</B> SAP-WUG Digest, Vol 18, Issue 
  1<BR></FONT><BR></DIV>
  <DIV>
  <P><FONT size=2>Send SAP-WUG mailing list submissions 
  to<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sap-wug@mit.edu<BR><BR>To 
  subscribe or unsubscribe via the World Wide Web, 
  visit<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <A 
  href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR>or, 
  via email, send a message with subject or body 'help' 
  to<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  sap-wug-request@mit.edu<BR><BR>You can reach the person managing the list 
  at<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  sap-wug-owner@mit.edu<BR><BR>When replying, please edit your Subject line so 
  it is more specific<BR>than "Re: Contents of SAP-WUG 
  digest..."<BR><BR><BR>Today's Topics:<BR><BR>&nbsp;&nbsp; 1. How to use 
  FORM-HTMLPROCESS (Khanna, Manish)<BR>&nbsp;&nbsp; 2. RE: Role Resolution 
  problems (rina spector)<BR>&nbsp;&nbsp; 3. RE: How to use FORM-HTMLPROCESS 
  (lianghuan.x.hu@accenture.com)<BR><BR><BR>----------------------------------------------------------------------<BR><BR>Message: 
  1<BR>Date: Mon, 1 May 2006 03:54:21 -0500<BR>From: "Khanna, Manish" 
  &lt;manish.khanna@amd.com&gt;<BR>Subject: How to use FORM-HTMLPROCESS<BR>To: 
  "SAP Workflow Users' Group" 
  &lt;sap-wug@mit.edu&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;493F4B73971F3C4DA0FDBB28AFB68A42043E0C2B@SAUSEXMB2.amd.com&gt;<BR>Content-Type: 
  text/plain; charset="us-ascii"<BR><BR>Hi,<BR><BR>I need to enhance an exiting 
  workflow.<BR><BR>1. One step is to input rejection comments from the user if 
  the document<BR>is rejected.<BR>2. This step in the workflow refers to a 
  custom task which in turn calls<BR>FORM-HTMLPROCESS.<BR>3. Binding from 
  workflow passes lots of parameter that is displayed in<BR>the FORM. However in 
  the task I could not find how and where those<BR>container elements were 
  used.<BR><BR>Any 
  suggestions?<BR><BR>Regards,<BR>Manish<BR><BR><BR>-------------- next part 
  --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A 
  href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20060501/d7973ed5/attachment-0001.htm">http://mailman.mit.edu/pipermail/sap-wug/attachments/20060501/d7973ed5/attachment-0001.htm</A><BR><BR>------------------------------<BR><BR>Message: 
  2<BR>Date: Mon, 1 May 2006 16:47:18 +0200<BR>From: "rina spector" 
  &lt;rina.spector@ness.com&gt;<BR>Subject: RE: Role Resolution problems<BR>To: 
  "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<BR>Message-ID: 
  &lt;60A88EAE4CA2FF479F1AE3B8A6652C590FF027@NESSNT11.ness.com&gt;<BR>Content-Type: 
  text/plain; charset="windows-1255"<BR><BR>&nbsp;,Hello Shai<BR>&nbsp;It can 
  happen if&nbsp; the container elements that are passed to the role&nbsp;&nbsp; 
  remain empty&nbsp;<BR><BR>then all&nbsp; assinged users in the role will be 
  returned<BR>Or on the contrary no&nbsp; agent was found and you didn't check 
  the<BR>terminate if role resolution has no result flag&nbsp; " in the role 
  .<BR>check the values \attributes that you&nbsp; pass to the role<BR>activate 
  the debugger from&nbsp; SWUD<BR>Another option is&nbsp; Authorization 
  lack&nbsp; for preceeing agent before the problematic step because if you look 
  at the&nbsp; technical worklfow log&nbsp; part of&nbsp; creating the workitem 
  is done on behalf of the user preceeding the step<BR>in 
  question<BR><BR>Regards,<BR>Rina<BR><BR>________________________________<BR><BR>???: 
  sap-wug-bounces@mit.edu ??? Shai Eyal<BR>????: ? 30/04/2006 11:32<BR>??: 
  sap-wug@mit.edu<BR>????: Role Resolution problems<BR><BR><BR><BR>Hi 
  all,<BR><BR>I'm using Role Resolution in my WF. I've created resposibilty role 
  and<BR>when I test it from t.code PFAC it works correctly. However 
  in<BR>Production system, for certains tasks, it doesn't work. What 
  actualy<BR>happens is that a workitem is created for all assigned agents. For 
  the<BR>best of my knowlodge, such happens if the workflow couldn't find 
  the<BR>correct agent. Therefore my suspicion is that in runtime the Role 
  I've<BR>created find no agent.<BR><BR>How can I debug it ? How can I find the 
  parameters' value transferred to<BR>the Role Container 
  ?<BR><BR>Thanks,<BR><BR><BR>Regards,<BR>Shai 
  Eyal<BR><BR><BR>_______________________________________________<BR>SAP-WUG 
  mailing list<BR>SAP-WUG@mit.edu<BR><A 
  href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR>-------------- 
  next part --------------<BR>A non-text attachment was scrubbed...<BR>Name: not 
  available<BR>Type: application/ms-tnef<BR>Size: 5133 bytes<BR>Desc: not 
  available<BR>Url : <A 
  href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20060501/81503f4a/attachment-0001.bin">http://mailman.mit.edu/pipermail/sap-wug/attachments/20060501/81503f4a/attachment-0001.bin</A><BR><BR>------------------------------<BR><BR>Message: 
  3<BR>Date: Mon, 1 May 2006 09:23:04 -0500<BR>From: 
  &lt;lianghuan.x.hu@accenture.com&gt;<BR>Subject: RE: How to use 
  FORM-HTMLPROCESS<BR>To: 
  &lt;sap-wug@mit.edu&gt;<BR>Message-ID:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  &lt;DA8A2E1F7A4B6141AE579B40FF60B9E802AE8ED9@AMRXM1108.dir.svc.accenture.com&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>Content-Type: 
  text/plain; charset="us-ascii"<BR><BR>Manish:<BR><BR>1. Any task that calls 
  FORM-HTMLPROCESS has a web transaction code that<BR>is created when you click 
  the menu item Web Transaction while creating<BR>the task itself.&nbsp; The web 
  transaction code creation is a unique step<BR>only needed for tasks like this. 
  This transaction code remembers the<BR>text container elements of the task. 
  Suppose you have specifed 4 text<BR>elements. When you execute the web 
  transaction outside the workflow, you<BR>will be presented a form that has 4 
  input fields where you can type your<BR>rejection reasons.<BR><BR>2. When the 
  method HTMLPROCESS is executed, the web transaction code is<BR>called, and the 
  rejection reasons are passed to the workflow containers<BR>via memory 
  manipulation. We do not need to bother about all the details<BR>in the dark 
  box. What we need to know is: if we need a form with n input<BR>fields to let 
  the user enter his rejection reasons, all we need to do is<BR>the 
  following:<BR>- create a task that calls FORM-HTMLPROCESS, and specify n text 
  elements<BR>for export.<BR>- do not forget to create the web transaction code 
  for the task.<BR>- specify n text element in the workflow container for 
  import.<BR>- create the step using the task and bind the task text elements to 
  the<BR>workflow text elements.<BR><BR>Thanks,<BR>Larry 
  Hu<BR><BR>________________________________<BR><BR>From: 
  sap-wug-bounces@mit.edu [<A 
  href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</A>] On 
  Behalf<BR>Of Khanna, Manish<BR>Sent: Monday, May 01, 2006 4:54 AM<BR>To: SAP 
  Workflow Users' Group<BR>Subject: How to use 
  FORM-HTMLPROCESS<BR><BR><BR>Hi,<BR><BR>I need to enhance an exiting 
  workflow.<BR><BR>1. One step is to input rejection comments from the user if 
  the document<BR>is rejected.<BR>2. This step in the workflow refers to a 
  custom task which in turn calls<BR>FORM-HTMLPROCESS.<BR>3. Binding from 
  workflow passes lots of parameter that is displayed in<BR>the FORM. However in 
  the task I could not find how and where those<BR>container elements were 
  used.<BR><BR>Any 
  suggestions?<BR><BR>Regards,<BR>Manish<BR><BR><BR><BR><BR>This message is for 
  the designated recipient only and may contain privileged, proprietary, or 
  otherwise private information.&nbsp; If you have received it in error, please 
  notify the sender immediately and delete the original.&nbsp; Any other use of 
  the email by you is prohibited.<BR>-------------- next part 
  --------------<BR>An HTML attachment was scrubbed...<BR>URL: <A 
  href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20060501/97b009ac/attachment.htm">http://mailman.mit.edu/pipermail/sap-wug/attachments/20060501/97b009ac/attachment.htm</A><BR><BR>------------------------------<BR><BR>_______________________________________________<BR>SAP-WUG 
  mailing list<BR>SAP-WUG@mit.edu<BR><A 
  href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR><BR>End 
  of SAP-WUG Digest, Vol 18, Issue 
  1<BR>**************************************<BR></FONT></P></DIV></BLOCKQUOTE><p></p><p><font size=1>-------------------------------------------------------------------<br>The information contained in this message may be CONFIDENTIAL and is<br>intended for the addressee only. Any unauthorised use, dissemination of the<br>information or copying of this message is prohibited. If you are not the<br>addressee, please notify the sender immediately by return e-mail and delete<br>this message.<br>Thank you.</font size></BODY></HTML>