Attachment to Workitem

Susan R. Keohan skeohan at mit.edu
Mon Jun 23 11:32:49 EDT 2003


Hi folks,
 
I know there has been a lot of talk about attachments lately, so please excuse me if I go over
ground that has already been covered.
 
I am on 4.6c.  I have a custom approval task, that when the user rejects the object (Invoice), they
are made to enter a rejection reason. I capture this text, and in my method, I call
SWL_WI_NOTE_CREATE_WITH_TABLE, passing in the workitem ID and the text.  A later step in the
workflow is to go back to the initiator and allow them to display the rejection reason in the
attachment.
 
Sounds OK so far ?  Here's the hitch.  Sometimes, and I cannot find a logicial reason why, the
attachment does not come back to the initiator.  It is not in the binding to that step.  The
attachment does exist, I can see it in the container at the parent-level workitem, but oddly enough,
there are TWO container elements called 'attachment' and the first one is blank.  So, if you try to
display the attachment at the parent level workitem, you get the message 'No attachments exist'.
 
Other times the attachment goes along just fine.  The workflow initiator gets to see it in their
workitem preview screen and to double-click on it to read the text.
 
There is nothing in OSS about this FM having problems.  It is not returning any exceptions, as I
trap for those (also, again, the attachment is in the container for the parent workitem).
 
My user is very discouraged at this point, as am I.  Any assistance would be appreciated.
 
--
Susan R. Keohan
SAP Workflow Developer
MIT Lincoln Laboratory
244 Wood Street
LI-200
Lexington, MA. 02420
781-981-3561
skeohan at mit.edu
 


More information about the SAP-WUG mailing list