<?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: Help -  is this segment of code correct? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700102#M306968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for the infor..i manage to solve it d ^^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Nov 2006 06:54:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-15T06:54:48Z</dc:date>
    <item>
      <title>Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700095#M306961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT MARA&lt;SUB&gt;MATNR MSEG&lt;/SUB&gt;MENGE MSEG~BWART&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE ITAB_SHIP_QTY&lt;/P&gt;&lt;P&gt;   FROM MARA INNER JOIN MSEG ON MSEG&lt;SUB&gt;MATNR = MARA&lt;/SUB&gt;MATNR&lt;/P&gt;&lt;P&gt;             INNER JOIN MKPF ON MKPF&lt;SUB&gt;MBLNR = MSEG&lt;/SUB&gt;MBLNR&lt;/P&gt;&lt;P&gt;                            AND MKPF&lt;SUB&gt;MJAHR = MSEG&lt;/SUB&gt;MJAHR&lt;/P&gt;&lt;P&gt;   WHERE MARA&lt;SUB&gt;MATNR IN Z_MATNR    AND MKPF&lt;/SUB&gt;BUDAT IN SHIP_D&lt;/P&gt;&lt;P&gt;  AND ( ( MSEG~LGORT = 'L002' AND&lt;/P&gt;&lt;P&gt;MSEG~BWART IN ('901','902','101','102','105','106') ) OR&lt;/P&gt;&lt;P&gt;( MSEG&lt;SUB&gt;LGORT = 'L001' AND MSEG&lt;/SUB&gt;BWART = '311' ) OR&lt;/P&gt;&lt;P&gt;( MSEG&lt;SUB&gt;UMLGO = 'L001' AND MSEG&lt;/SUB&gt;BWART = '312' ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dear all,is the above code correct? coz i get the internal table wif more than 2000records with same material number,same movement type and same storage location...only some of the quantity is different. Thx all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 04:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700095#M306961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T04:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700096#M306962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;After this select write &lt;/P&gt;&lt;P&gt; sort itab_ship_qty by matnr .&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab_ship_qty comparing matnr menge bwart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 04:25:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700096#M306962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T04:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700097#M306963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Joan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SELECT statement is absolutely correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be huge data for that meterial. If you want to X check, just check it out in MSEG table by providing the material only. The number of records in the MSEG should be either &amp;gt;= number of records your SELECT populates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Surya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 04:57:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700097#M306963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T04:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700098#M306964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thx rk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi surya,if the data really are tat huge....should i use the method as suggested by Rk? coz in the end i need to sum up the menge ( qty )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab_ship_qty by matnr .&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from itab_ship_qty comparing matnr menge bwart.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:10:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700098#M306964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T05:10:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700099#M306965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  You can do the following.&lt;/P&gt;&lt;P&gt; 1.  Do an innerjoin separately with MSEG and MKPF for all entries selected from MARA (MARA~MATNR IN Z_MATNR). This willl give u a control on your record fetching.&lt;/P&gt;&lt;P&gt; 2. You can use your present query with distinct addition to the BWART field and sum addition to the MENGE field as you will get some of quantities for the same movment types.&lt;/P&gt;&lt;P&gt; 3. Otherwise manipulate your output internal table based on the filter criteria you have.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 05:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700099#M306965</guid>
      <dc:creator>former_member283648</dc:creator>
      <dc:date>2006-11-15T05:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700100#M306966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope the inner join is correct, but the procedure of writing is bit confusing, if you r getting more than 2000 records than your one of the condition is satisfying the criteria but some of the condition is not satisfying, if you have use the select statement than insterad of using OR make them AND which i think more appropriate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 06:02:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700100#M306966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T06:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700101#M306967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hie balachandran,can u elaborate more on how to do the following?&lt;/P&gt;&lt;P&gt;1. Do an innerjoin separately with MSEG and MKPF for all entries selected from MARA (MARA~MATNR IN Z_MATNR). This willl give u a control on your record fetching.&lt;/P&gt;&lt;P&gt;2. You can use your present query with distinct addition to the BWART field and sum addition to the MENGE field as you will get some of quantities for the same movment types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 06:02:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700101#M306967</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T06:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Help -  is this segment of code correct?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700102#M306968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks all for the infor..i manage to solve it d ^^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2006 06:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-is-this-segment-of-code-correct/m-p/1700102#M306968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-15T06:54:48Z</dc:date>
    </item>
  </channel>
</rss>

