<?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 CHANGEDOCUMENT_CLOSE function problem - NO_POSITION_INSERTED in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changedocument-close-function-problem-no-position-inserted/m-p/6175909#M1372498</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 to do a logged change for ASMD table. Unfortunately, my ECC 4.6 has no BAPI for service changes - so I've decided to change the records manually and save change documents along with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went through the procedure as advised, and that was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(enqueue)&lt;/P&gt;&lt;P&gt;1) CHANGEDOCUMENT_OPEN &lt;/P&gt;&lt;P&gt;2) CHANGEDOCUMENT_SINGLE_CASE &lt;/P&gt;&lt;P&gt;3) CHANGEDOCUMENT_CLOSE &lt;/P&gt;&lt;P&gt;(dequeue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so:&lt;/P&gt;&lt;P&gt;1) works fine&lt;/P&gt;&lt;P&gt;2) is fine as well&lt;/P&gt;&lt;P&gt;3) CHANGEDOCUMENT_CLOSE returns 4, which corresponds to 'NO_POSITION_INSERTED', though the former function call (2) says it had been done... now that's confusing &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code where the program stops in CHANGEDOCUMENT_CLOSE looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF anz_insert = 0. " &amp;lt;= checked positive - so the positions number is zero
* Es wurden keine Positionen erfasst 
CLEAR: aendnr, sequence. 
MESSAGE e327 WITH 'NO_POSITION_INSERTED' 'CDOK' 
RAISING no_position_inserted. 
ENDIF. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is always an option of creating an extra table just for tracking changes of services but the above method seems more elegant &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Sep 2009 13:49:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-18T13:49:57Z</dc:date>
    <item>
      <title>CHANGEDOCUMENT_CLOSE function problem - NO_POSITION_INSERTED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changedocument-close-function-problem-no-position-inserted/m-p/6175909#M1372498</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 to do a logged change for ASMD table. Unfortunately, my ECC 4.6 has no BAPI for service changes - so I've decided to change the records manually and save change documents along with it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went through the procedure as advised, and that was:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(enqueue)&lt;/P&gt;&lt;P&gt;1) CHANGEDOCUMENT_OPEN &lt;/P&gt;&lt;P&gt;2) CHANGEDOCUMENT_SINGLE_CASE &lt;/P&gt;&lt;P&gt;3) CHANGEDOCUMENT_CLOSE &lt;/P&gt;&lt;P&gt;(dequeue)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and so:&lt;/P&gt;&lt;P&gt;1) works fine&lt;/P&gt;&lt;P&gt;2) is fine as well&lt;/P&gt;&lt;P&gt;3) CHANGEDOCUMENT_CLOSE returns 4, which corresponds to 'NO_POSITION_INSERTED', though the former function call (2) says it had been done... now that's confusing &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code where the program stops in CHANGEDOCUMENT_CLOSE looks as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF anz_insert = 0. " &amp;lt;= checked positive - so the positions number is zero
* Es wurden keine Positionen erfasst 
CLEAR: aendnr, sequence. 
MESSAGE e327 WITH 'NO_POSITION_INSERTED' 'CDOK' 
RAISING no_position_inserted. 
ENDIF. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is always an option of creating an extra table just for tracking changes of services but the above method seems more elegant &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 13:49:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changedocument-close-function-problem-no-position-inserted/m-p/6175909#M1372498</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T13:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: CHANGEDOCUMENT_CLOSE function problem - NO_POSITION_INSERTED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changedocument-close-function-problem-no-position-inserted/m-p/6175910#M1372499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One poosbile error will be due to in fm CHANGEDOCUMENT_SINGLE_CASE any duplicate rows with same key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 14:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changedocument-close-function-problem-no-position-inserted/m-p/6175910#M1372499</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-09-18T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: CHANGEDOCUMENT_CLOSE function problem - NO_POSITION_INSERTED</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changedocument-close-function-problem-no-position-inserted/m-p/6175911#M1372500</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;It was true - I mixed the sequence - change documents were created after writing, and I tried to insert document with the same key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 08:29:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changedocument-close-function-problem-no-position-inserted/m-p/6175911#M1372500</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T08:29:07Z</dc:date>
    </item>
  </channel>
</rss>

