<?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 error in smartform using classes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-smartform-using-classes/m-p/3154576#M750255</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;I am trying create refernce object for a class in porgram lines of smartform.&lt;/P&gt;&lt;P&gt;it is giving error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is&lt;/P&gt;&lt;P&gt;lo_act_rec type ref to cl_hrrcf_abstract_activity_rec.&lt;/P&gt;&lt;P&gt;lo_act type ref to cl_hrrcf_abstract_activity.&lt;/P&gt;&lt;P&gt;lo_act_rec ?= gs_activity-activity.&lt;/P&gt;&lt;P&gt;lo_act ?= lo_act_rec-&amp;gt;infotype_records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Dec 2007 03:03:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-13T03:03:58Z</dc:date>
    <item>
      <title>error in smartform using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-smartform-using-classes/m-p/3154576#M750255</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;I am trying create refernce object for a class in porgram lines of smartform.&lt;/P&gt;&lt;P&gt;it is giving error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the code is&lt;/P&gt;&lt;P&gt;lo_act_rec type ref to cl_hrrcf_abstract_activity_rec.&lt;/P&gt;&lt;P&gt;lo_act type ref to cl_hrrcf_abstract_activity.&lt;/P&gt;&lt;P&gt;lo_act_rec ?= gs_activity-activity.&lt;/P&gt;&lt;P&gt;lo_act ?= lo_act_rec-&amp;gt;infotype_records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 03:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-smartform-using-classes/m-p/3154576#M750255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-13T03:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: error in smartform using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-smartform-using-classes/m-p/3154577#M750256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please clarify more.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Dec 2007 07:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-smartform-using-classes/m-p/3154577#M750256</guid>
      <dc:creator>Swetabh</dc:creator>
      <dc:date>2007-12-13T07:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: error in smartform using classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-smartform-using-classes/m-p/3154578#M750257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have not yet instantiated the references you have declared before assignign values to  them.&lt;/P&gt;&lt;P&gt;I would suggest you to use the following 2 statements to instantiate them:&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_act_rec.&lt;/P&gt;&lt;P&gt;CREATE OBJECT lo_act.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or if you have any specific constructor methods within the corresponding classes, use them first before assigning values like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very often you might have methods to create objects from a particular structure, etc... Please check for this in the class you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Archana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Dec 2007 07:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-smartform-using-classes/m-p/3154578#M750257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-14T07:17:24Z</dc:date>
    </item>
  </channel>
</rss>

