<?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: joining tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206297#M764404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kondm is common to vbap and t178t so you can use join like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;field1 a&lt;/SUB&gt;field2 a&lt;SUB&gt;field3 b&lt;/SUB&gt;field1 b&lt;SUB&gt;field2 b&lt;/SUB&gt;field3 into corresponding fields of table itab from (vbap as a inner join t178t as b on a&lt;SUB&gt;kondm = b&lt;/SUB&gt;kondm).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this yar it will work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Dec 2007 10:24:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-12T10:24:38Z</dc:date>
    <item>
      <title>joining tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206294#M764401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can i join t178t with kna1 on kondm ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 10:11:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206294#M764401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T10:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: joining tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206295#M764402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to join VBAP with t178t ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 10:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206295#M764402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T10:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: joining tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206296#M764403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no KONDM in KNA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check it again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 10:14:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206296#M764403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T10:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: joining tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206297#M764404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;kondm is common to vbap and t178t so you can use join like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select a&lt;SUB&gt;field1 a&lt;/SUB&gt;field2 a&lt;SUB&gt;field3 b&lt;/SUB&gt;field1 b&lt;SUB&gt;field2 b&lt;/SUB&gt;field3 into corresponding fields of table itab from (vbap as a inner join t178t as b on a&lt;SUB&gt;kondm = b&lt;/SUB&gt;kondm).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try like this yar it will work fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 10:24:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206297#M764404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T10:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: joining tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206298#M764405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you tell for which field you want to match.&lt;/P&gt;&lt;P&gt;Because in KNA1 we cant match any field to KONDM of T178T table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want you can find mappping thru other tables like  VBAP,VBRP using sold-to party or ship-to party.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In VBAK we have KUNNR field (customer number)&lt;/P&gt;&lt;P&gt;In Corresponding to vbeln from VBAK we have to goto VBAP for KONDM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you have to match KONDM to customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:::::::::::::::::::::::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables:KNA1.&lt;/P&gt;&lt;P&gt;select-options:s_kunnr for kna1-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:begin of itab occurs 0,&lt;/P&gt;&lt;P&gt; kondm like vbap-kondm,&lt;/P&gt;&lt;P&gt;kunnr like vbak-kunnr,&lt;/P&gt;&lt;P&gt;end of itab.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select A&lt;SUB&gt;Kondm B&lt;/SUB&gt;Kunnr into table itab&lt;/P&gt;&lt;P&gt;from VBAP as A inner join VBAK as B&lt;/P&gt;&lt;P&gt;on VBAP-vbeln = VBAK-vbeln&lt;/P&gt;&lt;P&gt;where B~Kunnr in S_Kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;write:itab-kondm.&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;Please reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sivaparvathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2007 10:26:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/joining-tables/m-p/3206298#M764405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-12T10:26:57Z</dc:date>
    </item>
  </channel>
</rss>

