<?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: Class Constructor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988586#M705840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jasmine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i gave you an example on this in ABAP forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Please reward if that helps you and close both the forums.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 17:40:14 GMT</pubDate>
    <dc:creator>sreekanthgo</dc:creator>
    <dc:date>2007-10-29T17:40:14Z</dc:date>
    <item>
      <title>Class Constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988585#M705839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the doubt about class constructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I write the code in Class constructor like,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : ZCURRSTR TYPE IHTTPNVP,
       ZCURRTTYPE TYPE TIHTTPNVP.

ZCURRSTR-NAME   = 'INDIA'.
ZCURRSTR-VALUE  =  'RS'.
APPEND ZCURRSTR TO ZCURRTTYPE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I want to call this Table ZCURRTTYPE in One of the method of Same class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any one help me on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;Points Assured for all suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988585#M705839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T17:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Class Constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988586#M705840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jasmine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i gave you an example on this in ABAP forums.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;Please reward if that helps you and close both the forums.&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sreekanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 17:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988586#M705840</guid>
      <dc:creator>sreekanthgo</dc:creator>
      <dc:date>2007-10-29T17:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Class Constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988587#M705841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jasmine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The class constructor is executed &amp;lt;i&amp;gt;once &amp;lt;/i&amp;gt;for all instances of your class within your application. Since you can always access static attributes from within any instance method simply code within your instance method:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;METHOD my_instance_method.
* define local data
  DATA:
    ls_zcurrstr     TYPE ihttpnvp.

  READ TABLE zcurrttype INTO ls_zcurrstr INDEX 1.  " read first entry in static itab
...
ENDMETHOD.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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, 29 Oct 2007 20:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988587#M705841</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-10-29T20:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Class Constructor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988588#M705842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jassy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table ZCURRTTYPE must be defined as a class attribute so it is available from all methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 21:42:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-constructor/m-p/2988588#M705842</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-10-29T21:42:01Z</dc:date>
    </item>
  </channel>
</rss>

