Email from R/3 in the body instead of coming as attachment?

Team,
I have defined a job via SM36:
program name : RM06BA00
send output to:Distribution List.
The email received in the MsOutlook inBox shows the message as an attachment. I want the contents of the message shown in the body of the email. Any ideas? (Emails are received in .HTM extension)
Thanks
PS. Gmail and Hotmail emails shows the message as attachment. Yahoo shows the contents of the message in the body of the email.

<b>The code is attaced below</b>
*& Report  ZSDN_SENDTXTVIAEMAIL                                        *
REPORT  ZSDN_SENDTXTVIAEMAIL                    .
*report zrich_0003 .
data: maildata like sodocchgi1.
data: mailtxt like solisti1 occurs 10 with header line.
data: mailrec like somlrec90 occurs 0 with header line.
data: list type table of abaplist with header line.
data: ascilines(1024) type c occurs 0 with header line.
data: htmllines type table of w3html with header line.
parameters: p_check.
start-of-selection.
Here you would submit the program with parameters
and export it to memory.
submit zrich_0004 exporting list to memory and return.
submit RM06BA00
USING SELECTION-SET 'OPEN REQ'              "a variant
    USING SELECTION-SETS OF PROGRAM 'RM06BA00'
exporting list to memory and return. "Disp REqs pgm
Get the list from memory
  call function 'LIST_FROM_MEMORY'
       tables
            listobject = list
       exceptions
            not_found  = 1
            others     = 2.
Format to HTML
  call function 'WWW_HTML_FROM_LISTOBJECT'
       tables
            html       = htmllines
            listobject = list.
  clear: maildata, mailtxt, mailrec.
  refresh: mailtxt, mailrec.
  maildata-obj_name = 'TEST'.
  maildata-obj_descr = 'Test Subject'.
Move the HTML lines into the body
of the email
  loop at htmllines.
    mailtxt = htmllines.
    append mailtxt.
  endloop.
  mailrec-receiver = '[email protected]'.
  mailrec-rec_type = 'U'.
  append mailrec.
  call function 'SO_NEW_DOCUMENT_SEND_API1'
       exporting
            document_data              = maildata
            document_type              = 'HTM'
            put_in_outbox              = 'X'
       tables
            object_header              = mailtxt
            object_content             = mailtxt
            receivers                  = mailrec
       exceptions
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            others                     = 8.
  if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
Here you are forcing the system to send
the email right away.
  commit work.
  wait up to 2 seconds.
  submit rsconn01 with mode = 'INT'
               with output = 'X'
                          and return.

