<?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: global class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181130#M463836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want attribute of a global class as an internal table.Is it possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Reema jain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Apr 2007 11:47:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-30T11:47:41Z</dc:date>
    <item>
      <title>global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181128#M463834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hii,&lt;/P&gt;&lt;P&gt;   How to create an internal table in Global class of Abap object.&lt;/P&gt;&lt;P&gt;   please reply me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;Reema jain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 11:18:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181128#M463834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T11:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181129#M463835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reema,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow these steps :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Go to transaction SE24. &lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Enter the name of the global class you want to create, with &amp;#145;Y&amp;#146; or &amp;#145;Z&amp;#146; at the beginning. &lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Press Create pushbutton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	A dialog window shown above will appear. Check the radiobutton : Class.&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Press Enter.&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Another dialog window shown above will appear. Enter the description for the class. &lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Select from the Instantiation listbox whether you want to create the class as PUBLIC/PROTECTED/PRIVATE/ABSTRACT.&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Check the radiobutton for Usual ABAP Class.&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Check the checkbox for Final.&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Press Save pushbutton&lt;/P&gt;&lt;P&gt;Enter the package name or save it as Local object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Go to the tab-page : Methods.&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Enter the details for the method &amp;#150; mention name, type of method(instance/static), in which visibility section the method will reside and a short description of the method.&lt;/P&gt;&lt;P&gt;&amp;amp;#61558;	Check &amp;#150;off/uncheck the checkbox to ensure that the method will be implemented&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Click the pushbutton for Parameters to navigate to the screen to enter parameters for the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Here you can give the name of an internal table with associated type TABLE&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 11:30:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181129#M463835</guid>
      <dc:creator>sonu_p2</dc:creator>
      <dc:date>2007-04-30T11:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181130#M463836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want attribute of a global class as an internal table.Is it possible. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Reema jain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 11:47:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181130#M463836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181131#M463837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reema jain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go in the se24 and edit your class.&lt;/P&gt;&lt;P&gt;In the tab 'Attribut'&lt;/P&gt;&lt;P&gt;add the name of your attribute, if it is an instance attribute or a constant..., the visibility (public/protected...) and the type (enter here the type of your internal table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 13:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181131#M463837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-30T13:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181132#M463838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Reema&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your instance attribute is private then you can use private table type definitions to define an itab, e.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Type definition in private section
TYPES: 
  ty_t_knb1  TYPE STANDARD TABLE OF knb1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Define your instance attribute using this type definition, e.g.:
MT_KNB1   (instance, private)  TYPE ty_t_knb1.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if your itab should be either protected or even public then you must use a table type defined in the DDIC, e.g.:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MT_RETURN  (instance, public)  TYPE bapirettab (= table type of BAPIRET2).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2007 21:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181132#M463838</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-04-30T21:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181133#M463839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The recommended way is to make a table type for your internal table.&lt;/P&gt;&lt;P&gt;If you know the structure of your internal table, make a similar structure in SE11 (say ZSTRUCTURE).&lt;/P&gt;&lt;P&gt;Next go to SE11 again and create a table type : &lt;/P&gt;&lt;P&gt;Choose Data Type and give a name(say ZTABLETYPE) and press Create, next choose the radio-button for Table Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the next screen, give your structure name(ZSTRUCTURE) as the Line type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Activate this table type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go to your global class in SE24, go to attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Add a public attribute of TYPE ZTABLETYPE and this attribute will be an internal table of the type you wanted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 03:31:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181133#M463839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T03:31:24Z</dc:date>
    </item>
    <item>
      <title>Re: global class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181134#M463840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Reema Jain,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just like declaring a data object(variable),You can declare them in your global class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 DEFINITION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    METHODS m1 IMPORTING p1 TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;    DATA a1 TYPE string.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;    DATA:&lt;/P&gt;&lt;P&gt;      BEGIN OF ITAB ,&lt;/P&gt;&lt;P&gt;        FIELD1 TYPE C,&lt;/P&gt;&lt;P&gt;        FILED2 TYPE I,&lt;/P&gt;&lt;P&gt;      END OF ITAB,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      T_ITAB LIKE STANDARD TABLE OF ITAB.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    METHODS m2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS c1 IMPLEMENTATION.&lt;/P&gt;&lt;P&gt;  METHOD m1.&lt;/P&gt;&lt;P&gt;    a1 = p1.&lt;/P&gt;&lt;P&gt;    m2( ).&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  METHOD m2.&lt;/P&gt;&lt;P&gt;    DATA a1 TYPE string.&lt;/P&gt;&lt;P&gt;    a1 = me-&amp;gt;a1.&lt;/P&gt;&lt;P&gt;    write:&lt;/P&gt;&lt;P&gt;      / a1.&lt;/P&gt;&lt;P&gt;  ENDMETHOD.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;  OREF TYPE REF TO C1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT OREF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD OREF-&amp;gt;M1('abc').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;Rama chary.Pammi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2007 06:55:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/global-class/m-p/2181134#M463840</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-01T06:55:34Z</dc:date>
    </item>
  </channel>
</rss>

