<?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 with '#' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756421#M327721</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers.. &lt;/P&gt;&lt;P&gt;My problem is solved using CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Dec 2006 15:09:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-03T15:09:02Z</dc:date>
    <item>
      <title>Problem with '#'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756416#M327716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have issue with '#'.  The problem is when I use tab delimited file for upload, system uses '#' as the seperator. System doesn't split at '#' when I use&lt;/P&gt;&lt;P&gt;( split xflat at '#' into table irec ) statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Add X number of fields to the dynamic itab cataelog&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  do p_flds times.&lt;/P&gt;&lt;P&gt;    clear wa_it_fldcat.&lt;/P&gt;&lt;P&gt;    wa_it_fldcat-fieldname = sy-index.&lt;/P&gt;&lt;P&gt;    wa_it_fldcat-datatype = 'C'.&lt;/P&gt;&lt;P&gt;    wa_it_fldcat-inttype = 'C'.&lt;/P&gt;&lt;P&gt;    wa_it_fldcat-intlen = 10.&lt;/P&gt;&lt;P&gt;    append wa_it_fldcat to it_fldcat .&lt;/P&gt;&lt;P&gt;  enddo.&lt;/P&gt;&lt;P&gt;  .&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic internal table and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;               exporting&lt;/P&gt;&lt;P&gt;                  it_fieldcatalog = it_fldcat&lt;/P&gt;&lt;P&gt;               importing&lt;/P&gt;&lt;P&gt;                  ep_table        = new_table.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  assign new_table-&amp;gt;* to &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create dynamic work area and assign to FS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  create data new_line like line of &amp;lt;dyn_table&amp;gt;.&lt;/P&gt;&lt;P&gt;  assign new_line-&amp;gt;* to &amp;lt;dyn_wa&amp;gt;.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  file = p_file.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  call method cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      filename                = file&lt;/P&gt;&lt;P&gt;    changing&lt;/P&gt;&lt;P&gt;      data_tab                = iflat&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      file_open_error         = 1&lt;/P&gt;&lt;P&gt;      file_read_error         = 2&lt;/P&gt;&lt;P&gt;      no_batch                = 3&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;      invalid_type            = 5&lt;/P&gt;&lt;P&gt;      no_authority            = 6&lt;/P&gt;&lt;P&gt;      unknown_error           = 7&lt;/P&gt;&lt;P&gt;      bad_data_format         = 8&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;      header_too_long         = 11&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;      access_denied           = 13&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;      disk_full               = 15&lt;/P&gt;&lt;P&gt;      dp_timeout              = 16&lt;/P&gt;&lt;P&gt;      others                  = 17.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  loop at iflat into xflat.&lt;/P&gt;&lt;P&gt;    clear irec. refresh irec.&lt;/P&gt;&lt;P&gt;    split xflat at '#' into table irec.&lt;/P&gt;&lt;P&gt;    loop at irec.&lt;/P&gt;&lt;P&gt;      tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;      assign component tabix of structure &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;      &amp;lt;dyn_field&amp;gt; = irec.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;    append &amp;lt;dyn_wa&amp;gt; to &amp;lt;dyn_table&amp;gt;.&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;Please help me out. It is very urgent and I have already spent lot of time to solve this issue which couldn't. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 13:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756416#M327716</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-03T13:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with '#'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756417#M327717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sankar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your SAP release has class &amp;lt;b&amp;gt;CL_ABAP_CHAR_UTILITIES&amp;lt;/b&amp;gt; available you might try and use its constant &amp;lt;b&amp;gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&amp;lt;/b&amp;gt; to split your lines instead of using '#'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 13:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756417#M327717</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-12-03T13:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with '#'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756418#M327718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the class CL_ABAP_CHAR_UTILITIES, but method HORIZONTAL_TAB is not available. ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Oops you mentioned attribute..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton my problem is solved..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sankar Mohan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 13:28:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756418#M327718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-03T13:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with '#'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756419#M327719</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;Probably Uwe're using a release higher than your.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The HORIZONTAL_TAB is not a method but an attribute of class CL_ABAP_CHAR_UTILITIES, but I think it's defined from rel. 4.7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway you have to chance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- First one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: CHAR_SEP(1) TYPE X VALUE '09'.

LOOP AT IFLAT INTO XFLAT.
.....................
  SPLIT XFLAT AT CHAR_SEP INTO TABLE IREC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- The second one: u can use directly the table &amp;lt;dyn_table&amp;gt; and set the paramter TAB_SEPARATOR. In this way the fm split automatically the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        max bianchi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 13:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756419#M327719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-03T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with '#'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756420#M327720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      try using below code&lt;/P&gt;&lt;P&gt;      call method cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;filename = file&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;FILETYPE                      = 'ASC'&lt;/P&gt;&lt;P&gt; HAS_FIELD_SEPARATOR           = 'X'&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;changing&lt;/P&gt;&lt;P&gt;data_tab = iflat&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_read_error = 2&lt;/P&gt;&lt;P&gt;no_batch = 3&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;invalid_type = 5&lt;/P&gt;&lt;P&gt;no_authority = 6&lt;/P&gt;&lt;P&gt;unknown_error = 7&lt;/P&gt;&lt;P&gt;bad_data_format = 8&lt;/P&gt;&lt;P&gt;header_not_allowed = 9&lt;/P&gt;&lt;P&gt;separator_not_allowed = 10&lt;/P&gt;&lt;P&gt;header_too_long = 11&lt;/P&gt;&lt;P&gt;unknown_dp_error = 12&lt;/P&gt;&lt;P&gt;access_denied = 13&lt;/P&gt;&lt;P&gt;dp_out_of_memory = 14&lt;/P&gt;&lt;P&gt;disk_full = 15&lt;/P&gt;&lt;P&gt;dp_timeout = 16&lt;/P&gt;&lt;P&gt;others = 17.&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;Amole&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 14:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756420#M327720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-03T14:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with '#'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756421#M327721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers.. &lt;/P&gt;&lt;P&gt;My problem is solved using CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 15:09:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756421#M327721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-03T15:09:02Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with '#'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756422#M327722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For those on older releases the hor tab is x09... Enjoy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Dec 2006 15:23:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with/m-p/1756422#M327722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-03T15:23:30Z</dc:date>
    </item>
  </channel>
</rss>

