<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<meta name=3DProgId content=3DWord.Document>
<meta name=3DGenerator content=3D"Microsoft Word 9">
<meta name=3DOriginator content=3D"Microsoft Word 9">
<link rel=3DFile-List href=3D"cid:filelist.xml@01C0FFBC.7157FC20">
<!--[if gte mso 9]><xml>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:Zoom>0</w:Zoom>
<w:DocumentKind>DocumentEmail</w:DocumentKind>
<w:EnvelopeVis/>
<w:Compatibility>
<w:ForgetLastTabAlignment/>
<w:DoNotUseHTMLParagraphAutoSpacing/>
</w:Compatibility>
</w:WordDocument>
</xml><![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:16792199 0 0 0 65791 0;}
@font-face
{font-family:"Arial monospaced for SAP";
panose-1:2 11 6 9 2 2 2 3 2 4;
mso-font-charset:0;
mso-generic-font-family:modern;
mso-font-pitch:fixed;
mso-font-signature:3 0 0 0 1 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-parent:"";
margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
p.MsoAutoSig, li.MsoAutoSig, div.MsoAutoSig
{margin:0in;
margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:"Times New Roman";
mso-fareast-font-family:"Times New Roman";}
span.EmailStyle15
{mso-style-type:personal-reply;
mso-ansi-font-size:10.0pt;
mso-ascii-font-family:Arial;
mso-hansi-font-family:Arial;
mso-bidi-font-family:Arial;
color:navy;}
@page Section1
{size:8.5in 11.0in;
margin:1.0in 1.25in 1.0in 1.25in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-paper-source:0;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=3DEN-AU style=3D'tab-interval:.5in'>
<div class=3DSection1>
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>S=
usan,
(hi!!)<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><=
![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>=
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>T=
ry the
following code in the check FM. Should =
work<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><=
![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>=
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>D=
ata :
lv_fipp type swc_object.<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>S=
wc_get_element
event_container '_EVT_OBJECT' =
lv_fipp.<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><=
![if !supportEmptyParas]> <![endif]><o:p></o:p></span></font></span=
></p>
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><=
![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>=
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>Y=
ou should
now have the object which the event was raised =
for.<o:p></o:p></span></font></span></p>
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><=
![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>=
<p class=3DMsoNormal><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'>I=
f this doesn't
work then we have a problem. I am doing this in 4.6c and it seems fine. =
How is the
event raised? Can you see the Object ID in the event =
log?<o:p></o:p></span></font></span></p>
<p class=3DMsoAutoSig><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>=
<p class=3DMsoAutoSig><span class=3DEmailStyle15><font size=3D2 =
color=3Dnavy
face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:
Arial'>Regards,<o:p></o:p></span></font></span></p>
<span class=3DEmailStyle15><font size=3D2 color=3Dnavy =
face=3DArial><span
style=3D'font-size:10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial;ms=
o-fareast-font-family:
"Times New Roman";mso-ansi-language:EN-AU;mso-fareast-language:EN-US;
mso-bidi-language:AR-SA'><br clear=3Dall =
style=3D'page-break-before:always'>
</span></font></span>
<p class=3DMsoAutoSig><!--[if supportFields]><span =
class=3DEmailStyle15><font=20
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:
12.0pt;font-family:Arial'><span =
style=3D'mso-element:field-begin'></span><span=20
style=3D"mso-spacerun: yes">=A0</span>AUTOTEXTLIST \s "E-mail =
Signature" <span=20
style=3D'mso-element:field-separator'></span></span></font></span><![end=
if]--><font
color=3Dnavy><span style=3D'color:navy'>Alon Raskin</span></font><font =
color=3Dnavy><span
style=3D'color:navy;mso-color-alt:windowtext'><o:p></o:p></span></font><=
/p>
<p class=3DMsoAutoSig><font size=3D3 color=3Dnavy face=3D"Times New =
Roman"><span
style=3D'font-size:12.0pt;color:navy'>Workflow Advisor - Soliance =
</span></font><font
color=3Dnavy><span =
style=3D'color:navy;mso-color-alt:windowtext'><o:p></o:p></span></font><=
/p>
<p class=3DMsoNormal><!--[if supportFields]><span =
class=3DEmailStyle15><font=20
size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:10.0pt;mso-bidi-font-size:
12.0pt;font-family:Arial'><span =
style=3D'mso-element:field-end'></span></span></font></span><![endif]-->=
<span
class=3DEmailStyle15><font size=3D2 color=3Dnavy face=3DArial><span =
style=3D'font-size:
10.0pt;mso-bidi-font-size:12.0pt;font-family:Arial'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></span></p>=
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D2 =
color=3Dblack
face=3DTahoma><span =
style=3D'font-size:10.0pt;font-family:Tahoma;color:black'>-----Original
Message-----<br>
<b><span style=3D'font-weight:bold'>From:</span></b> Susan R. Keohan
[mailto:skeohan@MIT.EDU]<br>
<b><span style=3D'font-weight:bold'>Sent:</span></b> June 28 2001 =
10:16<br>
<b><span style=3D'font-weight:bold'>To:</span></b> =
SAP-WUG@MITVMA.MIT.EDU<br>
<b><span style=3D'font-weight:bold'>Subject:</span></b> FIPP Events - =
Check FMs,
and more</span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
face=3D"Times New Roman"><span
style=3D'font-size:12.0pt'><![if =
!supportEmptyParas]> <![endif]><o:p></o:p></span></font></p>
<p class=3DMsoNormal style=3D'margin-left:.5in'><font size=3D3 =
color=3Dblack
face=3D"Times New Roman"><span style=3D'font-size:12.0pt;color:black'>He=
llo
Workflow-ers,<br>
<br>
We are running on 4.6c. We have three workflows which should get =
kicked
off when an FI parked document (Object FIPP, event CREATED) is =
created. Currently,
we use check function modules to allow the correct workflow to start =
based on
document type. However, based on recent mail to this list on this =
topic,
I have decided to implement a Receiver Type FM - essentially the same =
code, but
packaged into one receiver FM.<br>
<br>
My question is this... I use an import from memory to get the =
document
(the export to memory is done in a user-exit) , then, if that fails, I =
try to
read the container, and if that fails, I try to read the database =
using
the event object. When testing, I can make the container read and =
the
database read methods work. However, in real life, only the =
import from
memory succeeds. So, why do the container read and the database =
read fail
? What are the implications if I rely strictly on the import from =
memory
to retrieve the document number ? <br>
<br>
Many of the other SAP-delivered Check FMs and Receiver Type FMs get the =
data
necessary by reading the event container, then calling =
SWW_WI_CONTAINER_READ
(an example of ME_REL_CHECK_EVENT_PARAM follows, and I do know =
that this
FM is not related to FIPP).<br>
<br>
</span></font><font color=3Dblack face=3D"Arial monospaced for =
SAP"><span
style=3D'font-family:"Arial monospaced for SAP";color:black'>
swc_get_element event_container evt_receiver_id wi_id.<br>
if sy-subrc ne 0.<br>
raise container_error.<br>
endif.<br>
<br>
</span></font><font color=3Dblue><span style=3D'color:blue'>** Get the =
workitem
container<br>
</span></font><font color=3Dblack><span style=3D'color:black'>call =
function
'SWW_WI_CONTAINER_READ'<br>
exporting<br>
wi_id &=
nbsp;
=3D wi_id<br>
tables<br>
wi_container =
=3D wi_container<br>
exceptions<br>
=
container_does_not_exist
=3D 01.<br>
<br>
if sy-subrc ne 0.<br>
raise container_error.<br>
endif.<br>
<br>
</span></font><font color=3Dblue><span style=3D'color:blue'>** Get the =
release code
from the workitem container.<br>
</span></font><font color=3Dblack><span =
style=3D'color:black'>swc_get_element
wi_container 'RELEASECODE' wi_release_code.<br>
<br>
Any insight into this phenomenom will be appreciated. Of course, I want =
to
build the most robust receiver type FM possible. That's why I have used =
the
three methods described above, but if two of them always fail, I may as =
well
not implement them.<br>
<br>
Cheers,<br>
Sue</span></font><font color=3Dblack><span =
style=3D'color:black;mso-color-alt:windowtext'><o:p></o:p></span></font>=
</p>
</div>
</body>
</html>