Email Smartforms with Email Body

Hello SAP Community,
Sorry if my question has been asked before, but I did not find any answeres yet.
I am using BO SOFMFOL and these FM to send my smartforms to external email:
- CREATE_RECIPIENT_OBJ_PPF
- CREATE_SENDER_OBJECT_PPF
- SO_USER_AUTOMATIC_INSERT
This is working fine.  My question is: How do you add an Email  Body?  I am on ECC 6.0.
Appreciate any inputs on this issue.
Many thanks,
Kim

Hi Kim,
I had a requirement to convert the out put into PDF format and send an email using the function module SO_NEW_DOCUMENT_ATT_SEND_API1.
I am providing my coding, hope it helps: 
form SEND_EMAIL .
DATA:   t_mailpack   TYPE sopcklsti1 OCCURS 0 WITH HEADER LINE,
          t_mailhead   TYPE solisti1   OCCURS 0 WITH HEADER LINE,
          t_mailbin    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
          t_mailtxt    TYPE solisti1   OCCURS 0 WITH HEADER LINE,
          t_mailrec    TYPE somlreci1  OCCURS 0 WITH HEADER LINE.
  DATA: wa_maildata    TYPE sodocchgi1,
        l_filename(50) TYPE c,
        l_fldname(30)  TYPE c,
        l_fldval(100)  TYPE c,
        l_lines        TYPE i,
        l_text         TYPE text128 .
  DATA: w_email_subrc  TYPE i.
  DATA: w_ship like vbfa-vbeln.
  CLEAR: wa_maildata,
         t_mailtxt,
         t_mailbin,
         t_mailpack,
         t_mailhead,
         t_mailrec.
  REFRESH: t_mailtxt,
           t_mailbin,
           t_mailpack,
           t_mailhead,
           t_mailrec.
*-- Fill output file
*- Fill header
  CLEAR: t_mailbin.
t_mailbin[] = pdf_tab[].
  t_mailbin[] = it_att[].     "Uthaman
*This line is added to get the shipment no in Subject Line
SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                            AND vbtyp_v EQ c_vbtyp_v_j
                            AND vbtyp_n EQ c_vbtyp_n_8.
w_ship = vbfa-vbeln.
shift w_ship left deleting leading '0'.
*-- File name
if nast-kschl EQ 'ZFPL'.
  CLEAR l_filename.
  CONCATENATE 'Packing List -'
              sy-datum4(2) sy-datum6(2) sy-datum(4) '.PDF' INTO l_filename.
*-- Creation of the document to be sent File Name
  wa_maildata-obj_name = 'Packing List'.
*-- Mail Subject
  CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
*-- Mail Contents
  t_mailtxt-line = 'Packing List'.
  APPEND t_mailtxt.
ENDIF.
if nast-kschl EQ 'ZFBA'.
  CLEAR l_filename.
  CONCATENATE 'Booking Advice -'
              sy-datum4(2) sy-datum6(2) sy-datum(4) '.PDF'
              INTO l_filename.
*-- Creation of the document to be sent File Name
  wa_maildata-obj_name = 'Booking Advice'.
*-- Mail Subject
  CONCATENATE l_filename '-' 'Shipment No -' w_ship INTO wa_maildata-obj_descr SEPARATED BY space.
*-- Mail Contents
  t_mailtxt-line = 'Packing List'.
  APPEND t_mailtxt.
ENDIF.
*-- Prepare Packing List
*-- Write Packing List (Main Subject)
  CLEAR: l_lines, t_mailpack.
  DESCRIBE TABLE t_mailtxt LINES l_lines.
READ TABLE t_mailtxt INDEX l_lines.
  t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailtxt ).
CLEAR t_mailpack-transf_bin.
  t_mailpack-transf_bin = ' '.
  t_mailpack-head_start = 1.
  t_mailpack-head_num = 0.
  t_mailpack-body_start = 1.
  t_mailpack-body_num = l_lines.
  t_mailpack-doc_type = 'RAW'.
  APPEND t_mailpack.
  t_mailhead = l_filename.
  APPEND t_mailhead.
*-- Write Packing List (Attachment)
  CLEAR: l_lines, t_mailpack.
  DESCRIBE TABLE pdf_tab[] LINES l_lines.
