<?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 Function module to get table fields list in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-table-fields-list/m-p/6699797#M1452235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there dear ABAP'ers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I would like to ask do you know some function module that I pass a table name to and it would return this table fields list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Is there some possibility to get not only table fields list, but their types as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is that I want to get ADRC table fields list and put this fields list into searchhelp later. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be thankful for some suggestions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Feb 2010 14:26:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-23T14:26:26Z</dc:date>
    <item>
      <title>Function module to get table fields list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-table-fields-list/m-p/6699797#M1452235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there dear ABAP'ers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I would like to ask do you know some function module that I pass a table name to and it would return this table fields list?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Is there some possibility to get not only table fields list, but their types as well?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want to do is that I want to get ADRC table fields list and put this fields list into searchhelp later. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will be thankful for some suggestions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 14:26:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-table-fields-list/m-p/6699797#M1452235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T14:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get table fields list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-table-fields-list/m-p/6699798#M1452236</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 the FM below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Calling FM to get the dictionary field attributes&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'DDIF_FIELDINFO_GET'
    EXPORTING
      tabname        = rv_table (Your table name)
    TABLES
      dfies_tab      = lt_fields
    EXCEPTIONS
      not_found      = 1
      internal_error = 2
      OTHERS         = 3.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will give all the field attributes as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganga&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 14:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-table-fields-list/m-p/6699798#M1452236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-23T14:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module to get table fields list</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-table-fields-list/m-p/6699799#M1452237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plz &lt;STRONG&gt;SEARCH&lt;/STRONG&gt; in SCN before posting, it is already discussed here lot of times.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Feb 2010 14:30:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-get-table-fields-list/m-p/6699799#M1452237</guid>
      <dc:creator>GauthamV</dc:creator>
      <dc:date>2010-02-23T14:30:26Z</dc:date>
    </item>
  </channel>
</rss>

