<?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 file from Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956552#M66459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then  use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_delim(1) type x value '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Aug 2005 07:22:31 GMT</pubDate>
    <dc:creator>former_member221770</dc:creator>
    <dc:date>2005-08-23T07:22:31Z</dc:date>
    <item>
      <title>Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956547#M66454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an old program which is throwing up an issue.&lt;/P&gt;&lt;P&gt;I am succesfully uploading a tab-delimited(DAT) text file from a local server using the 'UPLOAD' Function Module. But when I try to use the same file saved in the application server and upload it using 'OPEN DATASET P_FILE FOR INPUT IN TEXT MODE' statement and next 'READ DATASET P_FILE INTO INT_TABLE', it is not considering the tab-delimiters and reading the adjacent fields into a single field using # as the separator&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the text file I have 3 fields&lt;/P&gt;&lt;P&gt;Field1      Field2      Field3&lt;/P&gt;&lt;P&gt;AAAAA       BBBBB       CCCCC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the READ DATASET statement the work area is being populated as &amp;lt;wa&amp;gt;-field1 = AAAAA#BB&lt;/P&gt;&lt;P&gt;             &amp;lt;wa&amp;gt;-field2 = BBB#CCC&lt;/P&gt;&lt;P&gt;             &amp;lt;wa&amp;gt;-field3 = CC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The field length's of the 3 fields are 8, 7 &amp;amp; 7 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you suggest me a solution such that the fields are populated as below&lt;/P&gt;&lt;P&gt;             &amp;lt;wa&amp;gt;-field1 = AAAAA&lt;/P&gt;&lt;P&gt;             &amp;lt;wa&amp;gt;-field2 = BBBBB&lt;/P&gt;&lt;P&gt;             &amp;lt;wa&amp;gt;-field3 = CCCCC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 07:11:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956547#M66454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T07:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956548#M66455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be you have to split it manually&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split &amp;lt;text&amp;gt; at CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB into filed1 field2 field3 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 07:16:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956548#M66455</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-23T07:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956549#M66456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_data(1000) type c,&lt;/P&gt;&lt;P&gt;      g_delim TYPE c value cl_abap_char_utilities=&amp;gt;horizontal_tab.  "Tab Delim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;open dataset....&lt;/P&gt;&lt;P&gt;read dataset into g_data.&lt;/P&gt;&lt;P&gt;split g_data at g_delim into ....&lt;/P&gt;&lt;P&gt;append ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how this goes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 07:17:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956549#M66456</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-08-23T07:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956550#M66457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Open the dataset in IN BINARY MODE ( not in text mode ) and use SPLIT stmt at tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 07:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956550#M66457</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T07:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956551#M66458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Durai,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer but this OO Concept CL_ABAP_CHAR_UTILITIES is not available in 4.6C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 07:21:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956551#M66458</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T07:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956552#M66459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Karthik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then  use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: g_delim(1) type x value '09'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 07:22:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956552#M66459</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-08-23T07:22:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956553#M66460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : tab type x .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move: '09' to tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now use tab in place of CL_ABAP_CHAR_UTILITIES=&amp;gt;horizontal_tab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 07:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956553#M66460</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2005-08-23T07:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956554#M66461</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 will try this, but could you please explain what is the significance of '09'. I have not understood that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:44:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956554#M66461</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956555#M66462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;'09' is the Hexadecimal value for tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regds&lt;/P&gt;&lt;P&gt;gv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:46:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956555#M66462</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Reading file from Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956556#M66463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;data: hor_tab type x value '09'.&lt;/P&gt;&lt;P&gt;is the hex value of horizontal tab. When you work in binary mode you can read this values and split your fields at it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Svetlin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S. In case you find some answers useful, please assign reward poits.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Aug 2005 08:49:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server/m-p/956556#M66463</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-23T08:49:06Z</dc:date>
    </item>
  </channel>
</rss>