READ TABLE pdf_tab INDEX l_lines.
  t_mailpack-doc_size = ( l_lines - 1 ) * 255 + STRLEN( t_mailbin ).
  t_mailpack-transf_bin = 'X'.
  t_mailpack-head_start = 1.
  t_mailpack-head_num = 1.
  t_mailpack-body_start = 1.
  t_mailpack-body_num = l_lines.
  t_mailpack-doc_type = 'PDF'.
  t_mailpack-obj_name = l_filename.
  t_mailpack-obj_descr = l_filename.
  t_mailpack-obj_langu = 'E'.
  APPEND t_mailpack.
*-- Set recipients
tables :  ztotcemail.
SELECT SINGLE * FROM vbfa WHERE vbelv EQ nast-objky
                            AND vbtyp_v EQ c_vbtyp_v_j
                            AND vbtyp_n EQ c_vbtyp_n_8.
CLEAR vttk.
SELECT SINGLE * FROM vttk WHERE tknum EQ vbfa-vbeln.
SELECT SINGLE * FROM ztotcemail WHERE tplst = vttk-tplst
                                  AND lifnr = vttk-tdlnr.
IF SY-SUBRC EQ 0.
  t_mailrec-receiver = ztotcemail-smtp_addr. .
  t_mailrec-rec_type  = 'U'.
  APPEND t_mailrec.
ENDIF.
**-- Sending the document
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = wa_maildata
      put_in_outbox              = 'X'
     commit_work                = 'X'  " N-16
    TABLES
      packing_list               = t_mailpack
      object_header              = t_mailhead
      contents_bin               = t_mailbin[]
      contents_txt               = t_mailtxt[]
      receivers                  = t_mailrec
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      operation_no_authorization = 4
      OTHERS                     = 99.
  w_email_subrc = sy-subrc.
  IF sy-subrc EQ 0.
    MESSAGE s000(zotc) WITH 'Email output sent successfully'.
  ELSE.
    MESSAGE s000(zotc) WITH 'Can not send email output'.
  ENDIF.
endform.                    " SEND_EMAIL
Regards,
Kittu

