<?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: Get the class attributes references dynamically? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677361#M1099993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you want to need, but please check this class &lt;STRONG&gt;CL_ABAP_CLASSDESCR&lt;/STRONG&gt;. It may help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Oct 2008 14:55:57 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2008-10-20T14:55:57Z</dc:date>
    <item>
      <title>Get the class attributes references dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677360#M1099992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have to call a transformation and give it as result parameter an internal table with ABAP_TRANS_RESBIND_TAB type.&lt;/P&gt;&lt;P&gt;How can I get the name &amp;amp; the reference of the current class attributes ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:28:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677360#M1099992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T14:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Get the class attributes references dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677361#M1099993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what you want to need, but please check this class &lt;STRONG&gt;CL_ABAP_CLASSDESCR&lt;/STRONG&gt;. It may help you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 14:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677361#M1099993</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-10-20T14:55:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get the class attributes references dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677362#M1099994</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 can get the reference to current class object threw 'ME'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'ME' refer to current class object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and threw it u can get access current object attribute.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If still you are facing any problem .&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Punit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 06:16:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677362#M1099994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T06:16:21Z</dc:date>
    </item>
    <item>
      <title>Re: Get the class attributes references dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677363#M1099995</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;View: VSEOATTRIB. It contains the metadata regarding the Attributes of the Class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 10:22:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677363#M1099995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T10:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Get the class attributes references dynamically?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677364#M1099996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the solution I wound, but it works with public attributes only!&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  DATA: l_typedesc TYPE REF TO cl_abap_typedescr.
  data: l_classdesc TYPE REF TO cl_abap_classdescr.
  data: l_attribute TYPE abap_attrdescr.
  data : att_ref type ref to any.
  FIELD-SYMBOLS : &amp;lt;att&amp;gt; TYPE ANY . "abap_attrname.
  DATA : name TYPE string.

  CLEAR st_root_out.
  CALL METHOD cl_abap_classdescr=&amp;gt;describe_by_object_ref 
  EXPORTING
  p_object_ref = me
  RECEIVING
  p_descr_ref = l_typedesc.

  l_classdesc ?= l_typedesc.

  LOOP AT l_classdesc-&amp;gt;attributes INTO l_attribute "-
  WHERE type_kind = cl_abap_classdescr=&amp;gt;typekind_string "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_num "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_date "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_packed "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_time "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_char "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_hex "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_float "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_int "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_table "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_struct2 "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_struct1 "-
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_oref
  OR type_kind = cl_abap_classdescr=&amp;gt;typekind_time. "-

    name = l_attribute-name .

    ASSIGN me-&amp;gt;(name) TO &amp;lt;att&amp;gt;.

    CHECK sy-subrc = 0.

    GET REFERENCE OF &amp;lt;att&amp;gt; INTO att_ref. " here I get the reference



  
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2008 13:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/get-the-class-attributes-references-dynamically/m-p/4677364#M1099996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-24T13:52:54Z</dc:date>
    </item>
  </channel>
</rss>

