<?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: Accessing Class attributes within a BADI class object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-class-attributes-within-a-badi-class-object/m-p/7503398#M1558737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The casting of lo_uces ?= p_uces. throws a syntax error for incompatibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lo_uces TYPE REF TO zcl_isu_uces_co_new&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_UCES TYPE REF TO isu_uces_co_new&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Dec 2010 23:04:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-12-29T23:04:42Z</dc:date>
    <item>
      <title>Accessing Class attributes within a BADI class object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-class-attributes-within-a-badi-class-object/m-p/7503396#M1558735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we have a BADI object of type ISU_UCES_CO_NEW. now in the codes of a FM this object is assigned with values. one of the value assigned is a class object ZCL_ISU_UCES_CO_NEW in the object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We need to access the attribute of the sub class ZCL_ISU_UCES_CO_NEW inside the main object ISU_UCES_CO_NEW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Checking in the debugging we are able to see the value but need to access it through the program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to access the class attributes with in a class .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your ideas are appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Dec 2010 17:58:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-class-attributes-within-a-badi-class-object/m-p/7503396#M1558735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-21T17:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Class attributes within a BADI class object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-class-attributes-within-a-badi-class-object/m-p/7503397#M1558736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you need to cast your object into an instance of the ZCL_ISU_UCES_CO_NEW class in order to access its proper attributes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so if you have a parameter of type ref to ISU_UCES_CO_NEW called P_UCES you do it like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: lo_uces TYPE REF TO zcl_isu_uces_co_new.

lo_uces ?= p_uces.

* now you have access to attributes of object lo_uces&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 08:05:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-class-attributes-within-a-badi-class-object/m-p/7503397#M1558736</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2010-12-29T08:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Class attributes within a BADI class object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-class-attributes-within-a-badi-class-object/m-p/7503398#M1558737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The casting of lo_uces ?= p_uces. throws a syntax error for incompatibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lo_uces TYPE REF TO zcl_isu_uces_co_new&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P_UCES TYPE REF TO isu_uces_co_new&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Dec 2010 23:04:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/accessing-class-attributes-within-a-badi-class-object/m-p/7503398#M1558737</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-29T23:04:42Z</dc:date>
    </item>
  </channel>
</rss>

