<?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 query for inner join in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-inner-join/m-p/5543984#M1265955</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;Please Test the following Sample Code it is according to your requirement hope will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: marc.

SELECt-OPTIONS somatnr for marc-matnr.

TYPES: BEGIN OF ty_matnr,
  matnr LIKE marc-matnr,
  sobsl LIKE marc-sobsl,
  maktx LIKE makt-maktx,
  END OF ty_matnr.

DATA: it_matnr TYPE STANDARD TABLE OF ty_matnr WITH HEADER LINE.

SELECT marc~matnr marc~sobsl makt~maktx
  into CORRESPONDING FIELDS OF TABLE it_matnr
  from marc INNER JOIN makt on ( marc~matnr eq makt~matnr )
  WHERE marc~matnr in somatnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 19 Apr 2009 13:14:49 GMT</pubDate>
    <dc:creator>faisalatsap</dc:creator>
    <dc:date>2009-04-19T13:14:49Z</dc:date>
    <item>
      <title>select query for inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-inner-join/m-p/5543983#M1265954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give me the query with innerjoin &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on the input values of Material number (MARC-MATNR) from selection screen check and get the Special Procurement type details from MARC-SOBSL and Material description details from MAKT-MAKTX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;basha....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moderator message - instead of asking, you should try to write the code yourself and get back to the forum if you have a specific question.&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Apr 19, 2009 4:46 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 10:51:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-inner-join/m-p/5543983#M1265954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-19T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: select query for inner join</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-inner-join/m-p/5543984#M1265955</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;Please Test the following Sample Code it is according to your requirement hope will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TABLES: marc.

SELECt-OPTIONS somatnr for marc-matnr.

TYPES: BEGIN OF ty_matnr,
  matnr LIKE marc-matnr,
  sobsl LIKE marc-sobsl,
  maktx LIKE makt-maktx,
  END OF ty_matnr.

DATA: it_matnr TYPE STANDARD TABLE OF ty_matnr WITH HEADER LINE.

SELECT marc~matnr marc~sobsl makt~maktx
  into CORRESPONDING FIELDS OF TABLE it_matnr
  from marc INNER JOIN makt on ( marc~matnr eq makt~matnr )
  WHERE marc~matnr in somatnr.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2009 13:14:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/select-query-for-inner-join/m-p/5543984#M1265955</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-04-19T13:14:49Z</dc:date>
    </item>
  </channel>
</rss>

