Read contents of inbound & Outbound Email (attachment)

Hi Gurus,
I'm looking for a solution to extract and read the content of Incoming & Outgoing Email from SAP.
I have developed a program that can read the content of all the emails with type RAW (SAP office editor message), but when the email contains the attachment or the table entry in table SOOD contains value "EXT" in field OBJTYP then I am unable to read anything.
example:
(logical condition is like this)
IF SOOD-objtp = 'RAW'.
**I am able to read the contents of email
ELSEIF SOOD-objtp = 'EXT'
**Unable to read the email content, how can i read this?
ENDIF.
One thing to note as well that in case the value in field SOOD-objtp = 'EXT' then file extension is '.PDF' or 'MHT'.
Any help will be highly appreciated!
/Manik

Hello Manik,
perhaps my Blog: <a href="/people/gregor.wolf3/blog/2005/10/02/inbound-mail-processing-150-attach-files-to-opportunity">CRM: Inbound mail processing – Attach files to Opportunity</a> helps you.
Regards
Gregor

Similar Messages

  • Inbound outbound email check in R12

    Hi gurus:
    We installed 12.1.3 EBS with 11.1.0.7 dabase on Linux. The workflow and every thing is good now. I want to check inbound and outbound email works good or not every day. How do I do that?
    Thanks and regards

    You need to check MAIL_STATUS AND STATUS columns. For details about these columns, please see:
    Why Notifications in WF_NOTIFICATIONS have mail_status NULL and Status OPEN [ID 1549691.1]
    What to Review When Notifications are not Emailed (Outbound Processing)? [ID 1051421.1]
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=WF_NOTIFICATIONS&c_owner=APPLSYS&c_type=TABLE
    Thanks,
    Hussein

  • Adobe reader error when openning an email attachment on ipad.

    I can not open Adobe documents sent via email on my iPad since upgrading the app. This is the message:
    Please wait... If this message is not eventually replaced by the proper contents of the document, your PDF viewer may not be able to display this type of document. You can upgrade to the latest version of Adobe Reader for Windows®, Mac, or Linux® by visiting  http://www.adobe.com/go/reader_download. For more assistance with Adobe Reader visit  http://www.adobe.com/go/acrreader. Windows is either a registered trademark or a trademark of Microsoft Corporation in the United States and/or other countries. Mac is a trademark of Apple Inc., registered in the United States and other countries. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries.

    Your PDF document is a special type of form called a "dynamic XFA form".
    Currently, Adobe Reader mobile products (for iOS, Android, Windows Phone) do not support static or dynamic XFA forms that are created with Adobe LiveCycle Designer.  (This is not a new problem, however.)
    The message "Please wait..." is displayed when a dynamic content is not supported by a PDF viewer.
    Please use the desktop version of Adobe Reader on a Windows or Mac computer to fill out XFA forms.
    Sorry for the inconvenience.

  • Read Excel File from an Email Attachment

    wrong posting
    Edited by: Sarkar11 on Oct 21, 2011 8:18 AM

    You use apps to do this. Look at Documents to Go, or Office2HD. Used with the superb free Cloud service Dropbox either of these will work for you.
    In the email, you can just 'Open with ...' (one of the apps) and then save either locally or to Dropbox which will sync the file to all your laptops and desktops too.

  • Read PDF form from email attachment

    Hope someone is able to help on this one...
    We are using a pdf form at work to gather some feedback and the user will be submitting the form via email...
    Using outlook 2003 I had a crack at writing a vba module to read the pdf form from the email attachment to update into an excel spreadsheet
    Is it possible to read pdf forms from the email attachment with outlook vba? Or does the attachment need to be saved to a directory first?
    I have in the past done a vba module to save the pdf form attachments to a directory and then using acrobat and it's in-built form data collection tool and exported as a csv, but this feedback form will be an ongoing thing that will be updated daily - and to minimise handling would like to run the outllook macro that reads straight from the email attachment instead of doing another 3 or so steps...
    Below is the snippet I am using - it's a mashup of different code I've found on the net
    Sub Feedback()
        On Error GoTo Feedback_err
        'Dim ns As NameSpace
        Dim objNS As NameSpace
        'Dim Inbox As MAPIFolder
        Dim objFolder As Outlook.MAPIFolder
        'Dim SubFolder As MAPIFolder
        Dim objExcel
        Dim oBook
        Dim oSheet
        Dim gApp As Acrobat.CAcroApp ' In Tools > References > Checked all Acrobat Libraries in VBA > Tools > References
        Dim pdDoc As Acrobat.CAcroPDDoc
        Dim jso As Object
        Dim Item As Object
        Dim Atmt As Attachment
        Dim filename As String
        'Dim i As Integer
        Dim myOrt As String ' Added 13/1/2010
        Set objApp = CreateObject("Outlook.Application")
        Set objNS = objApp.GetNamespace("MAPI")
        Set objFolder = objNS.PickFolder
    ' Check subfolder for messages and exit of none found
        If objFolder.Items.Count = 0 Then
        'If SubFolder.Items.Count = 0 Then
            MsgBox "There is no Feedback emails in this folder.", vbInformation, _
                   "Nothing Found"
            Exit Sub
        End If
    ' Check each message for attachments
        Set objExcel = CreateObject("Excel.Application")
        Set oBook = objExcel.Workbooks.Open("G:\Path\Filename.xls")
        Set oSheet = objExcel.Worksheets(1)
        oSheet.Range("A2").Select
        Set gApp = CreateObject("AcroExch.App") ' make acrobat session
        Set pdDoc = CreateObject("AcroExch.PDDoc")
        Set jso = pdDoc.GetJSObject ' set the Javascript object via this way we can fill in the PDF document fields
        For Each Item In objFolder.Items
            For Each Atmt In Item.Attachments
                If Right(Atmt.filename, 3) = "pdf" Then
                    Do
                    If IsEmpty(objExcel.ActiveCell) = False Then
                        objExcel.ActiveCell.Offset(1, 0).Select
                    End If
                    Loop Until IsEmpty(objExcel.ActiveCell) = True
                        objExcel.ActiveCell.value = jso.getField("CurrentDocDate").value
                        objExcel.ActiveCell.Offset(0, 1).value = Item.Session.CurrentUser
                        objExcel.ActiveCell.Offset(0, 2).value = jso.getField("txtJobNo").value
                        objExcel.ActiveCell.Offset(0, 3).value = jso.getField("rbStatus").value
                        objExcel.ActiveCell.Offset(0, 4).value = jso.getField("rbFeedback").value
                        objExcel.ActiveCell.Offset(0, 5).value = jso.getField("txtComments").value
                End If
            Next Atmt
        Next Item
        oBook.Save
        objExcel.Quit
    Feedback_exit:
        Set Atmt = Nothing
        Set Item = Nothing
        Set objNS = Nothing
        Set pdDoc = Nothing
        Set objExcel = Nothing
        Set jso = Nothing
        Exit Sub
    ' Handle Errors
    Feedback_err:
        MsgBox "An unexpected error has occurred." _
            & vbCrLf & "Please note and report the following information." _
            & vbCrLf & "Macro Name: Feedback" _
            & vbCrLf & "Error Number: " & Err.Number _
            & vbCrLf & "Error Description: " & Err.Description _
            , vbCritical, "Error!"
    Resume Feedback_exit
    End Sub
    I get a vba error 91 "Object Variable or With  block variable not set"
    Cheers
    Ben

    hi Phani,
    with regard to your problem I would suggest you to please go thru this link.
    Hope this would be helpful to you.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/offline%20interactive%20pdf%20form%20using%20e-mail.pdf
    Thanks,
    kris

  • How to set content-type for outbound mail in BCS

    Hey everybody,
    can anybody please give me a hint how to set the content-type for outbound email in ABAP using BCS to send mail.
    By default the content tyoe is set to text/html. I need other.
    Best regards
    Roman

    //add related mutip-part to combine parts
    MimeMultipart multipart = new MimeMultipart("related");
    //attach a pdf
    messageBodyPart = new MimeBodyPart();
    fds = new FileDataSource("h:/something.pdf");
    messageBodyPart.setDataHandler(new DataHandler(fds));
    messageBodyPart.setFileName(fds.getName());
    multipart.addBodyPart(messageBodyPart);
    //add multipart to the message
    message.setContent(multipart);
    //send message
    Transport.send(message);

  • How to do debugging for sending inbound or outbound email via ERMS?

    Hi Colleagues,
    I send an email to '[email protected]' with email titile 'CIM: 318238 2013', and want to display inbound email in email assignment block within CIM Service Request 10001503 in ICX. But it fails to be displayed on Web UI. And there is no problem to browse inbound and outbound emails via t-code SCOT as below.
    If I send an email to '[email protected]', there is no problem to display inbound email within one CIM Service Request in ICP as below.
    One related class ZSCL_CRM_ERMS_AH_CIM_CSS=>IF_CRM_ERMS_SERVICE~EXECUTE is used to implement this function, I don't know how to do debugging when sending inbound or outbound email? Could please tell me more detailed steps?
    Kind Regards
    Andie

    Hi Fabian,
    Thanks for your reply.
    How can I add this method ZSCL_CRM_ERMS_AH_CIM_CSS=>IF_CRM_ERMS_SERVICE~EXECUTE to the list in t-code SM50 for doing debugging?
    And another question is that I cannot attach inbound email to CIM Request via ICX email address '[email protected]', but no problem to send inbound email using ICP email address [email protected] as below. Is there any authorization issue for this case?
    Kind Regards
    Andie

  • .pdf is missing when send as email attachment (Outlook) from Adobe Reader 11.0.06

    The PDF is streamed from our webserver application to an IFRAME in Internet Explorer 9.
    The headers Content-type (application/pdf), Content-disposition (random-unique-filename.pdf), Content-length are all set.
    Acrobat Reader plugin opens up inside the IFRAME and presents the PDF without problems.
    When our users try "Send file as email attachment" Outlook 2010 opens up and the file is attached - without the file extension.
    The name of the attachment is the same name as the Java Servlet that delivered the streamed file.
    If we save the streamed PDF to disc, open it in Acrobat and do the same maneuver - the file extension is added to the attached file name in Outlook.
    Message was edited by: Solson

    We have the same problem !
    Tested this today with adobe reader 9.5.x , file is attached as  "filename.do.pdf"
    If we use adobe reader 11.0.x file is attached as "filename.do"
    If you use save file as , it does get the "pdf" extension automatically
    Solution appreciated !

  • Read Email Attachment Document and Save it in DMS

    Hi
    I  have developd a zFM for reading the email attachment and storing it in SAP.(CV01N)
    using the FM for SO_DOCUMENT_READ_API1(Read attachement)  CVAPI_DOC_CHECKIN(Save Document) FM for save it in SAP.
    After reading the attachemtn am getting Hexa decimal Values and i have convert into binary.
    But the output is showing can't open the file.
    How to solve this?
    CALL FUNCTION 'SO_DOCUMENT_READ_API1'
              EXPORTING
                document_id                = lv_doc_id
              IMPORTING
                document_data              = lw_doc_data
              TABLES
                object_content             = lt_objcontent
                contents_hex               = lt_contents_hex
              EXCEPTIONS
                document_id_not_exist      = 1
                operation_no_authorization = 2
                x_error                    = 3
                OTHERS                     = 4.
    Converteing Hexa decimal into srting by loop the internal table  lt_contents_hex.
    lv_raw concatenate hexa decimal values
              CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
                EXPORTING
                  buffer        = lv_raw
                IMPORTING
                  output_length = lv_length
                TABLES
                  binary_tab    = it_temp_binary.
         CALL FUNCTION 'CVAPI_DOC_CHECKIN' ......

    Hi,
    thank you.
    The DB-Version is 9.2.0.4.0
    This document does not help me...
    I need to create any procedure that inserts the nodes(tag-name) and when the node has any content then the content too in the table and s.o., so how I have it entered in the question...
    Any Idea?
    Regards

  • Help:how to get content of the word(.doc) attachment in a email

    help to all:
    I get the email attachment(.doc or .xls) and it's
    content,using javaMail Api .but output it on the
    computer screen,I see only some sign unreadable.
    Pls how to get the content.
    thanks for you.
    bi tan

    Save the output to a file and open it in Word/Excel thats what documents attached to mail are made for...
    If you really need the contents send them in the body or in a plain text attachment.

  • Attach page content as pdf in email

    Thanks for all who answer this thread.
    I am using this syntax to send email from a web page....
    <cfset subject = "Application Name">
    <a
    href="mailto:?subject=#urlEncodedFormat(e_subject)#">Email
    page</a>
    i know, how to create page content in pdf...
    How can i attach page content pdf to this mail? is that
    possible?.
    OR
    what is best way to send page content PDF as email.....
    user want to type some info in body of email.....
    thanks

    Use cfsavecontent to generate your page content.
    Use cfdocument to create the pdf file
    Use cfmail and cfmailparam to send it as an email
    attachment.

  • Attach disclaimer text sent out from the Outbound emails in PeopleSoft

    Hi,
    Any idea on How to attach disclaimer text for all the Outbound emails in PeopleSoft .
    Thanks
    Soundappan
    Edited by: Soundappan on May 24, 2011 10:23 PM
    Edited by: Soundappan on May 24, 2011 10:24 PM

    The simplest way is to contact your email server team. I know exchange can add a disclaimer to all outgoing messages.

  • Receive email and read email attachment via BPEL

    Hi All,
         Does anyone know how to or has a module on receiving email and read email attachment via BPEL.
         Im now reading and exploring UMS adapter as this activity can handle both reading email and email attachment.
         Your response/s will be very much appreciated. Thanks.

    943363 wrote:
    Hello,
    I have an Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bits on an AIX 5.3 mainframe without the enterprise web interface.
    I would like to do that process :
    a daily email is sent to the oracle instance with a CSV in attachment.
    I would like that attachment in a directory configured onto the instance.
    I have a PL/SQL procedure triggered by a job that will insert the content of the CSV in a table.
    Is that process possible with what I have ?
    Thanks in advance,
    Best Regards,
    Grégory B.Databases don't receive email. Just sftp the file and schedule a job to process it.

  • I bought an ebook but when I  try to download it I receive a message stating 'Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wa

    Can anyone assist me? I keep receiving this message when I download my ebook ''Adobe reader could not open .....acsm because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't decoded).'
    Much appreciated

    I think you should ask in the Digital Editions forum, Adobe Digital Editions

  • Why can't I open a pdf file on my desktop?  I keep getting this message: Adobe Reader could not open '8pdk_96_4.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and w

    Why can't I open a pdf file on my desktop?  I have Adobe Reader and running OS 10.10.1  I keep getting the same message: "Adobe Reader could not open '8pdk_96_4.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded)."

    I tried that.
    I saved the file 8pdk_96_4.pdf to my desktop and tried to open it using Adobe Reader but I get the same message: Adobe Reader could not open '8pdk_96_4.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).

Maybe you are looking for