<?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 Problem in relating tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647347#M609925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on CO object.&lt;/P&gt;&lt;P&gt;I need help in relationships. I need to show the data in two Z tables which contains no com,mon field..&lt;/P&gt;&lt;P&gt;In previous program, the data  in 1 Z table has been shown and only MATNR field in MARA has been displayed.i.e. The common field between Ztable1 and MARA is MATNR. Now I need to show the data in ZTABLE2 using MARA. The common field between ZTABLE2 and MARA is MATKL.&lt;/P&gt;&lt;P&gt;ZTABLE1 doesn't contain MATKL and ZTABLE 2 doesn't contain MATNR.&lt;/P&gt;&lt;P&gt;Please help me in solving this problem.Is inner join required?&lt;/P&gt;&lt;P&gt;I am asking this because I need to change the original code cannot do the coding with my logic.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Aug 2007 05:51:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-17T05:51:35Z</dc:date>
    <item>
      <title>Problem in relating tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647347#M609925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on CO object.&lt;/P&gt;&lt;P&gt;I need help in relationships. I need to show the data in two Z tables which contains no com,mon field..&lt;/P&gt;&lt;P&gt;In previous program, the data  in 1 Z table has been shown and only MATNR field in MARA has been displayed.i.e. The common field between Ztable1 and MARA is MATNR. Now I need to show the data in ZTABLE2 using MARA. The common field between ZTABLE2 and MARA is MATKL.&lt;/P&gt;&lt;P&gt;ZTABLE1 doesn't contain MATKL and ZTABLE 2 doesn't contain MATNR.&lt;/P&gt;&lt;P&gt;Please help me in solving this problem.Is inner join required?&lt;/P&gt;&lt;P&gt;I am asking this because I need to change the original code cannot do the coding with my logic.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 05:51:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647347#M609925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T05:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in relating tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647348#M609926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi, &lt;/P&gt;&lt;P&gt;   It is Not Possible to relate the tables ztable1 and ztable2 coz we dont have any common fields.so , use MARA table fields by inner joining the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rohith.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 06:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647348#M609926</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T06:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in relating tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647349#M609927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA - MATNR : Ztable1 -MATNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MARA-MATKL : ZTABLE2-MATKL...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOW select matnr fld1 from ztabl1 into itab1 where matnr in s_matnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab1[] is not initail.&lt;/P&gt;&lt;P&gt;select matnr matkl from mara into table itab2 for all enteries in itab1 where matnr eq itab1-matnr.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if itab2[] is not initial.&lt;/P&gt;&lt;P&gt;select mtakl fld2 from ztabl2 into table itab3 for all entries in itab2 where matkl eq itab2-matkl.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers &lt;/P&gt;&lt;P&gt;kiran.M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 06:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647349#M609927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T06:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in relating tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647350#M609928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use a inner join between the three tables ZTABLE1 MARA and ZTABLE2. I think It will solve your purpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Aug 2007 06:03:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-relating-tables/m-p/2647350#M609928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-17T06:03:34Z</dc:date>
    </item>
  </channel>
</rss>

