<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1491" name=GENERATOR></HEAD>
<BODY>
<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> </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 BANF only allowed this for bus2105 (header) when the wf is based on
bus2009 (item). This was fine if I wanted to 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 I wrote
a function module to put in 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 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> </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> </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> </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. 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>
</BODY></HTML>