Confidential Notice as text attachment

We have the text below included in the email after the message. If there are multiple replies this message is duplicated and duplicate and dulicated ....
I'd like to add the following as a text attachment to all outgoing emails. How is this done?
The message:
CONFIDENTIALITY NOTICE: This email and all attachments are confidential and may contain legally privileged and protected information from the XXXXXXXXXXXX intended solely for the use of the recipient(s) named above. If you are not the intended recipient, you are hereby notified that any review, dissemination, distribution, printing, copying, or the taking of any action in reliance on the contents of this email message and/or any attachments is strictly prohibited. If you have received this transmission in error, please notify the sender by telephone immediately and permanently delete this email [shred the document] and any attachments.
Thanks

Originally Posted by Michael Bell
On 1/13/2011 1:06 AM, EBSR PARAMEDIC wrote:
>
> We have the text below included in the email after the message. If there
> are multiple replies this message is duplicated and duplicate and
> dulicated ....
>
> I'd like to add the following as a text attachment to all outgoing
> emails. How is this done?
>
>
> The message:
> CONFIDENTIALITY NOTICE: This email and all attachments are confidential
> and may contain legally privileged and protected information from the
> XXXXXXXXXXXX intended solely for the use of the recipient(s) named
> above. If you are not the intended recipient, you are hereby notified
> that any review, dissemination, distribution, printing, copying, or the
> taking of any action in reliance on the contents of this email message
> and/or any attachments is strictly prohibited. If you have received
> this transmission in error, please notify the sender by telephone
> immediately and permanently delete this email [shred the document] and
> any attachments.
>
> Thanks
>
>
I am confused. You alreadfy add it to the text body, from what you say.
That is your ONLY built-in option - global signatures.
Ok thanks. On some emails I recieve, not sure of the systems, the "confidentiality text" is not in the body of the message, but is an attachment. Thanks for the response.

