<?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 Class structure in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2593999#M594033</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 implementing a BADI, in that method i can see a Attribute in debugging &amp;lt;b&amp;gt;Object: &lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt; Reference:&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;-MR_ENTITY&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this i have another attribute MS_ATTRIBUTES as structure assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure i can see in debugging is &amp;lt;b&amp;gt;&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;-MS_ATTRIBUTES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i programatically get this structure in my itab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;GIRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jul 2007 21:51:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-27T21:51:33Z</dc:date>
    <item>
      <title>Class structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2593999#M594033</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 implementing a BADI, in that method i can see a Attribute in debugging &amp;lt;b&amp;gt;Object: &lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt; Reference:&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;-MR_ENTITY&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this i have another attribute MS_ATTRIBUTES as structure assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structure i can see in debugging is &amp;lt;b&amp;gt;&lt;SPAN __jive_macro_name="O"&gt;&lt;/SPAN&gt;-MS_ATTRIBUTES&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i programatically get this structure in my itab?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;GIRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jul 2007 21:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2593999#M594033</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-27T21:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Class structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594000#M594034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Giri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are asking about a BAdI it would be quite useful to know the BAdI name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you have a reference to class CL_DPR_PROJECT_O. Its attribute MR_ENTITY (of type CL_CGPL_ENTITY) is &amp;lt;i&amp;gt;protected &amp;lt;/i&amp;gt;and, thus, not directly accessible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thus, you have to search for a method that allows you to retrieve this protected attribute. A good candidate appears to be the following method (of class CL_DPR_PROJECT_O):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" Assumption: o_project should be your reference to CL_DPR_PROJECT_O.
"                    Here it would be quite useful to have the BAdI's name.

DATA:
  lo_object     TYPE REF TO object,
  lo_common TYPE REF TO if_dpr_common,
  lo_project    TYPE REF TO cl_cgpl_entity.

  lo_object = o_project-&amp;gt;IF_DPR_COMMON~GET_NATIVE_OBJECT( ).
  lo_project ?= lo_object.  " casting

" Alternatively, you could use this coding:
  lo_project ?=  o_project-&amp;gt;IF_DPR_COMMON~GET_NATIVE_OBJECT( ).  " Or:

  lo_common ?= o_project.  " casting to interface type
  lo_project    ?= lo_common-&amp;gt;GET_NATIVE_OBJECT( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming that you have know the protected instance attribute MR_ENTITY (CL_CGPL_ENTITY) available you can directly access attribute MS_ATTRIBUTES because it is &amp;lt;i&amp;gt;public &amp;lt;/i&amp;gt;(&amp;amp; read-only).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  ls_attributes    TYPE cgpl_ts_entity.

  ls_attributes = lo_project-&amp;gt;ms_attributes.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&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>Sat, 28 Jul 2007 05:48:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594000#M594034</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-07-28T05:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Class structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594001#M594035</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 reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BADI name is DPR_EVENTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the filter i am using is ON_DPO_RELEASED. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; lo_object = o_project-&amp;gt;IF_DPR_COMMON~GET_NATIVE_OBJECT( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what should be on o_project? pls help me out on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did not work before on classes... so any help would be useful and i award points once the problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;UWE: can you help me out regarding this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Giri K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2007 14:27:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594001#M594035</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-28T14:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Class structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594002#M594036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generally, you may take a look the example implemenation of the BADI DPR_EVENTS, it is the CL_EXM_IM_DPR_EVENTS. If you can not access it, I can copy the codes and post here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your case, if you would like to get the parameters of the project definition, &lt;/P&gt;&lt;P&gt;you can use the method GET_DATA_EXT of the class CL_DPR_PROJECT_O. &lt;/P&gt;&lt;P&gt;You should have most possible attributes of the project defintion using the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Zhenbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 08:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594002#M594036</guid>
      <dc:creator>former_member201206</dc:creator>
      <dc:date>2007-07-31T08:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: Class structure</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594003#M594037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Wang,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you provide a sample code how to get data from method GET_DATA_EXT. I have no experience in ABAP OOPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx again&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Giri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2007 14:56:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/class-structure/m-p/2594003#M594037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-31T14:56:48Z</dc:date>
    </item>
  </channel>
</rss>

