<?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 report in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859486#M927639</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 help for the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when there are multiple location codes(lgort) for a particular material no.(matnr) then goto table MCHB fetch staorage location where mchb-matnr = resb-matnr and mchb-werks=resb-matnr.then check the first character of the field CHARG of table mchb if it is NE '3' then fetch storage location (lgort) and sum up stock quantity(CLABS) for each location code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when there is only one storage loc'n then goto Mard table and fetch lgort where mard-matnr = resb-matnr and mard-werks=resb-werks.&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, 26 May 2008 08:36:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-26T08:36:49Z</dc:date>
    <item>
      <title>report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859486#M927639</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 help for the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when there are multiple location codes(lgort) for a particular material no.(matnr) then goto table MCHB fetch staorage location where mchb-matnr = resb-matnr and mchb-werks=resb-matnr.then check the first character of the field CHARG of table mchb if it is NE '3' then fetch storage location (lgort) and sum up stock quantity(CLABS) for each location code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when there is only one storage loc'n then goto Mard table and fetch lgort where mard-matnr = resb-matnr and mard-werks=resb-werks.&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, 26 May 2008 08:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859486#M927639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T08:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859487#M927640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What help do u need. Be clear wid tht.&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;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2008 08:55:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859487#M927640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-26T08:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859488#M927641</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;My doubt is how to check if there are multiple entries for a particular material no. i am not getting how to write this logic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 04:11:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859488#M927641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T04:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859489#M927642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pick all the storage loc for all the materials (for ur selelction) in one shot then SORT and loop the int. table&lt;/P&gt;&lt;P&gt;have a variable COUNT and use the AT END MATNR to proceed further&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 04:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859489#M927642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T04:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: report</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859490#M927643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Ramya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1st step - select the all stroage location(LGORT)  from MARD for ur input MATNR and WERKS to internal table itab_mard .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2nd step - select the batch number-CHARG  and  quantity from MCHB using for all entries in ITAB_MARD-MATNR and ITAB_MARD-WERKS and ITAB_MARD-LGORT into itab_mchb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete ITAB_MCHB where CHARG+0(1) &amp;lt;&amp;gt; '3'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :begin of  itab3 occurs 0,&lt;/P&gt;&lt;P&gt;        matnr type matnr,&lt;/P&gt;&lt;P&gt;        werks type werks,&lt;/P&gt;&lt;P&gt;       lgort type lgort_g,&lt;/P&gt;&lt;P&gt;       qty type menge_d,&lt;/P&gt;&lt;P&gt;     end of itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at  itab_mard.&lt;/P&gt;&lt;P&gt;loop at itab_mchb where matnr = itab_mard-matnr and&lt;/P&gt;&lt;P&gt;                                    werks = itab_mard-werks and&lt;/P&gt;&lt;P&gt;                                    lgort = itab_mard-lgort.&lt;/P&gt;&lt;P&gt;lv_qty = lv_qty + itab_mchb-qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab3-matnr = itab_mard-matnr.&lt;/P&gt;&lt;P&gt;itab3-werks = itab_mard-werks.&lt;/P&gt;&lt;P&gt;itab3-lgort =  itab_mard-lgort_g.&lt;/P&gt;&lt;P&gt;itab3-qty = lv_qty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;clear lv_qty.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB3 having stroage location wise quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Durai.V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 04:46:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/report/m-p/3859490#M927643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T04:46:54Z</dc:date>
    </item>
  </channel>
</rss>