Similar Messages

  • When I forward an email from my Mac Mail, the body of the email I just forwarded shows as an attachment in the recipients outlook.  Is there a way to change this so my clients don't have to open an attachment to read something that I forwarded to them?

    When I forward an email from my Mac Mail, the body of the email I just forwarded shows as an attachment in the recipients outlook.  Is there a way to change this so my clients don't have to open an attachment to read something that I forwarded to them?

    Open Terminal in Utilties and copy/paste
    This will send the attachment embedded inline. (This works in Snow Leopard, but not sure about Lion. Do a test first. If it doesn't work, just google "send attachment embedded + Lion." You don't actually have to send the message to see how it will appear.)
    defaults write com.apple.mail DisableInlineAttachmentViewing 0
    To reverse the setting, change the 0 to a 1
    However, whether this will work or not will depend on what the e-mail client on the receiver's end does with it.

  • EMAIL-CAN NOT TYPE IN THE BODY OF THE EMAIL

    I can not type on the body of my email through comcast SmartZone.  I am using Internet Explorer 9 and from my comcast home page when I access my email and try and compose an email or reply there is no where to type the body of the email.  When I go to the Comcast help page where it has Comcast Customer Central it looks distorted like you are looking at with double vision.  When I am trying to compose an email it has everything except the body to type on, it is all gray in that area and then at the bottom of the page it has the reply etc just like at the top of the page.  Also when I am on my smartzone at home versus at work it looks different.  Like on my email at home the first button is refresh and here at work it is new?? I have contacted Comcast and they were able to login to my email and had not problems.  So I do think it is a setting but I do not know where to even start. Please help,

    It could be a compatability issue between IE9 and the Comcast
    email website. Try it in compatibility view in the IE9 browser.
    You might also want to use or create another email account
    using another service like gmail as a test to see what happens.
    http://windows.microsoft.com/en-US/internet-explorer/products/ie-9/features/compatibility-view
    (And yes, I still don't know how to create hyperlinks...)

  • When i send an email with greek characters in the body, the recipient receive it in an unreadable form.

    When i send an email with greek characters in the body, many recipients (not all) cannot read it.
    At the same time when i use the internet mail it can be read successfully by the recipient.
    I have already checked the encoding settings in the Fonts in order to be "unicode (UTF-8)".
    What else can i check?
    Thanks in advance.
    e.g:
    From: Eleni Kontomari [email address removed by moderator Andrew]
    Sent: Thursday, February 27, 2014 12:33 PM
    To: "Nikos Totsios (Ηλεκτρονική διεύθυνση)"; "Giannis Diokarantos (Ηλεκτρονική διεύθυνση)"; "Dimitris Papadopoulos (Ηλεκτρονική διεύθυνση)"; Vassilis Gounaris; "Vassos Efthymiadis (Ηλεκτρονική διεύθυνση)"; Νικηφόρος Κεκρίδης; Ιωάννης Αθανασόπουλος; "Alexis Katsivas (Ηλεκτρονική διεύθυνση)"; Μιχάλης Παπαοικονόμου; Fomesa Hellas; "Χρήστος Σπηλιάδης (Ηλεκτρονική διεύθυνση)"; Δημήτρης Μπενάκης; "Ν. Γαλάνης"; [email protected]; "Αποστόλης Σαμούδης (Ηλεκτρονική διεύθυνση)"; "Β. Ντουρτόγλου (Ηλεκτρονική διεύθυνση)"; [email protected]; [email protected]; "Φοίβη Λεγάκι (Ηλεκτρονική διεύθυνση)"; "Παναγιώτης Κουμεντάκος (Ηλεκτρονική διεύθυνση)"; Σπύρος Ζαφείρης; Hans- Joachim Henn; "Κώστας Αλεξανδρόπουλος (Ηλεκτρονική διεύθυνση)"; [email protected]; [email protected]
    Subject: ΠΡΟΣΚΛΗΣΗ ΤΑΚΤΙΚΗΣ ΓΕΝΙΚΗΣ ΣΥΝΕΛΕΥΣΗΣ ΕΣΥΦ
    ... 13 2014.
    ''Please read [[Forum rules and guidelines]] when posting a question in a public forum''

    There are some language add ons that support emails from other languages that you can check out: [https://addons.mozilla.org/en-us/thunderbird/extensions/language-support/?sort=popular]
    The recipient, if they also use thunderbird may need to have a language pack to read the email: [https://addons.mozilla.org/en-US/thunderbird/language-tools/]
    You may also need to have them check their interpreter to make sure the email is being received in the same format it is being sent.

  • Moving Email From Folder To Folder Causes Body Of Message To Disappear

    OS X 10.5.8 - Mail Version 3.6 (936)
    Not a consistent problem but insanely frustrating.
    Example-
    I move an email from the InBox to a Folder I have created under On My Mac (or within On My Mac), and it moves just fine. But (again seemingly randomly), if I Shift/Click two or more contiguous emails or Command/Click non-contiguous emails I randomly lose ALL the body of the email.
    The From, Subject, Date and the Paper Clip icon display but nothing in the email. Double click to open the email in a separate window and unlike normal messages none of the normal format displays, (From, Date, CC, Attachments), double click just the Paper Clip and again nothing at all displays.
    There is no Raw Source, Long Headers or Original Content.
    Forwarding generates Long Headers and Raw Source but only from MY Forward not the original data.
    Am I completely screwed as to the contents or are they recoverable? If yes then how?
    Thank you,
    Richard

    It just stopped happening but I saved the posted solutions in case it crops up again.
    Thanks,
    Richard

  • I am unable to receive or send email from my IPAD.  The error message says "Connection to server failed".  Help!! geandreamer44

    I am unable to receive or send email from my IPAD.  The error message says "Connection to server failed".  Help!! geandreamer44

    Reset the device:
    Press and hold the Sleep/Wake button and the Home button together for at least ten seconds, until the Apple logo appears.
    If that doesn't help, tap Settings > General > Reset > Reset All Settings
    If that doesn't help, tap Settings > General > Reset > Reset Network Settings
    You will have to re enter your Wi-Fi password.
    If nothing above helped, restart your router.
    No data is lost due to a reset.

  • If I have two email accounts, one personal hotmail account and one MS Exchange work account, how can I setup individual notifications for each account. Right now, any email from any account has the same notification. I want work to be different than perso

    If I have two email accounts, one personal hotmail account and one MS Exchange work account on my iPhone 4s, How can I setup individual notifications for each account? Fore example, if I get a work email, I want to hear a DING, DING....If I get a personal email, I want to hear a BEEP, BEEP. Right now, any email from any account has the same notification. I want work incoming email notification to be different than personal incoming notification. The only semi-workaround I've seen is just disable any notification for the Hotmail account, so only work emails would notify. But then I don't know when I get a personal email. Even the lowely Blackberry Torch 9800 has this feature..not iPhone 4s??
    Thanks

    Sorry you get only one notification sound for all email accounts.  you can send a suggestion to apple here http://www.apple.com/feedback/

  • I am trying to email from my iphone and the message comes up it is rejected by server, it does not allow relaying. I am receiving emails ok. How do I fix this

    I am trying to email from my iphone and the message comes up it is rejected by server, it does not allow relaying. I am receiving emails ok. How do I fix this

    What's the model number of your Lexmark printer?

  • How can I add an attachment to an email without showing it in the body of the email?

    How can I add an attachment to an email without showing it in the body of the email?

    1. You must open attachment first
    2. Tap the square with arrow on top right and select mail
    3. Compose your email

  • TS1627 Please Help. I received 4 emails from 1 person with the same message heading. The emails were automatically grouped by Mail. I replied to the latest mail in the conversation. Once sent the other messages in the conversation disappeared. I NEED THEM

    Please Help. I received 4 emails from 1 person with the same message heading. The emails were automatically grouped Apple Mail. I replied to the latest mail in the conversation. Once sent the other messages in the conversation disappeared. I NEED THEM BACK! They all had very important attachments. I have tried looking for them in deleted items, even though I didn't throw any of them away, still cant find them. Never had this problem before. I'm pretty sure its a setting somewhere. Also tried expanding all conversations, no luck. Searching for the mails under the sent email address, no luck.
    I'm sure they are not deleted but have somehow been hidden by Mail. Very frustrating.
    Thanks in advance for any help.
    Kash.

    I have found found out what has happened. I had requested a statement dating back to April 2012 from a supplier. They replied back with the latest statementof 2013 only but used the same subject heading as the previous monthly statements. Apple Mail automatically grouped these and I thought that they were sent altogether. As soon as I replied to the last email all other the previous emails ungrouped from the conversation leaving me lost as to where they had gone. They were all still sitting in my inbox but no longer part of the trcked conversation. I searched under the subject heading and all individual mails were all still there. (feeling stupid - )

  • HT1338 I use  Outlook for my email, and about 90% of the time when I wont to attach a pdf or jpg file it failes and the email masage crashs. The only was I can get my Outlook to work is if I swich to Firefox.

    I use  Outlook for my email, and about 90% of the time when I want to attach a pdf or jpg file it failes and andout 50% of the time when I'm trying to send a standered text email I also failes and the email masage crashs. The only way I can get my Outlook to work is if I switch to Firefox. I would rater not have to swich all my bookmarks over to Firefox.
    Has any one eals had this problem?

    That's an Outlook issue. You'll probably get better responses posting on the Office for Mac forums.

  • How can I keep pictures images from  opening up in the body of an email

    Every time I attach a pic in mac mail, it opens in the body of the email.  I never had this issue with Outlook.
    I typically attach several pics at a time, the email becomes very messy.  Any suggestions on how to keep it from opening.
    I am using jpeg images.
    Plantguy1

    It depends.
    When you copy an image from a website in Firefox (right-click > Copy Image), Firefox stores the HTML code that website is using to display the image. Then when you paste into Yahoo mail, Yahoo uses that code to display the image in your message, by linking out to the source site.
    However, if you copy the image from a source other than a web page, Yahoo mail (webmail interface) can't use this technique and although it sometimes seems to show the image in the post, when I send, I just get a strange "inline image" notation in its place.
    If you access your Yahoo mail on a device in a dedicated mail client, then you usually would have more options because the mail program will encode the image into the message.

  • My wife and I have iPhones 4s,s. We also have an iPad. We share hue same email address. When I send an email from my phone or the iPad it looks as if it comes from my wife instead of me(her name comes up as the person who sent it) I want my name on the ma

    My wife and I have a iPhone 4S each and an I pad. When I send a email from my phone and from my iPad her name comes up as the sender. We only have one contact email address and that is the way we warn to keep it.
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    Thanks

    Rectory wrote:
    Please can someone tell me how  I can change this so when I send a mail from my phone and from the IPad that it reads from me.
    You need a separate email address but you've already ruled out that solution.

  • Using ui5 to send an email with a link in the body of the email

    From my ui5 I hit a button and can successfully open outlook and send an email using the code below.
    location.href = 'mailto:?subject=' +  subj + '&body=' + body;
    If the body of the email is plain text all is well. My problem is that I want to include a link in the body of the email. I have tried using
    <a href = "http:mystuff here" >Click here to open the form</a> in the body but it comes literally with the <a href... in the body.
    Is it possible to place a link into the body of the email and if so how?
    Any suggestions would be greatly appreciated.

    sorry, not possible
    http://stackoverflow.com/questions/5620324/mailto-with-html-body
    https://www.google.com/search?rlz=1C1CHFX_enUS566US566&{google:acceptedSuggestion}oq=mailto+with+mime+type&sourceid=chro…

  • CLOB: Error in sending Notification email with Embedded message in the body

    Hi,
    Oracle Database 9.2.0.5.0
    Workflow version is : 2.6.3.5
    Apps Version is 11.5.10.1
    I am embedding a CLOB message document attribute to my Notification
    Message Body.
    Everything works fine when I check my notifications in the "workflow worklist"
    i.e. Oracle Apps. <Notifications> tab.
    but the emails are not going to the users and below message is displayed in the
    status monitor. (eventhough it displays below error - I can able to respond the notifications using the worklist and can able to COMPLETE the workflow process
    successfully)
    Please help me to resolve the below error, so that the Same notification which I am able to see using the workflow worklist should be sent to the user in email as embedded text.
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.
    Workflow Errors: XXDBCAPR, SDA-10314
    Failed Activity Send Approve_Reject Responce Notification
    Activity Type Notice
    Error Name WF_ERROR
    Error Message [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: 2018: Unable to generate the notification XML. Caused by: 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrC' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK= WF_MAIL.GetLOBMessage3(18841, WFMAILER, 2020: Error when getting notification content. Caused by: ORA-04061: existing state of has been invalidated ORA-04061: existing state of package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" has been invalidated ORA-04065: not executed, altered or dropped package "APPS_FND.XXDB_OKC_CONTRACTS_WF_PKG" ORA-06508: PL/SQL: could not find program unit being called Wf_Notification.GetAttrClob(18841, MESSAGE_BODY, text/html) Wf_Notification.oldGetAttrClob(18841, MESSAGE_BODY, text/html) WF_NOTIFICATION.GetFullBody(nid => 18841, disptype => text/html) WF_MAIL.GetLOBMessage3(nid => 18841, r_ntf_pref => MAILHTML), Step -> Getting text/html body) WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) WF_XML.Generate(oracle.apps.wf.notification.send, 18841) Wf_Event.setMessage(oracle.apps.wf.notification.send, 18841, WF_XML.Generate) Wf_Event.dispatch_internal()
    Error Stack
    thanks,
    Shashi
    NOTE: there is no problem with the Package XXDB_OKC_CONTRACTS_WF_PKG, as it is not changed and I even verified it before and after this error that this package is indeed in VALID status.

    Hi,
    Below solution worked for us :
    Whenever the document message related procedure is modified and compiled we need to STOP and START all the workflow related services,
    Homepage -> Workflow Manager -> Service Components => STOP all Services => Start All Services
    NOTE: Even when we bounced the database, application server the error is still occuring, only when we STOP and START the services whenever we compiled the document message procedures then the emails are getting processed.
    Metalink Forum note 588112.992 (ORA-04061: existing state of has been invalidated ORA-04061: existing state of package) is helpful in getting the solution Below is a snippet of the same :
    From: David Hsu 01-Aug-05 20:06
    Subject: Re : ORA-04061: existing state of has been invalidated ORA-04061:
    existing state of package
    Loren,
    we had a similar ORA-04061 error when we tried to compile a Workflow package
    after we modified it with new attributes. What we were told was that some
    workflow process or listener is still "thinking" the package is invalid even
    though it is valid. Whenever packages referred by the workflow process is
    changed, the Agent listeners and mailer must be bounced. Worst case scenario
    if the error still persist is that the database may have to be bounced as
    well.
    Please try bouncing the Agent listeners or, if it possible, bounce the
    database and see if you are still getting the error after that.
    The listeners that you need to bounce are all the listeners that you have
    enabled under OAM > Workflow Manager > Service Components,
    including the Workflow Notification Mailer.
    Hope this helps thanks,
    Shashi

Maybe you are looking for