<html>
Hello 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>
<font face="Arial Monospaced for SAP, Helvetica" size=3>
swc_get_element event_container evt_receiver_id wi_id.<br>
if sy-subrc ne 0.<br>
raise container_error.<br>
endif.<br>
<br>
</font><font size=3 color="#0000FF">** Get the workitem container<br>
</font><font size=3 color="#000000">call function
'SWW_WI_CONTAINER_READ'<br>
exporting<br>
wi_id
= wi_id<br>
tables<br>
wi_container
= wi_container<br>
exceptions<br>
container_does_not_exist = 01.<br>
<br>
if sy-subrc ne 0.<br>
raise container_error.<br>
endif.<br>
<br>
</font><font size=3 color="#0000FF">** Get the release code from the
workitem container.<br>
</font><font size=3 color="#000000"> 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<br>
</font></html>