<?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: Finding table name from field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249978#M775923</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;data:&lt;/P&gt;&lt;P&gt;  begin of fs_table,&lt;/P&gt;&lt;P&gt;    table like dd03l-tabname,&lt;/P&gt;&lt;P&gt;  endof fs_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_table like standard table of fs_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select tabname into table t_table from dd03l where fieldname eq 'matnr'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tabname into fs_table.&lt;/P&gt;&lt;P&gt;  write: / fs_table-table.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write select atetement as u want u r requirement ok &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz reward if it is useful....&lt;/P&gt;&lt;P&gt;for any further quiries plzz contact me on mutyalasunilkumar@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Jan 2008 13:23:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-08T13:23:57Z</dc:date>
    <item>
      <title>Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249970#M775915</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;I have a field name. Now i want to find to which table this field belongs to. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: I have field MATNR. Now in my program i want to find to which table this field belongs to. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be done? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Points will be rewarded!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashish Gupta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 05:04:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249970#M775915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T05:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249971#M775916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do the following steps&lt;/P&gt;&lt;P&gt;1. put the cursor on the field name.&lt;/P&gt;&lt;P&gt;2. press F1 key.&lt;/P&gt;&lt;P&gt;3. Go to technical info, here you will find the table name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 06:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249971#M775916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T06:04:44Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249972#M775917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To check out the table a field belongs to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Goto SE11 -&amp;gt; DD03L -&amp;gt; Utilities -&amp;gt; Table Contents -&amp;gt; Display-&amp;gt; Execute (F8) with &amp;lt;FIELDNAME&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Go to se11 and give ur field name under data type select tables in the dialog box  select the where used list in the application bar ..&lt;/P&gt;&lt;P&gt;You  will find all the tables where this field has been use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 06:06:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249972#M775917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T06:06:28Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249973#M775918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to find this thru coding in program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 06:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249973#M775918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T06:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249974#M775919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to find this thru coding in program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 06:30:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249974#M775919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T06:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249975#M775920</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;There can be many number of tables using the same field. inside the program just double click on the field. If it is used only by one table it will navigate to the table. Else a list of tables will be displayed whereever the field is used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 07:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249975#M775920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T07:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249976#M775921</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;Basically the same field is used in so many tables like mara,marc,mard,vbap...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But for matnr , MARA is the master table.It means entry should be there in mara table .but no need of entry in other tables like mrac,mard,vbap..etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But some times this value is picked from other tables also not only from mara to get other corresponding values like storage location or sales order number..etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program may access other tables also depending on requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so just check in the program from which database table this value is getting populated using SELECT stmt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can put breakpoint at all the select stmt and debugg the program.you will get noticed from which database table its getting populated and from which table its value getting processed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like suppose we use select stmt on vbap to get sales order number and then we goto MARD table to get corresponing storage location.&lt;/P&gt;&lt;P&gt;so finally we will get the value from MARD table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just i will write simple code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:it_mara like mara occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data:it_vbap  like vbap occurs 0 with header line.&lt;/P&gt;&lt;P&gt;data:it_mard  like mard occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from mara into table it_mara up to 100 rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_mara[] is initial.&lt;/P&gt;&lt;P&gt;select * from mara into table it_vbap&lt;/P&gt;&lt;P&gt;for all entries in it_mara&lt;/P&gt;&lt;P&gt;where matnr = it_mara-matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not it_vbap[] is initial.&lt;/P&gt;&lt;P&gt;select * from mard into table it_mard&lt;/P&gt;&lt;P&gt;for all entries in it_vbap&lt;/P&gt;&lt;P&gt;where matnr = it_vbap-matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mard.&lt;/P&gt;&lt;P&gt;write: /  it_mard-matnr,it_mard-lgort.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so finally we are printing matnr from mard table eventhough matnr exists in mara table also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds&lt;/P&gt;&lt;P&gt;Sivaparvathi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please dont forget to reward points if helpful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 07:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249976#M775921</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T07:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249977#M775922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to fetch the table name of the field at runtime. If a field belongs to multiple tables, we can pick any one table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So Whats the logic to code this in a ABAP report.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 08:23:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249977#M775922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T08:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Finding table name from field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249978#M775923</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;data:&lt;/P&gt;&lt;P&gt;  begin of fs_table,&lt;/P&gt;&lt;P&gt;    table like dd03l-tabname,&lt;/P&gt;&lt;P&gt;  endof fs_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;  t_table like standard table of fs_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select tabname into table t_table from dd03l where fieldname eq 'matnr'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tabname into fs_table.&lt;/P&gt;&lt;P&gt;  write: / fs_table-table.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write select atetement as u want u r requirement ok &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plzz reward if it is useful....&lt;/P&gt;&lt;P&gt;for any further quiries plzz contact me on mutyalasunilkumar@gmail.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jan 2008 13:23:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/finding-table-name-from-field/m-p/3249978#M775923</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-08T13:23:57Z</dc:date>
    </item>
  </channel>
</rss>

