<?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: How Read-only flag for variable set in a function (debug)? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184821#M1373768</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin, Subramanian, Clemens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all very much. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I don't believe it is user authorization related. I was trying to debug in development. Also as I said in the first post, I am not able to change the import parameters of FM_COM_ITEM_READ_SINGLE_DATA but can change parameters of FM_COM_ITEM_READ_MULTIPLE_DATA. And there was no difference between the  attributes of the functions or parameters. If you have the same functions in your installations you probably can verify and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens, you are right, one can go up a step and change the parameters there, but the function as stand alone stays stable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 00:23:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-25T00:23:19Z</dc:date>
    <item>
      <title>How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184817#M1373764</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;While debugging a function module I noticed that (none of) the input parameters were &lt;STRONG&gt;NOT CHANGEABLE&lt;/STRONG&gt;. I was under the impression that read-only attribute could be set only in methods. Could somebody throw some light on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function FM_COM_ITEM_READ_SINGLE_DATA (Funds Management Module) has six import parameters, FMArea, CItem, Year, etc and *none of these parameters &lt;STRONG&gt;can be changed&lt;/STRONG&gt; during debug. However another function in the same group FM_COM_ITEM_READ_MULTIPLE_DATA has similar import parameters, and all of them are changeable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does that happen? I would like to write such functions that end users cannot manipulate using debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 21:40:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184817#M1373764</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T21:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184818#M1373765</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;just my guess. Did you test those FMs in same system and with users with same authorizations. You can restrict debugger to read only mode using authorization object S_DEVELOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 22:46:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184818#M1373765</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2009-09-24T22:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184819#M1373766</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Martin is right.&lt;/P&gt;&lt;P&gt;In production system no user will be given debug rights and even if given they will not have the debug change access.&lt;/P&gt;&lt;P&gt;Verify with basis and have proper roles set up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 23:07:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184819#M1373766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-24T23:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184820#M1373767</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your basis can set the system so that in debugger chages are not allowed. The trick with read-onlx import parameters is useless: You can jump upwards in the call hierarchy and change the variables there - as the values are passed by reference, the change is effective immediately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Sep 2009 23:17:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184820#M1373767</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-24T23:17:16Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184821#M1373768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Martin, Subramanian, Clemens:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all very much. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No, I don't believe it is user authorization related. I was trying to debug in development. Also as I said in the first post, I am not able to change the import parameters of FM_COM_ITEM_READ_SINGLE_DATA but can change parameters of FM_COM_ITEM_READ_MULTIPLE_DATA. And there was no difference between the  attributes of the functions or parameters. If you have the same functions in your installations you probably can verify and let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens, you are right, one can go up a step and change the parameters there, but the function as stand alone stays stable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 00:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184821#M1373768</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T00:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184822#M1373769</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope it depends on the pass by value and pass by reference only make the difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pass by value it will be a copy of the variable which you are passing from the program so it can be changable because you are actually accessing the local copy inside the fm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But pass by reference it will not copy the variable which you are passing from the program but it acutually pointing to the same memory area of the variable of the program. So if you are trying to change the parameter pass by reference, actually you are trying to change the variable of the program which is beyond of your scope inside the fm. So it wont be in changable mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this will be the only difference but let us check for other relevant answer also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since the fm FM_COM_ITEM_READ_SINGLE_DATA is having all parameters as reference parameters so you are not able to change it but FM_COM_ITEM_READ_MULTIPLE_DATA is having all the parameters as pass by value so you can able to change it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiba Prasad Dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 03:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184822#M1373769</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T03:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184823#M1373770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Martin, Subramanian, Clemens:&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; No, I don't believe it is user authorization related.&lt;/P&gt;&lt;P&gt;&amp;gt; Fred.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just make sure it isnt, dont assume. after debugging session call SU53 and check if there were failures due to authorizations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 05:21:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184823#M1373770</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2009-09-25T05:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184824#M1373771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fred,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you lookm at the function modules, you will see that &lt;/P&gt;&lt;P&gt;FM_COM_ITEM_READ_MULTIPLE_DATA hast the IMPORT parameters defined as Call by value, that means that the actual parameters value is copied and can be changed internally.&lt;/P&gt;&lt;P&gt;For FM_COM_ITEM_READ_SINGLE_DATA, the import parameters are passed by reference. Because only the reference is passed, the value can not be changed inside the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I alread said: You can change those values in debugger going up through the call stack.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is &lt;STRONG&gt;nothing&lt;/STRONG&gt; about authorization, those are pure basics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want people to change values in debugger, you can read the sys log and find who when changed what and then rap the user on the knuckles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Transaction SM21 will show you errors like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;14:41:44 DIA  001 100 USERXYZ SEU_           A1  9 Field contents changed: I_GJAHR -&amp;gt; 0001
14:41:44 DIA  001 100 USERXYZ SEU_           A1  4 &amp;gt; in program LFMCI1U07 , line 0029, event FM_COM_ITEM_READ_M&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Responsible companies use to switch off the ability to change values in debugger in production systems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 13:02:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184824#M1373771</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-25T13:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184825#M1373772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My first doubt was the params were "passed by value", but anyways you have explained it in a very lucid way &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW in my prod we dont have any debugging access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 13:12:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184825#M1373772</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2009-09-25T13:12:42Z</dc:date>
    </item>
    <item>
      <title>Re: How Read-only flag for variable set in a function (debug)?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184826#M1373773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you all very much, thanks Shiba Prasad Dutta, Clemens for pointing that out. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fred.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 16:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-read-only-flag-for-variable-set-in-a-function-debug/m-p/6184826#M1373773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T16:20:15Z</dc:date>
    </item>
  </channel>
</rss>

