<?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: Transaction code in change documents in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549641#M1266969</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search for OSS notes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Apr 2009 09:11:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-15T09:11:02Z</dc:date>
    <item>
      <title>Transaction code in change documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549640#M1266968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a program which I'm running in background. This program alters IS-U data using several function modules. In the function modules, we have the option to create change documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that the transaction codes are not written in the change documents when running the program in BACKGROUND.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg. FM EQUIPMENT_SAVE &lt;/P&gt;&lt;P&gt;      with import I_WRITE_CDOCS = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The change documents are created, but the transaction codes are not written if the program is run in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:02:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549640#M1266968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T09:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code in change documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549641#M1266969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Search for OSS notes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:11:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549641#M1266969</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T09:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code in change documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549642#M1266970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first: the TCODE-Field in changedocuments is an informational field. At least up to Rel.4.7 you can fill it with TCODE that are not really existing in the SAP-System.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your example with the EQUIPMENT_SAVE-function: if you look into the source, there&lt;/P&gt;&lt;P&gt;is comment   "part 8: change documents if required (only in change mode)". After that there are  Changedoc written in a form EQUI_CDOCS_UPDATE_F10. There's an other form called CD_CALL_EQUI which calls an function EQUI_WRITE_DOCUMENT- there's a input parameter for TCODE. Unfortunately that's filled before from sy-tcode - i guess it's empty in background processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what you could do is call in your program the EQUIPMENT_SAVE-function without I_WRITE_CDOCS = 'X' and book the changedocuments separately via Function EQUI_WRITE_DOCUMENT - but it's pretty much work because you will need to fill the before image and the after image in your own program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:35:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549642#M1266970</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T09:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code in change documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549643#M1266971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After a deeper look in the program, I can tell you this: I don't think it's related to which function module is called but to the way how it is called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program exists of several calls to function modules.&lt;/P&gt;&lt;P&gt;When I use CALL FUNCTION XXX, the transaction code is not written in the change docs in background.&lt;/P&gt;&lt;P&gt;When I use CALL TRANSACTION XXX, the transaction code is written in the change docs in background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the problem is that I can't use a CALL TRANSACTION XXX for my main program...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 09:48:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549643#M1266971</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T09:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code in change documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549644#M1266972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Glenn, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it's right: if you use CALL TRANSACTION  xxxx, you'll set the field sy-tcode. That's what call transaction does.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 10:59:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549644#M1266972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T10:59:46Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code in change documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549645#M1266973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, so is there any way to pass the transaction code of my main program so that it's included in the change documents?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose that if I use CALL TRANSACTION 'MyTcode' that it should work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 11:06:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549645#M1266973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T11:06:30Z</dc:date>
    </item>
    <item>
      <title>Re: Transaction code in change documents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549646#M1266974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you use CALL Transaction, you should get the transaction in the changedocument. But there might be the problem that not all transactions run in background, specially if they use such things like controls or popup's. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The other chance would be what i wrote in the first answer - book the changedocument separately via &lt;/P&gt;&lt;P&gt;function EQUI_WRITE_DOCUMENT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards Wolfgang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Apr 2009 13:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transaction-code-in-change-documents/m-p/5549646#M1266974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-15T13:01:00Z</dc:date>
    </item>
  </channel>
</rss>

