<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16788" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2>Cristiana, At the end of the day a mail is a mail - I
wouldn't get hung up over selfitem.sendtaskdescription. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2>You need to create a SAP Office wrapper for your PDF
attachment - so look at the SO*API* functions and business object SOFM.
</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2>Once you have worked out how to connect the PDF to a SOFM
instance you will be able to use it for your mail step. </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2>SO_DOC_INSERT_WITH_ORIG_API1 might be
useful.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2>Regards,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2>Jocelyn </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=730534002-14012009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </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>Cristiana
D'Agosto<BR><B>Sent:</B> Wednesday, 14 January 2009 11:23 AM<BR><B>To:</B> SAP
Workflow Users' Group<BR><B>Subject:</B> [LIKELY JUNK]RE: Workflow and PDF
attachments<BR></FONT><BR></DIV>
<DIV></DIV><BR><FONT face=sans-serif size=2>Hi Jocelyn,</FONT> <BR><BR><FONT
face=sans-serif size=2>no quite there yet! </FONT><BR><BR><FONT face=sans-serif
size=2>There is a bit of information in the SDN about this subject - please find
a list of some of the stuff I used</FONT> <BR>
<P><A
href="https://www.sdn.sap.com/irj/scn/thread?messageID=6160963#6160963"><FONT
face=Arial color=blue
size=2><U>https://www.sdn.sap.com/irj/scn/thread?messageID=6160963#6160963</U></FONT></A><FONT
size=3> </FONT>
<P><A
href="https://www.sdn.sap.com/irj/scn/thread?messageID=6155106#6155106"><FONT
face=Arial color=blue
size=2><U>https://www.sdn.sap.com/irj/scn/thread?messageID=6155106#6155106</U></FONT></A><FONT
size=3> </FONT>
<P><A
href="https://www.sdn.sap.com/irj/scn/thread?messageID=4455619#4455619"><FONT
face=Arial color=blue
size=2><U>https://www.sdn.sap.com/irj/scn/thread?messageID=4455619#4455619</U></FONT></A><FONT
size=3> </FONT>
<P><A
href="https://www.sdn.sap.com/irj/scn/thread?messageID=4586358#4586358"><FONT
face=Arial color=blue
size=2><U>https://www.sdn.sap.com/irj/scn/thread?messageID=4586358#4586358</U></FONT></A><FONT
size=3> </FONT>
<P><A
href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0c139d3-3eae-2910-01a1-d253f2587b0e"><FONT
face=Arial color=blue
size=2><U>https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0c139d3-3eae-2910-01a1-d253f2587b0e</U></FONT></A><FONT
size=3> </FONT>
<P><A
href="https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29"><FONT
face=Arial color=blue
size=2><U>https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60ff6ad3-729b-2b10-6582-fedc82680a29</U></FONT></A><FONT
size=3> </FONT>
<P>
<P><FONT face=sans-serif size=2>There is a pretty good explanation from Jeff
Gebo (a webniar on sending attachments) - we at the moment are trying to 'tweak'
the code a bit so the Workflow sends the email on a SELFITEM.SENDTASKDESCRIPTION
step - i.e. we want the code to simply return the attachment and then the
workflow will use the attachment in the email step. Jeff's sends the email
from his code. </FONT>
<P><FONT face=sans-serif size=2>For one of the Forms we are using (a Transfer
Employee form), the attachment was 29KB - so not too bad at all.</FONT>
<BR><BR><FONT face=sans-serif size=2>Hope that
helps,<BR><BR>Cristiana<BR>_________________________________<BR>Cristiana
d'Agosto<BR>IBM Global Business Services<BR>Mobile: +61 417 927
224<BR>cristiana.dagosto@au1.ibm.com</FONT> <BR><BR><BR>
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD width="40%"><FONT face=sans-serif size=1><B>"Dart, Jocelyn"
<jocelyn.dart@sap.com></B> </FONT><BR><FONT face=sans-serif
size=1>Sent by: sap-wug-bounces@mit.edu</FONT>
<P><FONT face=sans-serif size=1>14/01/2009 10:39 AM</FONT>
<TABLE border=1>
<TBODY>
<TR vAlign=top>
<TD bgColor=white>
<DIV align=center><FONT face=sans-serif size=1>Please respond
to<BR>"SAP Workflow Users' Group"
<sap-wug@mit.edu></FONT></DIV></TR></TBODY></TABLE><BR></P>
<TD width="59%">
<TABLE width="100%">
<TBODY>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>To</FONT></DIV>
<TD><FONT face=sans-serif size=1>"SAP Workflow Users' Group"
<sap-wug@mit.edu></FONT>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>cc</FONT></DIV>
<TD>
<TR vAlign=top>
<TD>
<DIV align=right><FONT face=sans-serif size=1>Subject</FONT></DIV>
<TD><FONT face=sans-serif size=1>RE: [LIKELY JUNK]RE: [LIKELY
JUNK]RE: [LIKELY JUNK]Workflow and PDF
attachments</FONT></TR></TBODY></TABLE><BR>
<TABLE>
<TBODY>
<TR vAlign=top>
<TD>
<TD></TR></TBODY></TABLE><BR></TR></TBODY></TABLE><BR><BR><BR><FONT face=Arial
color=blue size=2>Akshay, Whether you can take that approach depends upon the
requirements of your customer. However at this point it is clear this is
no longer a workflow question, but rather an Adobe question - i.e. how do store
and retrieve a pdf WITH it's digital signatures. So you should try raising
the question on the SAP Interactive Forms by Adobe forum on SDN.
</FONT><BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue
size=2>Cristiana - My impression was your issue is very similar - so if you have
solved this or have found something useful on the SDN forums you might want to
discuss that with Akshay - preferably via the Adobe SDN forum.</FONT> <BR><FONT
size=3> </FONT> <BR><FONT face=Arial color=blue size=2>Regards,</FONT>
<BR><FONT face=Arial color=blue size=2>Jocelyn </FONT><BR><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>akshay.bhagwat@wipro.com<B><BR>Sent:</B> Wednesday, 14 January 2009 1:43
AM<B><BR>To:</B> sap-wug@mit.edu<B><BR>Subject:</B> [LIKELY JUNK]RE: [LIKELY
JUNK]RE: [LIKELY JUNK]Workflow and PDF attachments</FONT><FONT
size=3><BR></FONT><BR><FONT face=Arial color=blue size=2>Hi Jocelyn,</FONT>
<BR><FONT size=3> </FONT> <BR><FONT size=3> </FONT> <BR><FONT
face=Arial color=blue size=2>The requirement was a form should be sent for
approvals and this form will have to be signed digitally at every
approval.</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue
size=2>Now as you have suggested, if I have to retrieve the form filled in by
1st approver, I have a key number based on which I can retrieve the stored
pdfsource data. Only problem was that I was not able to populate the form with
the digital signature.</FONT> <BR><FONT size=3> </FONT> <BR><FONT
face=Arial color=blue size=2> So my actual doubt is related to point -4.
Displaying the PDF form based on pdfSource data- because only problem is if I
have to display the previous Digital signature as it is on the form.</FONT>
<BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue size=2>Do you
mean to say that we can just go on storing the PDF source at every approval ,
and during each approval just display the details of previous approval i.e. when
it was signed etc on the form and not the actual signature?</FONT> <BR><FONT
size=3> </FONT> <BR><FONT size=3> </FONT> <BR><FONT
size=3> </FONT> <BR><FONT face=Arial size=2>Regards</FONT> <BR><FONT
face=Arial size=2>Akshay Bhagwat</FONT> <BR><FONT face=Arial
size=2> </FONT> <BR><FONT face=Arial color=#c0c0c0 size=1>Akshay Bhagwat,
<I>Senior Specialist </I>| SAP Practice, Wipro Technologies | O:
+91-20-22933700 Ext 3608 | M: +91-9881471909 | Email:</FONT><FONT face=Arial
size=1> </FONT><A href="mailto:akshay.bhagwat@wipro.com"><FONT face=Arial
color=#808080 size=1><U>akshay.bhagwat@wipro.com</U></FONT></A><FONT face=Arial
color=#808080 size=1> | </FONT><FONT face=Arial color=#c0c0c0
size=1>Web:</FONT><FONT face=Arial color=#808080 size=1> </FONT><A
href="blocked::http://www.wipro.com/"><FONT face=Arial color=#808080
size=1><U>www.wipro.com</U></FONT></A><FONT face="Times New Roman" size=1>
</FONT><BR><FONT face=Webdings color=#008000 size=6><B>P</B></FONT><FONT
face="Times New Roman" color=#008000 size=2><B> Please do not print this email
unless it is absolutely necessary. Spread environmental awareness.</B></FONT>
<P><FONT size=3></FONT> <BR><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Dart,
Jocelyn<B><BR>Sent:</B> Monday, January 12, 2009 9:19 PM<B><BR>To:</B> SAP
Workflow Users' Group<B><BR>Subject:</B> RE: [LIKELY JUNK]RE: [LIKELY
JUNK]Workflow and PDF attachments</FONT><FONT size=3><BR></FONT><BR><FONT
face=Arial color=blue size=2>Hi Akshay, </FONT><BR><FONT face=Arial color=blue
size=2>Well if you are already storing your PDFSource data in a custom table
then surely you would just:</FONT> <BR><FONT face=Arial color=blue size=2>1. Add
a key to the custom table</FONT> <BR><FONT face=Arial color=blue size=2>2. Send
the key to workflow </FONT><BR><FONT face=Arial color=blue size=2>3. Have
workflow call the ABAP WD program passing the key</FONT> <BR><FONT face=Arial
color=blue size=2>4. Using the key look up the table and import the pdfsource in
your ABAP WD program and display it.</FONT> <BR><FONT face=Arial color=blue
size=2>5. When the user updates the form with the digital signature, reimport it
and update your custom table. </FONT><BR><FONT face=Arial color=blue size=2>6.
You could use your ABAP WD program to read data from the form to pass to the
workflow container, as well as reading the PDF in full, before closing.</FONT>
<BR><FONT face=Arial color=blue size=2>(After all workflow probably doesn't need
all the details of the digital signature - mostly it needs to know if it was
signed at all.)</FONT> <BR><FONT face=Arial color=blue size=2>This would provide
data for subsequent steps in workflow, rather than having to create an
attachment or try and get the workflow to parse the file in background.
</FONT><FONT size=3> </FONT> <BR><FONT face=Arial color=blue
size=2>Similarly if you were sending the form offline via email or uploading a
returned from via email you would need the key as well as the PDF.
</FONT><BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue size=2>The
approach would be much the same regardless of what storage area you use.
</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue
size=2>The point is to get away from thinking of workflow as the carrier of the
document. Rather workflow handles the communication needed to complete the
process. It's the ABAP WD program that accesses the PDF document. So
all you need is for the workflow and the ABAP WD to agree on some way of
uniquely identifing a document. </FONT><BR><FONT size=3> </FONT> <BR><FONT
face=Arial color=blue size=2>Please look at the Adobe tutorials on SDN.</FONT>
<BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue
size=2>Regards,</FONT> <BR><FONT face=Arial color=blue size=2>Jocelyn
</FONT><BR><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>akshay.bhagwat@wipro.com<B><BR>Sent:</B> Tuesday, 13 January 2009 12:57
PM<B><BR>To:</B> sap-wug@mit.edu<B><BR>Subject:</B> [LIKELY JUNK]RE: [LIKELY
JUNK]Workflow and PDF attachments</FONT><FONT size=3><BR></FONT><BR><FONT
face=Arial color=blue size=2>Hi Jocelyn,</FONT> <BR><FONT size=3> </FONT>
<BR><FONT face=Arial color=blue size=2>Thanks for the inputs.</FONT> <BR><FONT
face=Arial color=blue size=2>But I am not able to visualize how can I use the
retrieved data?</FONT> <BR><FONT face=Arial color=blue size=2>e.g. In my case As
this is custom application, we had created a custom table and stored the data
from PDFsource of context in custom table as Xstring. However, problem is how to
use this data for displaying again as PDF?</FONT> <BR><FONT face=Arial
color=blue size=2>Another issue is how to reproduce the digital signatures from
this data? Even though it's stored inside XSTRING ,,,</FONT> <BR><FONT
face=Arial color=blue size=2>So I thought of using the form getting manually
saved on Front end when use digitally signs it.</FONT> <BR><FONT face=Arial
color=blue size=2>Then create attachment of it - then use it for further purpose
inside workflow.</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial
color=blue size=2>Now the issue was how to create attachment in background step
of workflow.</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial
color=blue size=2>Please suggest.</FONT> <BR><FONT size=3> </FONT>
<BR><FONT size=3> </FONT> <BR><FONT size=3> </FONT> <BR><FONT
face=Arial size=2>Regards</FONT> <BR><FONT face=Arial size=2>Akshay
Bhagwat</FONT> <BR><FONT face=Arial size=2> </FONT> <BR><FONT face=Arial
color=#c0c0c0 size=1>Akshay Bhagwat, <I>Senior Specialist </I>| SAP
Practice, Wipro Technologies | O: +91-20-22933700 Ext 3608 | M: +91-9881471909 |
Email:</FONT><FONT face=Arial size=1> </FONT><A
href="mailto:akshay.bhagwat@wipro.com"><FONT face=Arial color=#808080
size=1><U>akshay.bhagwat@wipro.com</U></FONT></A><FONT face=Arial color=#808080
size=1> | </FONT><FONT face=Arial color=#c0c0c0 size=1>Web:</FONT><FONT
face=Arial color=#808080 size=1> </FONT><A
href="blocked::http://www.wipro.com/"><FONT face=Arial color=#808080
size=1><U>www.wipro.com</U></FONT></A><FONT face="Times New Roman" size=1>
</FONT><BR><FONT face=Webdings color=#008000 size=6><B>P</B></FONT><FONT
face="Times New Roman" color=#008000 size=2><B> Please do not print this email
unless it is absolutely necessary. Spread environmental awareness.</B></FONT>
<P><FONT size=3></FONT> <BR><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of </B>Dart,
Jocelyn<B><BR>Sent:</B> Monday, January 12, 2009 6:37 PM<B><BR>To:</B> SAP
Workflow Users' Group<B><BR>Subject:</B> RE: [LIKELY JUNK]Workflow and PDF
attachments</FONT><FONT size=3><BR></FONT><BR><FONT face=Arial color=blue
size=2>Hi Akshay, </FONT><BR><FONT face=Arial color=blue size=2>Ok well if that
is the scenario you might want to approach the problem in a different way.
Rather than pass attachments around, which is always a pain when you have
to convert between different formats, why not just pass a reference number ?
i.e. assign some sort of id to the form. Your actual binary
data representing the current known form would be stored somewhere in SAP.
Some applications such as SAP HCM Workforce Process Management have used
Records Management (transaction SCASE) to store the binary/XML data of the form
and then assign a GUID as the reference that is passed throughout the workflow.
Then your ABAP WD application uses the reference to read/update the pdf.
It's not particularly important where you store it from workflow's point
of view - so long as you can use your form id to find the form data.
</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial color=blue
size=2>Trying to use SOFM - which is really only intended for creating and
displaying attachments - will be very restrictive. Also passing around a
large attachment in the workflow is likely to have other implications - e.g.
sizing issues. </FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial
color=blue size=2>You might also want to look at the many Adobe tutorials on
SDN. There are various approaches to handling incoming PDF forms.
<BR>Regards,</FONT> <BR><FONT face=Arial color=blue size=2>Jocelyn</FONT>
<BR><BR>
<HR>
<FONT face=Tahoma size=2><B>From:</B> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <B>On Behalf Of
</B>akshay.bhagwat@wipro.com<B><BR>Sent:</B> Saturday, 10 January 2009 12:55
PM<B><BR>To:</B> sap-wug@mit.edu<B><BR>Subject:</B> [LIKELY JUNK]Workflow and
PDF attachments</FONT><FONT size=3><BR></FONT><BR><FONT face=Arial size=2>Hi
All,</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial size=2>I know
this topic is discussed a lot, still posting the questions as I am not able to
achieve the requirement.</FONT> <BR><FONT size=3> </FONT> <BR><FONT
face=Arial size=2>Just to elaborate the scenario, we are using Web dypnro for
ABAP to host Interactive form .</FONT> <BR><FONT face=Arial size=2>This Form in
turn triggers the workflow, as this form is to be approved using workflow
process. i.e. UWL will be used to launch the form when executing the work
items.</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial size=2>As the
form includes Digital signatures, we are not able to read the same from contexts
(e.g. using UWLs dynamic parameters such as WI_ID.) So we have decided to use
attachments i.e. send this form as an attachment inside workflow, since saved
PDF file has all the data intact.</FONT> <BR><FONT size=3> </FONT>
<BR><FONT face=Arial size=2>Now the issue is: </FONT><BR><FONT face=Arial
size=2>How this form in Webdynpro is to be saved as PDF file automatically and
then send as an attachment in workflow?</FONT> <BR><FONT size=3> </FONT>
<BR><FONT face=Arial size=2>1. I have tried using SAP Office function modules
such as SO_OBJECT_UPLOAD to create PDF files in SOFM object. However the problem
is these FM s can not be used from Webdynpro as Front end services are
unavailable.</FONT> <BR><FONT face=Arial size=2>2. Same is the issue If I use
background step for creating SOFM document so that it can be used as an
attachment.</FONT> <BR><FONT size=3> </FONT> <BR><FONT face=Arial
size=2>Can any body please suggest what approach can be taken so that from
webdynpro , attachment can be created and passed to workflow seamlessly?</FONT>
<BR><FONT size=3> </FONT> <BR><FONT face=Arial size=2>Any inputs are
appreciated.</FONT> <BR><FONT face=Arial size=2>Thanks in advance.</FONT>
<BR><FONT size=3> </FONT> <BR><FONT face=Arial size=2>Regards</FONT>
<BR><FONT face=Arial size=2>Akshay Bhagwat</FONT>
<P><FONT size=3></FONT>
<P><FONT face="Palatino Linotype" color=#008000 size=2><B>Please do not print
this email unless it is absolutely necessary. </B></FONT>
<P><FONT size=3>The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy
all copies of this message and any attachments. </FONT>
<P><FONT size=3>WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email. </FONT>
<P><FONT size=3>www.wipro.com </FONT>
<P><FONT face="Palatino Linotype" color=#008000 size=2><B>Please do not print
this email unless it is absolutely necessary. </B></FONT>
<P><FONT size=3>The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy
all copies of this message and any attachments. </FONT>
<P><FONT size=3>WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email. </FONT>
<P><FONT size=3>www.wipro.com </FONT>
<P><FONT face="Palatino Linotype" color=#008000 size=2><B>Please do not print
this email unless it is absolutely necessary. </B></FONT>
<P><FONT size=3>The information contained in this electronic message and any
attachments to this message are intended for the exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged
information. If you are not the intended recipient, you should not disseminate,
distribute or copy this e-mail. Please notify the sender immediately and destroy
all copies of this message and any attachments. </FONT>
<P><FONT size=3>WARNING: Computer viruses can be transmitted via email. The
recipient should check this email and any attachments for the presence of
viruses. The company accepts no liability for any damage caused by any virus
transmitted by this email. </FONT>
<P><FONT size=3>www.wipro.com </FONT><FONT face=Arial
size=2>_______________________________________________<BR>SAP-WUG mailing
list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></FONT>
<P></P></BODY></HTML>