<?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: Error at u0130nner Join Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419152#M1549066</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not asking to remove the WHERE clause . just remove the '.' after s-matnr to get rid of the syntax error.&lt;/P&gt;&lt;P&gt;Regarding long runtime , you have to optimise your select query .&lt;/P&gt;&lt;P&gt;P.S : If you dont need the results in real time execute the report in background mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Oct 2010 14:38:08 GMT</pubDate>
    <dc:creator>Sandeep_Panghal</dc:creator>
    <dc:date>2010-10-21T14:38:08Z</dc:date>
    <item>
      <title>Error at u0130nner Join Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419149#M1549063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Today I am working at a select operations.I am writing selct-options and I am merging three fields in an internal table.&lt;/P&gt;&lt;P&gt;İnternal Table is :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of gt_data3 OCCURS 0,
        matnr like mara-matnr,
        ersda like mara-ersda,
        ernam like mara-ernam,
        laeda like mara-laeda,
        aenam like mara-aenam,
        matkl like mara-matkl,
        mblnr like mseg-mblnr,
        mjahr like mseg-mjahr,
        zeile like mseg-zeile,
        werks like mseg-werks,
        waers like mseg-waers,
        spras like makt-spras,
        maktx like makt-maktx,
        maktg like makt-maktg,
       end of gt_data3.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;According user selects ALV shows the field-values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wrote a sql command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This command is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select m~matnr m~ersda m~ernam m~laeda m~aenam
              m~matkl g~mblnr g~mjahr g~zeile g~werks
              g~waers k~spras k~maktx k~maktg
                  into CORRESPONDING FIELDS OF table gt_data3
                  from  mara as m inner join mseg as g
                                 on m~matnr eq g~matnr
                         inner join makt as k on k~matnr eq g~matnr
                         where  m~matnr IN s_matnr.
                         and    g~mblnr IN s_mblnr
                         and    k~spras IN s_spras.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;when the compiler pass the where statement there comprise an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This error is "The IN operator with "s_matnr" is followed neither by an internal table nor by a value list." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solver this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Thomas Zloch on Oct 21, 2010 4:45 PM - &lt;STRONG&gt;please use code tags!&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:23:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419149#M1549063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-21T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error at u0130nner Join Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419150#M1549064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where m~matnr IN s_matnr.-&amp;gt;remove this full stop.&lt;/P&gt;&lt;P&gt;and g~mblnr IN s_mblnr&lt;/P&gt;&lt;P&gt;and k~spras IN s_spras.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419150#M1549064</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-10-21T14:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error at u0130nner Join Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419151#M1549065</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But there is a too data when remove where statement I have to wait too long time.Me and customer's don't prefer it &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:31:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419151#M1549065</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-21T14:31:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error at u0130nner Join Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419152#M1549066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not asking to remove the WHERE clause . just remove the '.' after s-matnr to get rid of the syntax error.&lt;/P&gt;&lt;P&gt;Regarding long runtime , you have to optimise your select query .&lt;/P&gt;&lt;P&gt;P.S : If you dont need the results in real time execute the report in background mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 14:38:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419152#M1549066</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-10-21T14:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error at u0130nner Join Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419153#M1549067</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How is s_matnr declared? Is it a Select Option or Range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steven Coolbaugh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Oct 2010 21:38:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419153#M1549067</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-21T21:38:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error at u0130nner Join Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419154#M1549068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please provide ur declarations of parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nabheet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 01:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419154#M1549068</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2010-10-22T01:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error at u0130nner Join Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419155#M1549069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the correct code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF gt_data3 OCCURS 0,
        matnr LIKE mara-matnr,
        ersda LIKE mara-ersda,
        ernam LIKE mara-ernam,
        laeda LIKE mara-laeda,
        aenam LIKE mara-aenam,
        matkl LIKE mara-matkl,
        mblnr LIKE mseg-mblnr,
        mjahr LIKE mseg-mjahr,
        zeile LIKE mseg-zeile,
        werks LIKE mseg-werks,
        waers LIKE mseg-waers,
        spras LIKE makt-spras,
        maktx LIKE makt-maktx,
        maktg LIKE makt-maktg,
       END OF gt_data3.
TABLES:mara,mseg,makt.
SELECT-OPTIONS: s_matnr FOR mara-matnr,
                s_mblnr FOR mseg-mblnr,
                s_spras FOR makt-spras.

START-OF-SELECTION.

  SELECT m~matnr m~ersda m~ernam m~laeda m~aenam
                m~matkl g~mblnr g~mjahr g~zeile g~werks
                g~waers k~spras k~maktx k~maktg
                    INTO CORRESPONDING FIELDS OF TABLE gt_data3
                    FROM  mara AS m INNER JOIN mseg AS g
                                   ON m~matnr EQ g~matnr
                           INNER JOIN makt AS k ON k~matnr EQ g~matnr
                           WHERE  m~matnr IN s_matnr
                           AND    g~mblnr IN s_mblnr
                           AND    k~spras IN s_spras.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Oct 2010 02:20:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-at-u0130nner-join-tables/m-p/7419155#M1549069</guid>
      <dc:creator>nabheetscn</dc:creator>
      <dc:date>2010-10-22T02:20:01Z</dc:date>
    </item>
  </channel>
</rss>

