<?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: select statement n joining condtion.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-n-joining-condtion/m-p/1116381#M107559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My site doesn't have A505 with matnr and knumh but I found a similar one A550 so you could do something like this:&lt;/P&gt;&lt;P&gt;select mara&lt;SUB&gt;matnr konp&lt;/SUB&gt;kbetr            &lt;/P&gt;&lt;P&gt;from mara                               &lt;/P&gt;&lt;P&gt;join a550 on mara&lt;SUB&gt;matnr = a550&lt;/SUB&gt;matnr    &lt;/P&gt;&lt;P&gt;join konp on konp&lt;SUB&gt;knumh = a550&lt;/SUB&gt;knumh    &lt;/P&gt;&lt;P&gt;into corresponding fields of table i_rates &lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_matdata&lt;/P&gt;&lt;P&gt;WHERE mara~MATNR = i_matdata-MATNR        &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jan 2006 23:04:06 GMT</pubDate>
    <dc:creator>former_member186741</dc:creator>
    <dc:date>2006-01-11T23:04:06Z</dc:date>
    <item>
      <title>select statement n joining condtion..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-n-joining-condtion/m-p/1116379#M107557</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;In a Report, I have the Material Numbers dispayed as of now. I have to select/display the rate(condition amount) for each Material Number that is on the list....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have realized that I can relate the Mat. No with the Rate by using 3 tables....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.MARA&lt;/P&gt;&lt;P&gt;2.A505&lt;/P&gt;&lt;P&gt;3.KONP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm thinking to relate this rate(KONP-KBETR) with Mat No(MARA-MATNR) like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;JOIN the MARA-MATNR with A505-MATNR and then A505-KNUMH with KONP-KNUMH and then retrieve KONP-KBETR...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i dont know how to write the select and joining condition...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as of now... i have a INTERNAL TABLE :- i_matdata.&lt;/P&gt;&lt;P&gt;which contains the mat. no's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;help me, plz...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 22:14:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-n-joining-condtion/m-p/1116379#M107557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T22:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: select statement n joining condtion..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-n-joining-condtion/m-p/1116380#M107558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THIS IS ONE SOLUTION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT A~MATNR&lt;/P&gt;&lt;P&gt;       B~KNUMH&lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE I_TAB1&lt;/P&gt;&lt;P&gt;       FROM MARA AS A INNER JOIN &lt;/P&gt;&lt;P&gt;       A505 AS B ON &lt;/P&gt;&lt;P&gt;       A&lt;SUB&gt;MATNR = B&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN I_MATNR&lt;/P&gt;&lt;P&gt;       WHERE A~MATNR = I_MATNR-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT I_TAB1 BY KNUMH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT A~KNUMH&lt;/P&gt;&lt;P&gt;       B~KBETR&lt;/P&gt;&lt;P&gt;       INTO CORRESPONDING FIELDS OF TABLE I_TAB2&lt;/P&gt;&lt;P&gt;       FROM A505 AS A INNER JOIN&lt;/P&gt;&lt;P&gt;       KONP AS B ON&lt;/P&gt;&lt;P&gt;       A&lt;SUB&gt;KNUMH = B&lt;/SUB&gt;KNUMH&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN I_TAB1&lt;/P&gt;&lt;P&gt;       WHERE A~KNUMH = I_TAB1-KNUMH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT I_TAB1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     READ TABLE I_TAB2 WITH KEY KNUMH = I_TAB1-KNUMH.&lt;/P&gt;&lt;P&gt;     I_TAB3-MARNR = I_TAB1-MATNR.&lt;/P&gt;&lt;P&gt;     I_TAB3-KBETR = I_TAB2-KBETR.&lt;/P&gt;&lt;P&gt;     APPEND I_TAB3.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 22:35:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-n-joining-condtion/m-p/1116380#M107558</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-11T22:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: select statement n joining condtion..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-n-joining-condtion/m-p/1116381#M107559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My site doesn't have A505 with matnr and knumh but I found a similar one A550 so you could do something like this:&lt;/P&gt;&lt;P&gt;select mara&lt;SUB&gt;matnr konp&lt;/SUB&gt;kbetr            &lt;/P&gt;&lt;P&gt;from mara                               &lt;/P&gt;&lt;P&gt;join a550 on mara&lt;SUB&gt;matnr = a550&lt;/SUB&gt;matnr    &lt;/P&gt;&lt;P&gt;join konp on konp&lt;SUB&gt;knumh = a550&lt;/SUB&gt;knumh    &lt;/P&gt;&lt;P&gt;into corresponding fields of table i_rates &lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_matdata&lt;/P&gt;&lt;P&gt;WHERE mara~MATNR = i_matdata-MATNR        &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jan 2006 23:04:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-statement-n-joining-condtion/m-p/1116381#M107559</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-01-11T23:04:06Z</dc:date>
    </item>
  </channel>
</rss>

