<?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 component name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766579#M1117307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;I want to find the component names of my dynamic table&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT  sy-index&lt;/P&gt;&lt;P&gt;         OF STRUCTURE &amp;lt;wa_table&amp;gt; TO &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;I know there are couple of threads but they are confusing, I tried using one of the method&lt;/P&gt;&lt;P&gt;ref_table_des ?=&lt;/P&gt;&lt;P&gt;cl_abap_typedescr=&amp;gt;describe_by_name( p_data = &amp;lt;t_dyn_table&amp;gt; ).&lt;/P&gt;&lt;P&gt;idetails[] = ref_table_des-&amp;gt;components[].&lt;/P&gt;&lt;P&gt;but then I get an error as formal parameter p_data  does not exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2008 19:06:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-31T19:06:29Z</dc:date>
    <item>
      <title>Getting component name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766579#M1117307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Guys,&lt;/P&gt;&lt;P&gt;I want to find the component names of my dynamic table&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT  sy-index&lt;/P&gt;&lt;P&gt;         OF STRUCTURE &amp;lt;wa_table&amp;gt; TO &amp;lt;dyn_field&amp;gt;.&lt;/P&gt;&lt;P&gt;I know there are couple of threads but they are confusing, I tried using one of the method&lt;/P&gt;&lt;P&gt;ref_table_des ?=&lt;/P&gt;&lt;P&gt;cl_abap_typedescr=&amp;gt;describe_by_name( p_data = &amp;lt;t_dyn_table&amp;gt; ).&lt;/P&gt;&lt;P&gt;idetails[] = ref_table_des-&amp;gt;components[].&lt;/P&gt;&lt;P&gt;but then I get an error as formal parameter p_data  does not exist.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 19:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766579#M1117307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T19:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting component name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766580#M1117308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this Example. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : sflighttype type ref to cl_abap_structdescr,
      comp_tab    type cl_abap_structdescr=&amp;gt;component_table.
field-symbols: &amp;lt;wa_comp&amp;gt; like line of comp_tab.
sflighttype ?= cl_abap_typedescr=&amp;gt;describe_by_name('SFLIGHT').
comp_tab = sflighttype-&amp;gt;get_components( ).

LOOP AT comp_tab ASSIGNING &amp;lt;wa_comp&amp;gt;.
  write : / &amp;lt;wa_comp&amp;gt;-name.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;ref_table_des ?=
cl_abap_typedescr=&amp;gt;describe_by_name( &amp;lt;t_dyn_table&amp;gt; ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 19:31:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766580#M1117308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T19:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting component name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766581#M1117309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when i do that i get this error...&lt;/P&gt;&lt;P&gt;The parameter p_name does not have correct type.&lt;/P&gt;&lt;P&gt;The program tried to pass an actual parameter to formal parameter&lt;/P&gt;&lt;P&gt;"P_NAME" of method "DESCRIBE_BY_NAME" of class "CL_ABAP_TYPEDESCR" that did not&lt;/P&gt;&lt;P&gt; have the type&lt;/P&gt;&lt;P&gt;C or STRING at runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 20:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766581#M1117309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T20:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Getting component name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766582#M1117310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I got it I should have changed the method type. Use describe by data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 20:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-component-name/m-p/4766582#M1117310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T20:31:27Z</dc:date>
    </item>
  </channel>
</rss>

