<!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>Trigger events from IDoc mass processing</TITLE>
<META content="MSHTML 6.00.2800.1505" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=613295809-27072005><FONT face=Verdana
size=2>Hi,</FONT></SPAN></DIV>
<DIV><SPAN class=613295809-27072005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=613295809-27072005><FONT face=Verdana size=2>Sorry to repost
this message, but I hope somebody could clarify this issue
somewhat.</FONT></SPAN></DIV>
<DIV><SPAN class=613295809-27072005><FONT face=Verdana size=2>All help is really
appreciated.</FONT></SPAN></DIV>
<DIV><SPAN class=613295809-27072005><FONT face=Verdana
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=613295809-27072005><FONT face=Verdana size=2>Regards,
Raf</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu]<B>On Behalf Of </B>Bormans, Raf [JanBe
Extern]<BR><B>Sent:</B> Monday, 18 July 2005 11:48<BR><B>To:</B>
'sap-wug@mit.edu'<BR><B>Subject:</B> Trigger events from IDoc mass processing
<BR><BR></FONT></DIV>
<P><FONT face=Verdana size=2>Hi,</FONT> </P>
<P><FONT face=Verdana size=2>We have (custom build) IDocs processed in mass
processing (release 46C).</FONT> </P>
<P><FONT face=Verdana size=2>I want an event triggered for every correctly
posted IDoc / application object.</FONT> </P>
<P><FONT face=Verdana size=2>I have configured the process code (WE42, table
TBD52) to raise ZDPKYWPOCO.MASSINPUTFINISHED for the IDoc packet, and
ZEWMSSUBOR.YWPOCOPROCESSED for the application object.</FONT></P>
<P><FONT face=Verdana size=2>I assumed this was enough to have an event
ZEWMSSUBOR.YWPOCOPROCESSED raised for every posted application object.</FONT>
<BR><FONT face=Verdana size=2>Nota that I do fill the ALE export parameters in
the IDoc processing module</FONT> <BR><FONT face="Arial Monospaced for SAP"
size=2>
workflow_result
= c_wf_result_ok.</FONT> <BR><FONT face="Arial Monospaced for SAP"
size=2> return_variables-wf_param =
c_wf_par_processed_idocs. "(Processed_IDOCs)</FONT> <BR><FONT
face="Arial Monospaced for SAP" size=2>
return_variables-doc_number = idoc_contrl-docnum.</FONT> <BR><FONT
face="Arial Monospaced for SAP" size=2> APPEND
return_variables.</FONT> <BR><FONT face="Arial Monospaced for SAP"
size=2> return_variables-wf_param =
c_wf_par_appl_objects. "(Appl_Objects)</FONT> <BR><FONT
face="Arial Monospaced for SAP" size=2>
return_variables-doc_number = object_number.</FONT> <BR><FONT
face="Arial Monospaced for SAP" size=2> APPEND
return_variables.</FONT> </P>
<P><FONT face=Verdana size=2>However, the only event that is raised seems to
be ZDPKYWPOCO.MASSINPUTFINISHED. </FONT><BR><FONT face=Verdana size=2>This is
the mail output for the event:</FONT> <BR><FONT face=Verdana
size=2>APPL_OBJECT 000000090oSD1CLNT050ZEWMSSUBOR</FONT> <BR><FONT
face=Verdana size=2>APPL_OBJECT_LIST 000001090oSD1CLNT050ZEWMSSUBOR</FONT>
<BR><FONT face=Verdana size=2>_EVT_CREATION_DATE 000000008D20050715</FONT>
<BR><FONT face=Verdana size=2>_EVT_CREATION_TIME 000000006T170438</FONT>
<BR><FONT face=Verdana size=2>_EVT_CREATOR 000000014CUSRBORMANS</FONT>
<BR><FONT face=Verdana size=2>_EVT_ID 000000020N00000000000000721304</FONT>
<BR><FONT face=Verdana size=2>_EVT_LANGUAGE 000000001CN</FONT> <BR><FONT
face=Verdana size=2>_EVT_LOG_UPDATE 000000001CX</FONT> <BR><FONT face=Verdana
size=2>_EVT_NAME 000000032CMASSINPUTFINISHED</FONT> <BR><FONT face=Verdana
size=2>_EVT_OBJECT 000000090oSD1CLNT050ZDPKYWPOCO0000000003536123</FONT>
<BR><FONT face=Verdana size=2>_EVT_OBJKEY 000000070C0000000003536123</FONT>
<BR><FONT face=Verdana size=2>_EVT_OBJTYPE 000000010CZDPKYWPOCO</FONT>
<BR><FONT face=Verdana size=2>_EVT_RECEIVER_ID 000000090C</FONT> </P>
<P><FONT face=Verdana size=2>At least, I would have expected to see the
processed IDoc numbers in the event container. </FONT></P>
<P><FONT face=Verdana size=2>If I look at the processing form
IDOCS_PROCESS(LBD20F0B) (function module IDOC_INPUT), and deeper into the form
TRIGGER_END_EVENT(LBD20F08), I have the impression that the return parameters
of the individual IDoc processing is not taken over into the event container
(which would explain the output above).</FONT></P>
<P><FONT face=Verdana size=2>If somebody of you can confirm that my approach
using the application event (TBD52) to have an event triggered for every
application object posted, I know at least that I am looking into the correct
direction.</FONT></P>
<P><FONT face=Verdana size=2>Regards,</FONT> <BR><FONT face=Verdana
size=2>Raf</FONT> </P></BLOCKQUOTE></BODY></HTML>