<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: Event trigger in inbound IDoc processing</TITLE>
<META content="MSHTML 5.00.3103.1000" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=495252119-22082001>Thanks
a lot Darlene, </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=495252119-22082001>I
indeed never thought of using these events triggered by ALE</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=495252119-22082001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=495252119-22082001>Because I need a field which is available in an IDoc
segment, and not the IDoc number, I'll have to find a way of getting the correct
object key available (without having to read the IDoc I hope). Maybe it is
even possible to give additional events back to the ALE layer (it is a non
standard IDoc, so I have full control to the processing process) I'll try
those possibilities out tomorrow morning.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=495252119-22082001></SPAN></FONT> </DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=495252119-22082001>Greets, Raf</SPAN></FONT></DIV>
<DIV> </DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV align=left class=OutlookMessageHeader dir=ltr><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Benson, Darlene
[mailto:darlene.benson@sourcenetsolutions.com]<BR><B>Sent:</B> woensdag 22
augustus 2001 19:32<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B>
Re: Event trigger in inbound IDoc processing<BR><BR></DIV></FONT>
<P><FONT size=2>Hi Raf,</FONT> </P>
<P><FONT size=2>We are currently doing something similar to what you are
trying to do. What I have done is use the event that gets raised form
the processing of the idoc to trigger a task for which I have created method
to do what I need it to do. For example my triggering event for the task
is IDPKINVOIC.MASSINPUTFINISHED. Because I needed to use the document
number that was created by the idoc I had to put my code outside of the FM
that processes the idoc so that the tables would already be updated. I
hope this helps even a little.</FONT></P>
<P><FONT size=2>Darlene</FONT> </P>
<P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From:
Bormans, Raf [<A
href="mailto:Raf.Bormans@thevisionweb.be">mailto:Raf.Bormans@thevisionweb.be</A>]</FONT>
<BR><FONT size=2>Sent: Wednesday, August 22, 2001 8:57 AM</FONT> <BR><FONT
size=2>To: SAP-WUG@MITVMA.MIT.EDU</FONT> <BR><FONT size=2>Subject: Event
trigger in inbound IDoc processing</FONT> </P><BR>
<P><FONT size=2>Hi,</FONT> </P>
<P><FONT size=2>We have an inbound IDoc processed by a function module. In
this processing,</FONT> <BR><FONT size=2>an object is created (entry written
on a table). On this object, I want to</FONT> <BR><FONT size=2>trigger an
event to start a workflow (after the update).</FONT> </P>
<P><FONT size=2>Because the object does not exist before the end of the IDoc
processing</FONT> <BR><FONT size=2>(after the commit performed by the ALE
layer), I see two possibilities:</FONT> </P>
<P><FONT size=2>[1] trigger the event using the function module
SWE_EVENT_CREATE in a form,</FONT> <BR><FONT size=2>called as PERFORM ... ON
COMMIT</FONT> </P>
<P><FONT size=2>[2] trigger the event using the function module</FONT>
<BR><FONT size=2>SWE_EVENT_CREATE_FOR_UPD_TASK</FONT> </P>
<P><FONT size=2>I am not sure that using solution [1], the object is already
created at the</FONT> <BR><FONT size=2>time the event is raised. Concerning
solution [2], the update of the object</FONT> <BR><FONT size=2>is not done in
update task (because of IDoc inbound processing), so I am not</FONT> <BR><FONT
size=2>sure I can use this function module.</FONT> </P>
<P><FONT size=2>Anybody can help me out?</FONT> </P>
<P><FONT size=2>Thanks, Raf</FONT> </P></BLOCKQUOTE></BODY></HTML>