<?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: Doubts in using INNER JOIN in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180814#M757297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Prashant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this solves first part of my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want to know the quantity &amp;amp; value of material which was deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i go about it???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Dec 2007 11:24:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-10T11:24:41Z</dc:date>
    <item>
      <title>Doubts in using INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180811#M757294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on customizing a stock summary report.&lt;/P&gt;&lt;P&gt;I have to output the details of Materials which are deleted in a given time period.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 10 select-options from 4 different tables i.e MARA, MARC, MBEW &amp;amp; EKPO.&lt;/P&gt;&lt;P&gt;I am using innner join for the same. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My doubts are:&lt;/P&gt;&lt;P&gt;1. Is it the best way?????&lt;/P&gt;&lt;P&gt;2. How do i find out the Quantity of material which was deleted???&lt;/P&gt;&lt;P&gt;3. Are there any tables where i can search for BUKRS(Compnay code) &amp;amp; WERKS(Plant) based on MATNR (Material Number)????&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 11:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180811#M757294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T11:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts in using INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180812#M757295</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;   Dont use joins it will affect on performance better to use FOR ALL ENTRIES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_read_mara                                            *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This form will Select the material number material type material    *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; group &amp;amp; batch management indicator from table mara using given      *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; material number                                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_read_mara .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Select query to pick the material number material group material type&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; and batch management from table MARA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  SELECT matnr                            "Material Number&lt;/P&gt;&lt;P&gt;         mtart                            "Material Type&lt;/P&gt;&lt;P&gt;         matkl                            "Material Group&lt;/P&gt;&lt;P&gt;         xchpf                            "Batch Management&lt;/P&gt;&lt;P&gt;         FROM mara                        "Material Master&lt;/P&gt;&lt;P&gt;         INTO TABLE i_mara&lt;/P&gt;&lt;P&gt;         WHERE matnr IN s_matnr&lt;/P&gt;&lt;P&gt;         AND   mtart IN s_mtart&lt;/P&gt;&lt;P&gt;         AND   matkl IN s_matkl .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Check Subrc&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;*--No data found for the given selection criteria.&lt;/P&gt;&lt;P&gt;    MESSAGE i001.&lt;/P&gt;&lt;P&gt;    LEAVE TO LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;*--Sort table by Material Number&lt;/P&gt;&lt;P&gt;    SORT i_mara BY matnr.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                                  "sub_read_mara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_read_marc                                            *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This form will Select the material number plant purchasing group &amp;amp;  *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MRP controller from table MARC using given material number plant &amp;amp;  *&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; purchasing group.                                                   *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_read_marc .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT i_mara[] IS INITIAL.&lt;/P&gt;&lt;P&gt;*--Select query to pick the material number plant purchasing group &amp;amp;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; MRP controller from table MARC&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    SELECT matnr                            "Material Number&lt;/P&gt;&lt;P&gt;           werks                            "Plant&lt;/P&gt;&lt;P&gt;           ekgrp                            "Purchasing Group&lt;/P&gt;&lt;P&gt;           dispo                            "MRP Controller&lt;/P&gt;&lt;P&gt;           FROM marc                        "Material Master&lt;/P&gt;&lt;P&gt;           INTO TABLE i_marc&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN i_mara&lt;/P&gt;&lt;P&gt;           WHERE matnr = i_mara-matnr&lt;/P&gt;&lt;P&gt;           AND werks IN s_werks&lt;/P&gt;&lt;P&gt;           AND ekgrp IN s_ekgrp&lt;/P&gt;&lt;P&gt;           AND dispo IN s_dispo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Check Subrc&lt;/P&gt;&lt;P&gt;    IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;      MESSAGE i001.&lt;/P&gt;&lt;P&gt;      LEAVE TO LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;    ELSE.&lt;/P&gt;&lt;P&gt;*--Sort table by Material Number Plant&lt;/P&gt;&lt;P&gt;      SORT i_marc BY matnr werks.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                                  "sub_read_marc&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  sub_read_t320                                            *&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; This form retrieve warehouse number from table t320                 *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_read_t320 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT i_marc[] IS INITIAL.&lt;/P&gt;&lt;P&gt;*--Select query to pick the plant storage location &amp;amp; warehouse number&lt;/P&gt;&lt;P&gt;    SELECT werks                            "Plant&lt;/P&gt;&lt;P&gt;           lgort                            "Storage Location&lt;/P&gt;&lt;P&gt;           lgnum                            "Warehouse Number&lt;/P&gt;&lt;P&gt;           FROM t320&lt;/P&gt;&lt;P&gt;           INTO TABLE i_t320&lt;/P&gt;&lt;P&gt;           FOR ALL ENTRIES IN i_marc&lt;/P&gt;&lt;P&gt;           WHERE werks = i_marc-werks&lt;/P&gt;&lt;P&gt;           AND lgort IN s_lgort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Check Subrc&lt;/P&gt;&lt;P&gt;    IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*--Sort table by Plant Storage Location&lt;/P&gt;&lt;P&gt;      SORT i_t320 BY werks lgort.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDFORM.                                  "sub_read_t320&lt;/P&gt;&lt;P&gt;&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, 10 Dec 2007 11:16:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180812#M757295</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2007-12-10T11:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts in using INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180813#M757296</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;u can fine werks from MARC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 11:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180813#M757296</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T11:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts in using INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180814#M757297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Prashant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this solves first part of my question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i want to know the quantity &amp;amp; value of material which was deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do i go about it???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 11:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180814#M757297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T11:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts in using INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180815#M757298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gaurav,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        as we alll know tht using inner join is a performance issue i suggest not to use this instead use for all entries this might avoid the performance issue.&lt;/P&gt;&lt;P&gt;if u want to check the tables u need go to tcode se15 or se84 and give the field names and u can get the tables .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i am sending the links between the tables since u can get the exact relationships between thm....&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/tables.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/tables.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might be helpful to u&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sana M.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 11:29:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180815#M757298</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T11:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: Doubts in using INNER JOIN</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180816#M757299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sana,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So now part1 and part3 of my question is answered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still i would like to know if which field tells me the Quanitity of Material deleted,&lt;/P&gt;&lt;P&gt;as i have to display the Quantity of material deleted and its value using ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i use the Fields MENGE &amp;amp; VKWRT from table ISEG for the same???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Dec 2007 11:44:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/doubts-in-using-inner-join/m-p/3180816#M757299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-10T11:44:50Z</dc:date>
    </item>
  </channel>
</rss>

