<?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: very urgent function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283290#M497276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you exlain it clearly?&lt;/P&gt;&lt;P&gt;How many tables do u have? What field u need sum with what conditions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: you are asking all time about the same. You have to reward always all helpfull answers please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 May 2007 11:26:44 GMT</pubDate>
    <dc:creator>former_member582701</dc:creator>
    <dc:date>2007-05-29T11:26:44Z</dc:date>
    <item>
      <title>very urgent function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283289#M497275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;    This is function module.actually i have retrieved some data in to itab (type  &lt;/P&gt;&lt;P&gt;    standard table)&lt;/P&gt;&lt;P&gt;   They asked me to totaled the data of mseg on material and plant.&lt;/P&gt;&lt;P&gt;   issued quantity should be caliculated at meterial and plant level using this logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   (sum all quantity where movent type is equal to ztab-movement type and z_tab-x = 'X')  -  (sum of all quantyty (mseg) (where movent type of mseg) = z_tab-bwart and z_tab-x = 'Y')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   can anybody send code to this logic.THis should be in function module so ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;SAISRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 11:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283289#M497275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T11:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: very urgent function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283290#M497276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you exlain it clearly?&lt;/P&gt;&lt;P&gt;How many tables do u have? What field u need sum with what conditions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: you are asking all time about the same. You have to reward always all helpfull answers please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 11:26:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283290#M497276</guid>
      <dc:creator>former_member582701</dc:creator>
      <dc:date>2007-05-29T11:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: very urgent function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283291#M497277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have retrieved data from mseg and stored in one table where werks in s_werks .&lt;/P&gt;&lt;P&gt;             MJAHR&lt;/P&gt;&lt;P&gt;             ZEILE&lt;/P&gt;&lt;P&gt;             BWART&lt;/P&gt;&lt;P&gt;             MATNR&lt;/P&gt;&lt;P&gt;             MENGE&lt;/P&gt;&lt;P&gt;             MEINS&lt;/P&gt;&lt;P&gt;ztable   : contains BWART and  indicator field indc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this i_mseg data will be totaled on Material and plant. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issued qty at material and plant level, will be calculated with following logic,&lt;/P&gt;&lt;P&gt;i.	(Sum of all MSEG-MENGE where MSEG-BWRAT=Z_tab-BWRAT and z_tab-indc= &amp;#147;x&amp;#148;) &amp;#150; (Sum of all MSEG-MENGE (where MSEG-BWRAT=z_tab-bwart)and z_indc = &amp;#147;y&amp;#148;)&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;SAISRI&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 11:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283291#M497277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-29T11:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: very urgent function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283292#M497278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA: BEGIN OF i_result OCCURS 0,&lt;/P&gt;&lt;P&gt;sum TYPE i,&lt;/P&gt;&lt;P&gt;matnr LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;werks LIKE MARD-WERKS,&lt;/P&gt;&lt;P&gt;END OF i_result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT i_mseg BY matnr werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_mseg.&lt;/P&gt;&lt;P&gt;AT new werks.&lt;/P&gt;&lt;P&gt; CLEAR i_result.&lt;/P&gt;&lt;P&gt;ENDAT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE z_tab WITH KEY bwrat = i_mseg-bwrat &lt;/P&gt;&lt;P&gt;                                               indc = 'x'.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt; i_result-sum = i_result-sum + i_mseg-menge sum.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE z_tab WITH KEY bwrat= i_mseg-bwrat&lt;/P&gt;&lt;P&gt;                                               indc = 'y'.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC EQ 0.&lt;/P&gt;&lt;P&gt; i_result-sum = i_result-sum - i_mseg-menge sum.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT END OF werks.&lt;/P&gt;&lt;P&gt;  i_result-matnr = i_mseg-matnr.&lt;/P&gt;&lt;P&gt;  i_result-werks = i_mseg-werks.&lt;/P&gt;&lt;P&gt;  INSERT TABLE i_result.&lt;/P&gt;&lt;P&gt;ENDAT.&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;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;Regard and remember reward&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;manel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 May 2007 12:27:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/very-urgent-function-modules/m-p/2283292#M497278</guid>
      <dc:creator>former_member582701</dc:creator>
      <dc:date>2007-05-29T12:27:40Z</dc:date>
    </item>
  </channel>
</rss>

