SELFITEM.SENDTASKDESCRIPTION

Raskin, Alon (Soliance) ARaskin at cps-satx.com
Thu Dec 20 08:41:43 EST 2001


I often wonder where we would be without you Jocelyn.
 
Thanks so much.
 
Alon Raskin
Workflow Advisor - Soliance
(xtn. 3183)
 
 -----Original Message-----
From:   Dart, Jocelyn [mailto:jocelyn.dart at sap.com]
Sent:   December 19 2001 5:43
To:     SAP-WUG at MITVMA.MIT.EDU
Subject:        Re: SELFITEM.SENDTASKDESCRIPTION
 
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 = 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)
 


More information about the SAP-WUG mailing list