<div><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Jeffrey,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><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