send mail with attached objects
Raskin, Alon (Soliance)
ARaskin at cps-satx.com
Mon Feb 18 11:39:40 EST 2002
Hi Daviel,
Here is an old email that Jocelyn Dart (thanks Jocelyn!) sent me a =
while
back regarding this issue.
Regards,
Alon Raskin
Hi Alon,
There are a series of API function modules for SAPOffice that you can
use to do this. e.g. SO_DOCUMENT_INSERT_API.
You need as a minimum a folder, the document type and the document =
data.
For an object the document type is OBJ.
Fill the document_data parameter, field description with the title of =
the
document.
Fill the object_header table, add a row with object type and object key
using structure SOXOBJ. (You can specify a method - if you don't it =
will
use the default method, usually "display").
You need to put the document in a folder, if you use fm =
SO_USER_READ_API1
with user-sapname =3D their R/3 userid, it will return the folders =
(inbox,
outbox, private) for that user in the correct format. I'd suggest =
putting
it in their private folder.
To use it in workflow you'll need to include it in a method
- I'd suggest creating a subtype of SOFM and delegating it.
Then you can return the resulting document id as a SOFM object, and =
pass it
to
your sendtaskdescription step.
Regards,
Jocelyn Dart
Consultant (EBP, BBP, Ecommerce, Internet Transaction Server, Workflow)
SAP Australia
Email jocelyn.dart at sap.com <mailto:jocelyn.dart at sap.com>
Tel: +61 412 390 267
Fax: +61 2 9935 4880
-----Original Message-----
From: Raskin, Alon (Soliance) [mailto:ARaskin at cps-satx.com]
Sent: Thursday, 20 December 2001 4:45 AM
To: SAP-WUG at MITVMA.MIT.EDU
Subject: SELFITEM.SENDTASKDESCRIPTION
Hi Everyone,
I am trying to attach a business object to a mail which I am generating =
from
a workflow. I am binding the object to the ADHOC_OBJECTS but when the =
mail
is received no attachment is found. I tried binding the business object =
to
the ATTACHMENTS element but ATTACHMENTS must be of type SOFM. I tried
somehow attaching my buiness object to a SOFM object but still no luck
there.
If I change the method from SENDTASKDESCRIPTION to =
DISPLAYTASKDESCRIPTION
and bind through my object into the ADHOC_OJBECT then this works. =
However,
the workflow will not COMPLETE until the user executes the task if I =
use
DISPLAYTASKDESCRIPTION. I would much prefer to use SENDTASKDESCRIPTION.
Your assistance is appreciated.
Regards,
Alon Raskin
Workflow Advisor - Soliance
(xtn. 3183)
Alon Raskin
Workflow Advisor - Soliance=20
(xtn. 3183)
-----Original Message-----
From: Daniel Fern=E1ndez [mailto:wfdfl1975 at yahoo.es]=20
Sent: February 18 2002 10:30
To: SAP-WUG at MITVMA.MIT.EDU
Subject: send mail with attached objects
Hello All,
My name is Daniel, and I have a problem with the
method SendTaskDescription of object SELFITEM.
I can send a mail with this method but I can4t attach
a object in this mail (a invoice or a purchase order,
for example)
How can I attach a object in a simple mail ( no a
workitem)??????
Thaks a lot for yuor help,
Regards,
Daniel
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger
Comunicacisn instantanea gratis con tu gente.
http://messenger.yahoo.es
More information about the SAP-WUG
mailing list