<?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 data from two tables with no key fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574408#M1433318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to retrieve data from mara and mseg tables,matnr from mara and menge from mseg but problem is there is no key fields&lt;/P&gt;&lt;P&gt;from these two tables how can i retrieve the data from these two tables?&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;bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2010 06:37:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-19T06:37:30Z</dc:date>
    <item>
      <title>data from two tables with no key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574408#M1433318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to retrieve data from mara and mseg tables,matnr from mara and menge from mseg but problem is there is no key fields&lt;/P&gt;&lt;P&gt;from these two tables how can i retrieve the data from these two tables?&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;bikash&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 06:37:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574408#M1433318</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T06:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: data from two tables with no key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574409#M1433319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; To retrieve data from two table there is no need to have common key fields. In MSEG you have MATNR field which is key of MARA, so if you have MATNR in your selection you first get all material numbers of your selection and for those material numbers you get material document umbers , using for all entries of MATNR. If you material document number in your selection then get all material document number and get material details for that document number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this information will help  you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Narendra.Soma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 06:59:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574409#M1433319</guid>
      <dc:creator>former_member761936</dc:creator>
      <dc:date>2010-02-19T06:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: data from two tables with no key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574410#M1433320</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 need to have a common field between 2 tables if you want to put a join between them.&lt;/P&gt;&lt;P&gt;Or otherwise,&lt;/P&gt;&lt;P&gt;Find the check table of the primary keys of the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to find the common fields from one of the check tables of the primary keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example, &lt;/P&gt;&lt;P&gt;If you want to join tables A and B.&lt;/P&gt;&lt;P&gt;Both tables don't contain common fields.&lt;/P&gt;&lt;P&gt;A has primary key fields X and Y.&lt;/P&gt;&lt;P&gt;go to check table of X or Y.&lt;/P&gt;&lt;P&gt;Let check table of X is C.&lt;/P&gt;&lt;P&gt;check any field in C which are exist in table B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Join tables A and C.&lt;/P&gt;&lt;P&gt;Based on this pick the data from B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2010 07:09:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574410#M1433320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-19T07:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: data from two tables with no key fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574411#M1433321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bikash,&lt;/P&gt;&lt;P&gt;   Both the tables have MATNR, yes it is not necessary that is should be a primary key. Yes in your case since the table MSEG will have number of entries, Primary key would ease the job but you can do it with out it too. &lt;/P&gt;&lt;P&gt;Selet the data from MARA first and then based on that selection you can retieve data from MSEG. As Narendra suggested 'For all entries' is good option to do so.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;Amuktha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Feb 2010 06:37:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-from-two-tables-with-no-key-fields/m-p/6574411#M1433321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-22T06:37:49Z</dc:date>
    </item>
  </channel>
</rss>

