<?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: SAP fields per table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053218#M1702123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perfect! Also, that is near exactly what I have done. Only there seem to be two issues with that approach:&lt;/P&gt;&lt;P&gt;1) DD03T does for some reason not have all the table names - for ex. you won't find BKPF in there when searching for texts although it exists.&lt;/P&gt;&lt;P&gt;2) For the fields of those nonexistent tables, fields and field_texts do exist in DD03T, often two or three - so I get two or three results from my SELECT command.&lt;/P&gt;&lt;P&gt;I will try adding a filter for IS NOT INITIAL or something.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Hmm... that does not seem to do the trick. SELECT SINGLE prompts some other syntax issues with my INTO TABLE part and the option UP TO n ROWS does not solve the issue - I don't want to reduce the result in absolute terms, but merely to avoid selecting duplicate entries which I then have to get rid off in an extra step.&lt;/P&gt;&lt;P&gt;Can you think of a solution to this?&lt;/P&gt;&lt;P&gt;My first example is BKPF btw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.P.S.: Ok, this one is fixed - I found another format for the filter to exclude records with nothing in the field DDTEXT - but that still does not avoid duplicates: For some FIELDNAMEs in DD03T, there are several records with DDTEXT filled - then I still end up with duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2012 13:39:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-10-10T13:39:49Z</dc:date>
    <item>
      <title>SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053206#M1702111</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 need to build, from a list of tables which are relevant to the generation of document XYZ, a SELECT to get the names of all the fields there are in these tables - not the contents, just the fieldnames, no type, length, nothing else.&lt;/P&gt;&lt;P&gt;I know the DD tables, DD02L is where all the table_names are and DD03L is where all the field_names are (supposedly). But I don't know how to link them - or should I even be looking somewhere else? How can I find out which fields are in any given table?&lt;/P&gt;&lt;P&gt;Can anybody help me there?&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 09:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053206#M1702111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T09:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053207#M1702112</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;FM "NAMETAB_GET" may help you ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 09:58:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053207#M1702112</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-10-10T09:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053208#M1702113</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;FM "NAMETAB_GET" may help you ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 09:58:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053208#M1702113</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-10-10T09:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053209#M1702114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A function module? Whatever does that do?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 10:04:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053209#M1702114</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T10:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053210#M1702115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What exactly do you mean ? I 'm not pretty sure I understood correctly..? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 10:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053210#M1702115</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-10-10T10:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053211#M1702116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laurent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;never mind. I just read it on se80.co.uk. It looks good - if it does what I presume it does, that is, return me the structure (I need only the fields) of a given table.&lt;/P&gt;&lt;P&gt;However, I'm not sure what input I have to provide for that module? Some internal table with the table_names I am interested in, no doubt?&lt;/P&gt;&lt;P&gt;There are no IMPORTING parameters, only one TABLE parameter called nametab. I suppose that's it? So I need an internal table of that name called that? I have an internal table already to save all the relevant table_names therein, it's just called differently.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 10:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053211#M1702116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T10:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053212#M1702117</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 may not require DD02L table if you already have table names. DD03L has the fields TABNAME which is the table name and FIELDNAME as table field names. If you want to link then DD02L-TABNAME = DD03L-TABNAME.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:11:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053212#M1702117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T11:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053213#M1702118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot execute it at once for many tables. You can execute it tab by tab. The importing parameter is the DB table name for which you want the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 11:32:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053213#M1702118</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-10-10T11:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053214#M1702119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is the way I currently do it, using the tabname and then selecting from DD03L using that tabname.&lt;/P&gt;&lt;P&gt;Can any of you tell me which of those two alternative methods would be faster, given that I can execute this function_module only for one table at a time also? Unless there is a mayor difference, I would just stick to the method I know. This is only a preliminary step for the GUI, so it should not take more than a few seconds to assemble those table_names and field_names for display in a tree-structure (that is part of the GUI programmed by my colleague).&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 12:56:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053214#M1702119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T12:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053215#M1702120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your requirement , I suppose that the best method is the select than the FM. The FM could be useful if you wanted more info about the fields.&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 13:04:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053215#M1702120</guid>
      <dc:creator>laurent_fournier2</dc:creator>
      <dc:date>2012-10-10T13:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053216#M1702121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Laurent,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot!&lt;/P&gt;&lt;P&gt;The situation has changed a bit, however: I need not only the field_names, but now I need&lt;/P&gt;&lt;P&gt;- the table_text (from table DD02T)&lt;/P&gt;&lt;P&gt;- the fields (from table DD03L)&lt;/P&gt;&lt;P&gt;- the field_texts (from table DD03T)&lt;/P&gt;&lt;P&gt;for any table_name.&lt;/P&gt;&lt;P&gt;I think the SELECT is fast enough, but for now I have only 14 table_names and there are more to come because for any given type of document, quite a lot of tables are potentially relevant.&lt;/P&gt;&lt;P&gt;Would you still say that the SELECT is faster than using that FM or do those extra infos tip the balance?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 13:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053216#M1702121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T13:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053217#M1702122</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;Select will be the faster choice with joins. I would suggest you to have the internal table consisting of table names, table text, field name and field text. The sample select would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DD02L-TABNAME DD02T-DDTEXT DD03L-FIELDNAME DD03T-DDTEXT&lt;/P&gt;&lt;P&gt;FROM DD02L INNER JOIN DD02T On&lt;/P&gt;&lt;P&gt;DD02L-TABNAME = DD02T-TABNAME&lt;/P&gt;&lt;P&gt;INNER JOIN DD03L ON&lt;/P&gt;&lt;P&gt;DD02L-TABNAME = DD03L-TABNAME&lt;/P&gt;&lt;P&gt;INNER JOIN DD03T ON&lt;/P&gt;&lt;P&gt;DD03L-TABNAME = DD03T-TABNAME&lt;/P&gt;&lt;P&gt;AND DD03L-FIELDNAME = DD03T-FIELDNAME&lt;/P&gt;&lt;P&gt;WHERE DD02L-TABNAME IN &amp;lt;table name list&amp;gt;&lt;/P&gt;&lt;P&gt;AND DD02T-DDLANGUAGE = sy-langu&lt;/P&gt;&lt;P&gt;AND DD03T-DDLANGUAGE = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hardik Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 13:32:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053217#M1702122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T13:32:59Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053218#M1702123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hardik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perfect! Also, that is near exactly what I have done. Only there seem to be two issues with that approach:&lt;/P&gt;&lt;P&gt;1) DD03T does for some reason not have all the table names - for ex. you won't find BKPF in there when searching for texts although it exists.&lt;/P&gt;&lt;P&gt;2) For the fields of those nonexistent tables, fields and field_texts do exist in DD03T, often two or three - so I get two or three results from my SELECT command.&lt;/P&gt;&lt;P&gt;I will try adding a filter for IS NOT INITIAL or something.&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: Hmm... that does not seem to do the trick. SELECT SINGLE prompts some other syntax issues with my INTO TABLE part and the option UP TO n ROWS does not solve the issue - I don't want to reduce the result in absolute terms, but merely to avoid selecting duplicate entries which I then have to get rid off in an extra step.&lt;/P&gt;&lt;P&gt;Can you think of a solution to this?&lt;/P&gt;&lt;P&gt;My first example is BKPF btw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.P.S.: Ok, this one is fixed - I found another format for the filter to exclude records with nothing in the field DDTEXT - but that still does not avoid duplicates: For some FIELDNAMEs in DD03T, there are several records with DDTEXT filled - then I still end up with duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 13:39:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053218#M1702123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T13:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: SAP fields per table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053219#M1702124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Okay, the program is ready to go.&lt;/P&gt;&lt;P&gt;Only it takes much too long - it takes about 3sec for 14 tables - I will have up to 80 or so going forward - and this is only a preliminary step before a GUI can be displayed.&lt;/P&gt;&lt;P&gt;Well, maybe that can be accelerated by selecting subsets of DD02T and DD03T into internal tables beforehand. Maybe there are lists in SAP - although I don't believe it, I would have found something or some of the pros would have told me about it otherwise - or maybe we can generate new DB tables or views that we can use going forward whenever we have that requirement so no new selection has to be made.&lt;/P&gt;&lt;P&gt;Thanks for now! Unless you have some more useful information on whether there are any readymade lists of tables in SAP (I need a list of tables relevant for generating a certain type of document, kind of like T514N has for HR_documents, but that refers to a Cluster) or the like&amp;nbsp; - I will mark this as Answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sapperdapper&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2012 14:20:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-fields-per-table/m-p/9053219#M1702124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-10-10T14:20:11Z</dc:date>
    </item>
  </channel>
</rss>

