<?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 Problem while generating Update progam for a Change Document Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-generating-update-progam-for-a-change-document-object/m-p/3351428#M803915</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'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Function module name is reserved for SAP"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further (I decided not to open a new thread) - generated Update program uses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'xxxxx' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed  (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.&lt;/P&gt;&lt;P&gt;Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, to be precise, I think I have to give a sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).&lt;/P&gt;&lt;P&gt;2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).&lt;/P&gt;&lt;P&gt;3. I call the CDO FM.&lt;/P&gt;&lt;P&gt;4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints are wellcome.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivaylo Mutafchiev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jan 2008 14:13:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-23T14:13:36Z</dc:date>
    <item>
      <title>Problem while generating Update progam for a Change Document Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-generating-update-progam-for-a-change-document-object/m-p/3351428#M803915</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'm trying to deal with Change Document concept in a R/3 4.6C environment and to establish new Change Document object for my (Z)-table. I haven't using any namespace and created object with name ZTEST. Following the online documentation I came to the point, where I have to generate include program. I made all the nessesary inputs (using Z prefix) but faced &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Function module name is reserved for SAP"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Creating everything similarily using some of our registered namespaces (/somenamespace/) I succeed to generate the Update program and to integrate it in my Z-programs as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is: is it possible to use Change Document Object-names without predefined namespace - being a regular customer developer, but not an SAP developer - means, if I am allowed to manage programs in the customer namespace (Z,Y, X) only. If yes, how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further (I decided not to open a new thread) - generated Update program uses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'xxxxx' IN UPDATE TASK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for creation of Change Numbers for generated Change Document Object. This CALL doesn't work when I implemented it in my Z-program, but when changed  (IN UPDATE TASK was commented) - everything goes well and the system creates records in CDHDR/CDPOS tables for my object class and table.&lt;/P&gt;&lt;P&gt;Why is that? According to the documentation I shoud only fill appropriate variables for the Change Document Object (class, tr.code, etc.) and call generated FM, nothing is pointed out about any possible problems? Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well, to be precise, I think I have to give a sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. I have a sample Z-table with few fields (their data elements are marked as Change-Document relevant).&lt;/P&gt;&lt;P&gt;2. Using own z-progam I created a new record for this z-table. Also fill all the nessesary variables included in the interface of generated FM for Change Document Object (for example - FM-mane CD_CALL_my_object).&lt;/P&gt;&lt;P&gt;3. I call the CDO FM.&lt;/P&gt;&lt;P&gt;4. Check what is happening (directly in both tables CDHDR/CDPOS or using FM CHANGEDOCUMENT_READ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further, I perfom the steps from 1 to 4 updating the created in previous loop record in my Z-table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In both cases if the FM 'CD_CALL_my_object' is called IN UPDATE TASK nothing happens, but in case of direct call (without addition IN UPDATE TASK) the system behaves as expected. Well, obliously I can change the generated code for our production needs, but it doesn't seems to be the correct decision - in case of next possible modification of the Change Document Object definition, respectively in need of re-generation of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any hints are wellcome.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ivaylo Mutafchiev&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ivaylo Mutafchiev on Jan 24, 2008 10:24 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2008 14:13:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-generating-update-progam-for-a-change-document-object/m-p/3351428#M803915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-23T14:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem while generating Update progam for a Change Document Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-generating-update-progam-for-a-change-document-object/m-p/3351429#M803916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"IN UPDATE TASK" resolved by myself. The one should explicitly call 'COMMIT WORK' from Z-program after CALL FUNCTION '...' IN UPDATE TASK in order to get changes in the CDHDR/CDPOS commited. The key in this issue for me was to check the documentation of CALL FUNCTION :-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2008 11:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-generating-update-progam-for-a-change-document-object/m-p/3351429#M803916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-24T11:28:49Z</dc:date>
    </item>
  </channel>
</rss>

