<?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: Report - INNER JOIN Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631123#M1090609</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 check for the sysntax error &lt;/P&gt;&lt;P&gt;in given quiery&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>Mon, 20 Oct 2008 04:36:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-20T04:36:30Z</dc:date>
    <item>
      <title>Report - INNER JOIN Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631120#M1090606</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;In my report List of Block Customer's, &lt;STRONG&gt;INNER JOIN is not working&lt;/STRONG&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT DISTINCT M1&lt;SUB&gt;KUNNR M1&lt;/SUB&gt;KTOKD M1&lt;SUB&gt;NAME1 M1&lt;/SUB&gt;CASSD M1&lt;SUB&gt;AUFSD M1&lt;/SUB&gt;LIFSD M1~FAKSD INTO CORRESPONDING FIELDS OF TABLE ITAB&lt;/P&gt;&lt;P&gt;                    FROM KNA1 AS M1 INNER JOIN KNVV AS M2 ON M1&lt;SUB&gt;KUNNR = M2&lt;/SUB&gt;KUNNR&lt;/P&gt;&lt;P&gt;                                           WHERE M1~KTOKD IN ('0001' , 'KTOKD')&lt;/P&gt;&lt;P&gt;                                            AND M1~CASSD EQ 'X'&lt;/P&gt;&lt;P&gt;                                             OR M1~AUFSD NE ''&lt;/P&gt;&lt;P&gt;                                             OR M1~LIFSD NE ''&lt;/P&gt;&lt;P&gt;                                             OR M1~FAKSD NE ''&lt;/P&gt;&lt;P&gt;                                             OR (M2~AUFSD NE ''&lt;/P&gt;&lt;P&gt;                                             OR M2~LIFSD NE ''&lt;/P&gt;&lt;P&gt;                                             OR M2~FAKSD NE ''&lt;/P&gt;&lt;P&gt;                                             OR M2~CASSD EQ 'X'.&lt;/P&gt;&lt;P&gt;**************************************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, condition on 0001 is not matching..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz tell me, what is the problem in it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prince Kumar on Oct 20, 2008 9:37 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 03:58:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631120#M1090606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T03:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Report - INNER JOIN Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631121#M1090607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create one select-options fileds then you can use in the where condition .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here you are using only one value at that you can parameter .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create either parameter or select-options for that field .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is not possible let me know .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And check the condition at se16 data is avaible or not .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 04:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631121#M1090607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T04:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Report - INNER JOIN Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631122#M1090608</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 use " &lt;STRONG&gt;FOR ALL ENTRIES&lt;/STRONG&gt; " as it is better performance wise also rather then inner joins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for &lt;STRONG&gt;syntax&lt;/STRONG&gt; refer this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exporting all flight data for a specified departure city. The relevant airlines and flight numbers are first put in an internal table entry_tab, which is evaluated in the WHERE condition of the subsquent SELECT statement. &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS p_city TYPE spfli-cityfrom. 

TYPES: BEGIN OF entry_tab_type, 
         carrid TYPE spfli-carrid, 
         connid TYPE spfli-connid, 
       END OF entry_tab_type. 

DATA: entry_tab   TYPE TABLE OF entry_tab_type, 
      sflight_tab TYPE SORTED TABLE OF sflight 
                       WITH UNIQUE KEY carrid connid fldate. 

SELECT carrid connid 
       FROM spfli 
       INTO CORRESPONDING FIELDS OF TABLE entry_tab 
       WHERE cityfrom = p_city. 

SELECT carrid connid fldate 
       FROM sflight 
       INTO CORRESPONDING FIELDS OF TABLE sflight_tab 
       FOR ALL ENTRIES IN entry_tab 
       WHERE carrid = entry_tab-carrid AND 
             connid = entry_tab-connid.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks and regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RAHUL&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 04:29:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631122#M1090608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T04:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: Report - INNER JOIN Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631123#M1090609</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 check for the sysntax error &lt;/P&gt;&lt;P&gt;in given quiery&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>Mon, 20 Oct 2008 04:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631123#M1090609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T04:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: Report - INNER JOIN Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631124#M1090610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi you try this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECt distinct M1&lt;SUB&gt;KUNNR M1&lt;/SUB&gt;KTOKD M1~NAME1&lt;/P&gt;&lt;P&gt;M1&lt;SUB&gt;CASSD M1&lt;/SUB&gt;AUFSD M1~LIFSD&lt;/P&gt;&lt;P&gt; M1~FAKSD INTO CORRESPONDING FIELDS OF TABLE ITAB&lt;/P&gt;&lt;P&gt;FROM ( KNA1 AS M1 INNER JOIN KNVV AS M2 ON M1&lt;SUB&gt;KUNNR = M2&lt;/SUB&gt;KUNNR )&lt;/P&gt;&lt;P&gt;WHERE M1~KTOKD IN ('0001' , 'KTOKD')&lt;/P&gt;&lt;P&gt;AND ( M1~CASSD EQ 'X'&lt;/P&gt;&lt;P&gt;OR M1~AUFSD NE ''&lt;/P&gt;&lt;P&gt;OR M1~LIFSD NE ''&lt;/P&gt;&lt;P&gt;OR M1~FAKSD NE ''&lt;/P&gt;&lt;P&gt;OR M2~AUFSD NE ''&lt;/P&gt;&lt;P&gt;OR M2~LIFSD NE ''&lt;/P&gt;&lt;P&gt;OR M2~FAKSD NE ''&lt;/P&gt;&lt;P&gt;OR M2~CASSD EQ 'X').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 04:45:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631124#M1090610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T04:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: Report - INNER JOIN Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631125#M1090611</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;Are you sure KTOKD is creating the problem?&lt;/P&gt;&lt;P&gt;KTOKD is the accounting group and it is of 4 char.&lt;/P&gt;&lt;P&gt;So the value yoy are giving is right provided it is there in the table you are using i.e M1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check if it is there in M1. Please revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Natasha Garg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2008 04:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report-inner-join-problem/m-p/4631125#M1090611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-20T04:52:45Z</dc:date>
    </item>
  </channel>
</rss>

