Add link in the Mail body

Hi
i am doing file to mail scenario. i need to add link in the mail how can we do this. i tried TransformBean. but it's not working could u please help me
Thank you
Regards
Sundher

Hi Sundher,
Web Blogs on File Scenario:
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/community.user/blog/2006/09/07/email-reporting
Check the following links:
these links should help you clear your doubts regarding Configuring a Receiver Mail Adapter and possibly find the cause for your error.
http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/8c/607fe4756b654ab9f420097c29f6e9/frameset.htm
http://help.sap.com/saphelp_nw04/helpdata/en/5d/112d20f6ce6c46ba66afb98d278fbd/frameset.htm
Ignore the Image part and use this for your file to mail:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5816
Hope it will work for you
Amaresh

Similar Messages

  • Formating the mail body

    Hi to all
    Is it possible to format the mail body that we create using FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' like a rich user interface?
    Kindly suggest.
    Thanks & Regards
    Vipin

    Its possible to give html tags in the body internal table thereby make it a rich user interface. For html you may need to use document type as HTM.
    I 've given an example in this link. Please have a look.
    Re: Bold, Colors in mail - Urgent
    Rgds,
    TM.

  • How to get the content of message in the mail body

    Hi,
    Can anyone suggest me to get the message content as the mail body using messagetTransformation bean????

    Hi
    In the Receiver Mail Adapter use these settings
    Message Protocol:XIPAYLOAD
    and tick on Use mail package.
    Gt back if you have more doubts
    Thanks

  • How to sending simple text in the mail body

    Hi friends,
                 How to send simple text in the mail body through ABAP code
       plz send me the related code and setting for that mail.
      Thanks&Regards,
      Srinivas

    try this...
    FORM send_file_as_email_attachment .
      DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
      DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
      DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
      DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
      DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
      DATA : i_body TYPE soli_tab WITH HEADER LINE.
    DATA: it_attach LIKE it_display1 OCCURS 0 WITH HEADER LINE.
      DATA: doc_chng LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
      DATA: att_lines TYPE i.
    DATA: lv_lines TYPE i.
      DATA: file TYPE string.
      data: g_datum like sy-datum.
      data: g_datum1(10) type c.
      DATA: len TYPE n.
      LOOP AT it_email.
        CLEAR : objpack,
                objhead,
                objbin,
                objtxt,
                reclist.
        REFRESH: objpack,
                 objhead,
                 objbin,
                 objtxt,
                 reclist.
        g_datum =     sy-datum - 1.
        concatenate g_datum6(2) '.' g_datum4(2) '.' g_datum+0(4) into
        g_datum1.
    doc_chng-obj_descr = 'Aged Stock more than 45 Days'.
        CONCATENATE 'Aged Stock more than 45 Days' '-' it_email-vkbur INTO
        doc_chng-obj_descr.
        CONCATENATE 'Please find enclosed Aged Stock Details ( >45days ) report as on'
        g_datum1
        INTO objtxt-line SEPARATED BY space.
        APPEND objtxt.
        objtxt-line = ' '.
        APPEND objtxt.
        objtxt-line = 'Regards'.
        APPEND objtxt.
        objtxt-line = 'LIS SAP Projects'.
        APPEND objtxt.
        objtxt-line =
        'PS: Pls send feedback for futher improvements to SAP office.'.
        APPEND objtxt.
        DESCRIBE TABLE objtxt LINES tab_lines.
        READ TABLE objtxt INDEX tab_lines.
        doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
       CLEAR objpack-transf_bin.
        objpack-head_start = 1.
        objpack-head_num = 1.
        objpack-body_start = 1.
        objpack-body_num = tab_lines.
        objpack-doc_type = 'TXT'.
       objpack-obj_name = 'Run_prog'.
       objpack-obj_descr = 'Agestock.txt'.
       lv_lines = tab_lines.
        APPEND objpack.
    *CONCATENATE 'Plant'   'Material Number' 'Qty(More than 45days)'
    *'Amount' INTO
           it_display SEPARATED BY space.
           append objbin.
           clear: objbin.
        CLEAR:it_display2.
        REFRESH it_display2.
        it_display2-werks = 'Plant|'.
        it_display2-matnr = 'Material Number'.
        it_display2-qty = '|Qty > 45 days'.
        it_display2-amount = '      |Amount'.
        APPEND it_display2.
        it_display2-werks = ''.
        it_display2-matnr = ''.
        it_display2-qty = ''.
        it_display2-amount = ''.
        APPEND it_display2.
        CLEAR : it_display2.
        sort it_display1 by amount descending.
        LOOP AT it_display1 WHERE werks = it_email-vkbur.
         AT FIRST.
    *CONCATENATE 'Plant    '   'Material Number' 'Qty(More than 45days)'
    *'Amount' INTO
           objbin-line SEPARATED BY space.
           append objbin.
           clear: objbin.
         ENDAT.
          CALL FUNCTION 'CONVERSION_EXIT_ALPHA_OUTPUT'
            EXPORTING
              input  = it_display1-matnr
            IMPORTING
              output = it_display1-matnr.
          it_display1-qty = TRUNC( it_display1-qty ).
          MOVE-CORRESPONDING it_display1 TO it_display2.
          APPEND it_display2.
          CLEAR:it_display1,it_display2,objbin.
          CLEAR:it_display1.
        ENDLOOP.
        objbin[] = it_display2[].
        DESCRIBE TABLE objbin LINES tab_lines.
        objhead = 'Suug'.
        APPEND objhead.
        objpack-transf_bin = 'X'.
        objpack-head_start = 3.
        objpack-head_num = 1.
        objpack-body_start = 1.
        objpack-body_num = tab_lines.
        objpack-doc_type = 'RAW'.
        objpack-obj_name = 'Run_prog'.
        objpack-obj_descr = 'Agestock.txt'.
        APPEND objpack.
        reclist-receiver = '[email protected]'.
        reclist-rec_type = 'U'.
        APPEND reclist.
    =====================================================================
        CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
          EXPORTING
            document_data              = doc_chng
            commit_work                = '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
            operation_no_authorization = 4
            OTHERS                     = 99.
        CLEAR : it_email.
      ENDLOOP.
    ENDFORM.                    "send_mail
    Message was edited by:
            Sugumar Ganesan

  • Extended notifications & placing a link to the mail

    Hi,
    We have extended notifications running in our system with basically the following relevant settings:
    -one message contains multiple items
    -HTML message
    I have configured the text of the mail to meet our requirements and it works just fine, and now I would like to enhance the text even more. I would like to include a link to the UWL to the text. So for example the text would be:
    You have new work items in <u>universal worklist.</u> (where the phrase 'universal worklist' would be a link and by pressing it you could access the UWL).
    How to do this? I tried to make this by using "a href" tag, but then the result was that the the mail text just included the whole "a ref" thing - it didn't create a link from it.

    Sorry, I only found this one (btw very good) blog regarding extended notifications:
    /people/saujanya.gn/blog/2006/12/19/how-to-get-work-items-your-outlook-inbox
    ...and it doesn't really answer my question.
    It is clear for me about how to create a link for executing each individual item, but this is not required. I just wonder that how can I add a link to the custom dialog text that I have maintained with SE61.
    Or is there some other way to handle this? I would also be happy to some other solution. (The only thing that I would not be happy is that I would need to include the whole long URL address of the UWL to the mail in order that users could easily access UWL through the mail.)

  • How can I get the mail body of the start point mail

    Hi,
    I am using 'MailStartPoint' activity to fetch mails using POP3 protocol. It is fetching the mail successfully. Now, how can I read the different parts of mail message such as Subject, Body in variables.
    Thank You,
    Hali Gerorge.

    You need to set data types values as below for reading the mail.
    %SUBJECT%
    %BODY%
    %HEADER%
    %SENDER%
    Check this link for more details - http://help.adobe.com/en_US/livecycle/9.0/workbenchHelp/help.htm?content=001463.html
    Also see "Use an e-mail start point" @ http://www.adobe.com/devnet/livecycle/videotraining.html
    ~ Varun

  • Hyperlink in the mail body

    I need to put hyperlink in th mail body.I am using the following lines to display the hyperlink........................
    <a href = xyz.com > test </a>
    But the problem is that  instead of displaying the test hyrerlink it is showing me :-
    <a href = _xyz.com_ > test </a>.
    How to fix this problem.

    Here it is
    <a href="www.xyz.com"> test </a>
    that's it.
    Regards,
    IA
    Edited by: Imthiaz Ahmed on Apr 9, 2008 4:55 PM

  • How to add subject in the mail while choosing option i.e. "Send a copy of the entire PDF file as an

    I need to update the subject in the mail while choosing option i.e. "Send a copy of the entire PDF file as an attachment"?
    How I can add my own subject in the mail while attaching pdf file, currently it shows as "do" subject name which is default every time?

    the normal FILE FTP adapter will do or do we have to use any special Adapter
    File adapter with a bit of modification will do. See this
    XI: Read data from PDF file in Sender Adapter
    Once ur pdf is converted to xml, u can use the java or xsl mapping to map the comlpete xml structure into one field
    The specified item was not found.
    Regards,
    Prateek

  • REG:GIVE THE LINK IN THE MAIL TO OPEN THE TRANSACTION

    Hi All:
    As part of my workflow i need to send the mail(i am doing),And in that mail i need to provide a link to open an Transaction by the user to review the details.
    So please could any one tell the way how to solve this issue.
    Thanks in advance.
    Srihasa..

    To provide the link you need to use the link as shown below:-
    http://servername:8001/sap/bc/gui/sap/its/webgui/!?sap-client=100&sap-user=loginid&sap-password=password&~transaction=sbwp
    where
    8001 is the port number
    sap-client is the client you will using in the server
    sap-user stands for the user id
    password stands for password for user id
    transaction is the sap transaction which you need to use
    let me know if you still face any issue.
    Edited by: Rajwin Singh Sood on Jan 20, 2009 10:04 AM
    Edited by: Rajwin Singh Sood on Jan 20, 2009 10:07 AM

  • Add link to the pgm documentation

    Hi Everyone,
    To one my pgm I have some domentation created. Here in the document I want to add some link like(screen shots of the screen) where ever necessary.
    How do I add these as links to the document.
    Any help on this will be of great help to me.
    Thanks in advance,
    Prabs.

    Hi Prabs
    while creating documentation, go to Insert->Link (from menu) and then choose the type of link.
    I hope it's usefull for you
    Max

  • How to add links in the detailed navigation area of the navigation panel

    hi everyone,
    I had developed 4 iviews. 2 of those iviews i added to 2 different pages. And the 2 pages added to workse and assigned a role. i assigned this role to user. and it is working fine.
    i want to add remaining to iviews as links.
    how to add the links in the detailed navigation area of the navigation panel.
    regards
    sunil kumar.ch

    Hi sunil,
       Create a JSPDynPage component(C) having 2 hbj:link whose hrefs point to these 2 iViews(A and B). U can get the href of the iView by previewing it(for A and B). Create an iview from the par component (C) and add it to the DLN so that it shows the links to ur iViews(A and B). U can make the Show Tray property of this iView (C) to false.
    Regards,
    Harini S

  • Changing the URL link of the mail

    Hi
    We need to change the login URL present in the mail notification sent  from the SRM ( like the standard mails sent to the approvers) . We want to provide a different URL than the standard URL sent . How to tweak the standard URL present in the mail?.  Any help is highly appreciated.
    Thanks
    velu

    We are on SRM 7.0. The program is /sapsrm/offlineapprovalsend.
    Thanks
    velu

  • When I paste a URL into an email body (Yahoo mail), just the text is pasted rather that the live web link I want represented. How can I change this so a pasted URL is shown as a live link in the email body?

    The question says it all!

    Just above the textarea that you use to enter the message text on the "Compose New Mail page" there is usually a button bar with buttons to add text formatting like Bold and Italic.<br />
    That toolbar may also have a button to turn a text link into a clickable hyperlink (look for a chain like button).<br />
    You can select the text and click that button to turn the link into a clickable hyperlink.<br />
    If you can't find the button then hover them all to check the tooltip of each (e.g. Insert hyperlink).
    * Make Link - https://addons.mozilla.org/firefox/addon/make-link/

  • To Add attachment to the Mail

    Hi Gurus,
    I am using the folwing program to sent mail to sapusers.
    In that i want to add Attachments. i dont know how to do?
    Can anyone Help me.
    *& Report  ZMAIL1                                                      *
    report yvenkatesh_send_express_mail .
    Internal Tables                                                     *
    For Sending the express mail
    data: itab_objhead          like soli       occurs 0 with header line,
          itab_objcont          like soli       occurs 0 with header line,
          itab_objpara          like selc       occurs 0 with header line,
          itab_objparb          like soop1      occurs 0 with header line,
          itab_receivers        like soos1      occurs 0 with header line.
    Work Areas                                                          *
    For Sending the express mail
    data: w_object_hd_change   like sood1.
    counters
    data: w_ok_count(10)       type n.
    data: w_err_count(10)      type n.
    data: w_tot_count(10)      type n.
    start-of-selection                                                  *
    start-of-selection.
      w_ok_count = 200.
      w_err_count = 300.
      w_tot_count = 500.
    End-of-selection                                                    *
    end-of-selection.
    Initialize the fields
      clear: w_object_hd_change.
      clear: itab_objcont, itab_objhead, itab_objpara,
             itab_objparb, itab_receivers.
      refresh: itab_objcont, itab_objhead, itab_objpara,
               itab_objparb, itab_receivers.
    Fill the message text
      concatenate 'Number of records processed:' w_tot_count
             into itab_objcont-line separated by space.
      append itab_objcont.
      concatenate 'Number of records processed Correctly:' w_ok_count
             into itab_objcont-line separated by space.
      append itab_objcont.
      concatenate 'Number of records Errored Out:' w_err_count
             into itab_objcont-line separated by space.
      append itab_objcont.
    Fill w_object_hd_change structure
      w_object_hd_change-objla   = sy-langu.
      w_object_hd_change-objnam  = sy-repid.
      w_object_hd_change-objdes  = 'Job ABC results'.
      w_object_hd_change-objsns  = 'F'.
      w_object_hd_change-vmtyp   = 'T'.
      w_object_hd_change-skips   = 'X'.
      w_object_hd_change-acnam   = 'SP01'. "Transaction to execute Special-Code
      w_object_hd_change-objcp   = 'X'.
    Specify the receivers
      itab_receivers-rcdat = sy-datum.
      itab_receivers-rctim = sy-uzeit.
      itab_receivers-recnam = sy-uname.    "Send to UserId"
      itab_receivers-rtunam = sy-uname.
      itab_receivers-sndex  = 'X'.         "Express mail message.
      append itab_receivers.
    Specify the spool info.     "Special-Code
      itab_objpara-name = 'SPI'.  "Special-Code
      itab_objpara-low  = sy-spono. "Special-Code
      append itab_objpara. "Special-Code
      call function 'SO_OBJECT_SEND'
           exporting
                object_hd_change = w_object_hd_change
                object_type      = 'RAW'
                owner            = sy-uname
           tables
                objcont          = itab_objcont
                objhead          = itab_objhead
                objpara          = itab_objpara
                objparb          = itab_objparb
                receivers        = itab_receivers
           exceptions
                others           = 01.
    Regards,
    Bhuvana.

    Hello,
    Check this sample code.
    REPORT ZV_SEND_MAIL .
    TABLES: EKKO.
    PARAMETERS: P_EMAIL   TYPE SOMLRECI1-RECEIVER
                                      DEFAULT '[email protected]'.
    TYPES: BEGIN OF T_EKPO,
      EBELN TYPE EKPO-EBELN,
      EBELP TYPE EKPO-EBELP,
      AEDAT TYPE EKPO-AEDAT,
      MATNR TYPE EKPO-MATNR,
    END OF T_EKPO.
    DATA: IT_EKPO TYPE STANDARD TABLE OF T_EKPO INITIAL SIZE 0,
          WA_EKPO TYPE T_EKPO.
    TYPES: BEGIN OF T_CHAREKPO,
      EBELN(10) TYPE C,
      EBELP(5)  TYPE C,
      AEDAT(8)  TYPE C,
      MATNR(18) TYPE C,
    END OF T_CHAREKPO.
    DATA: WA_CHAREKPO TYPE T_CHAREKPO.
    DATA:   IT_MESSAGE TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   IT_ATTACH TYPE STANDARD TABLE OF SOLISTI1 INITIAL SIZE 0
                    WITH HEADER LINE.
    DATA:   T_PACKING_LIST LIKE SOPCKLSTI1 OCCURS 0 WITH HEADER LINE,
            T_CONTENTS LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_RECEIVERS LIKE SOMLRECI1 OCCURS 0 WITH HEADER LINE,
            T_ATTACHMENT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            T_OBJECT_HEADER LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE,
            W_CNT TYPE I,
            W_SENT_ALL(1) TYPE C,
            W_DOC_DATA LIKE SODOCCHGI1,
            GD_ERROR    TYPE SY-SUBRC,
            GD_RECIEVER TYPE SY-SUBRC.
    *START_OF_SELECTION
    START-OF-SELECTION.
    *   Retrieve sample data from table ekpo
      PERFORM DATA_RETRIEVAL.
    *   Populate table with detaisl to be entered into .xls file
      PERFORM BUILD_XLS_DATA_TABLE.
    *END-OF-SELECTION
    END-OF-SELECTION.
    * Populate message body text
      PERFORM POPULATE_EMAIL_MESSAGE_BODY.
    * Send file by email as .xls speadsheet
      PERFORM SEND_FILE_AS_EMAIL_ATTACHMENT
                                   TABLES IT_MESSAGE
                                          IT_ATTACH
                                    USING P_EMAIL
                                          'Example .xls documnet attachment'
                                          'XLS'
                                          'filename'
                                 CHANGING GD_ERROR
                                          GD_RECIEVER.
    *   Instructs mail send program for SAPCONNECT to send email(rsconn01)
      PERFORM INITIATE_MAIL_EXECUTE_PROGRAM.
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_ekko
    FORM DATA_RETRIEVAL.
      SELECT EBELN EBELP AEDAT MATNR
       UP TO 10 ROWS
        FROM EKPO
        INTO TABLE IT_EKPO.
    ENDFORM.                    " DATA_RETRIEVAL
    *&      Form  BUILD_XLS_DATA_TABLE
    *       Build data table for .xls document
    FORM BUILD_XLS_DATA_TABLE.
      CONSTANTS: CON_CRET TYPE X VALUE '0D',  "OK for non Unicode
                 CON_TAB TYPE X VALUE '09'.   "OK for non Unicode
    *If you have Unicode check active in program attributes thnen you will
    *need to declare constants as follows
    *class cl_abap_char_utilities definition load.
    *constants:
    *    con_tab  type c value cl_abap_char_utilities=>HORIZONTAL_TAB,
    *    con_cret type c value cl_abap_char_utilities=>CR_LF.
      CONCATENATE 'EBELN' 'EBELP' 'AEDAT' 'MATNR'
             INTO IT_ATTACH SEPARATED BY CON_TAB.
      CONCATENATE CON_CRET IT_ATTACH  INTO IT_ATTACH.
      APPEND  IT_ATTACH.
      LOOP AT IT_EKPO INTO WA_CHAREKPO.
        CONCATENATE WA_CHAREKPO-EBELN WA_CHAREKPO-EBELP
                    WA_CHAREKPO-AEDAT WA_CHAREKPO-MATNR
               INTO IT_ATTACH SEPARATED BY CON_TAB.
        CONCATENATE CON_CRET IT_ATTACH  INTO IT_ATTACH.
        APPEND  IT_ATTACH.
      ENDLOOP.
    ENDFORM.                    " BUILD_XLS_DATA_TABLE
    *&      Form  SEND_FILE_AS_EMAIL_ATTACHMENT
    *       Send email
    FORM SEND_FILE_AS_EMAIL_ATTACHMENT TABLES PIT_MESSAGE
                                              PIT_ATTACH
                                        USING P_EMAIL
                                              P_MTITLE
                                              P_FORMAT
                                              P_FILENAME
                                              P_ATTDESCRIPTION
                                              P_SENDER_ADDRESS
                                              P_SENDER_ADDRES_TYPE
                                     CHANGING P_ERROR
                                              P_RECIEVER.
      DATA: LD_ERROR    TYPE SY-SUBRC,
            LD_RECIEVER TYPE SY-SUBRC,
            LD_MTITLE LIKE SODOCCHGI1-OBJ_DESCR,
            LD_EMAIL LIKE  SOMLRECI1-RECEIVER,
            LD_FORMAT TYPE  SO_OBJ_TP ,
            LD_ATTDESCRIPTION TYPE  SO_OBJ_NAM ,
            LD_ATTFILENAME TYPE  SO_OBJ_DES ,
            LD_SENDER_ADDRESS LIKE  SOEXTRECI1-RECEIVER,
            LD_SENDER_ADDRESS_TYPE LIKE  SOEXTRECI1-ADR_TYP,
            LD_RECEIVER LIKE  SY-SUBRC.
      LD_EMAIL   = P_EMAIL.
      LD_MTITLE = P_MTITLE.
      LD_FORMAT              = P_FORMAT.
      LD_ATTDESCRIPTION      = P_ATTDESCRIPTION.
      LD_ATTFILENAME         = P_FILENAME.
      LD_SENDER_ADDRESS      = P_SENDER_ADDRESS.
      LD_SENDER_ADDRESS_TYPE = P_SENDER_ADDRES_TYPE.
    * Fill the document data.
      W_DOC_DATA-DOC_SIZE = 1.
    * Populate the subject/generic message attributes
      W_DOC_DATA-OBJ_LANGU = SY-LANGU.
      W_DOC_DATA-OBJ_NAME  = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR = LD_MTITLE .
      W_DOC_DATA-SENSITIVTY = 'F'.
    * Fill the document data and get size of attachment
      CLEAR W_DOC_DATA.
      READ TABLE IT_ATTACH INDEX W_CNT.
      W_DOC_DATA-DOC_SIZE =
         ( W_CNT - 1 ) * 255 + STRLEN( IT_ATTACH ).
      W_DOC_DATA-OBJ_LANGU  = SY-LANGU.
      W_DOC_DATA-OBJ_NAME   = 'SAPRPT'.
      W_DOC_DATA-OBJ_DESCR  = LD_MTITLE.
      W_DOC_DATA-SENSITIVTY = 'F'.
      CLEAR T_ATTACHMENT.
      REFRESH T_ATTACHMENT.
      T_ATTACHMENT[] = PIT_ATTACH[].
    * Describe the body of the message
      CLEAR T_PACKING_LIST.
      REFRESH T_PACKING_LIST.
      T_PACKING_LIST-TRANSF_BIN = SPACE.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM = 0.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE IT_MESSAGE LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE = 'RAW'.
      APPEND T_PACKING_LIST.
    * Create attachment notification
      T_PACKING_LIST-TRANSF_BIN = 'X'.
      T_PACKING_LIST-HEAD_START = 1.
      T_PACKING_LIST-HEAD_NUM   = 1.
      T_PACKING_LIST-BODY_START = 1.
      DESCRIBE TABLE T_ATTACHMENT LINES T_PACKING_LIST-BODY_NUM.
      T_PACKING_LIST-DOC_TYPE   =  LD_FORMAT.
      T_PACKING_LIST-OBJ_DESCR  =  LD_ATTDESCRIPTION.
      T_PACKING_LIST-OBJ_NAME   =  LD_ATTFILENAME.
      T_PACKING_LIST-DOC_SIZE   =  T_PACKING_LIST-BODY_NUM * 255.
      APPEND T_PACKING_LIST.
    * Add the recipients email address
      CLEAR T_RECEIVERS.
      REFRESH T_RECEIVERS.
      T_RECEIVERS-RECEIVER = LD_EMAIL.
      T_RECEIVERS-REC_TYPE = 'U'.
      T_RECEIVERS-COM_TYPE = 'INT'.
      T_RECEIVERS-NOTIF_DEL = 'X'.
      T_RECEIVERS-NOTIF_NDEL = 'X'.
      APPEND T_RECEIVERS.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
           EXPORTING
                DOCUMENT_DATA              = W_DOC_DATA
                PUT_IN_OUTBOX              = 'X'
                SENDER_ADDRESS             = LD_SENDER_ADDRESS
                SENDER_ADDRESS_TYPE        = LD_SENDER_ADDRESS_TYPE
                COMMIT_WORK                = 'X'
           IMPORTING
                SENT_TO_ALL                = W_SENT_ALL
           TABLES
                PACKING_LIST               = T_PACKING_LIST
                CONTENTS_BIN               = T_ATTACHMENT
                CONTENTS_TXT               = IT_MESSAGE
                RECEIVERS                  = T_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.
    * Populate zerror return code
      LD_ERROR = SY-SUBRC.
    * Populate zreceiver return code
      LOOP AT T_RECEIVERS.
        LD_RECEIVER = T_RECEIVERS-RETRN_CODE.
      ENDLOOP.
    ENDFORM.
    *&      Form  INITIATE_MAIL_EXECUTE_PROGRAM
    *       Instructs mail send program for SAPCONNECT to send email.
    FORM INITIATE_MAIL_EXECUTE_PROGRAM.
      WAIT UP TO 2 SECONDS.
      SUBMIT RSCONN01 WITH MODE = 'INT'
                    WITH OUTPUT = 'X'
                    AND RETURN.
    ENDFORM.                    " INITIATE_MAIL_EXECUTE_PROGRAM
    *&      Form  POPULATE_EMAIL_MESSAGE_BODY
    *        Populate message body text
    FORM POPULATE_EMAIL_MESSAGE_BODY.
      REFRESH IT_MESSAGE.
      IT_MESSAGE = 'Please find attached a list test ekpo records'.
      APPEND IT_MESSAGE.
    ENDFORM.                    " POPULATE_EMAIL_MESSAGE_BODY
    Cheers,
    Vasanth

  • Add inline images to mail body in Office 365

    Hi:
    I am working on C# project for migrating emails to office 365.  I am setting Mime Contents for EmailMessage Object and saving it to Office 365. But its not able to add images in email body.
    I am getting popup for 'To always show content from sender' in email header and empty box for the image. Please suggest the solution.
    Thanks in advance.

    Hi,
    According to your post, my understanding is that you want to add more than one email address to existing user in SharePoint Online.
    We can add a new Property for user profiles in SharePoint admin center to achieve it.
    More information:
    http://office.microsoft.com/en-001/office365-sharepoint-online-enterprise-help/add-and-edit-user-profile-properties-HA102772741.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

