<?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: problem in converting flat file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140439#M450848</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;&amp;lt;b&amp;gt;The character '#' can be a Horizontal tab or a new line or a Vertical tab...&lt;/P&gt;&lt;P&gt;Those '#' are special characters to indicates new line or tab. You need to use the abap objects CL_ABAP_CHAR_UTILITIES to fix this issue.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants :&lt;/P&gt;&lt;P&gt;C_HTAB value CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurrences of C_HTAB in w_string with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;OR TO GET THE FIELDS INTO INTERNAL TABLE..&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define a constant..&lt;/P&gt;&lt;P&gt;constants :&lt;/P&gt;&lt;P&gt;C_HTAB value CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB. &amp;lt;i&amp;gt;**&amp;lt;--Horizontal tab&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field1 i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field2 i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field3 i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field4 i_input.&lt;/P&gt;&lt;P&gt;append i_tab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2007 05:02:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-17T05:02:11Z</dc:date>
    <item>
      <title>problem in converting flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140438#M450847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;sample flat file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"3508"     "60003806"     "100406425"     "USD"     "03/01/2007"&lt;/P&gt;&lt;P&gt;"3509"     "60003807"     "100406425"     "USD"     "03/01/2007"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the above flat file has double quote and tabdelimiter.&lt;/P&gt;&lt;P&gt;i use the FM gui_upload to upload this file to a string and remove ' " ' using FM 'WRB_UTIL_STRING_REPLACE'. But the file now contains '#' for tab delimiter.&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;string = 3508#60003806#100406425#USD#03/01/2007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;without download it again is there any possible way to transfer these values to the corresponding fields of the i_tab (contains 5 fields).&lt;/P&gt;&lt;P&gt;Please reply as soon as possible&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ashok&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:00:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140438#M450847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:00:54Z</dc:date>
    </item>
    <item>
      <title>Re: problem in converting flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140439#M450848</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;&amp;lt;b&amp;gt;The character '#' can be a Horizontal tab or a new line or a Vertical tab...&lt;/P&gt;&lt;P&gt;Those '#' are special characters to indicates new line or tab. You need to use the abap objects CL_ABAP_CHAR_UTILITIES to fix this issue.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;constants :&lt;/P&gt;&lt;P&gt;C_HTAB value CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;replace all occurrences of C_HTAB in w_string with space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;OR TO GET THE FIELDS INTO INTERNAL TABLE..&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;define a constant..&lt;/P&gt;&lt;P&gt;constants :&lt;/P&gt;&lt;P&gt;C_HTAB value CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB. &amp;lt;i&amp;gt;**&amp;lt;--Horizontal tab&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field1 i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field2 i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field3 i_input.&lt;/P&gt;&lt;P&gt;split i_input at C_HTAB into i_finaltab-field4 i_input.&lt;/P&gt;&lt;P&gt;append i_tab.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sai ramesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:02:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140439#M450848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: problem in converting flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140440#M450849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ashok,&lt;/P&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1444183"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:04:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140440#M450849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: problem in converting flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140441#M450850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;split STRING at '#' into table itab-field1 itab-field2 itab-field3 itab-field4 itab-field5.
append itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:04:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140441#M450850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: problem in converting flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140442#M450851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;give File Type = DAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Prabhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2007 05:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-converting-flat-file/m-p/2140442#M450851</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-17T05:07:22Z</dc:date>
    </item>
  </channel>
</rss>

