<?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: Debug - Replacing constant values in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186283#M127251</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is, I have a submit of another abap in the debugged program, one of the parameters for this submit is the user which is being set with a constant value.  The user in the constant value, does not have appropriate authorisation to perform the task in the submitted program, so I wanted to be able to change it in debug.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT ZBXXXXXXXX&lt;/P&gt;&lt;P&gt;         USER C_USER &amp;lt;--- constant value containing user&lt;/P&gt;&lt;P&gt;         VIA JOB P_JOBNAME&lt;/P&gt;&lt;P&gt;         NUMBER  P_JOBNUM&lt;/P&gt;&lt;P&gt;         WITH P_KEY IN INDEXKEY&lt;/P&gt;&lt;P&gt;         WITH P_JOB EQ P_JOBNUM&lt;/P&gt;&lt;P&gt;         AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can't change the value of C_USER then I don't think I can easily change the user being used to call the submit without changing the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Jan 2006 11:56:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-04T11:56:28Z</dc:date>
    <item>
      <title>Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186277#M127245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anyone know if there is a way to replace a value in debug of a data item declared as a constant ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 11:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186277#M127245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T11:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186278#M127246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;   I don't think there is any way to do that.&lt;/P&gt;&lt;P&gt;Thats is one of the major differences between a variable and a Constant.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 11:40:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186278#M127246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T11:40:14Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186279#M127247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not possible to change the constant value in the debugging mode. Instead you can modify the value after assigned to some other variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ramakrishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 11:42:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186279#M127247</guid>
      <dc:creator>venkata_ramisetti</dc:creator>
      <dc:date>2006-01-04T11:42:09Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186280#M127248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no way of replacing a value assigned to a constant in debug mode. &lt;/P&gt;&lt;P&gt;There is a work around only for testing:&lt;/P&gt;&lt;P&gt;If you are debugging a Zprogram, then you can create a variable and assign the constant to a variable and use this variable wherever you want to change the value in debug mode. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lokesh &lt;/P&gt;&lt;P&gt;Pls. reward appropriate points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 11:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186280#M127248</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T11:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186281#M127249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hey Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of changing that constant value &lt;/P&gt;&lt;P&gt;U can change the value of the variable to which Ur comparing with that constant &lt;/P&gt;&lt;P&gt;for Ex : x = 5 is ur constant &lt;/P&gt;&lt;P&gt;compare the value of the variable .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 11:46:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186281#M127249</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T11:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186282#M127250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;change the value of the variable to which U want to compare with that constant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 11:47:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186282#M127250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T11:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186283#M127251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is, I have a submit of another abap in the debugged program, one of the parameters for this submit is the user which is being set with a constant value.  The user in the constant value, does not have appropriate authorisation to perform the task in the submitted program, so I wanted to be able to change it in debug.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SUBMIT ZBXXXXXXXX&lt;/P&gt;&lt;P&gt;         USER C_USER &amp;lt;--- constant value containing user&lt;/P&gt;&lt;P&gt;         VIA JOB P_JOBNAME&lt;/P&gt;&lt;P&gt;         NUMBER  P_JOBNUM&lt;/P&gt;&lt;P&gt;         WITH P_KEY IN INDEXKEY&lt;/P&gt;&lt;P&gt;         WITH P_JOB EQ P_JOBNUM&lt;/P&gt;&lt;P&gt;         AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I can't change the value of C_USER then I don't think I can easily change the user being used to call the submit without changing the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any suggestions ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 11:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186283#M127251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T11:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186284#M127252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;SUBMIT ZBXXXXXXXX
USER V_USER &amp;lt;--- constant value containing user
VIA JOB P_JOBNAME
NUMBER P_JOBNUM
WITH P_KEY IN INDEXKEY
WITH P_JOB EQ P_JOBNUM
AND RETURN.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;change it to variable that is the only option.&lt;/P&gt;&lt;P&gt;there is no meaning if you change the constant value.(they are final variables)&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 12:03:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186284#M127252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T12:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Debug - Replacing constant values</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186285#M127253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;May be u can debug the program that submits the user value to your program. &lt;/P&gt;&lt;P&gt;If the user value is not constant there,  then u can change the user value there in debug mode and this value should get submitted later on to the next program. &lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rashmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jan 2006 12:22:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/debug-replacing-constant-values/m-p/1186285#M127253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-04T12:22:12Z</dc:date>
    </item>
  </channel>
</rss>

