Attachment non passed to mail-task

Mark Pyc mark.pyc at gmail.com
Mon May 9 14:03:54 EDT 2005


G'day Luis,

1. All SOFM attachments make it automatically, but an object is not so
easily attached to mail. An object is not something you can just open
and read. There are various choices, but I don't think you'll get an
SAP office document (mail) to accept an object reference as an
attachment. It is possible through FM calls to make an SAP mail
"executable" (like the WF Admin error messages), the function of which
would be to call the display method of your object (but that's not
quite the same). Otherwise you need to format the mail to contain the
relevant info from the object.

2. If you're binding into a WF event I would try to have an
appropriate dedicated container element - purely for style and
clarity. What you may be missing in this case is a call to
SWC_CONTAINER_TO_PERSISTENT. You can't pass object runtime references
via such function modules. So once you've filled the container and
prior to raising the event, set the container to persistent.

3. Wrap all the logic needed in a Z function module and call it from
the BADI. There maybe an answer to the problem that lets you do it in
the BADI, but this will work.

Have fun,
Mark

On 5/4/05, sap.workflow at icm.it <sap.workflow at icm.it> wrote:
> Hi all,
> i'm developing on 4.6B, patch level32
> I've the following questions, can someone help me?
> 
> 1. After a user decision (custom) I send a mail to sapoffice Inbox, using
>   SELFITEM.SENDTASKDESCRIPTION.
> 
> The receiver of this mail can see all the attachments previously created,
> but not the standard attachment of the BO I'm using.
> I've read that the attachments are passed automatically, or should I do
> some binding between WF and task?
> The element _WI_Object_Id of the task has object type TS.
> 
> 2.  how can I pass an other object when starting my workflow with f.m
> SWE_EVENT_CREATE_IN_UPD_TASK?.
> data: object1 type swc_object.
>  swc_container l_cont.
>  swc_create_container l_cont.
> objkey  = '2222'.
> swc_create_object object1 'BKPF' objkey.
>  SWC_SET_ELEMENT l_cont 'ATTACH' object1.
> 
> Is it correct?
> 
> 3. I have to use the above instructions in a BADI, but I can't declare
> <CNTN01>, and there isn't <swfCNTN01>.
> 
> Ty,
> Luis.
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>



More information about the SAP-WUG mailing list