<?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 Fill an internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-an-internal-table/m-p/9085348#M1704624</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; for the program I am currently writing, I need to fill an internal tables with all the tables potentially relevant to the creation of a certain type of document. Since I cannot find listings like that in the SAP system - at least I know none and I've never come across any - I have to hard-code lists and save them in an internal table. What I currently do is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tables = 'BKPF'.&lt;/P&gt;&lt;P&gt;APPEND wa_tables TO Tables_tab.&lt;/P&gt;&lt;P&gt;wa_tables = 'BSEG.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot think of a faster way to do this, given I have to type up the lists somewhere.&lt;/P&gt;&lt;P&gt;Can anybody think of a faster way to do this?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Oct 2012 12:20:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-11T12:20:57Z</dc:date>
    <item>
      <title>Fill an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-an-internal-table/m-p/9085348#M1704624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp; for the program I am currently writing, I need to fill an internal tables with all the tables potentially relevant to the creation of a certain type of document. Since I cannot find listings like that in the SAP system - at least I know none and I've never come across any - I have to hard-code lists and save them in an internal table. What I currently do is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_tables = 'BKPF'.&lt;/P&gt;&lt;P&gt;APPEND wa_tables TO Tables_tab.&lt;/P&gt;&lt;P&gt;wa_tables = 'BSEG.&lt;/P&gt;&lt;P&gt;....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot think of a faster way to do this, given I have to type up the lists somewhere.&lt;/P&gt;&lt;P&gt;Can anybody think of a faster way to do this?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-an-internal-table/m-p/9085348#M1704624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-11T12:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: Fill an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-an-internal-table/m-p/9085349#M1704625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friedrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically sap provides a better way of fetching data from tables. As your current requirement is not clear to a greater extent, hope this code might helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. The table values can be maintained in custom table, so that it is easy for maintaining and there may be a need to change the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create text element for each table name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;n refers to no of tables and text element should be consecutive.&lt;/P&gt;&lt;P&gt;--------------------------------------------------------------&lt;/P&gt;&lt;P&gt;data number type char03." Refers to text element&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do n times.&lt;/P&gt;&lt;P&gt;number = number + 1.&lt;/P&gt;&lt;P&gt;Concatenate 'text-' number&amp;nbsp; into tablename.&lt;/P&gt;&lt;P&gt;perform fill_tables using table_name.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------&lt;/P&gt;&lt;P&gt;form fill_tables using table_name.&lt;/P&gt;&lt;P&gt;wa_table = table_name.&lt;/P&gt;&lt;P&gt;append wa_tables to tables_tab.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:34:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-an-internal-table/m-p/9085349#M1704625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-11T12:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Fill an internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fill-an-internal-table/m-p/9085350#M1704626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm afraid I do not quite understand: That FORM routine does the same thing I currently do, namely fill the internal table using the workarea.&lt;/P&gt;&lt;P&gt;I think you have text elements that I can then access using "text-027" or the like, is that what you mean?&lt;/P&gt;&lt;P&gt;Well, that would just "move the workload" so to speak - it might be faster once the text_elements are in place, but I have to put them there first - it is table T100, is it not?&lt;/P&gt;&lt;P&gt;I'm not sure that would make the whole thing faster?&lt;/P&gt;&lt;P&gt;As to my requirement, I just need to get the names of all the tables which are relevant to the creation of a certain kind of document into an internal table which I can then work on. As I don't know of any lists of that kind in the SAP system, I resigned to using lists found on the Internet.&lt;/P&gt;&lt;P&gt;It might be possible, however, to create a DB table with such a list of table_names in a customer's SAP system, then I wouldn't have to rebuild it every time my program is executed. I guess that would speed things up, I'll try it out. Without that possibility, I have to hard-code that list into my program. &lt;/P&gt;&lt;P&gt;Thanks a lot anyway!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Oct 2012 12:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fill-an-internal-table/m-p/9085350#M1704626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-11T12:54:33Z</dc:date>
    </item>
  </channel>
</rss>

