<?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: Reading excel file from Application server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447230#M1999170</link>
    <description>&lt;P&gt;Or use abap2xlsx... &lt;/P&gt;</description>
    <pubDate>Mon, 24 Jan 2022 10:53:19 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2022-01-24T10:53:19Z</dc:date>
    <item>
      <title>Reading excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447226#M1999166</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I have requirement to read excel file from Application server .I used the procedure mentioned below&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://praveensg8.files.wordpress.com/2015/04/reading-excel-file-from-application-server-into-abap-internal-table_1.pdf" target="test_blank"&gt;https://praveensg8.files.wordpress.com/2015/04/reading-excel-file-from-application-server-into-abap-internal-table_1.pdf&lt;/A&gt; .after final Transformation I am getting blank Internal table,&lt;/P&gt;
  &lt;P&gt;One doubt I have is in the tranformation mentioned in the above link in place of &amp;lt;EXCEL_DATA-FIELD1&amp;gt; what I need to use is this internal table field name or Excel heading name.&lt;/P&gt;
  &lt;P&gt;Please provide solution which is really helpful for me.&lt;/P&gt;
  &lt;P&gt;Thanks in Advance&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Narendra.S&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 08:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447226#M1999166</guid>
      <dc:creator>former_member761936</dc:creator>
      <dc:date>2021-06-24T08:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447227#M1999167</link>
      <description>&lt;P&gt;abap2xlsx - google it&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 08:51:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447227#M1999167</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-06-24T08:51:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447228#M1999168</link>
      <description>&lt;P&gt;Not really an answer but a suggestion: this is the type of work which &lt;A href="https://github.com/sapmentors/abap2xlsx" target="_blank"&gt;abap2xlsx&lt;/A&gt; already does.&lt;/P&gt;&lt;P&gt;Specifically, zdemo_excel15 shows how to read a file.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jun 2021 08:53:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447228#M1999168</guid>
      <dc:creator>abo</dc:creator>
      <dc:date>2021-06-24T08:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447229#M1999169</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Even I got a task in the same. I went through the same document mentioned above, From base64 converting to xml. Then in strans-&amp;gt; reading xml and converting to interna table. The thing is that in &amp;lt;excel_data-field1&amp;gt; &amp;lt;excel_data-field2&amp;gt;, What data should be passed here. &lt;/P&gt;&lt;P&gt;In this case, background process used. open dataset,close dataset. The data is in base64, We cant read via abap2xlsx. so what should be maintained in data_field.&lt;/P&gt;&lt;P&gt;Here is the xml used.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"&lt;BR /&gt;&lt;BR /&gt;xmlns:ss="http://schemas.openxmlformats.org/spreadsheetml/2006/main"&lt;BR /&gt;&lt;BR /&gt;xmlns:sap="http://www.sap.com/sapxsl" xmlns:asx="http://www.sap.com/abapxml" exclude-resultprefixes="C" version="1.0"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:param name="P_SHARED_STRING" select=""/&amp;gt;&lt;BR /&gt; &amp;lt;xsl:strip-space elements="*"/&amp;gt;&lt;BR /&gt; &amp;lt;xsl:output encoding="utf-8" indent="yes" omit-xml-declaration="yes"/&amp;gt;&lt;BR /&gt; &amp;lt;xsl:variable name="V_SHARED_STRING"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="$P_SHARED_STRING"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:copy-of select="$P_SHARED_STRING"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:variable&amp;gt;&lt;BR /&gt; &amp;lt;xsl:template match="/"&amp;gt;&lt;BR /&gt; &amp;lt;asx:abap version="1.0"&amp;gt;&lt;BR /&gt; &amp;lt;asx:values&amp;gt;&lt;BR /&gt; &amp;lt;LT_DATA&amp;gt;&lt;BR /&gt; &amp;lt;xsl:for-each select="ss:worksheet/ss:sheetData/ss:row"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="position() &amp;gt; 1"&amp;gt;&lt;BR /&gt; &amp;lt;item&amp;gt;&lt;BR /&gt; &amp;lt;EXCEL_DATA-FIELD1&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;xsl:variable name="cell_id" select="concat('A', position())"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;xsl:variable name="v_index" select="ss:c[@r=$cell_id][@t='s']/ss:v"/&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="$v_index"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="$V_SHARED_STRING/sst/si[$v_index + 1]/t"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="not($v_index)"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="ss:c[@r=$cell_id]/ss:v"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;/EXCEL_DATA-FIELD1&amp;gt;&lt;BR /&gt; &amp;lt;EXCEL_DATA-FIELD2&amp;gt;&lt;BR /&gt; &amp;lt;xsl:variable name="cell_id" select="concat('B', position&lt;BR /&gt;())"/&amp;gt;&lt;BR /&gt; &amp;lt;xsl:variable name="v_index" select="ss:c[@r=$cell_id][@t&lt;BR /&gt;='s']/ss:v"/&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="$v_index"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="$V_SHARED_STRING/sst/si[$v_index + 1]/t"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="not($v_index)"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="ss:c[@r=$cell_id]/ss:v"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;/EXCEL_DATA-FIELD2&amp;gt;&lt;BR /&gt; &amp;lt;EXCEL_DATA-FIELD3&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;xsl:variable name="cell_id" select="concat('C', position())"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;xsl:variable name="v_index" select="ss:c[@r=$cell_id][@t='s']/ss:v"/&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="$v_index"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="$V_SHARED_STRING/sst/si[$v_index + 1]/t"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="not($v_index)"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="ss:c[@r=$cell_id]/ss:v"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;/EXCEL_DATA-FIELD3&amp;gt;&lt;BR /&gt; &amp;lt;EXCEL_DATA-FIELD4&amp;gt;&lt;BR /&gt; &amp;lt;xsl:variable name="cell_id" select="concat('D', position())"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;xsl:variable name="v_index" select="ss:c[@r=$cell_id][@t='s']/ss:v"/&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;xsl:if test="$v_index"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="$V_SHARED_STRING/sst/si[$v_index + 1]/t"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;xsl:if test="not($v_index)"&amp;gt;&lt;BR /&gt; &amp;lt;xsl:value-of select="ss:c[@r=$cell_id]/ss:v"/&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;/EXCEL_DATA-FIELD4&amp;gt;&lt;BR /&gt; &amp;lt;/item&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:if&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:for-each&amp;gt;&lt;BR /&gt; &amp;lt;/LT_DATA&amp;gt;&lt;BR /&gt; &amp;lt;/asx:values&amp;gt;&lt;BR /&gt; &amp;lt;/asx:abap&amp;gt;&lt;BR /&gt; &amp;lt;/xsl:template&amp;gt;&lt;BR /&gt;&amp;lt;/xsl:transform&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Jan 2022 06:46:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447229#M1999169</guid>
      <dc:creator>Zakir_hussain</dc:creator>
      <dc:date>2022-01-24T06:46:24Z</dc:date>
    </item>
    <item>
      <title>Re: Reading excel file from Application server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447230#M1999170</link>
      <description>&lt;P&gt;Or use abap2xlsx... &lt;/P&gt;</description>
      <pubDate>Mon, 24 Jan 2022 10:53:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-excel-file-from-application-server/m-p/12447230#M1999170</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2022-01-24T10:53:19Z</dc:date>
    </item>
  </channel>
</rss>