Similar Messages

  • Email aliasing with Email filter turned on

    Has anyone managed to get this to work? I own a couple of domains and run my email through one of them.  I did the following:
    1) Restricted ePrint access to my family's home and work emails.
    2) Set up an email forward with GoDaddy (my ISP) to forward all emails sent to "[email protected]" over to "[email protected]"
    When I send an email to "[email protected]", I get the error:
    "The email was sent to multiple printers or recipients. HP's ePrint service only processes emails sent to a single recipient to protect users from unintended printing."
    If anyone from HP is reading this, I think you've got it backwards.  If a trusted email is sending an email to the printer, then the number of recipients shouldn't matter.  I'd be more concerned with an email sent to multiple addresses if senders aren't filtered. The former scenario would only be a problem if the user's PC caught a virus and it was spamming their contact list.  The latter would be a risk just by a bot guessing the email address.
    Any suggestions on how to get the forward to work from the server level?

    I haven't been able to get forwarding to work either. HP server rejects any forwarded email. I don't even have any filters set up to restrict anybody. I actually set up a dedicated Gmail account just for ePrint and set it to forward the emails received to printer. No go.
    ******Clicking the Thumbs-Up button is a way to say -Thanks!.******
    **Click Accept as Solution on a Reply that solves your issue to help others**

  • How to display an email client with email address

    I would like to personalize OA page at the footer to create an item with the link on clicking this it should open email client with the email address in the link.
    Thanks,
    Arun

    Hi Arun,
    I am not sure about your requirement.
    But if you just want add a link in a page footer then using personalization create a Item of style "Link" with following properties
    Destination URI == mailto:[email protected]
    Text = <what ever you want to display e.g. [email protected]>.
    -- Arvind

  • XMl File into email attchements with Email package

    Hy All,
    I have to send email from XI with .xml attachments. For this scenario i have to use Mail package because of the meail adresse of the recevier is depending on the content of the .xml File.
    At the moment it send the email to right email adresse (Mapping executed) but the attachment is empty.
    Could anyone help me.
    I look at all the entries in SDN but i cannot find a clear response of my problem.
    Thank you

    Hi,
    Have a look on these links.
    1. http://help.sap.com/saphelp_nw2004s/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm
         2. http://help.sap.com/saphelp_nw2004s/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
    3. /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/4360. [original link is broken] [original link is broken] [original link is broken]
    Regards
    Aashish Sinha

  • Certain emails showing with no body content

    Hello,
    I have an odd issue with (IMAP) mail on both the iPhone and iPad. Since moving to a new web host (Fasthosts), email coming in from certain places - currently Flickr, Amazon and Groupon - have no body content; in the list of messages, the sender and subject are displayed, followed by 'This message has no content'. The messages appear properly using the host's web-based mail client (OWA 2007) and Mac mail.
    I've been in a lengthy (and mostly frustrating) support call with Fasthosts, who are adamant it's not them, despite the fact the issue only started when I set up the account with them. They say it must be the iPhone at fault. All I can find on the web is reference to the other issue where spurious email is shown with now sender or subject, which despite being similar, is not the problem I have.
    If anyone can shed some light on this, I'd be grateful, as it's annoying the **** out of me!
    David

    Does your email template has body tag, if so you need to make sure you are filling the body section in your workflow.
    -sFred

  • Emailing smartform with datamatrix 2d barcode

    We have a demand to put datamatrix 2d barcode on our delivery forms (manifest and bill of lading).  These forms are smarforms.
    When printed the datamatrix 2d barcode on the smartforms is what it should be.  Our problem is when we want to email these forms the datamatrix 2d barcode is represented by 4 vertical lines.  What I understand is that the datamatrix 2d barcode is generated by the print driver and when emailing it does not pass by the printer.  
    How can theses forms be sent by email with the datamatrix 2d barcode.
    Thank you for your help.

    How do you email the form?
    Since the printout works OK, I'd think if you call the Smartform's function module with the proper device (printer) specified and request the OTF data, you should be able to convert that OTF to PDF, attach it to an email and send it to the desired recipient(s).
    At least that's the path I'd try to follow...

  • HT201342 What is the mail server for iCloud users? I lost all my emails, trouble with email account set-up.

    I lost all me emails, what is mail set-up? Mail.me.com?

    Incoming is imap.mail.me.com.  Outgoing is smtp.mail.me.com (see http://support.apple.com/kb/HT4864).  But if you're setting up iCloud mail on OS X Lion or higher, you go to Settings>iCloud and check Mail.  This will add the account with the proper settings.

  • How to pop-up Outlook Email window with To: blank?

    Hi All,
    I currently have a page which shows multiple rows with checkboxes. I have an After Submit process which loops through the rows and stores some values of the checked rows into a variable to be used as the body of an email. I then call apex_mail.send() to send the email.
    Instead of prepopulating a TO: address within the process and have it send automatically, I would like to have Outlook pop-up the email window with the body prepopulated as mentioned above but with the TO: address box null so that the user can select the address from Outlook's Address Book.
    Any help/advice would be greatly appreciated!
    Thanks,
    Jason

    1: Yup.. It would look something like this:
    <a href="mailto:?body=aslkdjldfks">Open Email</a>  the # should read:
    "mailto:?body=aslkdjldfks"
    2: If you go this route, there are a few things you need to remember:
    The mailto tag is client side. So you would have to generate the javascript on the server and print it out on the client.
    If your users do not have Outlook, or another mail client, this will do nothing.
    If you have a really long message body it will not work.
    If you have weird characters you will need to encode these.
    So, if you still think that the mailto is what you need then here is some javascript that will auto open it for you:
    http://www.webmasterworld.com/javascript/3290040.htm

  • Send SmartForm as Email Body

    Hi All!
    I need to send a SmarForm by email as an email body.
    The SmartForm is a simple plain text form.
    Does someone know how to do it?
    Regards,
    Alejandro.

    hi,
    try this link u will have two codes.
    Email Body
    even if u dont understand check this code.
    Here is the code to send the Smartform to mail as PDF attachment.
    REPORT ZTEST_PDF_MAIL.
    Internal Table declarations
    DATA: I_OTF TYPE ITCOO OCCURS 0 WITH HEADER LINE,
    I_TLINE TYPE TABLE OF TLINE WITH HEADER LINE,
    I_RECEIVERS TYPE TABLE OF SOMLRECI1 WITH HEADER LINE,
    I_RECORD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    Objects to send mail.
    I_OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
    I_RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
    Work Area declarations
    WA_OBJHEAD TYPE SOLI_TAB,
    W_CTRLOP TYPE SSFCTRLOP,
    W_COMPOP TYPE SSFCOMPOP,
    W_RETURN TYPE SSFCRESCL,
    WA_DOC_CHNG TYPE SODOCCHGI1,
    W_DATA TYPE SODOCCHGI1,
    WA_BUFFER TYPE STRING, "To convert from 132 to 255
    Variables declarations
    V_FORM_NAME TYPE RS38L_FNAM,
    V_LEN_IN LIKE SOOD-OBJLEN,
    V_LEN_OUT LIKE SOOD-OBJLEN,
    V_LEN_OUTN TYPE I,
    V_LINES_TXT TYPE I,
    V_LINES_BIN TYPE I.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZTEST'
    IMPORTING
    FM_NAME = V_FORM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    W_CTRLOP-GETOTF = 'X'.
    W_CTRLOP-NO_DIALOG = 'X'.
    W_COMPOP-TDNOPREV = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
    CONTROL_PARAMETERS = W_CTRLOP
    OUTPUT_OPTIONS = W_COMPOP
    USER_SETTINGS = 'X'
    IMPORTING
    JOB_OUTPUT_INFO = W_RETURN
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    I_OTF] = W_RETURN-OTFDATA[.
    CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
    FORMAT = 'PDF'
    MAX_LINEWIDTH = 132
    IMPORTING
    BIN_FILESIZE = V_LEN_IN
    TABLES
    OTF = I_OTF
    LINES = I_TLINE
    EXCEPTIONS
    ERR_MAX_LINEWIDTH = 1
    ERR_FORMAT = 2
    ERR_CONV_NOT_POSSIBLE = 3
    OTHERS = 4.
    IF SY-SUBRC 0.
    ENDIF.
    LOOP AT I_TLINE.
    TRANSLATE I_TLINE USING '~'.
    CONCATENATE WA_BUFFER I_TLINE INTO WA_BUFFER.
    ENDLOOP.
    TRANSLATE WA_BUFFER USING '~'.
    DO.
    I_RECORD = WA_BUFFER.
    APPEND I_RECORD.
    SHIFT WA_BUFFER LEFT BY 255 PLACES.
    IF WA_BUFFER IS INITIAL.
    EXIT.
    ENDIF.
    ENDDO.
    Attachment
    REFRESH: I_RECLIST,
    I_OBJTXT,
    I_OBJBIN,
    I_OBJPACK.
    CLEAR WA_OBJHEAD.
    I_OBJBIN] = I_RECORD[.
    Create Message Body Title and Description
    I_OBJTXT = 'test with pdf-Attachment!'.
    APPEND I_OBJTXT.
    DESCRIBE TABLE I_OBJTXT LINES V_LINES_TXT.
    READ TABLE I_OBJTXT INDEX V_LINES_TXT.
    WA_DOC_CHNG-OBJ_NAME = 'smartform'.
    WA_DOC_CHNG-EXPIRY_DAT = SY-DATUM + 10.
    WA_DOC_CHNG-OBJ_DESCR = 'smartform'.
    WA_DOC_CHNG-SENSITIVTY = 'F'.
    WA_DOC_CHNG-DOC_SIZE = V_LINES_TXT * 255.
    Main Text
    CLEAR I_OBJPACK-TRANSF_BIN.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    I_OBJPACK-BODY_NUM = V_LINES_TXT.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    APPEND I_OBJPACK.
    Attachment (pdf-Attachment)
    I_OBJPACK-TRANSF_BIN = 'X'.
    I_OBJPACK-HEAD_START = 1.
    I_OBJPACK-HEAD_NUM = 0.
    I_OBJPACK-BODY_START = 1.
    DESCRIBE TABLE I_OBJBIN LINES V_LINES_BIN.
    READ TABLE I_OBJBIN INDEX V_LINES_BIN.
    I_OBJPACK-DOC_SIZE = V_LINES_BIN * 255 .
    I_OBJPACK-BODY_NUM = V_LINES_BIN.
    I_OBJPACK-DOC_TYPE = 'PDF'.
    I_OBJPACK-OBJ_NAME = 'smart'.
    I_OBJPACK-OBJ_DESCR = 'test'.
    APPEND I_OBJPACK.
    CLEAR I_RECLIST.
    I_RECLIST-RECEIVER = 'mail id'.
    I_RECLIST-REC_TYPE = 'U'.
    APPEND I_RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    COMMIT_WORK = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_RECLIST
    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.
    WRITE:/ 'Error When Sending the File', SY-SUBRC.
    ELSE.
    WRITE:/ 'Mail sent'.
    ENDIF.
    If you want to send some text as Body of the Mail then follow this once
    when u r callin the FM'SO_NEW_DOCUMENT_ATT_SEND_API1'.. points to remember
    1.u have to pass the body of content in table CONTENTS_TXT(ia m using I_OBJBIN) (each line a record) then. suppose i have appended 11 records to the table CONTENTS_TXT .
    2.PACKING_LIST(iam usign I_OBJPACK) table u ahve to append a redord as follows
    I_OBJPACK-TRANSF_BIN = ' '.
    I_OBJPACK-HEAD_START = 000000000000001.
    I_OBJPACK-HEAD_NUM = 000000000000001.
    I_OBJPACK-BODY_START = 000000000000002
    I_OBJPACK-BODY_NUM = 000000000000010.
    I_OBJPACK-DOC_TYPE = 'RAW'.
    append I_OBJPACK-.
    by the above code system treat the first line in table I_OBJBIN as header and the 2nd line to 10 lines tread as body.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    DOCUMENT_DATA = WA_DOC_CHNG
    PUT_IN_OUTBOX = 'X'
    TABLES
    PACKING_LIST = I_OBJPACK
    OBJECT_HEADER = WA_OBJHEAD
    CONTENTS_BIN = I_OBJBIN
    CONTENTS_TXT = I_OBJTXT
    RECEIVERS = I_RECLIST
    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.
    reward me ig helpful.

  • Sending emails with both body and attachment to multiple recipients

    I have a requirement to send email with body and attachment to multiple recipients.
    Body of the email is a standard text. It is a proxy-to-mail scenario.
    Here is what I've done: (I'm using PI 7.11)
    One mapping from Source to Target structure (format of the attachment text file)
    Second mapping from Target Structure to Mail Package format.
    In the second mapping I'm concatenating the output of first step into "Content" of the Mail Package.
    "XIPAYLOAD" is the message protocol used.
    The "Keep attachments" option in the Mail adapter allows only to send "Content" as attachment or as body of the email.
    How to send an email with both content and text?
    The other problem is even with using ASMA, I can't send email to multiple recipients. I can only do CC and TO for 1 person each - a total of 2. Although I can resolve this by creating mailing lists, it is better if this can be addressed in PI.
    Thanks for any input you can provide!
    Edited by: crazylad on Jan 18, 2012 3:39 PM

    Thank you for your response Mikael.
    For the first question, I was able to find the solution in the following blog:
    XI Mail Adapter : Dynamically building attachment and message body content using a simple UDF
    (I just needed to search with the right set of key words )
    The key is to set the "Content Encoding" as "None" in the mail adapter. If this is not done, the mail will be sent with an attachment - untitled.bin containing both the mail body and the attachment text. Also, don't forget to check the "Keep Attachments" checkbox in the mail adapter.
    Multiple recipients could be added by separating the email IDs with a Comma. I have used ASMA to set the recipients.

  • How to send smartform output in body of email?

    Hi all ,
    I have to send smartform output in body of email (not as an attachement in mail) .PLease help me in this regard.
    Thanks,
    Ananth S.

    Hi Ananth
    See these threads.
    [https://forums.sdn.sap.com/click.jspa?searchID=23497094&messageID=6889194]
    [https://forums.sdn.sap.com/click.jspa?searchID=23497094&messageID=6861330]
    [https://forums.sdn.sap.com/click.jspa?searchID=23497094&messageID=6855364]
    Regards
    Hareesh Menon

  • Email with html body and a pdf attachment

    Hi,
    i try to send a email with html body and one attach in pdf
    in release 4.6c using the SO_DOCUMENT_SEND_API1.
    I've put the html in the txt table and the pdf in bin table but i obtain the following situation:
    1) with only the html in the body i see a right email in html
    2) with the html body AND the pdf attach i obtain a empty mail with two attach.
    what can i do ? I's possible to do this.
    Thanks in advance.

    Contact my basis guy is a problem !!
    maybe a need a function similar to SX_OBJECT_CONVERT_RAW_TXT to convert raw (containing html text) into real html ?
    my view V_SXCONV contain:
    ALI     HTM     2     SX_OBJECT_CONVERT_ALI_HTM
    ALI     PS     4     SX_OBJECT_CONVERT_ALI_PRT
    ALI     RAW     1     SX_OBJECT_CONVERT_ALI_RAW
    ALI     TXT     2     SX_OBJECT_CONVERT_ALI_TXT
    ICS     RAW     8     SX_OBJECT_CONVERT_ICS_RAW
    INT     RAW     8     SX_OBJECT_CONVERT_INT_RAW
    OBJ     HTM     2     SX_OBJECT_CONVERT_OBJ_HTM
    OTF     PCL     3     SX_OBJECT_CONVERT_OTF_PRT
    OTF     PDF     1     SX_OBJECT_CONVERT_OTF_PDF
    OTF     PS     2     SX_OBJECT_CONVERT_OTF_PRT
    OTF     RAW     9     SX_OBJECT_CONVERT_OTF_RAW
    RAW     SCR     6     SX_OBJECT_CONVERT_RAW_SCR
    RAW     TXT     7     SX_OBJECT_CONVERT_RAW_TXT
    SCR     OTF     1     SX_OBJECT_CONVERT_SCR_OTF
    TXT     INT     7     SX_OBJECT_CONVERT_TXT_INT
    URL     HTM     2     SX_OBJECT_CONVERT_OBJL_HTM
    thanks a lot.

  • Email Purchase Order with mail body

    Hi, ALL,
    I would like to email purchase order to vendors with customized email subject and body. I did configuration in IMG according to note 191470. I also set up title and text in IMG. Now I can email PO with subject (title). But there is no mail body ( the text? ) . Is there anybody know how to do it? Thanks a lot!
    Jack

    Hi,
    In standard you can send purchase order by mail with subject line (title) only and you can not send mail body text.
    Check the link:
    Send PO External email with attachement and Body text
    Regards,
    Biju K

  • Intermittent emails with blank body for single user

    Good morning!
    I have a client running Exchange 2010 on a SBS 2011 server.  There is a single user who will intermittently receive emails in which the body is blank.  The affected emails behave this way in both Outlook and in OWA.  I know the content is
    actually there because if there are multiple threads in the conversation in which an email is sent and then the user replies (this happened with a test email I sent him and then called about because the body was blank when i sent it to him) I can see the body
    in the single line preview until that particular message is expanded.  Additionally, it seems that if he continues to email back in forth in the same conversation thread, the missing content will appear once he's received an inbound message where the
    content displays properly.
    To our knowledge this only happens with inbound mail.  It happens with multiple senders, there doesn't appear to be just a single source so I haven't set up pipeline tracing since there is not a consistent problem with any one sender. Some messages
    will come in fine and others will have a blank body.
    Any advice you have would be much appreciated.

    I turned up Pipeline tracing on my email address for this user as this is the one address I can control.  For all of the emails that turned up with blank bodies in Outlook and OWA I can see the body of hte message in all of the Messaging Snapshots
    created by Exchange.

  • Sending email - problems with text in email body

    Hello all,
    for sending emails I use the FM from Thomas Jung (<a href="http:///people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface:///people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface).
    Everything works fine, except that the text I attach in documents-content_text doesn't appear as a normal text in the email body but within an .EXT-attachment. Should this be a TXT attachment?
    E.g. when I send the text 'Hello World' the email arrives with an attachment 'Hello World.EXT'.
    Did anyone have the same problem? What's wrong?
    Thanks for your help.
    Regards
    Joschi

    Try this it works fine for me,
    METHOD email_result_as_pdf.
        DATA: lo_document_bcs    TYPE REF TO cl_document_bcs VALUE IS INITIAL,
              lo_send_request    TYPE REF TO cl_bcs VALUE IS INITIAL,
              lo_sender          TYPE REF TO if_sender_bcs VALUE IS INITIAL,
              lo_recipient       TYPE REF TO if_recipient_bcs VALUE IS INITIAL,
              lo_cx_document_bcs TYPE REF TO cx_document_bcs VALUE IS INITIAL,
              lo_cx_send_req_bcs TYPE REF TO cx_send_req_bcs VALUE IS INITIAL,
              lo_cx_address_bcs  TYPE REF TO cx_address_bcs VALUE IS INITIAL.
        DATA: li_message_body     TYPE bcsy_text VALUE IS INITIAL,
              li_att_content_text TYPE soli_tab,
              lw_att_content_text TYPE soli.
        DATA: lv_result         TYPE string,
              lv_send           TYPE adr6-smtp_addr
                                     VALUE '[email protected]',
              lv_sent_to_all(1) TYPE c VALUE IS INITIAL.
    * Create Object
        lo_send_request = cl_bcs=>create_persistent( ).
    * Add Contents to Mail Body
        APPEND 'Dear Sir,<BR>' TO li_message_body.
        APPEND ' ' TO li_message_body.
        APPEND 'Please find the Report contents enclosed.<BR>' TO li_message_body.
        APPEND ' ' TO li_message_body.
        APPEND 'Thank You,<BR>' TO li_message_body.
    * Create a Document
        TRY.
            CALL METHOD cl_document_bcs=>create_document
              EXPORTING
                i_type    = 'HTM'
                i_text    = li_message_body
                i_subject = 'New ALV Sample Report'
              RECEIVING
                result    = lo_document_bcs.
          CATCH cx_document_bcs INTO lo_cx_document_bcs.
            lo_cx_document_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Populate the data to the Document Table
        LOOP AT i_sbook INTO w_sbook.
          CONCATENATE
            w_sbook-carrid
            w_sbook-connid
            w_sbook-fldate
            w_sbook-bookid
            w_sbook-customid
            w_sbook-custtype
            w_sbook-smoker
            w_sbook-wunit
            w_sbook-invoice
            w_sbook-class
            w_sbook-forcurkey
            w_sbook-loccurkey
            w_sbook-order_date
            w_sbook-counter
            w_sbook-agencynum
            w_sbook-cancelled
            w_sbook-reserved
            w_sbook-passname
            w_sbook-passform
            w_sbook-passbirth
            INTO lw_att_content_text-line
            SEPARATED BY cl_abap_char_utilities=>horizontal_tab.
          CONCATENATE cl_abap_char_utilities=>cr_lf lw_att_content_text-line
                      INTO lw_att_content_text-line.
          APPEND lw_att_content_text TO li_att_content_text.
        ENDLOOP.
    ** Add the attachment to the document
        TRY.
            CALL METHOD lo_document_bcs->add_attachment
              EXPORTING
                i_attachment_type    = 'RAW'
                i_attachment_subject = 'New ALV Sample Report'
                i_att_content_text   = li_att_content_text.
          CATCH cx_document_bcs INTO lo_cx_document_bcs.
            lo_cx_document_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Set the document to the Send Request
        TRY.
            CALL METHOD lo_send_request->set_document
              EXPORTING
                i_document = lo_document_bcs.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Create Sender
        TRY.
            CALL METHOD cl_cam_address_bcs=>create_internet_address
              EXPORTING
                i_address_string = lv_send
              RECEIVING
                result           = lo_sender.
          CATCH cx_address_bcs INTO lo_cx_address_bcs.
            lo_cx_address_bcs->if_message~get_text(
                          RECEIVING
                              result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Add Sender to Mail
        TRY.
            CALL METHOD lo_send_request->set_sender
              EXPORTING
                i_sender = lo_sender.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Create Receipient
        lv_send = '[email protected]'.
        TRY.
            CALL METHOD cl_cam_address_bcs=>create_internet_address
              EXPORTING
                i_address_string = lv_send
              RECEIVING
                result           = lo_recipient.
          CATCH cx_address_bcs INTO lo_cx_address_bcs.
            lo_cx_address_bcs->if_message~get_text(
                          RECEIVING
                              result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Add Receipient to Mail
        TRY.
            CALL METHOD lo_send_request->add_recipient
              EXPORTING
                i_recipient = lo_recipient
                i_express   = 'X'.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Set Send Immediately
        TRY.
            CALL METHOD lo_send_request->set_send_immediately
              EXPORTING
                i_send_immediately = 'X'.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Send Mail
        TRY.
            CALL METHOD lo_send_request->send
              EXPORTING
                i_with_error_screen = 'X'
              RECEIVING
                result              = lv_sent_to_all.
            COMMIT WORK.
          CATCH cx_send_req_bcs INTO lo_cx_send_req_bcs.
            lo_cx_send_req_bcs->if_message~get_text(
                                  RECEIVING
                                      result = lv_result ).
            MESSAGE lv_result TYPE 'E'.
        ENDTRY.
    * Inform User
        IF lv_sent_to_all EQ 'X'.
          COMMIT WORK AND WAIT.
          MESSAGE 'Mail Sent Successfully' TYPE 'I'.
        ELSE.
          MESSAGE 'Error Sending Mail to External Id' TYPE 'E'.
        ENDIF.
      ENDMETHOD.                    "email_result_as_pdf
    Regards
    Kathirvel

Maybe you are looking for