Creating Document in Background
Munday,Sherie J.
MUNDAYSJ at airproducts.com
Fri Sep 11 12:06:36 EDT 2009
Thank You Sheldon,
I guess I am going to have to jump into the deep end of the Abap
programming pool on this one. :o)
Take Care,
Sherie
-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Sheldon Oxenberg
Sent: Friday, September 11, 2009 10:04 AM
To: SAP Workflow Users' Group
Subject: Re: Creating Document in Background
Hi Sherie,
You could use an Activity step for Background processing with binding to
export attachment to workflow container element: &_ATTACH_OBJECTS&.
The Task for this step can call a synchronous business object Method
programmed to create the attachment into task container element:
_Attach_Objects.
The program in the Method is somewhat of a training/learning
experience :)
1. create attachment file (e.g. ABAP writes to report file type ALI),
2. convert file to format RAW for email (e.g. function module
SX_OBJECT_CONVERT_ALI_RAW)
3. create office document and put in a folder (e.g. function module
SO_DOCUMENT_INSERT_API1)
4. create attachment from office document (e.g. SWC_CREATE_OBJECT
attachment 'SOFM' doc_id)
5. put attachment in task container (e.g. SWC_SET_ELEMENT container
'FORMS_ATTACHMENT' attachment)
Hope all is very well for you.
Regards.
SHELDON OXENBERG
System Architect Principal Leader
LMP Technical Architect, SAP Workflow
CSC
"Munday,Sherie
J."
<MUNDAYSJ at airprod
To
ucts.com> "SAP Workflow Users' Group"
Sent by: <sap-wug at mit.edu>
sap-wug-bounces at m
cc
it.edu
Subject
Creating Document in Background
09/11/2009 07:20
AM
Please respond to
"SAP Workflow
Users' Group"
<sap-wug at mit.edu>
Hello Workflow Gurus,
I need to create an attachment to an email for a workflow. Normally, I
would insert a Create Document from Template step, and then a separate
step to convert it to an SOFM, and then simply bind the container
element as an attachment. But this time I need to create the attachment
before any dialog steps, and the WF_DOC BOT does not have a "create in
background" method, and neither does the SOFM. Any suggestions? The
document is static information. And please take notice that I am only a
"baby" programmer (extensions of BOT's, adding methods, etc).
Thank you in advance!!
Kind Regards,
Sherie
_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug
_______________________________________________
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