<?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: Code sample for using change document function modules in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-sample-for-using-change-document-function-modules/m-p/3611367#M870010</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_HEADERS&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objectclass = 'EINKBELEG'&lt;/P&gt;&lt;P&gt;objectid = l_objectid&lt;/P&gt;&lt;P&gt;username = space&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;i_cdhdr = lt_cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_cdhdr WHERE udate IN s_aedat.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;changenumber = lt_cdhdr-changenr&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;editpos = lt_editpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_editpos WHERE fname = 'LOEKZ'&lt;/P&gt;&lt;P&gt;AND f_new = 'L'.&lt;/P&gt;&lt;P&gt;p_desc = text-r01. " Cancel Contract&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_POSITIONS&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objectclass = 'EINKBELEG'&lt;/P&gt;&lt;P&gt;objectid = l_objectid&lt;/P&gt;&lt;P&gt;username = space&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;i_cdhdr = lt_cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_cdhdr WHERE udate IN s_aedat.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;changenumber = lt_cdhdr-changenr&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;editpos = lt_editpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_editpos WHERE fname = 'LOEKZ'&lt;/P&gt;&lt;P&gt;AND f_new = 'L'.&lt;/P&gt;&lt;P&gt;p_desc = text-r01. " Cancel Contract&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/mm001.htm" target="test_blank"&gt;http://www.sap-img.com/mm001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2008 20:00:05 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-18T20:00:05Z</dc:date>
    <item>
      <title>Code sample for using change document function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-sample-for-using-change-document-function-modules/m-p/3611366#M870009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can someone send me some sample code for using function modules CHANGEDOCUMENT_READ_HEADER and CHANGEDOCUMENT_READ_POSITIONS?  I'm specifically looking for changes that occured to the standard price field in the material master (MBEW-STPRS) and I need to pull the most recent price change for a given material.  I'm not sure how to write the code efficiently since I don't have a date to pass (again, since we're looking for the most recent change.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 19:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-sample-for-using-change-document-function-modules/m-p/3611366#M870009</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T19:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Code sample for using change document function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-sample-for-using-change-document-function-modules/m-p/3611367#M870010</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi check this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_HEADERS&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objectclass = 'EINKBELEG'&lt;/P&gt;&lt;P&gt;objectid = l_objectid&lt;/P&gt;&lt;P&gt;username = space&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;i_cdhdr = lt_cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_cdhdr WHERE udate IN s_aedat.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;changenumber = lt_cdhdr-changenr&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;editpos = lt_editpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_editpos WHERE fname = 'LOEKZ'&lt;/P&gt;&lt;P&gt;AND f_new = 'L'.&lt;/P&gt;&lt;P&gt;p_desc = text-r01. " Cancel Contract&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CHANGEDOCUMENT_READ_POSITIONS&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;objectclass = 'EINKBELEG'&lt;/P&gt;&lt;P&gt;objectid = l_objectid&lt;/P&gt;&lt;P&gt;username = space&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;i_cdhdr = lt_cdhdr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_cdhdr WHERE udate IN s_aedat.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;changenumber = lt_cdhdr-changenr&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;editpos = lt_editpos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT lt_editpos WHERE fname = 'LOEKZ'&lt;/P&gt;&lt;P&gt;AND f_new = 'L'.&lt;/P&gt;&lt;P&gt;p_desc = text-r01. " Cancel Contract&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/mm001.htm" target="test_blank"&gt;http://www.sap-img.com/mm001.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 18, 2008 4:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 20:00:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-sample-for-using-change-document-function-modules/m-p/3611367#M870010</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-18T20:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Code sample for using change document function modules</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-sample-for-using-change-document-function-modules/m-p/3611368#M870011</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 check program RCS00120 for sample code.&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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2008 20:40:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-sample-for-using-change-document-function-modules/m-p/3611368#M870011</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2008-03-18T20:40:46Z</dc:date>
    </item>
  </channel>
</rss>

