<?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: different values from SE16 and SQL query in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462048#M1554014</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;The query seems to be wrong, because the link between MARD and MARC is missing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT A~MATNR A~MEINS B~WERKS B~XCHPF C~LGORT C~LABST
       INTO corresponding fields of TABLE IT_PSET1
       FROM  MARA AS A INNER JOIN MARC AS B ON A~MATNR = B~MATNR
                                        INNER JOIN MARD AS C ON B~MATNR = C~MATNR AND
                                                                                B~WERKS = C~WERKS
WHERE A~MATNR IN S_MATNR " AND B~WERKS IN S_WERKS
AND B~XCHPF  'X' AND C~LABST &amp;gt; 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Nov 2010 12:14:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-11-16T12:14:00Z</dc:date>
    <item>
      <title>different values from SE16 and SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462044#M1554010</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;I have been writing a query as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT A~MATNR A~MEINS B~WERKS B~XCHPF C~LGORT C~LABST
       INTO corresponding fields of TABLE IT_PSET1
       FROM  ( ( MARA AS A INNER JOIN MARC AS B
                 ON A~MATNR = B~MATNR )
                 INNER JOIN MARD AS C
                 ON B~MATNR = C~MATNR )
WHERE A~MATNR IN S_MATNR " AND B~WERKS IN S_WERKS
AND B~XCHPF &amp;lt;&amp;gt; 'X' AND C~LABST &amp;gt; 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;the db cnt from dis query is 2841&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but if I go to se16 and select materials from MARC with XCHPF &amp;lt;&amp;gt; X and &lt;/P&gt;&lt;P&gt;give the output material list as input run of se16 for MARD also giving selection as LABST &amp;gt; 0, then I get db cnt as 3017.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me to resolve this diffrence.&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;Edited by: Thomas Zloch on Nov 16, 2010 1:07 PM - formatting fixed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 06:38:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462044#M1554010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T06:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: different values from SE16 and SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462045#M1554011</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swetha,&lt;/P&gt;&lt;P&gt;You have to folow the same flow what u written in your query . first u will take matnr from mara then u have to pass those materials to marc with your condition. after that u pass these values to mard . you will get the same entries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthikeyanks on Nov 16, 2010 11:11 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: karthikeyanks on Nov 16, 2010 11:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 10:07:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462045#M1554011</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T10:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: different values from SE16 and SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462046#M1554012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swetha,&lt;/P&gt;&lt;P&gt;You have to folow the same flow what u written in your query . first u will take matnr from mara then u have to pass those materials to marc with your condition. after that u pass these values to mard . you will get the same entries&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 10:16:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462046#M1554012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T10:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: different values from SE16 and SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462047#M1554013</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;&lt;/P&gt;&lt;P&gt;In both the above scenario if I pass material number only then I get 3657 values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and if in se16n I pass plant(werks) its giving dump,&lt;/P&gt;&lt;P&gt;but still 3017 is not coming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 11:17:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462047#M1554013</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T11:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: different values from SE16 and SQL query</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462048#M1554014</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;The query seems to be wrong, because the link between MARD and MARC is missing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; SELECT A~MATNR A~MEINS B~WERKS B~XCHPF C~LGORT C~LABST
       INTO corresponding fields of TABLE IT_PSET1
       FROM  MARA AS A INNER JOIN MARC AS B ON A~MATNR = B~MATNR
                                        INNER JOIN MARD AS C ON B~MATNR = C~MATNR AND
                                                                                B~WERKS = C~WERKS
WHERE A~MATNR IN S_MATNR " AND B~WERKS IN S_WERKS
AND B~XCHPF  'X' AND C~LABST &amp;gt; 0.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Nov 2010 12:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-values-from-se16-and-sql-query/m-p/7462048#M1554014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-11-16T12:14:00Z</dc:date>
    </item>
  </channel>
</rss>

