<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.3020" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2>Sharath,</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2> Try the
following:</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2></FONT> </DIV>
<DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=2><FONT
face="Bookman Old Style"><FONT color=#0000ff><STRONG><SPAN
style="mso-spacerun: yes"> </SPAN>document-objtp =
'EXT'.</STRONG></FONT></FONT></FONT></P>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT size=2><FONT
face="Bookman Old Style"><FONT color=#0000ff><STRONG><SPAN
style="mso-spacerun: yes"> </SPAN>document-folrg =
'B'.</STRONG></FONT></FONT></FONT></P></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2>and:</FONT></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Bookman Old Style"><FONT color=#0000ff><FONT size=2>In Function
Call </FONT><FONT
size=2><STRONG>'SO_DOCUMENT_REPOSITORY_MANAGER'</STRONG></FONT></FONT></FONT></DIV>
<DIV>
<P class=MsoPlainText style="MARGIN: 0in 0in 0pt"><FONT
face="Bookman Old Style"><FONT color=#0000ff><FONT size=2><SPAN
style="mso-spacerun: yes"> </SPAN>EXPORT</FONT><FONT
size=2><SPAN style="mso-spacerun: yes"> M</SPAN>ethod<SPAN
style="mso-spacerun: yes"> </SPAN><STRONG>'GETCONTENTFROMFILE'</STRONG></FONT></FONT></FONT></P></DIV>
<DIV><FONT face="Bookman Old Style" color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face="Bookman Old Style" size=2><FONT color=#0000ff>Don't forget to
create the SOFM Obj. if binding it to the WF: <SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><FONT
face="Book Antiqua"><STRONG>swc_create_object v_result_object 'SOFM' <FONT
face="Bookman Old Style">document</FONT>.</STRONG></FONT></SPAN></FONT></FONT></DIV>
<DIV><BR>Jeffrey A. Rappaport<BR>Business Workflow, LLC<BR>Voice: (732)
355-0123<BR>Fax: (509) 757-4144<BR>Email: <A
href="mailto:Jeff@Business-Workflow.com">Jeff@Business-Workflow.com</A><BR>Web:
<A href="http://www.Business-Workflow.com">www.Business-Workflow.com</A></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=ksharath77@yahoo.com href="mailto:ksharath77@yahoo.com">Sharath
Chandra Kotla</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=sap-wug@mit.edu
href="mailto:sap-wug@mit.edu">SAP Workflow Users' Group</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, December 28, 2006 10:53
AM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> RE: workflow
attachments-Urgent</DIV>
<DIV><BR></DIV>
<DIV><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Jeffrey,<o:p></o:p></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Thank you very much for
the reply. I tried the steps you suggested.<o:p></o:p></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I was able to get the
folder information. But I didn't see any thing in ‘attachments’ parameter
in debug mode. Here is the code, which I am trying. Am I missing any
thing in the parameters.<o:p></o:p></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"></SPAN> </DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">It is very
urgent...appreciate any help.<o:p></o:p></SPAN></DIV>
<DIV><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">data :
g_document LIKE
sood4,
<BR> <SPAN
style="mso-spacerun: yes"> </SPAN>g_header_data
LIKE
sood2.
<BR>CONSTANTS: ou_fol LIKE sofh-folrg VALUE
'O',
<BR> c_objtp LIKE
g_document-objtp VALUE
'RAW',
<BR> c_file_ext
LIKE g_document-file_ext VALUE
'pdf'. <BR>data:
l_folder_id LIKE
sofdk,
<BR> <SPAN
style="mso-spacerun: yes"> </SPAN>g_authority LIKE
sofa-usracc,
<BR> <SPAN
style="mso-spacerun: yes"> </SPAN>HEADER_MAIL TYPE
SO_OBJ_DES.
<BR>data: lt_attachments LIKE STANDARD TABLE OF sood5 WITH HEADER LINE,
<BR> <SPAN style="mso-spacerun: yes">
</SPAN><SPAN style="mso-spacerun: yes"> </SPAN>LT_BODY_EMAIL LIKE
STANDARD TABLE OF SOLI with header line. <BR>DATA
CONTENTS_BIN LIKE STANDARD TABLE OF SOLISTI1 with header line. <BR
style="mso-special-character: line-break"><BR
style="mso-special-character: line-break"><o:p></o:p></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">lt_body_email-line =
'Hello'.
<BR>append
lt_body_email.
<BR style="mso-special-character: line-break"><BR
style="mso-special-character: line-break"><o:p></o:p></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><SPAN
style="mso-spacerun: yes"></SPAN><o:p></o:p></SPAN> </DIV>
<DIV style="MARGIN-BOTTOM: 12pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> CALL FUNCTION
'YREAD_IMAGE' <BR>
EXPORTING
<BR>
url
= File
Path <BR>
tables
<BR>
objhex =
LT_OBJHEX. ( I am able to read the data in binary
format)
<BR>IF sy-subrc =
0.
<BR> hex_to_cont LT_OBJHEX CONTENTS_BIN. (Changing the
format)<o:p></o:p></SPAN></DIV>
<DIV style="MARGIN-BOTTOM: 12pt"><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><BR> CALL FUNCTION
'SO_FOLDER_ROOT_ID_GET' <BR>
EXPORTING
<BR>
owner =
sy-uname
<BR>
region =
ou_fol
<BR>
IMPORTING
<BR>
folder_id =
l_folder_id
<BR>
EXCEPTIONS
<BR>
OTHERS =
5.
<BR> if sy-subrc =
0.
<BR> CLEAR:
g_document.
<BR> g_document-foltp =
l_folder_id-foltp.
<BR> g_document-folyr =
l_folder_id-folyr.
<BR> g_document-folno =
l_folder_id-folno.
<BR> g_document-objtp =
c_objtp.
<BR> g_document-objdes =
'Attachment'.
<BR> g_document-file_ext =
c_file_ext.
<BR> g_header_data-objdes =
header_mail.
<BR> CALL FUNCTION
'SO_DOCUMENT_REPOSITORY_MANAGER'
<BR>
EXPORTING
<BR>
method =
'SAVE'
<BR>
office_user =
sy-uname
<BR>
IMPORTING
<BR>
authority =
g_authority
<BR>
TABLES
<BR>
objcont = CONTENTS_BIN
"lt_body_email
<BR>
attachments =
lt_attachments
<BR>
CHANGING
<BR>
document =
g_document
<BR>
header_data =
g_header_data
<BR>
EXCEPTIONS
<BR>
OTHERS =
1.
<o:p></o:p></SPAN></DIV>
<DIV><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> <o:p></o:p></SPAN></DIV>
<DIV><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"> When I debug the
method I didn’t see any thing in ‘lt_attachments’<o:p></o:p></SPAN></DIV>
<DIV><FONT face="Arial Unicode MS"><FONT
size=3> <o:p></o:p></FONT></FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT size=3><FONT
face="Times New Roman"> thanks,</FONT></FONT></DIV>
<DIV class=MsoNormal style="MARGIN: 0in 0in 0pt"><FONT face="Times New Roman"
size=3>Sharath.</FONT></DIV>
<DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR><BR><B><I>"Jeffrey A. Rappaport"
<Jeff@business-workflow.com></I></B> wrote:</DIV></DIV>
<BLOCKQUOTE class=replbq
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Sharath,<BR><BR>How
I've done it in the past is:<BR><BR>1) Create the SAP Folder for an
Attachment calling FM: SO_FOLDER_ROOT_ID_GET.<BR><BR>2) Convert the File to
an SAP Office Doc calling FM:<BR>SO_DOCUMENT_REPOSITORY_MANAGER.<BR><BR>3)
Attach the the Doc to the WF calling FM: SWL_WI_NOTE_CREATE.<BR><BR>After
the Doc is attached to the WF it can be passed to any Send email
Step.<BR><BR>Jeffrey A.
Rappaport<BR>www.Business-Workflow.com<BR><BR><BR>> Steve,<BR>> Thanks
for the reply. SOFM->'Create' method is dialog method.I need to<BR>>
do it in a background method.<BR>> Here I am trying to incldue more
details:client is having a function<BR>> module which gives the contents
of PDF file(Invoice Scanned docuement)<BR>> in RAW format(Data Type
SOLIX_TAB).<BR>> In my workflow I need to create a PDF attachment before
my the decision<BR>> step. This file should be attached to decision
step.<BR>><BR>> we are using 'SO_NEW_DOCUMENT_ATT_SEND_API1'. to send
to Outlook email<BR>> and SAP email.<BR>> It is workong fine for out
look but not for SAP email.<BR>> is there any way I can do it and create
a SOFM object and use<BR>> _attach_objects in workflow.<BR>><BR>> 2
nd way:<BR>> How to insert this image document into BUS2081 with 'Key'.
Even this<BR>> will solve my issue.<BR>> If I can do this workflow
approver can open the scanned document from<BR>> MIR4 and can see
Attachments.<BR>><BR>><BR>> This is the major difficulty that I am
facing now...I appreciate any<BR>> help in this
regard....<BR>><BR>> thanks,<BR>> Sharath.<BR>><BR>><BR>>
"Stevens, Seth" <SETH.STEVENS@ANADARKO.COM>wrote:<BR>>
Sharath,<BR>><BR>> This can be done by creating a method that reads
the binary for the file<BR>> and uses the create method of SOFM to
generate the attachment. Pass the<BR>> attachment(s) back to the workflow
and bind it to the &_ATTACH_OBJECTS&<BR>> container
element.<BR>><BR>> I'm sure there are other ways to do this but this
one seems to work for<BR>> us.<BR>><BR>> Thanks,<BR>>
Seth<BR>><BR>><BR>> ---------------------------------<BR>> From:
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<BR>>
Of Sharath Chandra Kotla<BR>> Sent: Tuesday, December 19, 2006 10:59
PM<BR>> To: sap-wug@mit.edu<BR>> Subject: workflow
attachments<BR>><BR>><BR>><BR>> Hi All,<BR>> Could any one
let me know how to create an attachment in a back ground<BR>> step and
send it as an attachment to User Decision step.Currently I am<BR>> able
to download PDF file into raw or string data.<BR>><BR>> I am thinking
to create an SOFM object and set it as an attachment.<BR>> please let me
know if I am doing correct.I appreciate any help if any<BR>> one has
already done this.<BR>><BR>><BR>> thanks,<BR>>
Sharath.<BR>><BR>><BR>>
__________________________________________________<BR>> Do You
Yahoo!?<BR>> Tired of spam? Yahoo! Mail has the best spam protection
around<BR>> http://mail.yahoo.com<BR>> *Please note my E-Mail Address
has changed. Please<BR>> update your contact
list*<BR>><BR>><BR>><BR>><BR>>
---------------------------------<BR>><BR>><BR>><BR>> Anadarko
Confidentiality Notice:<BR>> This electronic transmission and any
attached documents or other<BR>> writings are intended only for the
person or entity to which it is<BR>> addressed and may contain
information that is privileged,<BR>> confidential or otherwise protected
from disclosure. If you have<BR>> received this communication in error,
please immediately notify<BR>> sender by return e-mail and destroy the
communication. Any<BR>> disclosure, copying, distribution or the taking
of any action<BR>> concerning the contents of this communication or any
attachments by<BR>> anyone other than the named recipient is strictly
prohibited.<BR>><BR>>
_______________________________________________<BR>> SAP-WUG mailing
list<BR>> SAP-WUG@mit.edu<BR>>
http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>><BR>><BR>>
__________________________________________________<BR>> Do You
Yahoo!?<BR>> Tired of spam? Yahoo! Mail has the best spam protection
around<BR>> http://mail.yahoo.com
_______________________________________________<BR>> SAP-WUG mailing
list<BR>> SAP-WUG@mit.edu<BR>>
http://mailman.mit.edu/mailman/listinfo/sap-wug<BR>><BR><BR><BR><BR>_______________________________________________<BR>SAP-WUG
mailing
list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE><BR>
<P>__________________________________________________<BR>Do You
Yahoo!?<BR>Tired of spam? Yahoo! Mail has the best spam protection around
<BR>http://mail.yahoo.com
<P>
<HR>
<P></P>_______________________________________________<BR>SAP-WUG mailing
list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE></BODY></HTML>