<?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: Internal Table with variable field lengths in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735874#M635453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have mentioned that you have all the required data with you, does this mean that the data is available in a text file in the presentation server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then you can use the function module "gui_upload" using which you can transfer the data from the file in to an internal table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else, If you have all data in a different internal table, Loop into that table and APPEND the entires in to the required internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Sep 2007 08:40:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-06T08:40:06Z</dc:date>
    <item>
      <title>Internal Table with variable field lengths</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735871#M635450</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 a requirement to populate an internal table whose structure is as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table will have 5 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Line1: 050 char&lt;/P&gt;&lt;P&gt;Line2: 100 char&lt;/P&gt;&lt;P&gt;Line3: 100 char&lt;/P&gt;&lt;P&gt;Line4: 100 char&lt;/P&gt;&lt;P&gt;Line5: 050 char.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have all the required data with me. I just need to populate the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points up for grabs &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:34:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735871#M635450</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2007-09-06T08:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table with variable field lengths</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735872#M635451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is your real problem, write everything in the Char100 field and you are done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735872#M635451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T08:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table with variable field lengths</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735873#M635452</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;for eg you have it in one itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare the internal table with maximum length field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&lt;/P&gt;&lt;P&gt;field(100) type c,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;condense: line1, line2, line3, line4, line5.&lt;/P&gt;&lt;P&gt;itab-field = line1.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear: itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-field = line2.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear: itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab-field = line3.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear: itab.&lt;/P&gt;&lt;P&gt;itab-field = line4.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear: itab.&lt;/P&gt;&lt;P&gt;itab-field = line5.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;clear: itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now you will have all the records,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:39:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735873#M635452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T08:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table with variable field lengths</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735874#M635453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have mentioned that you have all the required data with you, does this mean that the data is available in a text file in the presentation server?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If yes, then you can use the function module "gui_upload" using which you can transfer the data from the file in to an internal table....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else, If you have all data in a different internal table, Loop into that table and APPEND the entires in to the required internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Ram.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:40:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735874#M635453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T08:40:06Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table with variable field lengths</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735875#M635454</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;Wher do you have the data?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can define a work area and internal table of two rows..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-row1 = 'yourdata'&lt;/P&gt;&lt;P&gt;wa-row2 = 'your data'&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-row1 = 'yourdata'&lt;/P&gt;&lt;P&gt;wa-row2 = 'your data'&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-row1 = 'yourdata'&lt;/P&gt;&lt;P&gt;wa-row2 = 'your data'&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-row1 = 'yourdata'&lt;/P&gt;&lt;P&gt;wa-row2 = 'your data'&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa-row1 = 'yourdata'&lt;/P&gt;&lt;P&gt;wa-row2 = 'your data'&lt;/P&gt;&lt;P&gt;append wa to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have your data in Db table then you need to write a select query..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select &amp;lt;fields,,,&amp;gt; from DBtable into tableITAb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be clear with your question we can help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewads if useful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:41:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735875#M635454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-06T08:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table with variable field lengths</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735876#M635455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Boes,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done exactly this way. But i have some reservations regarding this approach. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually this internal table is a payment file which will be sent to the bank. Will there be any problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Sep 2007 08:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-with-variable-field-lengths/m-p/2735876#M635455</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2007-09-06T08:47:49Z</dc:date>
    </item>
  </channel>
</rss>

