<?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: Loading data from SAP AS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917525#M1963633</link>
    <description>&lt;P&gt;you could read it in binary mode and do the convert from xstring. I think there are some sample on internet.&lt;/P&gt;</description>
    <pubDate>Wed, 29 May 2019 08:20:59 GMT</pubDate>
    <dc:creator>DoanManhQuynh</dc:creator>
    <dc:date>2019-05-29T08:20:59Z</dc:date>
    <item>
      <title>Loading data from SAP AS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917523#M1963631</link>
      <description>&lt;P&gt;Hi everyone, i'm facing the following situation: i made a report which need data input (excel tables) but i must consider the case the report is executed in background, so it must load the data input from tha application server, i could load the data from a local folder of my pc, i load the excel, and i save it in an internal table, the problem is when i want to load it from application server, with the sentence READ DATASET, i must save it into a char type struct (INTO f, and f must be char type) the problem is my struct is not type char, because it is wa of the table where i want to save the excel table, is there some way i can do this? or maybe exists some other easier way to do that?&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 20:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917523#M1963631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-05-28T20:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAP AS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917524#M1963632</link>
      <description>&lt;P&gt;Hello Juan,&lt;/P&gt;&lt;P&gt;Try to read values from dataset into a string variable and then split the string variable into respective columns of your WA.&lt;/P&gt;&lt;P&gt;Also depending on file format select the separator.&lt;/P&gt;&lt;P&gt;For example&lt;/P&gt;&lt;P&gt;Tab Delimited = cl_abap_char_utilites=&amp;gt;horizontal_tab.&lt;/P&gt;&lt;P&gt;Similarly if file is Pipe or Comma seperated then use "|" or ",".&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : lv_str(255) TYPE c.

*Read the data from application server
OPEN DATASET p_file FOR INPUT IN TEXT  MODE ENCODING DEFAULT.
IF sy-subrc NE 0.
  MESSAGE e009(zz) WITH p_file.

ENDIF.
DO.
**Writing the data into internal table
  READ DATASET p_file INTO lv_str.
  IF sy-subrc = 0.
    SPLIT lv_str AT cl_abap_char_utilites=&amp;gt;horizontal_tab INTO   
    gwa_file-f1
    gwa_file-f2
    gwa_file-f3
    gwa_file-f4
    gwa_file-f5
    append gwa_file to it_file.
  ELSE.
    EXIT.
  ENDIF.
ENDDO.
CLOSE DATASET p_file.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 28 May 2019 23:48:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917524#M1963632</guid>
      <dc:creator>rameez_khan</dc:creator>
      <dc:date>2019-05-28T23:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAP AS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917525#M1963633</link>
      <description>&lt;P&gt;you could read it in binary mode and do the convert from xstring. I think there are some sample on internet.&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:20:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917525#M1963633</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-05-29T08:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Loading data from SAP AS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917526#M1963634</link>
      <description>&lt;P&gt;You can rely on ABAP2XLSX to read Excel files both in foreground and background &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 08:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loading-data-from-sap-as/m-p/11917526#M1963634</guid>
      <dc:creator>SimoneMilesi</dc:creator>
      <dc:date>2019-05-29T08:29:44Z</dc:date>
    </item>
  </channel>
</rss>

