<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Sending  Excel Attachment in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083901#M432557</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1994815&amp;amp;messageID=2919787" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1994815&amp;amp;messageID=2919787&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the above link where they discussed about this similar problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to award points if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: column TYPE ole2_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF h_excel 'Columns' = column NO FLUSH.&lt;/P&gt;&lt;P&gt;FREE OBJECT h_excel NO FLUSH.&lt;/P&gt;&lt;P&gt;CALL METHOD OF column 'Autofit' NO FLUSH.&lt;/P&gt;&lt;P&gt;FREE OBJECT column NO FLUSH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Apr 2007 07:22:05 GMT</pubDate>
    <dc:creator>rahulkavuri</dc:creator>
    <dc:date>2007-04-09T07:22:05Z</dc:date>
    <item>
      <title>Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083899#M432555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am sending excel attachment through email .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This excel attachment is generated from an ALV Grid Output .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The excel file has all columns fixed to its initial length due to which the entire column content isnt visible unless its extended at the time of checking its content  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a remedy to this or send any code which can be used to read the Grid Output and Convert into excel sheet ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Soumyadip Pal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 07:18:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083899#M432555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T07:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083900#M432556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try passing the following parameter for layout in ALV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  G_LAYOUT-COLWIDTH_OPTIMIZE = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 07:21:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083900#M432556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T07:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083901#M432557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/click.jspa?searchID=1994815&amp;amp;messageID=2919787" target="test_blank"&gt;https://forums.sdn.sap.com/click.jspa?searchID=1994815&amp;amp;messageID=2919787&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the above link where they discussed about this similar problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont forget to award points if found helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: column TYPE ole2_object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OF h_excel 'Columns' = column NO FLUSH.&lt;/P&gt;&lt;P&gt;FREE OBJECT h_excel NO FLUSH.&lt;/P&gt;&lt;P&gt;CALL METHOD OF column 'Autofit' NO FLUSH.&lt;/P&gt;&lt;P&gt;FREE OBJECT column NO FLUSH.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 07:22:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083901#M432557</guid>
      <dc:creator>rahulkavuri</dc:creator>
      <dc:date>2007-04-09T07:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083902#M432558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using ALV_DISPLAY_BASIC_LIST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pl. award appropriate points. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;ravish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:03:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083902#M432558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T09:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083903#M432559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soumyadip Pal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT z_email_abap_report.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E-mail an Abap report                                               *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : w_name TYPE sos04-l_adr_name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS :&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Recipient address&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  s_name FOR w_name DEFAULT sy-uname NO INTERVALS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;E-mail Abap report&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  PERFORM f_send_mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Form f_send_mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f_send_mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Data Declaration&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;    l_datum(10),&lt;/P&gt;&lt;P&gt;    ls_docdata    TYPE sodocchgi1,&lt;/P&gt;&lt;P&gt;    lt_objpack    TYPE TABLE OF sopcklsti1 WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;    lt_objhead    TYPE TABLE OF solisti1   WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;    lt_objtxt     TYPE TABLE OF solisti1   WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;    lt_objbin     TYPE TABLE OF solisti1   WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;    lt_reclist    TYPE TABLE OF somlreci1  WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;    lt_listobject TYPE TABLE OF abaplist   WITH HEADER LINE,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_tab_lines TYPE i,&lt;/P&gt;&lt;P&gt;    l_att_type  LIKE soodk-objtp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  WRITE sy-datum TO l_datum.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;List of Users According to Logon Date and Password Change&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOTE: Create ALI/OTF Document in Spool&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SUBMIT rsusr200 WITH valid = 'X'&lt;/P&gt;&lt;P&gt;                  WITH notvalid = space&lt;/P&gt;&lt;P&gt;                  WITH unlocked = 'X'&lt;/P&gt;&lt;P&gt;                  WITH locked = space&lt;/P&gt;&lt;P&gt;             EXPORTING LIST TO MEMORY AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read list from memory into table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      listobject = lt_listobject&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found  = 1&lt;/P&gt;&lt;P&gt;      OTHERS     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Error in function module &amp;amp;1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE ID '61' TYPE 'E' NUMBER '731'&lt;/P&gt;&lt;P&gt;       WITH 'LIST_FROM_MEMORY'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Because listobject is of size RAW(1000)&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;and objbin is of size CHAR(255) we make this table copy&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'TABLE_COMPRESS'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      in             = lt_listobject&lt;/P&gt;&lt;P&gt;      out            = lt_objbin&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      compress_error = 1&lt;/P&gt;&lt;P&gt;      OTHERS         = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Error in function module &amp;amp;1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE ID '61' TYPE 'E' NUMBER '731'&lt;/P&gt;&lt;P&gt;       WITH 'TABLE_COMPRESS'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;NOTE: Creation of attachment is finished yet.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For your report, the attachment should be placed into table&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;objtxt for plain text or&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;objbin for binary content.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Now create the message and send the document.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Message Body&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Title and Description&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ls_docdata-obj_name = 'USERS_LIST'.&lt;/P&gt;&lt;P&gt;  CONCATENATE 'List of Users' sy-sysid '-' l_datum          "#EC *&lt;/P&gt;&lt;P&gt;        INTO ls_docdata-obj_descr SEPARATED BY space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Main Text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  lt_objtxt = 'List of Users According to Logon Date' &amp;amp;&lt;/P&gt;&lt;P&gt;              ' and Password Change'.                       "#EC *&lt;/P&gt;&lt;P&gt;  APPEND lt_objtxt.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write Packing List (Main)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE lt_objtxt LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;  READ TABLE lt_objtxt INDEX l_tab_lines.&lt;/P&gt;&lt;P&gt;  ls_docdata-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).&lt;/P&gt;&lt;P&gt;  CLEAR lt_objpack-transf_bin.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_num = l_tab_lines.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_type = 'RAW'.&lt;/P&gt;&lt;P&gt;  APPEND lt_objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Message Attachment&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Write Packing List (Attachment)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  l_att_type = 'ALI'.&lt;/P&gt;&lt;P&gt;  DESCRIBE TABLE lt_objbin LINES l_tab_lines.&lt;/P&gt;&lt;P&gt;  READ TABLE lt_objbin INDEX l_tab_lines.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objbin ).&lt;/P&gt;&lt;P&gt;  lt_objpack-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-head_num = 0.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_start = 1.&lt;/P&gt;&lt;P&gt;  lt_objpack-body_num = l_tab_lines.&lt;/P&gt;&lt;P&gt;  lt_objpack-doc_type = l_att_type.&lt;/P&gt;&lt;P&gt;  lt_objpack-obj_name = 'ATTACHMENT'.&lt;/P&gt;&lt;P&gt;  lt_objpack-obj_descr = 'List_of_Users'.                   "#EC *&lt;/P&gt;&lt;P&gt;  APPEND lt_objpack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create receiver list&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  LOOP AT s_name.&lt;/P&gt;&lt;P&gt;    lt_reclist-receiver = s_name-low.&lt;/P&gt;&lt;P&gt;    lt_reclist-rec_type = 'B'.&lt;/P&gt;&lt;P&gt;    APPEND lt_reclist.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send Message&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = ls_docdata&lt;/P&gt;&lt;P&gt;      put_in_outbox              = ''&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = lt_objpack&lt;/P&gt;&lt;P&gt;      object_header              = lt_objhead&lt;/P&gt;&lt;P&gt;      contents_bin               = lt_objbin&lt;/P&gt;&lt;P&gt;      contents_txt               = lt_objtxt&lt;/P&gt;&lt;P&gt;      receivers                  = lt_reclist&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;      document_not_sent          = 2&lt;/P&gt;&lt;P&gt;      document_type_not_exist    = 3&lt;/P&gt;&lt;P&gt;      operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;      parameter_error            = 5&lt;/P&gt;&lt;P&gt;      x_error                    = 6&lt;/P&gt;&lt;P&gt;      enqueue_error              = 7&lt;/P&gt;&lt;P&gt;      OTHERS                     = 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Document sent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE ID 'SO' TYPE 'S' NUMBER '022'.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Document &amp;lt;&amp;amp;&amp;gt; could not be sent&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE ID 'SO' TYPE 'S' NUMBER '023'&lt;/P&gt;&lt;P&gt;       WITH ls_docdata-obj_name.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                               " F_SEND_MAIL&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="17" type="ul"&gt;&lt;P&gt;END OF PROGRAM Z_EMAIL_ABAP_REPORT ******************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:09:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083903#M432559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T09:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083904#M432560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u r using the FM &amp;lt;b&amp;gt;"REUSE_ALV_GRID_DISPLAY"&amp;lt;/b&amp;gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try using the following parameter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat-outputlen = 'X'.&lt;/P&gt;&lt;P&gt;wa_fieldcat-intlen = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_fieldcat is of type SLIS_FIELDCAT_ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Thasneem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:11:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083904#M432560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T09:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083905#M432561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which function module are u using to generate the internal table for sending the attachment?.Bcoz the field length depends on the generated internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ahasan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 09:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083905#M432561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T09:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Sending  Excel Attachment</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083906#M432562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read List details from Memory&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_FROM_MEMORY'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      listobject = listobject&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      not_found  = 1&lt;/P&gt;&lt;P&gt;      OTHERS     = 2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Generate LIST for excel file&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'LIST_TO_TXT'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      listtxt            = ttxt&lt;/P&gt;&lt;P&gt;      listobject         = listobject&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      empty_list         = 1&lt;/P&gt;&lt;P&gt;      list_index_invalid = 2&lt;/P&gt;&lt;P&gt;      OTHERS             = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT ttxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REPLACE ALL OCCURRENCES OF '|' IN ttxt-line&lt;/P&gt;&lt;P&gt;      WITH cl_abap_char_utilities=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     MODIFY ttxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Send the document&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         document_type              = 'RAW'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          document_data               =  x_doc_chng&lt;/P&gt;&lt;P&gt;          commit_work                 = 'X'&lt;/P&gt;&lt;P&gt;        TABLES&lt;/P&gt;&lt;P&gt;          contents_txt                =  t_email&lt;/P&gt;&lt;P&gt;          object_header               = int_objhead&lt;/P&gt;&lt;P&gt;          packing_list                = int_objpack&lt;/P&gt;&lt;P&gt;          contents_bin               =  ttxt&lt;/P&gt;&lt;P&gt;          receivers                  = lt_receiver&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;          document_not_sent          = 2&lt;/P&gt;&lt;P&gt;          operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;          OTHERS                     = 99.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2007 10:12:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-excel-attachment/m-p/2083906#M432562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-09T10:12:53Z</dc:date>
    </item>
  </channel>
</rss>

