<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>RE: How to write out to custom tables upon create/update BUS2032?</TITLE>
</HEAD>
<BODY>
 
<P><FONT SIZE=2>Hi Ken,</FONT>
</P>
 
<P><FONT SIZE=2>I'm about to attempt the exact same thing tomorrow. You should</FONT>
<BR><FONT SIZE=2>create a new entry in the event linkage table, for object</FONT>
<BR><FONT SIZE=2>BUS2032 and event 'created' and 'changed'. Leave the 'receiver</FONT>
<BR><FONT SIZE=2>type' field blank and enter a function module in the field 'receiver</FONT>
<BR><FONT SIZE=2>FM'. You can copy the import/table parameters from FM</FONT>
<BR><FONT SIZE=2>SWW_WI_CREATE_VIA_EVENT.</FONT>
</P>
 
<P><FONT SIZE=2>This new FM will have the objkey parameter containing the sales order key </FONT>
<BR><FONT SIZE=2>of BUS2032. With this you can read VBAK etc and update your log file file.</FONT>
</P>
 
<P><FONT SIZE=2>I don't think there will be a problem updating in the function module,</FONT>
<BR><FONT SIZE=2>but we'll find out tomorrow.</FONT>
</P>
 
<P><FONT SIZE=2>regards</FONT>
</P>
 
<P><FONT SIZE=2>Philip Kisloff</FONT>
<BR><FONT SIZE=2>Deloitte Consulting</FONT>
<BR><FONT SIZE=2>Oberwil - CH</FONT>
</P>
 
<P><FONT SIZE=2>-----Original Message-----</FONT>
<BR><FONT SIZE=2>From: Rahilly, Ken [<A HREF="mailto:Ken.Rahilly@COMPAQ.COM">mailto:Ken.Rahilly@COMPAQ.COM</A>]</FONT>
<BR><FONT SIZE=2>Sent: Wednesday, February 14, 2001 5:37 PM</FONT>
<BR><FONT SIZE=2>To: SAP-WUG@MITVMA.MIT.EDU</FONT>
<BR><FONT SIZE=2>Subject: How to write out to custom tables upon create/update BUS2032?</FONT>
</P>
<BR>
 
<P><FONT SIZE=2>Good Morning All,</FONT>
</P>
 
<P><FONT SIZE=2>The background is this...</FONT>
<BR><FONT SIZE=2>&nbsp;3.1i environment.&nbsp; I am working with business object BUS2032 and have</FONT>
<BR><FONT SIZE=2>&nbsp;a standard workflow in place to provide notifications to EDI support</FONT>
<BR><FONT SIZE=2>&nbsp;administrators when inbound Purchase Orders (850s) are failing.&nbsp; Bit</FONT>
<BR><FONT SIZE=2>&nbsp;of a rookie when linking in the abap.</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp;The idea is this</FONT>
<BR><FONT SIZE=2>&nbsp;The boss just asked me the following....</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp;I want to do some reporting for cycle time, notifying me when certain</FONT>
<BR><FONT SIZE=2>&nbsp;steps have not happened within certain times.&nbsp; (EX: we received an order</FONT>
<BR><FONT SIZE=2>&nbsp;and have not sent a ship notification in over a day.) I need to do</FONT>
<BR><FONT SIZE=2>&nbsp;this by creating a custom table and writing to that table whenever an order</FONT>
<BR><FONT SIZE=2>is</FONT>
<BR><FONT SIZE=2>&nbsp;created, a PO is generated, a ship confirmation is made...From there, I</FONT>
<BR><FONT SIZE=2>&nbsp;can write an ABAP to give cycle-time reports for details.</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp;My question is this...</FONT>
<BR><FONT SIZE=2>&nbsp;Using bus2032 for an example, How do I tie an event to an abap that would</FONT>
<BR><FONT SIZE=2>&nbsp;write out a record to the new tables?&nbsp; Eventually, I would like to extend</FONT>
<BR><FONT SIZE=2>&nbsp;the knowledge to Purchase Reqs, POs and ship Confirmations,</FONT>
<BR><FONT SIZE=2>&nbsp;(BUS2009, BUS2012, BUS2015...)</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp;Any help hints or suggestions would be appreciated.</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp;Thanks,</FONT>
</P>
 
<P><FONT SIZE=2>&nbsp;-ken</FONT>
<BR><FONT SIZE=2>&nbsp;(603)437-3782</FONT>
<BR><FONT SIZE=2>&nbsp;or ken.rahilly@compaq.com</FONT>
</P>
 
</BODY>
</HTML>