<?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: function module in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2606365#M597407</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:58:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T04:58:47Z</dc:date>
    <item>
      <title>function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2606363#M597405</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>Tue, 07 Aug 2007 03:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2606363#M597405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T03:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2606364#M597406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if ZCO_CSTBRK01-MATNR ne 3300.&lt;/P&gt;&lt;P&gt;insert table&lt;/P&gt;&lt;P&gt;endit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;explin..&lt;/P&gt;&lt;P&gt;if example zco_cstbrk01 = 3300&lt;/P&gt;&lt;P&gt;                                    = 3300&lt;/P&gt;&lt;P&gt;exit from if codition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 04:01:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2606364#M597406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T04:01:30Z</dc:date>
    </item>
    <item>
      <title>Re: function module</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2606365#M597407</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:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module/m-p/2606365#M597407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T04:58:47Z</dc:date>
    </item>
  </channel>
</rss>