Maybe you are looking for

  • How do you set up two iPads so that they can share ebooks, etc

    My wife and I each have an ipad 2 and we share an iMac.  Currently, we have been using the same apple ID, mine, when purchasing music or ebooks.  I would like to know the right way to set these up as I upgrade to IOS 5 so that we can both take advant

  • Web Gallery troubles

    I published a web gallery (album of pictures) to my .mac account, and it worked properly. But I then had to change one of those pictures (actually a title with an error), and I did this by changing it in the iPhoto 08 web gallery. That, too, worked p

  • Server Hangs when I tried to Access web Application that deployed in Managed Server

              Hai All!           Here is my problem ! I started Admin Server and Managed server in a same machine.           I deployed HttpClusterServlet in web.xml of Managed server. When i started servers           they start fine and says Clustering

  • Wireless router password

    Hi. I am visiting my friend in Hawaii. He has a Linsys WRT54GS wireless router, with a pc  running  XP. His wife uses her pc laptop on their system. I have a Mac powerbook, 10.4 system. My mac can't access his wireless signal, because they can't reme

  • IllegalStateException: getOutputStream() Issue???

    I am fairly new to JSP and having problem with this piece of code, any insight will be appreciated. thanks <%@ page contentType="application/vnd.ms-excel" autoFlush="false" import="java.io.*, org.apache.poi.hssf.usermodel.HSSFWorkbook" %> <jsp:useBea