<?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: table statement in the user exit in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708979#M310273</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;Please don't get confused. People who come from C/C++/etc back ground get confused and think that TABLE statement is to include something. NO IT IS NOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is just to declare a structure (Work area). You can do the same by using DATA statement also. Ex. TABLES: MARA. Is equal to DATA: MARA TYPE MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your user exit, if the table is already used you can use it in your include. If you get any error when you use... you can declare in either of the above ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for any other reason you want some work area... then obviously you can declare it with DATA statament. You can give even some other name (for example MARA2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 09:05:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-15T09:05:38Z</dc:date>
    <item>
      <title>table statement in the user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708976#M310270</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;in the include program for user exits for some transaction that operates on some database tables,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whether i can declare the same table names using the tables statement in the user exit include program ,if i can whether any&lt;/P&gt;&lt;P&gt;problem arises.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thx &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 08:49:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708976#M310270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T08:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: table statement in the user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708977#M310271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't see a reason why you should declare using a TABLES statement in a user exit. If you need a structure of that table type use the DATA statement and declare a structure of the table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such it should not cause a problem even if you declare it using a TABLES statement, as long as the variable names are different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 08:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708977#M310271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T08:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: table statement in the user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708978#M310272</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; if tables are declared already then u cant declare them again in Include.&lt;/P&gt;&lt;P&gt; If you declare tables again , it will not give any error when u just check for the include. But when u check with main progarm or activate ur include it throws an error saying tables are already created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; no need to declare tables again in the include if they already exist.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 08:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708978#M310272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T08:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: table statement in the user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708979#M310273</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;Please don't get confused. People who come from C/C++/etc back ground get confused and think that TABLE statement is to include something. NO IT IS NOT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is just to declare a structure (Work area). You can do the same by using DATA statement also. Ex. TABLES: MARA. Is equal to DATA: MARA TYPE MARA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in your user exit, if the table is already used you can use it in your include. If you get any error when you use... you can declare in either of the above ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And for any other reason you want some work area... then obviously you can declare it with DATA statament. You can give even some other name (for example MARA2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 09:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708979#M310273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T09:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: table statement in the user exit</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708980#M310274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  you user exit is an funtion module. An funtion module is included in a funtion group. If you uses an tables statement in your user exit ( funtion module ) and another funtion module included en your function group uses the same statement  ( TABLES: xxx. )an error message arise. All statements TABLES: xxx in user exits must be included in include TOP of funtion group of funtion module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 09:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-statement-in-the-user-exit/m-p/1708980#M310274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T09:21:19Z</dc:date>
    </item>
  </channel>
</rss>

