<?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 function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588198#M592448</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;  I am working on a function module where for all the movement types 901,902,903,904,601,602,603,604 from ZTE003_MOVEMENTS table with material number (ZCO_CSTBRK01-MATNR)having valuation class(MBEW-BKLAS) 3300 should not be updated in table ZCO_CSTBRK01.How can i write an IF condition for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2007 14:15:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-06T14:15:44Z</dc:date>
    <item>
      <title>function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588198#M592448</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;  I am working on a function module where for all the movement types 901,902,903,904,601,602,603,604 from ZTE003_MOVEMENTS table with material number (ZCO_CSTBRK01-MATNR)having valuation class(MBEW-BKLAS) 3300 should not be updated in table ZCO_CSTBRK01.How can i write an IF condition for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Useful answers will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 14:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588198#M592448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T14:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588199#M592449</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;Pls find the logic for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Populate the ranges object of r_mblnr with the movement types 901,902,903,904,601,602,603 and 604 with the sign of 'E' and option of 'EQ'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Populate the ZCO_CSTBRK01 structure withe material and other data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Before updating the data write a following if logic:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from ZTE003_MOVEMENTS table where&lt;/P&gt;&lt;P&gt;                  matnr = ZCO_CSTBRK01-MATNR&lt;/P&gt;&lt;P&gt;                  movements in r_mblnr and mbew = 3300.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;   update table ZCO_CSTBRK01.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;- Irudayaraj Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 14:48:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588199#M592449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T14:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588200#M592450</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;  I have written a select query like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    read table T_BKLAS with key MATNR = XMCMSEG-MATNR&lt;/P&gt;&lt;P&gt;                                  BWTAR = XMCMSEG-BWTAR&lt;/P&gt;&lt;P&gt;                                   BKLAS = XMCMSEG-BKLAS.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;    The movement types 901, 902, 601, 602 with valuation class&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;3300 are ignored and the line item is not updated in the ZCO_CSTBRK01 table&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      IF ( XMCMSEG-BWART = c_901 or&lt;/P&gt;&lt;P&gt;           XMCMSEG-BWART = c_902 or&lt;/P&gt;&lt;P&gt;           XMCMSEG-BWART = c_903 or&lt;/P&gt;&lt;P&gt;           XMCMSEG-BWART = c_904 or&lt;/P&gt;&lt;P&gt;           XMCMSEG-BWART = c_601 or&lt;/P&gt;&lt;P&gt;           XMCMSEG-BWART = c_602 or&lt;/P&gt;&lt;P&gt;           XMCMSEG-BWART = c_603 or&lt;/P&gt;&lt;P&gt;           XMCMSEG-BWART = c_604 )&lt;/P&gt;&lt;P&gt;      AND t_bklas-bklas = c_3300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        CONTINUE.&lt;/P&gt;&lt;P&gt;SELECT * FROM  ZTE003_MOVEMENTS into TABLE t_final_table&lt;/P&gt;&lt;P&gt;            FOR ALL ENTRIES IN t_bklas WHERE matnr = t_bklas-matnr AND&lt;/P&gt;&lt;P&gt;                                             bklas = c_3300.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;update TABLE t_final_table.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here it is giving error as 'field MATNR unknown'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could u pls suggest me the proper solution for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 04:57:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588200#M592450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T04:57:49Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588201#M592451</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;Pls you check if the table ZTE003_MOVEMENTS and the internal table of T_BKLAS has a firld of matnr in the definition / declarations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Irudayaraj Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2007 09:33:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2588201#M592451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-08T09:33:42Z</dc:date>
    </item>
  </channel>
</rss>

