<?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: Upload EXCEL File with headers in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441977#M1998759</link>
    <description>&lt;P&gt;&lt;A href="https://github.com/sapmentors/abap2xlsx" target="_blank"&gt;abap2xlsx&lt;/A&gt; and then see demo ZDEMO_EXCEL37&lt;/P&gt;</description>
    <pubDate>Fri, 24 Sep 2021 07:50:55 GMT</pubDate>
    <dc:creator>abo</dc:creator>
    <dc:date>2021-09-24T07:50:55Z</dc:date>
    <item>
      <title>Upload EXCEL File with headers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441976#M1998758</link>
      <description>&lt;P&gt;Hi, I have an excel file with headers and an internal table. But order of the headers in the excel file is different from my internal table. What i wanna do is append them into corresponding columns. Any leads?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 06:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441976#M1998758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-09-24T06:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Upload EXCEL File with headers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441977#M1998759</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/sapmentors/abap2xlsx" target="_blank"&gt;abap2xlsx&lt;/A&gt; and then see demo ZDEMO_EXCEL37&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 07:50:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441977#M1998759</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-09-24T07:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Upload EXCEL File with headers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441978#M1998760</link>
      <description>&lt;P&gt;Hello, what I want is read an excel file from my computer and output it to ALV.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 08:04:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441978#M1998760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-09-24T08:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Upload EXCEL File with headers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441979#M1998761</link>
      <description>&lt;P&gt;and that is something that you can do with that package!&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 08:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441979#M1998761</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-09-24T08:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Upload EXCEL File with headers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441980#M1998762</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;c5e08e0478aa4727abc4482f5be390b2&lt;/SPAN&gt; I don't find a demo program just to show how simple it is to read, with minimal output of the result. I mean without using lcl_output=&amp;gt;output because beginners may not understand why it's so complex behind the scene. Maybe it could be a demo program added to abap2xlsx?&lt;/P&gt;&lt;P&gt;Example to read the first worksheet and display its contents (syntax errors, missing code needs to be completed):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS file TYPE string.
START-OF-SELECTION.
  DATA(file_contents) = VALUE solix_tab( ).
  cl_gui_frontend_services=&amp;gt;gui_upload( ... file_size ... file_contents ).
  DATA(xstring) = cl_bcs_convert=&amp;gt;solix_to_xstring( IT_SOLIX = file_contents IV_SIZE = file_size ).
  DATA(lo_reader) = NEW zcl_excel_reader_2007( ).
  DATA(lo_excel) = lo_reader-&amp;gt;zif_excel_reader~load( i_excel2007 = xstring ).
  DATA(lo_worksheet) = lo_excel-&amp;gt;get_worksheet_by_index( i ).
  LOOP AT lo_worksheet-&amp;gt;sheet_content ASSIGNING FIELD-SYMBOL(&amp;lt;cell&amp;gt;).
    WRITE : / &amp;lt;cell&amp;gt;-cell_row, &amp;lt;cell&amp;gt;-cell_column, &amp;lt;cell&amp;gt;-cell_value.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Sep 2021 16:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441980#M1998762</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-24T16:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Upload EXCEL File with headers</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441981#M1998763</link>
      <description>&lt;P&gt;The one I mentioned does show how to read a file, though it might not be the most concise example possible &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think we discussed restructuring the examples in a bug report or another but, yeah, this is worth adding perhaps.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 17:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/upload-excel-file-with-headers/m-p/12441981#M1998763</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-09-24T17:08:48Z</dc:date>
    </item>
  </channel>
</rss>