Similar Messages

  • How to download / read  text attachment  in Sender Mail Adapter  IN XI

    Hi
    I would like to know how to download / read text attachment in sender mail Adapter & sent same attachment to target system using file adapter.
    Please help how to design / resolve this concept.
    Regards
    DSR

    I would like to know how to download / read text attachment in sender mail Adapter & sent same
    attachment to target system using file adapter.
    Take help from this blog:
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    From the blog:
    However in most cases
    our message will not be a part of the e-mail's payload but will be sent as a file attachment.
    Can XI's mail adapter handle such scenarios? Sure it can but with a little help
    from the PayloadSwapBean adapter module
    Once your message (attachment) is read by the sender CC, you can perform the basic mapping requirement (if any) to convert the mail message fromat to the file format.....configure a receiver FILE CC and send the message...this should be the design...
    Regards,
    Abhishek.

  • Email with text attachment with line width 1250

    Dear all,
                 I want to send the email with text attachment whose line width in text file is 1250. Kindly let me know how to send email attachment with more than 255 line width.
    Regards,
    Manoj
    Moderator Message: Frequently Asked Question. Please search for available information before posting.
    Edited by: kishan P on Apr 29, 2011 2:48 PM

    Hi,
    What ever text you are sending in the email, create a standard text for it using tcode SO10. In the program use the FM READ_TEXT to get the data into internal table which will be of length 132 char. If you want line widht of 255 chars convert using FM SX_TABLE_LINE_WIDTH_CHANGE as below,
    CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        EXPORTING
          line_width_dst              = '255'
        TABLES
          content_in                  =  it_data
          content_out                 = it_mess_att
        EXCEPTIONS
          err_line_width_src_too_long = 1
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          OTHERS                      = 4.
    Use FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send email.
    Hope this will help you.
    regards,
    Tulasi.

  • Receiver mail adapter - Payload as a Text attachment

    Hi,
    In my proxy to mail adapter scenario, when i want to send payload to email as a Text email, where i need to content conversion in XI (XML to Txt file)
    when i send payload, currently i am receiving as a XML file.
    I try to follow like Rushikesh Deshmukh XI thread: Text Attachment in Mail Adapter  in XI forum(topic)
    I have having following config
    Processing Sequence
    localejbs/CreateAttachment Local Enterprise Bean XML2Plain
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    Module Configuration
    XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
    XML2Plain Transform.ContentType text/plain;charset=utf-8
    XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
    XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
    XML2Plain xml.addHeaderLine 0
    XML2Plain xml.conversionType StructXML2Plain
    XML2Plain xml.recordsetStructure Header1000,Header2000
    Please suggest some solution."
    Could you tell me exactly where i need to do all these setting and
    do i need import localejbs/CreateAttachment Local Enterprise Bean XML2Plain...I mean shall i add same in my processing sequence
    give in detail ? (in Receiver mail adapter Communication channel,  advanced mode additional parameters)
    I tried to follow this also
    http://help.sap.com/saphelp_nw04/helpdata/EN/4e/c153426da9bd30e10000000a155106/frameset.htm
    but i could not find much info on this help.sap.com reg. req.
    Thanks
    Prabaharan

    Hi
    f i create like this Receiver CC (module Tab)
    number: 1
    Module Name: localejbs/CreateAttachment
    Module Type: Local Enterprise Bean
    Module Key: mail
    is it enough? do i need any other setting like this
    Did you deployed CreateAttachment on PI server. As this is not a standard SAP module this is a custom module?
    mail as module key is already used by XIMAILAdapterBean use some other key for CreateAttachment
    Settings are fine for the Module
    Processing Sequence
    localejbs/CreateAttachment Local Enterprise Bean XML2Plain
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean Local Enterprise Bean mail
    Module Configuration
    XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
    In this:
    Module Key: XML2Plain
    Parameter Name: Transform.Class
    Parameter Value: com.sap.aii.messaging.adapter.Conversion
    is it right?
    Processing sequence is fine
    XML2Plain Transform.ContentType text/plain;charset=utf-8
    XML2Plain xml.Header1000.fieldFixedLengths 100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
    XML2Plain xml.Header2000.fieldFixedLengths 100,30,40,240
    XML2Plain xml.addHeaderLine 0
    XML2Plain xml.conversionType StructXML2Plain
    XML2Plain xml.recordsetStructure Header1000,Header2000
    can i anyone explain how to these settings?
    Is this key valid to provide inputs to the module check with the code for this module
    This looks like valid for MessageTransformBean ro StrictXMLtoPlainBean
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 15, 2008 5:34 AM

  • Receiver Mail adapter - Text attachment

    Hi Folks,
    sorry to post again & again same issue.
    if i want to achieve (proxy 2 mail scenario) Payload as text attachment in email,
    do i need to use below 2 modules in My receiver CC?
    Number 1 as AF_Modules/StrictXml2PlainBean
    Number 2 as AF_Modules/MessageTransformBean
    is it right (the order which i used and Modules which i used)?
    Screen shot link of my config:
    http://farm4.static.flickr.com/3071/2951413865_498cb4f19b_o.jpg
    http://farm4.static.flickr.com/3027/2951427759_d4d3097826_o.jpg
    did i make any mistake on my config?
    Rightnow i am getting Business content data in the email message inbox only. I am not getting Business data as a attachment.
    do i need to use PayloadSWAPBean module also to achieve my req.?
    Inputs reg. this will be helpful.
    Thanks
    Praba

    HI Gaurav,
    I tested again for ur Try
    With XIALL option  - i am getting 2 files in a attachment
    file name: ATT00001.xml  - control records -
    output file name : Untitled.xml - Payload (business data)
    file name: ATT00001.xml  as a attachment in the email
    - XI PAYLOAD  with out any module( but default sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean - module will be there), with out keep attachments option
      output file name : Untitled.xml  as a attachment in the email
    XI Payload  with out any module ( but default sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean - module will be there), with keep attachments
    any one has idea on this, plz throw some inputs
    Thanks
    Praba

  • Text Attachment in Mail Adapter

    Hi, I have Proxy-XI-Mail scenario.
    I want to send the mail as TEXT attachment.But the Text is coming as Mail content.
    I have having following config
    Processing Sequence
    localejbs/CreateAttachment                           Local Enterprise Bean     XML2Plain
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean  Local Enterprise Bean mail
    Module Configuration
    XML2Plain     Transform.Class     com.sap.aii.messaging.adapter.Conversion     
    XML2Plain     Transform.ContentType     text/plain;charset=utf-8          
    XML2Plain     xml.Header1000.fieldFixedLengths     100,10,10,30,30,80,80,20,10,10,20,20,30,10,18,240,10,30,18,10
    XML2Plain     xml.Header2000.fieldFixedLengths     100,30,40,240
    XML2Plain     xml.addHeaderLine     0
    XML2Plain     xml.conversionType     StructXML2Plain
    XML2Plain     xml.recordsetStructure     Header1000,Header2000
    Please suggest some solution.
    Thanks.
    Rushikesh

    Hi,
    Refer these blogs
    http://www.sapag.co.in/SAP-XI-Mail-Adaptor-FAQ'S.html
    The specified item was not found.
    The specified item was not found.
    eMail Report as Attachment (Excel/Word)
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    XI Mail Adapter: An approach for sending emails with attachment with help of Java mapping
    and also refer these links
    http://www.riyaz.net/blog/index.php/2008/02/27/xipi-configuring-the-sender-mail-adapter/
    http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm
    Regards,
    Suryanarayana

  • Regarding text attachment in Email in ABAP program

    Hello...
    Need your expertise in one of the issues. Requirement is seems to be simple
    but i am stuck up at this moment. i have refereed SDN with Several code but
    some point its not giving the proper solution. So its a request to you please
    do not provide any SDN link for reference as i am very much tried all of them.
    please share piece of code.
    Requirement : Need to develope one ABAP program, Email text attachment with Header line.thought its
    very simple but still facing difficulties.
    i have tried many code either its showing Data in single line without new line , in one of the Codes
    data is coming in successive line but there is lot of spacing within Words means all alphabates are tab
    separated. coud you please provide ,me the proper solution for this.
    in  one of the codes is working fine for excel but when Txt extension done data is not coming in successive line all
    data is coming in single line.
    Ex. Text file should contain 1 head and 4 colunns and Data size 50..
    Thanks
    Nishi

    Hi,
    Another option....
    Some sample code using cl_bcs .
    Note the use of cl_abap_char_utilities=>cr_lf .
    FORM mail_1_prep_10
    USING
        it_data         TYPE table
      CHANGING
        ob_document_bcs TYPE REF TO cl_document_bcs .
      DATA: txt_line TYPE string .
      DATA: txt_data TYPE string .
    * Create some text data .
      DO 20 TIMES .
        txt_line = '' .
        DO 10 TIMES .
          CONCATENATE txt_line '|' 'some data 01' '|'   INTO txt_line .
        ENDDO .
        CONCATENATE txt_line cl_abap_char_utilities=>cr_lf INTO txt_line .
        CONCATENATE txt_data txt_line INTO txt_data .
      ENDDO .
    * Mail stuf....
      DATA: it_solix TYPE solix_tab .
      CALL METHOD cl_bcs_convert=>string_to_solix
        EXPORTING
          iv_string = txt_data
        IMPORTING
          et_solix  = it_solix.
      DATA: attachment_subject TYPE so_obj_des .
      DATA: attachment_type TYPE so_obj_tp .
      attachment_subject = 'Some text data' .
      attachment_type = 'txt' .
      TRY.
          CALL METHOD ob_document_bcs->add_attachment
            EXPORTING
              i_attachment_type    = attachment_type
              i_attachment_subject = attachment_subject
              i_att_content_hex    = it_solix.
        CATCH cx_document_bcs .
      ENDTRY.
    ENDFORM .                    "mail_1_prep_10
    regards.
    This is how I see it in my mail :

  • E-mail as text attachment

    Hi,
    I want to send E-Mail as a .txt attachment.
    I tried using FM SO_DOCUMENT_SEND_API1, but its giving the sy-subrc = 2 (I.E document_not_sent) .
    Is 4.5B supports the text attachment ?
    is any configration requried?
    we have development and Quality clients this below code execuated in develpment sucessfully but when iam trying to test in quality client its throwing the error ( document_not_sent)
    Below is my code
    *--Data declearation
    DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE.
    DATA: OBJHEAD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    DATA: OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    DATA: OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    DATA: RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.
    DATA: DOC_CHNG LIKE SODOCCHGI1.
    DATA: TAB_LINES LIKE SY-TABIX.
    DATA: L_MSG(100) TYPE C.
    * Creation of the document to be sent
    DOC_CHNG-OBJ_NAME = 'Z2318S1B01'.
    DOC_CHNG-OBJ_DESCR = EMSUBJ .
    OBJTXT = 'your report from apple vacations is enclosed as
              ATTACHMENT'.
    APPEND OBJTXT.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    * Creation of the entry for the compressed document
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    OBJPACK-DOC_TYPE = 'RAW'.
    APPEND OBJPACK.
    * Creation of the document attachment
    LOOP AT IT_ATTACHMENT.
    OBJBIN = IT_ATTACHMENT-EMAIL.
    APPEND OBJBIN.
    CLEAR OBJBIN.
    ENDLOOP.
    DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    OBJHEAD = 'Airport Mainfest.txt'.
    APPEND OBJHEAD.
    * Creation of the entry for the compressed attachment
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 1.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    OBJPACK-DOC_TYPE = 'BMP'.
    OBJPACK-OBJ_NAME = 'ANLAGE'.
    OBJPACK-OBJ_DESCR = 'Representation of object 138'.
    OBJPACK-DOC_SIZE = TAB_LINES * 255.
    APPEND OBJPACK.
    * Completing the recipient list
    TRANSLATE EMAILID-LOW TO LOWER CASE.
    RECLIST-RECEIVER = EMAILID-LOW.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              =  DOC_CHNG
             PUT_IN_OUTBOX              =  'X'
         TABLES
              PACKING_LIST               = OBJPACK
             OBJECT_HEADER              =  OBJHEAD
             CONTENTS_BIN               = OBJBIN
             CONTENTS_TXT               = OBJTXT
              RECEIVERS                  = 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.
      LOOP AT RECLIST.
        IF RECLIST-RETRN_CODE = 0.
            CONCATENATE RECLIST-RECEIVER ':'
                        'The document was sent' INTO L_MSG.
       MESSAGE S656 WITH L_MSG.
        ELSE.
        CONCATENATE RECLIST-RECEIVER ':'
                       'The document was sent' INTO L_MSG.
           MESSAGE E656 WITH L_MSG.
        ENDIF.
      ENDLOOP.
    ELSE.
            CONCATENATE RECLIST-RECEIVER ':'
            'error occurred in sending mail' INTO L_MSG.
           MESSAGE S656 WITH L_MSG.
    ENDIF.
    Thanks
    Vikranth Khimavath

    Hi,
    I want to send E-Mail as a .txt attachment.
    I tried using FM SO_DOCUMENT_SEND_API1, but its giving the sy-subrc = 2 (I.E document_not_sent) .
    Is 4.5B supports the text attachment ?
    is any configration requried?
    we have development and Quality clients this below code execuated in develpment sucessfully but when iam trying to test in quality client its throwing the error ( document_not_sent)
    Below is my code
    *--Data declearation
    DATA: OBJPACK LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE.
    DATA: OBJHEAD LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    DATA: OBJBIN LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    DATA: OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
    DATA: RECLIST LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE.
    DATA: DOC_CHNG LIKE SODOCCHGI1.
    DATA: TAB_LINES LIKE SY-TABIX.
    DATA: L_MSG(100) TYPE C.
    * Creation of the document to be sent
    DOC_CHNG-OBJ_NAME = 'Z2318S1B01'.
    DOC_CHNG-OBJ_DESCR = EMSUBJ .
    OBJTXT = 'your report from apple vacations is enclosed as
              ATTACHMENT'.
    APPEND OBJTXT.
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    * Creation of the entry for the compressed document
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    OBJPACK-DOC_TYPE = 'RAW'.
    APPEND OBJPACK.
    * Creation of the document attachment
    LOOP AT IT_ATTACHMENT.
    OBJBIN = IT_ATTACHMENT-EMAIL.
    APPEND OBJBIN.
    CLEAR OBJBIN.
    ENDLOOP.
    DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    OBJHEAD = 'Airport Mainfest.txt'.
    APPEND OBJHEAD.
    * Creation of the entry for the compressed attachment
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 1.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES.
    OBJPACK-DOC_TYPE = 'BMP'.
    OBJPACK-OBJ_NAME = 'ANLAGE'.
    OBJPACK-OBJ_DESCR = 'Representation of object 138'.
    OBJPACK-DOC_SIZE = TAB_LINES * 255.
    APPEND OBJPACK.
    * Completing the recipient list
    TRANSLATE EMAILID-LOW TO LOWER CASE.
    RECLIST-RECEIVER = EMAILID-LOW.
    RECLIST-REC_TYPE = 'U'.
    APPEND RECLIST.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              =  DOC_CHNG
             PUT_IN_OUTBOX              =  'X'
         TABLES
              PACKING_LIST               = OBJPACK
             OBJECT_HEADER              =  OBJHEAD
             CONTENTS_BIN               = OBJBIN
             CONTENTS_TXT               = OBJTXT
              RECEIVERS                  = 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.
      LOOP AT RECLIST.
        IF RECLIST-RETRN_CODE = 0.
            CONCATENATE RECLIST-RECEIVER ':'
                        'The document was sent' INTO L_MSG.
       MESSAGE S656 WITH L_MSG.
        ELSE.
        CONCATENATE RECLIST-RECEIVER ':'
                       'The document was sent' INTO L_MSG.
           MESSAGE E656 WITH L_MSG.
        ENDIF.
      ENDLOOP.
    ELSE.
            CONCATENATE RECLIST-RECEIVER ':'
            'error occurred in sending mail' INTO L_MSG.
           MESSAGE S656 WITH L_MSG.
    ENDIF.
    Thanks
    Vikranth Khimavath

  • E-Mail as text attachment Exception

    Hi,
    When iam sending E-Mail as a text attachment iam not able to send email.
    <i><b>exception occured ( document_not_sent )</b></i> This is the error what iam getting. Below is my code.Please help me.
    DATA : DOC_CHNG LIKE SODOCCHGI1,
           OBJPACK LIKE SOPCKLSTI1 OCCURS  0 WITH HEADER LINE,
           OBJHEAD LIKE SOLISTI1   OCCURS  0 WITH HEADER LINE,
           OBJBIN  LIKE SOLISTI1   OCCURS  0 WITH HEADER LINE,
           OBJTXT  LIKE SOLISTI1   OCCURS  0 WITH HEADER LINE,
           RECLIST LIKE SOMLRECI1  OCCURS  0 WITH HEADER LINE.
    DATA: TAB_LINES LIKE SY-TABIX,
          L_MSG(50).
    * Creating the document to be sent
    DOC_CHNG-OBJ_NAME = 'Z2318S1B01'.
    DOC_CHNG-OBJ_DESCR = EMSUBJ.         "Given in Selection screen
    * Creating the body of email
    REFRESH OBJTXT.
    OBJTXT = 'your report'.
    APPEND OBJTXT.
    *-- Document size
    DESCRIBE TABLE OBJTXT LINES TAB_LINES.
    READ TABLE OBJTXT INDEX TAB_LINES.
    DOC_CHNG-DOC_SIZE = ( TAB_LINES - 1 ) * 255 + STRLEN( OBJTXT ).
    *-- Populate packing list for body text
    CLEAR OBJPACK-TRANSF_BIN.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM   = 0.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM   = TAB_LINES.
    OBJPACK-DOC_TYPE   = 'RAW'.
    APPEND OBJPACK.
    CLEAR OBJPACK.
    *-----Attachment details
    *-- Final Data to send to EMail
    LOOP AT IT_ATTACHMENT.
    OBJBIN-LINE = IT_ATTACHMENT-EMAIL.
    APPEND OBJBIN.
    CLEAR OBJBIN.
    ENDLOOP.
    *-- Get total no.of lines of Object table(attachment)
    CLEAR : TAB_LINES.
    DESCRIBE TABLE OBJBIN LINES TAB_LINES.
    *-- Populate object header(attachment name)
    OBJHEAD = EMATTACH.
    APPEND OBJHEAD.
    CLEAR  OBJHEAD.
    *-- Packing list for attachment
    OBJPACK-TRANSF_BIN = 'X'.
    OBJPACK-HEAD_START = 1.
    OBJPACK-HEAD_NUM = 1.
    OBJPACK-BODY_START = 1.
    OBJPACK-BODY_NUM = TAB_LINES .
    OBJPACK-DOC_TYPE = 'TXT'.
    OBJPACK-OBJ_NAME = 'Z2318S1B01'.
    OBJPACK-OBJ_DESCR = EMSUBJ.
    OBJPACK-DOC_SIZE = TAB_LINES * 255.
    APPEND OBJPACK.
    CLEAR  OBJPACK.
    *-- Populate Mail Id's
    LOOP AT EMAILID.
    RECLIST-RECEIVER = EMAILID-LOW.
    APPEND RECLIST.
    ENDLOOP.
    RECLIST-REC_TYPE = 'U'.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
         EXPORTING
              DOCUMENT_DATA              = DOC_CHNG
              PUT_IN_OUTBOX              = 'X'
    *    IMPORTING
    *         SENT_TO_ALL                =
    *         NEW_OBJECT_ID              =
         TABLES
              PACKING_LIST               = OBJPACK
              OBJECT_HEADER              = OBJHEAD
              CONTENTS_BIN               = OBJBIN
              CONTENTS_TXT               = OBJTXT
    *         CONTENTS_HEX               =
    *         OBJECT_PARA                =
    *         OBJECT_PARB                =
              RECEIVERS                  = 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.
    Thanks
    Vikranth Khimavath
    Message was edited by:
            Khimavath Vikranth
    Message was edited by:
            Khimavath Vikranth

    Hi Vikranth,
    Check the below mentioned code. In this code replace the code of converting attachment(PDF) with Text. & pass the table contents_hex in function module fro sending email.
    REPORT  z_test.
    DATA: x_ctrl_p       TYPE ssfctrlop,
          x_output_data  TYPE ssfcrescl.
    DATA: it_docs    LIKE docs       OCCURS 0 WITH HEADER LINE,
          it_lines   LIKE tline      OCCURS 0 WITH HEADER LINE,
          it_packing LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE.
    *-----Initialisation
    x_ctrl_p-no_dialog = 'X'.
    x_ctrl_p-getotf    = 'X'.
    x_ctrl_p-langu     = sy-langu.
              Internal Tables  Declaration                              *
    DATA: it_record    LIKE solisti1   OCCURS 0 WITH HEADER LINE,
          it_pcklist   LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
          it_mess      LIKE solisti1   OCCURS 0 WITH HEADER LINE,
          it_objbin    LIKE solisti1   OCCURS 0 WITH HEADER LINE,
          it_receivers LIKE somlreci1  OCCURS 0 WITH HEADER LINE,
          it_table     LIKE solix      OCCURS 0 WITH HEADER LINE.
    DATA: it_soli      LIKE soli OCCURS 0 WITH HEADER LINE.
    *-----Work area declaration
    DATA: wa_doc_data  TYPE  sodocchgi1.
              Variable  Declaration                                     *
    DATA: v_lines_txt  TYPE  i,
          v_lines_bin  TYPE  i,
          v_lines      TYPE  i,
          v_fname TYPE rs38l_fnam,
          v_size TYPE i,
          v_filename TYPE rlgrap-filename.
              Start of selection event                                  *
    START-OF-SELECTION.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'Z_SMTF_TEST'
        IMPORTING
          fm_name  = v_fname.
      CALL FUNCTION v_fname
        EXPORTING
          control_parameters = x_ctrl_p
        IMPORTING
          job_output_info    = x_output_data.
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 134
        IMPORTING
          bin_filesize          = v_size
        TABLES
          otf                   = x_output_data-otfdata
          lines                 = it_lines
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
      CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
        EXPORTING
          line_width_dst              = 255
        TABLES
          content_in                  = it_lines
          content_out                 = it_soli
        EXCEPTIONS
          err_line_width_src_too_long = 1
          err_line_width_dst_too_long = 2
          err_conv_failed             = 3
          OTHERS                      = 4.
      CALL FUNCTION 'ZFUNC_CONVERT_DATA_ODC01'
       EXPORTING
         iv_byte_mode       = 'X'
       TABLES
         it_data            = it_lines
         et_data            = it_table.
    *-----To caluculate total number of lines of internal table
      DESCRIBE TABLE it_table LINES v_lines.
    *-----Function module to download the output file.
      CALL FUNCTION 'DOWNLOAD'
        EXPORTING
          bin_filesize = v_size
          filename     = ' '
          filetype     = 'BIN'
        IMPORTING
          act_filename = v_filename
        TABLES
          data_tab     = it_lines.
    *-----Create Message Body and Title and Description
      it_mess =
    'i have successfully converted smartform from otf format to pdf' .
      " and i have attached that in mail'.
      APPEND it_mess.
      wa_doc_data-obj_name   = 'smartform'.
      wa_doc_data-expiry_dat = sy-datum + 10.
      wa_doc_data-obj_descr  = 'smartform'.
      wa_doc_data-sensitivty = 'F'.
      wa_doc_data-doc_size   = v_lines * 255.
      APPEND it_pcklist.
    *-----PDF Attachment
      it_pcklist-transf_bin = 'X'.
      it_pcklist-head_start = 1.
      it_pcklist-head_num = 0.
      it_pcklist-body_start = 1.
      it_pcklist-doc_size =  v_lines_bin * 255 .
      it_pcklist-body_num = v_lines.
      it_pcklist-doc_type = 'PDF'.
      it_pcklist-obj_name = 'smartform'.
      it_pcklist-obj_descr = 'smart_desc'.
      it_pcklist-obj_langu  = 'E'.
      it_pcklist-doc_size   = v_lines * 255.
      APPEND it_pcklist.
    *-----Giving the receiver email-id
      CLEAR it_receivers.
      it_receivers-receiver = '[email protected]'.
      it_receivers-rec_type = 'U'.
      APPEND it_receivers.
      CLEAR it_receivers.
      it_receivers-receiver = '[email protected]'.
      it_receivers-rec_type = 'U'.
      APPEND it_receivers.
    *-----Calling the function module to sending email
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = wa_doc_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        TABLES
          packing_list               = it_pcklist
          contents_txt               = it_mess
          contents_hex               = it_table
          receivers                  = it_receivers
        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.
        SUBMIT rsconn01   WITH mode       = 'INT'
                          WITH output     = 'X'
                          WITH rfcgroup   = 'iwdf7ytc_YD3_94'
                          AND RETURN.
        REFRESH: it_receivers,
                 it_mess,
                 it_pcklist.
      ENDIF.
    Ashven

  • "Confidential Notice" on Nokia E5

    How to cancel "Confidential Notice"  whan I send an EXCHANGE email ?
    Solved!
    Go to Solution.

    Hey flori8610
    Welcome to our Nokia forum!
    The notice you are referring to is your signature. This has been set as default by your system administrator or provider with whom your account is registered with.
    Should you wish to exclude or permanently remove this option, kindly contact your administrator for further assistance.
    Your appreciation and understanding is greatly valued on the issue concerned. Don't forget to join us on other parts of the forum.
    Regards
    Carl
    If this post answers your question, you can help others by clicking the green accepted solution' button.
    Please ask your questions to the main board and not to my mailbox. Thank you.

  • Anyone notice that text/iMessages are not listed by contact's name but the contact phone number now?

    Anyone notice that text/iMessages are not listed by contact's name but the contact phone number now after 5.0.1?

    Yes, I just noticed this after upgrading to 5.0.1. That's why I came here to this forum. I tried re-syncing with address book, but it didn't help. Not only is my text messages only showing phone numbers, instead of contact names, but my call log is doing that as well.

  • HT1414 I backed up my iphone last weekend.  Today (one week later), I was downloading music and noticed the text messages I send to myself (about 1 1/2 years worth) are gone.  Now, I can't find the backup from last week to try to get them back.  help???

    I backed up my iphone last weekend.  Today (one week later), I was downloading music and noticed the text messages I send to myself (about 1 1/2 years worth) are gone.  Now, I can't find the backup from last week to try to get them back.  help???

    You cannot update iPhone 4 to IOS 8.1.2, the highest you can update is IOS 7.1.2.
    Unless you've iPhone 4S (looks similar to iPhone 4)

  • Text attachment from PL/SQL procedure

    Hi
    I need to send a mail with text attachment from my PL/SQL procedure.I am using version 8i and tried with SMTP. I am able to send text mails but not attachments. Can any one help me!! it'l be great if you can share sample programs.
    Thanks
    HK

    http://www.oracle.com/technology/sample_code/tech/pl_sql/htdocs/Utl_Smtp_Sample.html

  • SO_NEW_DOCUMENT_ATT_SEND_API1 Text attachment issue after upgrade 4.7 to ECC6

    Hi,
      We are using function module so_new_document_att_send_api1 for sending mail with text document. It was working fine 4.7 system but in ECC system it is sending blank attachement with mail. Program remain same and no changes in that. I have attached code. please advise how to resolve this issue.
    Thanks

    Hello Venu,
    Move attachment to packinglist internal table and clear lt_packing_list-transf_bin as below.
    I copied your code and did some correction.
    *  lt_packing_list-transf_bin  = 'X'.
       lt_packing_list-head_start  = 2.
       lt_packing_list-head_num    = 1.
       lt_packing_list-body_start  = LINES( lt_mailtxt ) + 1.
       APPEND LINES OF lt_attachment TO lt_mailtxt.
       lt_packing_list-body_num    = LINES( lt_attachment ).
       lt_packing_list-doc_type    = 'RAW'. " You can give RAW incase if you want just a txt file.
       lt_packing_list-obj_name    = 'data.txt'.
       lt_packing_list-obj_descr   = 'data.txt'.
       lt_packing_list-doc_size    = lt_packing_list-body_num * 255.
       APPEND lt_packing_list. CLEAR lt_packing_list.
    In FM SO_NEW_DOCUMENT_ATT_SEND_ATI1, no need to pass the ITAB attachment i fyou can merge everything to ITAB packing list.

  • How To Send A Text Attachment Through MAIL Adapter

    Hi Experts,
       I Did A Scenario that is  By using file adapter at the sender side and PI as a middle ware i have sent one text file to database
    Now here my question is
    I have to send the same text file which i have sent database... my using Mail Adapter
    Simply  File to Mail Scenario
    FILE         PI                MAIL
    But I have to send the same text file which i sent to database... by using mail adapter... Here all the configuration are done ... And the channels are working properly... only thing  here is..to send same text file using mail adapter..
    It will be good if  any one can explain step by step..
    Regards
    aravindh

    Hi Rajendra,
       Tanq for connecting me ... This  Blog helped me a lot ....And it is a useful answer to me..
    For this file to mail scenario we have got .txt as an attachment ... Its fine ... But her my Client is asking me to add CONTENT in the mail... Content in the sense..
    Example of content...
    Hi,
    Please find the attachment
    Regards,
    sap pi,
    They need in the form of like this...  To add content in the mail  What i have to do...DO i need to add more configurations if it is what are they...
    Please solve the issue.. It is appreciated  some one can explain me step by step or .. By sending me screen charts..
    Thanks in  advance....
    Regards
    vinay

Maybe you are looking for

  • PS Cash Management

    Hi, I have the PS Cash Mgmt activated. When I run the payment transfer (TCODE CJFN) I entered  customer /vendor invoice ,transferred successfully and showing in report S_ALR_87100191 i think its getting refelected before the payment (Customer/vendor)

  • Problem with youtube

    I can't watch the youtube on my iPod touch because "the server is not correctly configured" what should I do in this case?

  • IDoc To JMS Scenario

    Hi, My Scenario is to recieve IDocs from SAP Backend System and send it to MQ queue via JMS Adapter. When recieving the IDoc messages in XI from SAP Backend system I get the following error message in transaction SXMB_MONI: <?xml version="1.0" encodi

  • RE1000 not found by MacPro under Yosemite

    Hello!I have an iMac and a MacPro Yosemite. I am trying to setup 2 RE1000 that I had put aside because they did no longer respond although they worked fine when I set them up 2 years ago before I upgraded to Mavericks and then Yosemite. I tried to up

  • Can airport express be used to extend a network that does not use an apple airport as the primary base station.

    I have a verizon fios cable modem that incorporates a wireless base station using 802.11n and wep 40 bit security.  I decided that I could improve poor reception by using two airport expresses as range extenders.  I cannot seem to configure them for