<?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: Find fields of a table programatically in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951643#M1154551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tcode&lt;/P&gt;&lt;P&gt;if you write a simple select on DD03L and DD03T your problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you have a FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: DFIES,
        X030L.

DATA: BEGIN OF INTTAB OCCURS 100.
        INCLUDE STRUCTURE DFIES.
DATA: END OF INTTAB.

PARAMETERS: TABLENM TYPE DDOBJNAME       DEFAULT 'MSEG',
            FIELDNM TYPE DFIES-FIELDNAME DEFAULT 'MENGE'.

      call function 'DDIF_FIELDINFO_GET'
        exporting
          tabname              = TABLENM
          FIELDNAME            = FIELDNM
          LANGU                = SY-LANGU
*         LFIELDNAME           = ' '
*         ALL_TYPES            = ' '
*       IMPORTING
*         X030L_WA             = WATAB
*         DDOBJTYPE            =
*         DFIES_WA             =
*         LINES_DESCR          =
        TABLES
          DFIES_TAB            = INTTAB
*         FIXED_VALUES         =
        EXCEPTIONS
          NOT_FOUND            = 1
          INTERNAL_ERROR       = 2
          OTHERS               = 3.

      if sy-subrc &amp;lt;&amp;gt; 0.
         WRITE:/ 'Field name not found'.
      endif.

      LOOP AT INTTAB.
         WRITE:/ INTTAB-TABNAME, INTTAB-FIELDNAME, INTTAB-FIELDTEXT.
      ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM will help u too..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MSS_MON_TABLE_COLUMNS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 21:08:21 GMT</pubDate>
    <dc:creator>former_member156446</dc:creator>
    <dc:date>2008-12-11T21:08:21Z</dc:date>
    <item>
      <title>Find fields of a table programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951640#M1154548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any way to find out all fields of a table programatically ...?&lt;/P&gt;&lt;P&gt;Like if VBAK is give ...i need the list of all standard and custom fields of that table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 19:23:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951640#M1154548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T19:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Find fields of a table programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951641#M1154549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please search the forum. This question has been answered many times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 19:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951641#M1154549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T19:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Find fields of a table programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951642#M1154550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just searched with &lt;STRONG&gt;GET&lt;/STRONG&gt;TABLE&lt;STRONG&gt;FIELDS&lt;/STRONG&gt;&amp;gt;F4  in SE37 , i got my answer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 21:02:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951642#M1154550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T21:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find fields of a table programatically</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951643#M1154551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tcode&lt;/P&gt;&lt;P&gt;if you write a simple select on DD03L and DD03T your problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else you have a FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: DFIES,
        X030L.

DATA: BEGIN OF INTTAB OCCURS 100.
        INCLUDE STRUCTURE DFIES.
DATA: END OF INTTAB.

PARAMETERS: TABLENM TYPE DDOBJNAME       DEFAULT 'MSEG',
            FIELDNM TYPE DFIES-FIELDNAME DEFAULT 'MENGE'.

      call function 'DDIF_FIELDINFO_GET'
        exporting
          tabname              = TABLENM
          FIELDNAME            = FIELDNM
          LANGU                = SY-LANGU
*         LFIELDNAME           = ' '
*         ALL_TYPES            = ' '
*       IMPORTING
*         X030L_WA             = WATAB
*         DDOBJTYPE            =
*         DFIES_WA             =
*         LINES_DESCR          =
        TABLES
          DFIES_TAB            = INTTAB
*         FIXED_VALUES         =
        EXCEPTIONS
          NOT_FOUND            = 1
          INTERNAL_ERROR       = 2
          OTHERS               = 3.

      if sy-subrc &amp;lt;&amp;gt; 0.
         WRITE:/ 'Field name not found'.
      endif.

      LOOP AT INTTAB.
         WRITE:/ INTTAB-TABNAME, INTTAB-FIELDNAME, INTTAB-FIELDTEXT.
      ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This FM will help u too..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MSS_MON_TABLE_COLUMNS&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 21:08:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/find-fields-of-a-table-programatically/m-p/4951643#M1154551</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2008-12-11T21:08:21Z</dc:date>
    </item>
  </channel>
</rss>

