<?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 internal table as global attribute in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612794#M274631</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am facing some problem in se24.&lt;/P&gt;&lt;P&gt;please give me sugestion to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. i created one class in se24 named zcl_sid.&lt;/P&gt;&lt;P&gt;2. i created one method  name retrive.&lt;/P&gt;&lt;P&gt;3.i created one internal table(ITAB)as parameter for this method.&lt;/P&gt;&lt;P&gt;4. i select the data from but000(crm table) and placed in ineternal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now i created one more method disp to display the selectd data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the internal table is invisible to this disp method.&lt;/P&gt;&lt;P&gt;how can i make this table visible to another method i.e disp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to use single itab for different methods in se24.&lt;/P&gt;&lt;P&gt;is it possible to declare itab as global attribute in class.&lt;/P&gt;&lt;P&gt;How please?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Sep 2006 17:08:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-19T17:08:45Z</dc:date>
    <item>
      <title>internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612794#M274631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am facing some problem in se24.&lt;/P&gt;&lt;P&gt;please give me sugestion to me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. i created one class in se24 named zcl_sid.&lt;/P&gt;&lt;P&gt;2. i created one method  name retrive.&lt;/P&gt;&lt;P&gt;3.i created one internal table(ITAB)as parameter for this method.&lt;/P&gt;&lt;P&gt;4. i select the data from but000(crm table) and placed in ineternal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Now i created one more method disp to display the selectd data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here the internal table is invisible to this disp method.&lt;/P&gt;&lt;P&gt;how can i make this table visible to another method i.e disp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is it possible to use single itab for different methods in se24.&lt;/P&gt;&lt;P&gt;is it possible to declare itab as global attribute in class.&lt;/P&gt;&lt;P&gt;How please?&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612794#M274631</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612795#M274632</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;  Declare the internal table as an attribute..And the visibility as private, so that you can access the internal table only within the class..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:12:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612795#M274632</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612796#M274633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare the internal table in the attributes as public.&lt;/P&gt;&lt;P&gt;Create a table type and use that in the attributes for that internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;I_EMPDATA type YPRA_EMPDATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where as YPRA_EMPDATA is a table type with structure YPRA_STR_EMPDATA. Which inturn as 4 fields EMPID, EMPNAME, EXPYEARS, DESIG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:14:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612796#M274633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612797#M274634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for soon reply,&lt;/P&gt;&lt;P&gt;1.I created &lt;/P&gt;&lt;P&gt;itab as instace attribute visibility private,&lt;/P&gt;&lt;P&gt;and assosiated type: bupa_data_all( it is crm structure name.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I created method retrive: instance method visibility public.&lt;/P&gt;&lt;P&gt;implemented like this.&lt;/P&gt;&lt;P&gt;data: begin of itab1,&lt;/P&gt;&lt;P&gt;partner type bu_partner,&lt;/P&gt;&lt;P&gt;name type but000-name_first,&lt;/P&gt;&lt;P&gt;end of itab1.&lt;/P&gt;&lt;P&gt;select partner name_first from but000 into(itab1-partner, itab1-name).&lt;/P&gt;&lt;P&gt;append itab1 to itab.&lt;/P&gt;&lt;P&gt;end method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i created another method disp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;method disp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into lines&lt;/P&gt;&lt;P&gt;write:/lines-partner, lines-name.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;when i check.&lt;/P&gt;&lt;P&gt;system giving error &lt;/P&gt;&lt;P&gt;"itab is not an internal table-the occurs n" specification is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please tell me how t rectify it.&lt;/P&gt;&lt;P&gt;endselect&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:33:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612797#M274634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612798#M274635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attributes create a Workarea of the structure which is inside the table type and declare as private.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While looping (loop at itab into wa_itab. endloop.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:36:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612798#M274635</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612799#M274636</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 ITAB has to be a internal table..I believe bupa_data_all is not a table type..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Use the where used list for the structure bupa_data_all and check if the structure is used in any table types..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Otherwise create your own table type with the structure bupa_data_all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Use the table type for declaring the internal table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612799#M274636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612800#M274637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Instead of structure BUPA_DATA_ALL use the table type &amp;lt;b&amp;gt;BU_DATA_ALL_T&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612800#M274637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612801#M274638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your structure &amp;lt;b&amp;gt;bupa_data_all&amp;lt;/b&amp;gt; might not be a table type, it might be a structure.  Try the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Double Click on &amp;lt;b&amp;gt;bupa_data_all&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;2) Where-used and in the pop-up select table types&lt;/P&gt;&lt;P&gt;3) If there is one then put that as your type in the attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you werent able to find a table type, go to your class in SE24 and click Types on the toolbar (the other buttons are Implementation, Macros, Class Documenation) declare your Type here and use it in the attributes.  This is not the best way to program as a Class should have only those parameters which are declared in DDIC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:43:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612801#M274638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: internal table as global attribute</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612802#M274639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;i solved it.&lt;/P&gt;&lt;P&gt;I gave points to you.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;swathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2006 17:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-as-global-attribute/m-p/1612802#M274639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-19T17:58:58Z</dc:date>
    </item>
  </channel>
</rss>

