<?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 getting *** illegal reference ***  for an object. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-illegal-reference-for-an-object/m-p/2195728#M468604</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented a BADI as per the note 907742. Now here is the detail of the BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BADI is implementing the class CL_EXM_IM_RECN_CONTRACT_FAS13.&lt;/P&gt;&lt;P&gt;This class has an attribute MO_OBJECT instance private.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I am executing a peace of code &lt;/P&gt;&lt;P&gt;&lt;U&gt;SUBSTITUTE&lt;/U&gt;CONDITIONS_FAS13( io_object     = io_object&lt;/P&gt;&lt;P&gt;                                id_activity   = id_activity ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is a method of the above class the attribute should have the value . where as in debugging I am getting *** illegal reference ***  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue why this is happning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your quick response will be highly appriciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vikash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 May 2007 02:31:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-08T02:31:56Z</dc:date>
    <item>
      <title>getting *** illegal reference ***  for an object.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-illegal-reference-for-an-object/m-p/2195728#M468604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have implemented a BADI as per the note 907742. Now here is the detail of the BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The BADI is implementing the class CL_EXM_IM_RECN_CONTRACT_FAS13.&lt;/P&gt;&lt;P&gt;This class has an attribute MO_OBJECT instance private.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I am executing a peace of code &lt;/P&gt;&lt;P&gt;&lt;U&gt;SUBSTITUTE&lt;/U&gt;CONDITIONS_FAS13( io_object     = io_object&lt;/P&gt;&lt;P&gt;                                id_activity   = id_activity ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is a method of the above class the attribute should have the value . where as in debugging I am getting *** illegal reference ***  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any clue why this is happning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your quick response will be highly appriciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vikash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 02:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-illegal-reference-for-an-object/m-p/2195728#M468604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-08T02:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: getting *** illegal reference ***  for an object.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-illegal-reference-for-an-object/m-p/2195729#M468605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vikash&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are mixing things up.&lt;/P&gt;&lt;P&gt;Not the BAdI is implementing the class but the class implements the BAdI (interface).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somewhere in the standard transaction method IF_EX_RECN_CONTRACT~SUBSTITUTE is called. Now within this method you have to write your coding to change conditions:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA:
  lo_contract   TYPE REF to cl_recn_contract.


  lo_contract ?= io_contract.  " casting to contract instance

  CASE id_activity.
    WHEN '...'.
      " do something
 
    WHEN others.
      " do something else
    ENDCASE.&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>Tue, 08 May 2007 03:38:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-illegal-reference-for-an-object/m-p/2195729#M468605</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-05-08T03:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: getting *** illegal reference ***  for an object.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-illegal-reference-for-an-object/m-p/2195730#M468606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply. I did manage to resolve the issue. The BADI was not implemented properly and hence causing the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any wan thanks for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Vikash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 May 2007 04:22:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-illegal-reference-for-an-object/m-p/2195730#M468606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-10T04:22:51Z</dc:date>
    </item>
  </channel>
</rss>

