Attatch document in mail step.
Prakashreddy Sabbu
prakashreddy.sabbu at mytecsoft.com
Mon Jun 15 03:08:47 EDT 2009
Hi Rick,
Thank you very much for your mail, I was in leave since
4 days. I will try this and get back to you for more suggestions.
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Sample, Rick
Sent: Wednesday, June 10, 2009 7:03 PM
To: SAP Workflow Users' Group
Subject: RE: Attatch document in mail step.
Yes. See SGOSSUB_REC_FB_SEND_MAIL.
This is the FM used for Subscribed. When user Subscribes to say a change
in sales order, it catches the CHANGED event, looks up who is subscribed
to this doc, then sends a Message. Standard TXT (Document, not WF or
Task).
This is a good example that anyone can kick off easily to learn a few
things.
If someone has a better one, let me know. But testing and examining this
example, is simple.
Just execute the FM in Test with and it will send you a text msg with an
attachment. This attachment will be a link to VA03 for the given objkey.
EVENT CHANGED
RECTYPE SUBSCRIBE
OBJTYPE BUS2032
OBJKEY 0300036292 <-- any sales order
EXCEPTIONS_ALLOWED
Review all the FM in the package SGOS, SO, etc. A lot of the Inbox
Office FM start with SO_*
Now, what you would need to do is hack through this example and change
to whatever it is you want to attach.
A PDF, file, other link, ... you'll get the point.
I have some other code for attaching PDF to a Task. So, not sure what
you are looking for. Text msg / task?
In many of WFs, we send more that just the txt message. We send a task.
Provides more functionality. (Depends on requirement)
I can't find a simple standard FM with interface to send a txt msg AND
attachment. So, I am going to create my own. Sometimes, just a txt msg
is all that is required, but is nice to provide a link to a Sales Order,
PO, etc. that user can click and take them directly to the Sales Order
for instance.
Let me know if this helped and feel free to ask. I am playing with that
code as we speak...
Rick Sample | Office (314) 573-5822 | Mobile (314) 952-2273 |
rick.sample at graybar.com
www.graybar.com <http://www.graybar.com/> - Graybar Works to Your
Advantage
________________________________
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Prakashreddy Sabbu
Sent: Wednesday, June 10, 2009 3:17 AM
To: SAP-WUG at mit.edu
Subject: Attatch document in mail step.
Hello Experts,
Is there any possibility to attach a document to the
mail step. If it is possible please guide me for that.
Thanks & Regards,
Prakash Reddy .S,
Associate Programmer Analyst,
My-Tec Software Private Limited
040 - 40300600 Ext : 936 (Office)
093951.46530 (Cell)
040- 40300700 (Fax)
www.mytecsoft.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20090615/b77ac93f/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 9732 bytes
Desc: image001.jpg
Url : http://mailman.mit.edu/pipermail/sap-wug/attachments/20090615/b77ac93f/attachment.jpg
More information about the SAP-WUG
mailing list