<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns=3D"http://www.w3.org/TR/REC-html40" xmlns:o =3D=20
"urn:schemas-microsoft-com:office:office" xmlns:w =3D=20
"urn:schemas-microsoft-com:office:word" xmlns:st1 =3D=20
"urn:schemas-microsoft-com:office:smarttags"><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
 
 
<META content=3DWord.Document name=3DProgId>
<META content=3D"MSHTML 5.00.3314.2100" name=3DGENERATOR>
<META content=3D"Microsoft Word 10" name=3DOriginator><LINK=20
href=3D"cid:filelist.xml@01C1BB82.3275AD40" =
rel=3DFile-List><o:SmartTagType=20
name=3D"City"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTag=
Type><o:SmartTagType=20
name=3D"place"=20
namespaceuri=3D"urn:schemas-microsoft-com:office:smarttags"></o:SmartTag=
Type><!--[if gte mso 9]><xml>
 <o:OfficeDocumentSettings>
  <o:DoNotRelyOnCSS/>
 </o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:WordDocument>
  <w:DocumentKind>DocumentEmail</w:DocumentKind>
  <w:EnvelopeVis/>
  <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>
 </w:WordDocument>
</xml><![endif]--><!--[if !mso]>
<STYLE>st1\:* {
        BEHAVIOR: url(#default#ieooui)
}
</STYLE>
<![endif]-->
<STYLE>P.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
LI.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
DIV.MsoNormal {
        FONT-FAMILY: "Times New Roman"; FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; =
mso-style-parent: ""; mso-pagination: widow-orphan; =
mso-fareast-font-family: "Times New Roman"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; text-underline: single
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; text-underline: single
}
SPAN.EmailStyle17 {
        COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: =
personal-compose; mso-style-noshow: yes; mso-ansi-font-size: 10.0pt; =
mso-bidi-font-size: 10.0pt; mso-ascii-font-family: Arial; =
mso-hansi-font-family: Arial; mso-bidi-font-family: Arial
}
DIV.Section1 {
        page: Section1
}
OL {
        MARGIN-BOTTOM: 0in
}
UL {
        MARGIN-BOTTOM: 0in
}
</STYLE>
<!--[if gte mso 10]>
<style>
 /* Style Definitions */=20
 table.MsoNormalTable
        {mso-style-name:"Table Normal";
        mso-tstyle-rowband-size:0;
        mso-tstyle-colband-size:0;
        mso-style-noshow:yes;
        mso-style-parent:"";
        mso-padding-alt:0in 5.4pt 0in 5.4pt;
        mso-para-margin:0in;
        mso-para-margin-bottom:.0001pt;
        mso-pagination:widow-orphan;
        font-size:10.0pt;
        font-family:"Times New Roman";}
</style>
<![endif]--></HEAD>
<BODY lang=3DEN-US link=3Dblue style=3D"tab-interval: .5in" =
vLink=3Dpurple>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D119520718-22022002>We=20
have just implemented this, here is how we did it</SPAN></FONT><FONT=20
color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002>.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D119520718-22022002>The=20
workflow is started when the IDOC arrives, and the workflow posts the =
IDOC.=20
(That IDOC is associated with a profile not used for bulk transfer.) We =
have=20
created a method to do this.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D119520718-22022002>Then=20
extend the IDOC object with an attribute that would be your KNA1 =
object. To=20
construct this, drill into the EDIDC table, fetch the customer number, =
build the=20
object using swc_create_object. </SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002>Then...the only thing left is to test at the =
entrance=20
of the workflow if the attribute-object exists or not. If it exists, it =
means we=20
are in an extension process, if not, the workflow is creating the=20
object.</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D119520718-22022002>I am=20
exposing you our solution, but I don't know if it fits your process. =
Maybe it=20
helps...</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN =
class=3D119520718-22022002>Best=20
regards,</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002>FH</SPAN></FONT></DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#0000ff face=3DArial size=3D2><SPAN=20
class=3D119520718-22022002></SPAN></FONT>&nbsp;</DIV>
<BLOCKQUOTE style=3D"MARGIN-RIGHT: 0px">
  <DIV align=3Dleft class=3DOutlookMessageHeader dir=3Dltr><FONT =
face=3DTahoma=20
  size=3D2>-----Original Message-----<BR><B>From:</B> Adrian Clarke=20
  [mailto:Adrian_Clarke@DDSINCORP.com]<BR><B>Sent:</B> Friday, February =
22, 2002=20
  11:14 AM<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> =
Workflow=20
  Triggered by Customer Creation<BR><BR></DIV></FONT>
  <DIV class=3DSection1>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Hello=20
  All,<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">I am currently =
designing a=20
  workflow that I want to be triggered when a customer master is =
created (via an=20
  inbound IDOC) using an event triggered by a change document.<SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>This IDOC could either be =
creating a=20
  brand new customer (i.e. KNA1, KNVV, KNB1 etc...) or could just be =
extending=20
  an existing customer into a new sales area (i.e. KNVV only).<SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>I would like to have a =
different=20
  workflow triggered depending on whether it is a new customer or just =
an=20
  extension.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">The problem I am having =
is that=20
  there is only one change document object (DEBI) regardless of whether =
or not=20
  the customer is being created new or just being extended.<SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>The main table for this =
change=20
  document is always KNA1 and both change documents are type "I" for =
create.=20
  <SPAN style=3D"mso-spacerun: yes">&nbsp;&nbsp;</SPAN>In addition, =
when a=20
  customer is created, there is nothing in the "old value" and "new =
value"=20
  fields that I could use to distinguish between the two types of=20
  creation.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">I don't think it is a =
good idea to=20
  create custom change document objects, so I am trying to think of a =
good way=20
  to proceed.<SPAN style=3D"mso-spacerun: yes">&nbsp; </SPAN>Some =
thoughts I have=20
  had are:<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <OL style=3D"mso-margin-top-alt: 0in" type=3D1>
    <LI class=3DMsoNormal=20
    style=3D"mso-list: l1 level1 lfo2; tab-stops: list .5in"><FONT =
face=3DArial=20
    size=3D2><SPAN style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Create =
two events=20
    and use a check function to rule one of them =
out.<o:p></o:p></SPAN></FONT>=20
    <LI class=3DMsoNormal=20
    style=3D"mso-list: l1 level1 lfo2; tab-stops: list .5in"><FONT =
face=3DArial=20
    size=3D2><SPAN style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Don't =
use change=20
    documents and use an event created by the completion of the =
IDOC.<SPAN=20
    style=3D"mso-spacerun: yes">&nbsp; </SPAN>Same problem, but I could =
probably=20
    pass something in the container to distinguish between the =
two.<SPAN=20
    style=3D"mso-spacerun: yes">&nbsp; </SPAN><o:p></o:p></SPAN></FONT>
    <LI class=3DMsoNormal=20
    style=3D"mso-list: l1 level1 lfo2; tab-stops: list .5in"><FONT =
face=3DArial=20
    size=3D2><SPAN=20
    style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">?????<o:p></o:p></SPAN></FONT>=20
    </LI></OL>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Any other ideas?<SPAN=20
  style=3D"mso-spacerun: yes">&nbsp; </SPAN>Has anyone built a similar =
type of=20
  workflow?<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Currently on version=20
  4.0B.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p>&nbsp;</o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><FONT face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: 10pt">Thanks in=20
  advance.<o:p></o:p></SPAN></FONT></P>
  <P class=3DMsoNormal><st1:City><st1:place><FONT face=3DArial =
size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt">Adrian</SPAN></FONT></st1:place></st1:City><FONT=20
  face=3DArial size=3D2><SPAN=20
  style=3D"FONT-FAMILY: Arial; FONT-SIZE: =
10pt"><o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>