<?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: Calling DB_GET_TABLE_FIELDS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467663#M1848937</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use table DD03L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Jul 2014 04:55:47 GMT</pubDate>
    <dc:creator>former_member202818</dc:creator>
    <dc:date>2014-07-17T04:55:47Z</dc:date>
    <item>
      <title>Calling DB_GET_TABLE_FIELDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467662#M1848936</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;&lt;/P&gt;&lt;P&gt;I trying to extract field name of the specified table using DB_GET_TABLE_FIELDS, but while calling this function module ,in " tables = "&amp;nbsp; after exporting and importing parameter,what type of internal table i have to specify. I tried " lt_itab type table of DBFIELD " ,but getting error. Please suggest me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Avinash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:39:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467662#M1848936</guid>
      <dc:creator>avinashd_m</dc:creator>
      <dc:date>2014-07-17T04:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calling DB_GET_TABLE_FIELDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467663#M1848937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use table DD03L.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467663#M1848937</guid>
      <dc:creator>former_member202818</dc:creator>
      <dc:date>2014-07-17T04:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Calling DB_GET_TABLE_FIELDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467664#M1848938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Avinash,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your definition should work, lt_itab TYPE SHDBFIELDS should work, too, and you can get the data directly from table DD03L.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please post the error (short dump?) you get exactly here.&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;Klaus &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 04:56:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467664#M1848938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T04:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Calling DB_GET_TABLE_FIELDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467665#M1848939</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;please try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: courier new,courier;"&gt;REPORT&amp;nbsp; ztable_fields.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;DATA: lt_itab&amp;nbsp; TYPE TABLE OF dbfield.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;DATA: xv_lines TYPE sy-dbcnt.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;PARAMETERS: xp_table TYPE tabname OBLIGATORY DEFAULT 'MARA'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;START-OF-SELECTION.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; CALL FUNCTION 'DB_GET_TABLE_FIELDS'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FIELD_INFO&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = 'A'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; tabname&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; xp_table&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;*&amp;nbsp;&amp;nbsp; IMPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUBRC&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TABLES&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbfields&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; =&amp;nbsp; lt_itab.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier; color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; DESCRIBE TABLE lt_itab LINES xv_lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt; font-family: courier new,courier;"&gt;&amp;nbsp; WRITE: /1 xv_lines.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It was working for me.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 05:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467665#M1848939</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-07-17T05:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Calling DB_GET_TABLE_FIELDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467666#M1848940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a DDIC table, you should use DDIF_FIELDINFO_GET which is a released FM, better than DB_GET_TABLE_FIELDS which is not released.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you actually want to use this one, look thru SE37 at parameter definition, so use structure DBFIELD...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you trying to get information on a DB table not defined in ddic, or looking for difference between DDIC and database (as DB02 and similar transactions) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;NB: There should be no&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;EM&gt;in " tables = " &lt;/EM&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;in your source, did you erase the DBFIELDS parameter name ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 08:12:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467666#M1848940</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2014-07-17T08:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calling DB_GET_TABLE_FIELDS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467667#M1848941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is an OO-solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DATA&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;info &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;dd_x031l_table&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; descr_ref &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TO &lt;/SPAN&gt;cl_abap_typedescr&lt;SPAN class="L0S55"&gt;,&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_mara &lt;SPAN class="L0S52"&gt;type &lt;/SPAN&gt;mara&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; descr_ref &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;cl_abap_typedescr&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;describe_by_data&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;ls_mara &lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; info &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;descr_ref&lt;SPAN class="L0S70"&gt;-&amp;gt;&lt;/SPAN&gt;get_ddic_object&lt;SPAN class="L0S55"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Jul 2014 09:28:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/calling-db-get-table-fields/m-p/10467667#M1848941</guid>
      <dc:creator>former_member201285</dc:creator>
      <dc:date>2014-07-17T09:28:58Z</dc:date>
    </item>
  </channel>
</rss>

