<?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: Function module for read data  of 20 Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646950#M609821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;i give you example .in the tables there is no relationship between them. &lt;/P&gt;&lt;P&gt;only i want to select only three field from every table then display in to one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any idea please suggest me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2007 03:54:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-09T03:54:08Z</dc:date>
    <item>
      <title>Function module for read data  of 20 Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646948#M609819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;i am facing a problem to creating a Function Module.&lt;/P&gt;&lt;P&gt;Problem: i want to get the data from 20  Database tables standard.there is no relationship in between. Import Parameter is Field_id (Table field) based on this we want Result : Field_id, Field code, field Text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: field id = MTART (METARIAL TYPE) TABLE T134T&lt;/P&gt;&lt;P&gt;                            MBRSH ( industry type )    TABLE : T137T&lt;/P&gt;&lt;P&gt;Result :  MTART (metarial code) ,MTBEZ (metarial Text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can any body tell me how i can do this function module.&lt;/P&gt;&lt;P&gt;your answer will be very usefull.&lt;/P&gt;&lt;P&gt;Thanks .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 03:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646948#M609819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T03:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for read data  of 20 Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646949#M609820</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 build a FM to bring data from 20 tables. Question is how will you relate data from one table to another?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cant just bring all data from these tables. There should be a valid relation between the tables and the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use optimized code to make your FM an effective one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 03:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646949#M609820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T03:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for read data  of 20 Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646950#M609821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;i give you example .in the tables there is no relationship between them. &lt;/P&gt;&lt;P&gt;only i want to select only three field from every table then display in to one table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have any idea please suggest me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 03:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646950#M609821</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T03:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for read data  of 20 Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646951#M609822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rashmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these tables:&lt;/P&gt;&lt;P&gt;Domain: &amp;lt;b&amp;gt;DD01L &amp;amp;  DD01T&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;values for the domains &amp;lt;b&amp;gt;DD07L &amp;amp; DD07T&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data elements : &amp;lt;b&amp;gt;DD04L &amp;amp; DD04T&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table Fields: &amp;lt;b&amp;gt;DD03L &amp;amp; DD03T&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foreign key fields: &amp;lt;b&amp;gt;DD05S&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables:   &amp;lt;b&amp;gt;DD02L &amp;amp; DD02T&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Technical settings of tables &amp;lt;b&amp;gt;DD09L&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Texts on SQL tables &amp;lt;b&amp;gt;DD06T&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pool, Cluster structures: &amp;lt;b&amp;gt;DD06L&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relationship definitions : &amp;lt;b&amp;gt;DD08L &amp;amp; DD08T&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now, for your requirement do the followings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. se11 and try to see the content of table DD03L (table for table fields) provding the fieldID (MTART). so result will show all the tables which uses the given field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. now you can write your FM for the same.&lt;/P&gt;&lt;P&gt;it is just simple select statement from table DD03L where fieldID = MTART (example). also you can retreive the description text of same fieldID from DD03T proving the fieldID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it is useful.&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;Sukhee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 04:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646951#M609822</guid>
      <dc:creator>sukhbold_altanbat</dc:creator>
      <dc:date>2007-08-09T04:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for read data  of 20 Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646952#M609823</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;Check this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZTABLEFIELDNAME.

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.

*** End of Program 

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aRs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 04:47:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646952#M609823</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2007-08-09T04:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for read data  of 20 Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646953#M609824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your reponse.&lt;/P&gt;&lt;P&gt;but i want to display the data from standard Table  (T134) .&lt;/P&gt;&lt;P&gt;plese  see my first Message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 05:31:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646953#M609824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-09T05:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Function module for read data  of 20 Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646954#M609825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rashmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your requirement is not that clear. What i understood is your FM will import only one parameter which is the field name and will do something , finally will return 3 parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to know whether those 20 standard tables are known or unknown.&lt;/P&gt;&lt;P&gt;And could you just explain the 3 outputs (Field_id, Field_code, Field_text) ?&lt;/P&gt;&lt;P&gt;actually what is Field_code?&lt;/P&gt;&lt;P&gt;from your first example it is difficult to know what are those.&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;Sukhee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2007 05:51:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-for-read-data-of-20-tables/m-p/2646954#M609825</guid>
      <dc:creator>sukhbold_altanbat</dc:creator>
      <dc:date>2007-08-09T05:51:36Z</dc:date>
    </item>
  </channel>
</rss>

