<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:v =
"urn:schemas-microsoft-com:vml" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word" xmlns:m =
"http://schemas.microsoft.com/office/2004/12/omml"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3562" name=GENERATOR><!--[if !mso]>
<STYLE>v\:* {
        BEHAVIOR: url(#default#VML)
}
o\:* {
        BEHAVIOR: url(#default#VML)
}
w\:* {
        BEHAVIOR: url(#default#VML)
}
.shape {
        BEHAVIOR: url(#default#VML)
}
</STYLE>
<![endif]-->
<STYLE>@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.0in 1.0in 1.0in; }
P.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
LI.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
DIV.MsoNormal {
        FONT-SIZE: 11pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Calibri","sans-serif"
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
P.MsoAcetate {
        FONT-SIZE: 8pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
LI.MsoAcetate {
        FONT-SIZE: 8pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
DIV.MsoAcetate {
        FONT-SIZE: 8pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Tahoma","sans-serif"; mso-style-priority: 99; mso-style-link: "Balloon Text Char"
}
SPAN.BalloonTextChar {
        FONT-FAMILY: "Tahoma","sans-serif"; mso-style-priority: 99; mso-style-link: "Balloon Text"; mso-style-name: "Balloon Text Char"
}
SPAN.EmailStyle19 {
        COLOR: windowtext; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal
}
SPAN.EmailStyle20 {
        COLOR: #1f497d; FONT-FAMILY: "Calibri","sans-serif"; mso-style-type: personal-reply
}
.MsoChpDefault {
        FONT-SIZE: 10pt; mso-style-type: export-only
}
DIV.Section1 {
        page: Section1
}
</STYLE>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2>Hey Prakash,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009></SPAN><SPAN
class=406343914-16062009><FONT face=Arial color=#0000ff size=2>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2>Sounds like you could do one of a few things. (That
come to mind at the moment)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2>Create a background task before your 'Send Task' step to
attach PDF to WF, then just bind the attachment as discussed WF->Task.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009>Or, create a BG task and
attach the PDF and send from the BG step. </SPAN></DIV></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2>My code is slightly different. I get a PDF from Trip
BUS2089. See PTRM_WEB_FORM_PDF_GET.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2>I get my PDF file and used some examples from
(</FONT></SPAN><SPAN class=406343914-16062009><FONT face=Arial color=#0000ff
size=2>Include MP56TF1050 Form PB0_1050) to achieve what I needed.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=406343914-16062009><FONT face=Arial
color=#0000ff size=2>When you have your PDF, from <file? whatever> just
use SAP_WAPI_ATTACHMENT_ADD and vola! You have you PDF attached to Task.
</FONT></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=406343914-16062009><FONT face=Arial color=#0000ff size=2>All
this d</FONT></SPAN><FONT face=Arial color=#0000ff size=2><SPAN
class=406343914-16062009>epends on the requirement, developer's level of
expertise, admins ability to 'see' what you are doing to debug, etc. etc. etc.
Too many unknowns.</SPAN></DIV></FONT>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=406343914-16062009></SPAN></FONT><FONT face=Arial color=#0000ff
size=2><SPAN class=406343914-16062009></SPAN></FONT><FONT face=Arial
color=#0000ff size=2></FONT> </DIV><SPAN
style="FONT-SIZE: 8pt; COLOR: #3399cc; FONT-FAMILY: Arial"><SPAN
style="FONT-WEIGHT: bold; COLOR: #000000">Rick Sample</SPAN> <SPAN
style="COLOR: #000000">| </SPAN>Office (314) 573-5822<SPAN
style="COLOR: #000000"> | </SPAN>Mobile (314) 952-2273<SPAN
style="COLOR: #000000"> | </SPAN><A
href="mailto:rick.sample@graybar.com">rick.sample@graybar.com</A> <BR><A
href="http://www.graybar.com/" target=_BLANK>www.graybar.com</A> - <I>Graybar
Works to Your Advantage</I> </SPAN>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Prakashreddy
Sabbu<BR><B>Sent:</B> Tuesday, June 16, 2009 12:44 AM<BR><B>To:</B> SAP Workflow
Users' Group<BR><B>Subject:</B> RE: Attatch document in mail
step.<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV class=Section1>
<P class=MsoNormal><SPAN style="COLOR: #1f497d">Hi Rick,<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="COLOR: #1f497d">
Can you send me the other process for attaching PDF to task. My client is not
yet confirmed with the requirement and as of now they asked me to check all the
possibilities to attach a PDF file in mail step. <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN style="COLOR: #1f497d"><o:p> </o:p></SPAN></P>
<DIV>
<DIV
style="BORDER-RIGHT: medium none; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; PADDING-LEFT: 0in; PADDING-BOTTOM: 0in; BORDER-LEFT: medium none; PADDING-TOP: 3pt; BORDER-BOTTOM: medium none">
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>Sample, Rick<BR><B>Sent:</B> Wednesday, June 10, 2009 7:03 PM<BR><B>To:</B>
SAP Workflow Users' Group<BR><B>Subject:</B> RE: Attatch document in mail
step.<o:p></o:p></SPAN></P></DIV></DIV>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Yes. See
SGOSSUB_REC_FB_SEND_MAIL. </SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">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). <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'"> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">This is
a good example that anyone can kick off easily to learn a few things.
</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">If
someone has a better one, let me know. But testing and examining this example,
is simple. </SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"> <o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">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.</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">EVENT
CHANGED
<BR>RECTYPE
SUBSCRIBE
<BR>OBJTYPE
BUS2032
<BR>OBJKEY
0300036292 <-- any sales
order
<BR>EXCEPTIONS_ALLOWED
</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Review
all the FM in the package SGOS, SO, etc. A lot of the Inbox Office FM start with
SO_*<o:p></o:p></SPAN></P>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'"> <o:p></o:p></SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Now,
what you would need to do is hack through this example and change to whatever it
is you want to attach. </SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">A PDF,
file, other link, ... you'll get the point. </SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">I have
some other code for attaching PDF to a Task. So, not sure what you are looking
for. Text msg / task?</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">In many
of WFs, we send more that just the txt message. We send a task. Provides more
functionality. (Depends on requirement)</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">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.
</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 10pt; COLOR: blue; FONT-FAMILY: 'Arial','sans-serif'">Let me
know if this helped and feel free to ask. I am playing with that code as we
speak...</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"> <o:p></o:p></SPAN></P></DIV>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"> <o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><B><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">Rick
Sample</SPAN></B><SPAN
style="FONT-SIZE: 8pt; COLOR: #3399cc; FONT-FAMILY: 'Arial','sans-serif'">
</SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'">|
</SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: #3399cc; FONT-FAMILY: 'Arial','sans-serif'">Office
(314) 573-5822</SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'"> |
</SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: #3399cc; FONT-FAMILY: 'Arial','sans-serif'">Mobile
(314) 952-2273</SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: black; FONT-FAMILY: 'Arial','sans-serif'"> |
</SPAN><SPAN
style="FONT-SIZE: 8pt; COLOR: #3399cc; FONT-FAMILY: 'Arial','sans-serif'"><A
href="mailto:rick.sample@graybar.com">rick.sample@graybar.com</A> <BR><A
href="http://www.graybar.com/" target=_BLANK????>www.graybar.com</A> -
<I>Graybar Works to Your Advantage</I> </SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P>
<DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"> <o:p></o:p></SPAN></P></DIV>
<P class=MsoNormal><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p> </o:p></SPAN></P>
<DIV class=MsoNormal style="TEXT-ALIGN: center" align=center><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'">
<HR align=center width="100%" SIZE=2>
</SPAN></DIV>
<P class=MsoNormal style="MARGIN-BOTTOM: 12pt"><B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">From:</SPAN></B><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Tahoma','sans-serif'">
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>Prakashreddy Sabbu<BR><B>Sent:</B> Wednesday, June 10, 2009 3:17
AM<BR><B>To:</B> SAP-WUG@mit.edu<BR><B>Subject:</B> Attatch document in mail
step.</SPAN><SPAN
style="FONT-SIZE: 12pt; FONT-FAMILY: 'Times New Roman','serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal>Hello Experts,<o:p></o:p></P>
<P
class=MsoNormal>
Is there any possibility to attach a document to the <B>mail step</B>. If it is
possible please guide me for that.<o:p></o:p></P>
<P class=MsoNormal><o:p> </o:p></P>
<P class=MsoNormal>Thanks & Regards,<o:p></o:p></P>
<P class=MsoNormal>Prakash Reddy .S,<o:p></o:p></P>
<P class=MsoNormal>Associate Programmer Analyst,<o:p></o:p></P>
<P class=MsoNormal>My-Tec Software Private Limited<o:p></o:p></P>
<P class=MsoNormal>040 - 40300600 Ext : 936 (Office)<SPAN
style="FONT-FAMILY: 'Arial','sans-serif'"><o:p></o:p></SPAN></P>
<P class=MsoNormal>093951.46530 (Cell)<o:p></o:p></P>
<P class=MsoNormal>040- 40300700 (Fax)<o:p></o:p></P>
<P class=MsoNormal><SPAN style="COLOR: navy"><IMG id=Picture_x0020_1 height=55
alt=cid:image002.jpg@01C84970.63EADBC0 src="cid:406343914@16062009-16DB"
width=177 border=0><o:p></o:p></SPAN></P>
<P class=MsoNormal><B><SPAN lang=EN-IN style="COLOR: #00b050"><A
href="http://www.mytecsoft.com">www.mytecsoft.com</A><o:p></o:p></SPAN></B></P>
<P class=MsoNormal><o:p> </o:p></P></DIV></BODY></HTML>