<?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 its components name in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324171#M1227010</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;how can I find out the component name of &amp;lt;l_line&amp;gt; if &lt;/P&gt;&lt;P&gt;the &amp;lt;l_line&amp;gt; is defined and assigned as below shown.&lt;/P&gt;&lt;P&gt;A table is being assigned to &amp;lt;l_line&amp;gt; but while runtime&lt;/P&gt;&lt;P&gt;the name of its components are unknown. How can they&lt;/P&gt;&lt;P&gt;be founf out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = gt_fcat
    IMPORTING
      ep_table        = new_table.

  ASSIGN new_table-&amp;gt;* TO &amp;lt;outtab&amp;gt;.

  CREATE DATA new_line LIKE LINE OF &amp;lt;outtab&amp;gt;.
  ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt; .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Mar 2009 15:24:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-10T15:24:21Z</dc:date>
    <item>
      <title>its components name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324171#M1227010</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;how can I find out the component name of &amp;lt;l_line&amp;gt; if &lt;/P&gt;&lt;P&gt;the &amp;lt;l_line&amp;gt; is defined and assigned as below shown.&lt;/P&gt;&lt;P&gt;A table is being assigned to &amp;lt;l_line&amp;gt; but while runtime&lt;/P&gt;&lt;P&gt;the name of its components are unknown. How can they&lt;/P&gt;&lt;P&gt;be founf out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;sas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD cl_alv_table_create=&amp;gt;create_dynamic_table
    EXPORTING
      it_fieldcatalog = gt_fcat
    IMPORTING
      ep_table        = new_table.

  ASSIGN new_table-&amp;gt;* TO &amp;lt;outtab&amp;gt;.

  CREATE DATA new_line LIKE LINE OF &amp;lt;outtab&amp;gt;.
  ASSIGN new_line-&amp;gt;* TO &amp;lt;l_line&amp;gt; .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:24:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324171#M1227010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T15:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: its components name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324172#M1227011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2009 15:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324172#M1227011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-10T15:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: its components name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324173#M1227012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;gt_fcat contains the list of fields to be used in the internal table, doesn't it?  To get access to the fields use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT fieldname OF STRUCTURE &amp;lt;ls_line&amp;gt; TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, you can do it numerically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN COMPONENT 1 OF STRUCTURE &amp;lt;ls_line&amp;gt; TO &amp;lt;field&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also find useful, the "Internal use only" command &lt;STRONG&gt;DESCRIBE FIELD dobj INTO td.&lt;/STRONG&gt;   But as it is an internal use only command, it should only be used as last resort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 09:42:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324173#M1227012</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-03-11T09:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: its components name</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324174#M1227013</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;You can use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: lr_rtti_struc TYPE REF TO cl_abap_structdescr.&lt;/P&gt;&lt;P&gt;DATA: lt_comp       TYPE cl_abap_structdescr=&amp;gt;component_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    lr_rtti_struc ?= cl_abap_structdescr=&amp;gt;describe_by_data( ls_line).&lt;/P&gt;&lt;P&gt;    lt_comp = lr_rtti_struc-&amp;gt;get_components( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2009 09:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/its-components-name/m-p/5324174#M1227013</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2009-03-11T09:59:48Z</dc:date>
    </item>
  </channel>
</rss>

