<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=248473307-21072005><FONT face=Arial 
color=#0000ff size=2>I suppose you could set up your event linkage (in SWE2) 
from BUS2105 to a function module and use that function module to create the 
events per item. That wouldn't be a hack, just smart use of the available 
features&nbsp;:-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=248473307-21072005><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=248473307-21072005><FONT face=Arial 
color=#0000ff size=2>I suppose even if only one item key was&nbsp;possible 
changing it by adding a function in SWED wouldn't work since the key with item 
number would be incompatible with the object type.</FONT></SPAN></DIV>
<DIV align=left><FONT face=Arial size=2>-- </FONT></DIV>
<DIV align=left><FONT face=Arial size=2>Kjetil Kilhavn, Statoil KTJ IT 
BKS</FONT></DIV>
<DIV>&nbsp;</DIV><BR>
<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>Billy Wilde<BR><B>Sent:</B> 
21. juli 2005 01:24<BR><B>To:</B> Workflow_Group (E-mail)<BR><B>Subject:</B> 
raising multiple events from change doc<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>Hi 
All,</FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>I hope someone can 
help me with this one.</FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>I am trying to reset 
the release level (for the item)when the material group is changed on the req 
item, so it can start a new approval workflow. The current approval wf is based 
on bus2009, and each item is released individually.</FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>I set up an event in 
swec to trigger off the change document. Unfortunately the change 
object&nbsp;BANF only allowed this for bus2105 (header) when the wf is based on 
bus2009 (item). This was fine if I&nbsp;wanted to&nbsp;reset the whole req, but 
I need to reset only the item.</FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>So&nbsp;I&nbsp;wrote 
a&nbsp;function module&nbsp;to put in&nbsp;swed to change the key to bus2009, to 
allow the event to start off the item object.</FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>However, now I have 
realised that if the user changes the material group on two line items, and then 
saves it, the change document has only one header, but two line items (in table 
cdpos) that I want to have events&nbsp;raised for. But the fm in swed only 
returns one key.</FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>So, does anyone know 
how I can have two (or more) events fire from the one change 
document?</FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2>I was considering 
looping through the line items in the swed function module, and raising the 
event with <SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">SWE_EVENT_CREATE* 
or something but that does seem a bit of a hack...</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">thanks 
in advance,</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"></SPAN></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial size=2><SPAN lang=EN-US 
style="FONT-SIZE: 10pt; COLOR: black; FONT-FAMILY: Arial; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA">Bill</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=028542602-20072005><FONT face=Arial 
size=2></FONT></SPAN>&nbsp;</DIV>
<P><FONT face=Arial size=2>
<HR>
This email contains confidential information. If you have received this email in 
error, please delete it immediately, and inform us of the mistake by return 
email. Any form of reproduction, or further dissemination of this email is 
strictly prohibited.&nbsp; Also, note that the opinions expressed in this email 
are those of the author and are not necessarily those of the Fonterra 
Co-operative Group<BR></FONT><A href="http://www.fonterra.com/"><FONT face=Arial 
size=2>http://www.fonterra.com/</FONT></A><FONT face=Arial size=2> 
<HR>
</FONT>
<P></P><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>