<?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: format Internal Table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097137#M1182970</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as u r using FM in paramters u can find separator &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use separator = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jan 2009 06:55:31 GMT</pubDate>
    <dc:creator>kamesh_g</dc:creator>
    <dc:date>2009-01-23T06:55:31Z</dc:date>
    <item>
      <title>format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097128#M1182961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have taken a text file into my inernal table. Now i want to separate the entries in the internal table whenever a tab occurs and place the formatted entries into a new internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do i go about this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:25:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097128#M1182961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:25:59Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097129#M1182962</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;ur requiremnet is not clear........do u have it in an internal table or after getting the file how to insert..r u using any functional mosule for text..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:28:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097129#M1182962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:28:35Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097130#M1182963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  You can split the string at horizontal tab .&lt;/P&gt;&lt;P&gt;You can use the Split command and split the string at &lt;/P&gt;&lt;P&gt;CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB , e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;split  g_f_str at CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB into g_f_str1  g_f_str2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097130#M1182963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097131#M1182964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see help on &lt;STRONG&gt;SPLIT&lt;/STRONG&gt; statement and to specify the TAB character you can use CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:30:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097131#M1182964</guid>
      <dc:creator>Pawan_Kesari</dc:creator>
      <dc:date>2009-01-22T12:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097132#M1182965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using an FM to upload the text file separated by tabs in an internal table. Now, the internal table consists of a single row for every entry.&lt;/P&gt;&lt;P&gt;Now i need to transfer the contents of this internal table to another Internal table containing for e.g 10 fields so that after the 1st tab, the entry is placed inot the 1st field, and after the 2nd tab the entry is place into the 2nd field and so on....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:32:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097132#M1182965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097133#M1182966</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;When you are uploading the tab delimited text file then you can use the internal table with fields instead of flat internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE FM GUI_UPLOAD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FILETYPE  = 'DAT'&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pass the values to the FM parameter and data will be uploaded in to the correcsponding  fields. the order of the fields in file and internal table should be same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 12:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097133#M1182966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T12:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097134#M1182967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Frank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following Code help you in this way but you must Saparate the Entries by an Saparater Char, like in the following Example i Saparated all entries by ',' hope this will solve your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at it_crow.
 
    clear: zfsl_stinfo.
 
    split it_crow at ',' into zfsl_stinfo-mandt  "here is the solution of you problem i think
                              zfsl_stinfo-st_id
                              zfsl_stinfo-st_n
                              zfsl_stinfo-st_fn
                              zfsl_stinfo-st_reg
                              zfsl_stinfo-st_ph
                              zfsl_stinfo-st_pm.
    insert zfsl_stinfo.
 
    if sy-subrc = 0 .
      commit work.
      count = count + 1.
    else.
      write: / , 'Insert Failed for', zfsl_stinfo-mandt,
                                      zfsl_stinfo-st_id,
                                      zfsl_stinfo-st_n,
                                      zfsl_stinfo-st_fn,
                                      zfsl_stinfo-st_reg,
                                      zfsl_stinfo-st_ph,
                                      zfsl_stinfo-st_pm..
    endif.
  endloop.
  write: count , 'Records were inserted'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Reply if any Issue,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Faisal Altaf on Jan 23, 2009 12:25 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 19:25:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097134#M1182967</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-22T19:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097135#M1182968</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;The code that you have given above inserts in only the first field. Thereafter, it is left blank.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097135#M1182968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T06:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097136#M1182969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  W_CHAR   TYPE C VALUE ' '. " Variable for Field Separator


LOOP AT ITAB1 INTO WA1.


    SPLIT WA1 AT W_CHAR INTO WA2-FIELD1
                             WA2-FIELD1
                             WA2-FIELD1
                             WA2-FIELD1.
    APPEND WA2 TO ITAB2.
                               
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097136#M1182969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-23T06:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: format Internal Table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097137#M1182970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as u r using FM in paramters u can find separator &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use separator = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2009 06:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/format-internal-table/m-p/5097137#M1182970</guid>
      <dc:creator>kamesh_g</dc:creator>
      <dc:date>2009-01-23T06:55:31Z</dc:date>
    </item>
  </channel>
</rss>

