<?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: tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931406#M941298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP changing the domain KUNNR is &lt;EM&gt;highly&lt;/EM&gt; unlikely..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i see your point, but if the domain of a custom field in a Ztable is changing so far after it has been implemented that reports have already been produced, there was a design issue in the table - and you have bigger problems than changing the report code to reflect the new type - Data might get corrupted/truncated/concatenated... lots of things could happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, yes, it would certainly be necessary to change the variable definition in the reports to reflect the new type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 17:48:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T17:48:13Z</dc:date>
    <item>
      <title>tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931400#M941292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gurus,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;why we need to declare tables in abap programm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;tables: mara, marc.&lt;/STRONG&gt;"why we declare this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of it occurs 0,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       matnr like mara-matnr,&lt;/P&gt;&lt;P&gt;      lgort like marc-matnr,&lt;/P&gt;&lt;P&gt;end of it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am new to abap,&lt;/P&gt;&lt;P&gt;plz help me its urgent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks jayant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931400#M941292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931401#M941293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;as of 4.7(i think) you don't need to declare tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your data statements are outdated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should use types instead.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

types: begin of t_tab,
   matnr type matnr,
   lgort   type lgpro.
types: end of t_tab.

data: i_tab type standard table of t_tab,
        wa_tab like line of i_tab.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:16:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931401#M941293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931402#M941294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the statement &lt;STRONG&gt;TABLES&lt;/STRONG&gt; to create an interface with the DDIC. When you use it, all the attributes of the ddic structures declared using it are recovered from the DDIC (like search help and so on).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But remember that's an obsolete command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES table_wa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement is not allowed in classes and declares a data object table_wa as a table work area whose data type is adopted from the identically named structured data type table_wa from the ABAP Dictionary. table_wa must be defined as a flat structure in the ABAP Dictionary. You can specify database tables or Views for table_wa. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Work table areas declared with TABLES are interface work areas and should only be declared in the global declaration section of a program for the following purpose: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement TABLES is required for exchanging data between screen fields that were defined in a program screen when transferring from the ABAP Dictionary and the ABAP program. For the screen event PBO, the content of the table work area is transferred to identically named screen fields; for PAI, the system adopts the data from identically named screen fields. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In executable programs, flat table work areas can be used for adopting data that were provided for the event GET table_wa from a linked logical database. TABLES is synonymous with the statement NODES for this purpose. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Work table areas declared with TABLES behave like the data declared with the addition COMMON PART, meaning the data are used by the programs of a program group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table work areas declared with TABLES can be declared in subroutines and function modules. However, this is not recommended. A table work area declared in a procedure is not local but belongs to the context of a framework program. The table work area can be viewed starting from the declaration in the framework program and lives as long as the framework program. In contrast to normal program-global data, the content of the table work areas declared in subroutines and function modules is stored temporarily when these subroutines and function modules are called. Value assignments that were made during runtime of the procedure are preserved until the procedure is completed. When exiting the procedure, the table work areas are filled with the contents that they contained when the procedure was called. Table work areas declared in procedures behave like global data to which the statement LOCAL is applied in the procedure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The form TABLES * is obsolete. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:21:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931402#M941294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931403#M941295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;we declare that for default memory.&lt;/P&gt;&lt;P&gt;we can even use&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF st_kna1,&lt;/P&gt;&lt;P&gt;         kunnr TYPE kna1-kunnr,            &lt;/P&gt;&lt;P&gt;         name1 TYPE kna1-name1,            &lt;/P&gt;&lt;P&gt;        END OF st_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : it_kna1 TYPE STANDARD TABLE OF st_kna1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931403#M941295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931404#M941296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jyothsna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take a look at the revised code below. this is an easier way to declare your  TYPE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES : BEGIN OF st_kna1,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;kunnr TYPE kunnr,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;name1 TYPE name,&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;END OF st_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you follow the data elements to their domains, kunnr &amp;amp; name in this case, you can type your variables like those.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:26:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931404#M941296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931405#M941297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But what would happen in the (improbable) change of domain of kna1? What if kunnr stops using kunnr as a domain?&lt;/P&gt;&lt;P&gt;Maybe this is difficult in standard tables but pretty common in custom tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:30:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931405#M941297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931406#M941298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SAP changing the domain KUNNR is &lt;EM&gt;highly&lt;/EM&gt; unlikely..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i see your point, but if the domain of a custom field in a Ztable is changing so far after it has been implemented that reports have already been produced, there was a design issue in the table - and you have bigger problems than changing the report code to reflect the new type - Data might get corrupted/truncated/concatenated... lots of things could happen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, yes, it would certainly be necessary to change the variable definition in the reports to reflect the new type.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 17:48:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/3931406#M941298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T17:48:13Z</dc:date>
    </item>
  </channel>
</rss>

