<?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: Create advance Excel with ABAP code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537060#M1657118</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the excel inplace is blank because of excel macro settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://howtosap.blogspot.com/2011/05/how-to-sap-excel-inplace-show-empty.html" target="test_blank"&gt;http://howtosap.blogspot.com/2011/05/how-to-sap-excel-inplace-show-empty.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this link shows step step by setting that you need to make to get over this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to do this through code you need to use OLE.&lt;/P&gt;&lt;P&gt;check this wiki:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Cell" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Cell&lt;/A&gt;&lt;EM&gt;Coloring&lt;/EM&gt;while&lt;EM&gt;Excel&lt;/EM&gt;Download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can search the forum for more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Feb 2012 16:36:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-02-10T16:36:22Z</dc:date>
    <item>
      <title>Create advance Excel with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537057#M1657115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello gurus,&lt;/P&gt;&lt;P&gt;I have a requirement to create excel spreadsheet with accents, colors and icons from ABAP program.&lt;/P&gt;&lt;P&gt;Does anyone know how to do it? Maybe, there is a way to export ALV with at least colors to be carried over?&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;removed by moderator&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Feb 10, 2012&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 14:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537057#M1657115</guid>
      <dc:creator>oleg_sukharenko</dc:creator>
      <dc:date>2012-02-10T14:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create advance Excel with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537058#M1657116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try the ALV Excel Inplace functionality with colored ALV cells already?&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 14:44:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537058#M1657116</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2012-02-10T14:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create advance Excel with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537059#M1657117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some reason in my system "inplace" functionality is only displaying blank "excel" without data when invoked, but that is not my concern at this point. &lt;/P&gt;&lt;P&gt;I need to send e-mail in background processing with excel attachment and i need to accent some lines with color. I can do simple excel creation in the background processing as an attachment, but do you know a way to create excel or to convert ALV( i can first create ALV with proper formatting) where I can create/keep colors?&lt;/P&gt;&lt;P&gt;Does SAP have a sample program for it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 15:55:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537059#M1657117</guid>
      <dc:creator>oleg_sukharenko</dc:creator>
      <dc:date>2012-02-10T15:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create advance Excel with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537060#M1657118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the excel inplace is blank because of excel macro settings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://howtosap.blogspot.com/2011/05/how-to-sap-excel-inplace-show-empty.html" target="test_blank"&gt;http://howtosap.blogspot.com/2011/05/how-to-sap-excel-inplace-show-empty.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;this link shows step step by setting that you need to make to get over this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to do this through code you need to use OLE.&lt;/P&gt;&lt;P&gt;check this wiki:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.sdn.sap.com/wiki/display/Snippets/Cell" target="test_blank"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Cell&lt;/A&gt;&lt;EM&gt;Coloring&lt;/EM&gt;while&lt;EM&gt;Excel&lt;/EM&gt;Download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can search the forum for more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 16:36:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537060#M1657118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-02-10T16:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Create advance Excel with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537061#M1657119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The most complete and satisfying answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really appreciate your input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Feb 2012 17:29:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537061#M1657119</guid>
      <dc:creator>oleg_sukharenko</dc:creator>
      <dc:date>2012-02-10T17:29:00Z</dc:date>
    </item>
    <item>
      <title>Re: Create advance Excel with ABAP code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537062#M1657120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas again,&lt;/P&gt;&lt;P&gt;if you don't mind, I have follow up question to the sample program you provided. It is shown how to launch the formated excel on-line. I need to send email with excel as an attachment. Here is as I convert bulided string into excel now:&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;  DATA: lv_string TYPE string.&lt;/P&gt;&lt;P&gt;DATA binary_content TYPE solix_tab.&lt;/P&gt;&lt;P&gt;DATA size           TYPE so_obj_len.&lt;/P&gt;&lt;P&gt;*Header&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;header line&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CONCATENATE lv_string&lt;/P&gt;&lt;P&gt;              'SYSTEM'(m01)            gc_tab&lt;/P&gt;&lt;P&gt;              'INTERFACE'(m02)         gc_tab&lt;/P&gt;&lt;P&gt;              'RUN NUMBER'(m03)        gc_tab&lt;/P&gt;&lt;P&gt;              'DATE'(m04)              gc_tab&lt;/P&gt;&lt;P&gt;              'TIME'(m05)              gc_tab&lt;/P&gt;&lt;P&gt;              'MESS. TYPE'(m06)        gc_tab&lt;/P&gt;&lt;P&gt;              'MESS. CLASS'(m07)       gc_tab&lt;/P&gt;&lt;P&gt;              'MESS. NO'(m08)          gc_tab&lt;/P&gt;&lt;P&gt;              'FULL MESSAGE'(m09)      gc_tab&lt;/P&gt;&lt;P&gt;              'MESS. VAR1'(m10)        gc_tab&lt;/P&gt;&lt;P&gt;              'MESS. VAR2'(m11)        gc_tab&lt;/P&gt;&lt;P&gt;              'MESS VAR3'(m12)         gc_tab&lt;/P&gt;&lt;P&gt;              'MESS. VAR4'(m13) gc_tab    INTO lv_string.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;convert the text string into UTF-16LE binary data including&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;byte-order-mark. Mircosoft Excel prefers these settings&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;all this is done by new class cl_bcs_convert (see note 1151257)&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  TRY.&lt;/P&gt;&lt;P&gt;      CLEAR:binary_content.&lt;/P&gt;&lt;P&gt;      cl_bcs_convert=&amp;gt;string_to_solix(&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          iv_string   = lv_string&lt;/P&gt;&lt;P&gt;          iv_codepage = '4103'  "suitable for MS Excel, leave empty&lt;/P&gt;&lt;P&gt;          iv_add_bom  = 'X'     "for other doc types&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          et_solix  = binary_content&lt;/P&gt;&lt;P&gt;          ev_size   = size ).&lt;/P&gt;&lt;P&gt;    CATCH cx_bcs.&lt;/P&gt;&lt;P&gt;      MESSAGE e445(so).&lt;/P&gt;&lt;P&gt;  ENDTRY.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any suggestion how to format it with colors?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you vey much for your time&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Feb 2012 19:58:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-advance-excel-with-abap-code/m-p/8537062#M1657120</guid>
      <dc:creator>oleg_sukharenko</dc:creator>
      <dc:date>2012-02-13T19:58:17Z</dc:date>
    </item>
  </channel>
</rss>

