<?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: Clear a private variable. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-a-private-variable/m-p/5705277#M1295671</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have an SCM system to check on, so the following is necessarily generic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the class &lt;STRONG&gt;/scmtms/cl_lcp_factory_adapter&lt;/STRONG&gt; and see if there is a method that allows the value of &lt;STRONG&gt;ms_lcp_transaction&lt;/STRONG&gt;  to be reset.  You can do this be searching the class for that string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you know what you are doing, you could use the enhancement framework to create getter/setter methods in the class.  Attributes are usually private for a reason, so enhancing the class in this way may lead to inconsistancies. &lt;STRONG&gt;So, I really mean it.  If you don't know precisely the effects - don't do it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on May 29, 2009 10:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 May 2009 08:15:51 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2009-05-29T08:15:51Z</dc:date>
    <item>
      <title>Clear a private variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-a-private-variable/m-p/5705276#M1295670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;lr_lcp_transaction =
  /scmtms/cl_lcp_factory_adapter=&amp;gt;get_lcp_transaction_handler( ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am calling the above statement in loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is this when the loop runs for second time, i need a new value into lr_lcp_transaction and not the value which was present in the previous run of the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The parameter 'ms_lcp_transaction' of the class /scmtms/cl_lcp_factory_adapter is responsible for the retaining of the previous value. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot clear that variable from my program as that parameter is private. please help me in this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Selvakumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2009 14:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-a-private-variable/m-p/5705276#M1295670</guid>
      <dc:creator>selvakumar_mohan</dc:creator>
      <dc:date>2009-05-28T14:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clear a private variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-a-private-variable/m-p/5705277#M1295671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't have an SCM system to check on, so the following is necessarily generic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at the class &lt;STRONG&gt;/scmtms/cl_lcp_factory_adapter&lt;/STRONG&gt; and see if there is a method that allows the value of &lt;STRONG&gt;ms_lcp_transaction&lt;/STRONG&gt;  to be reset.  You can do this be searching the class for that string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; If you know what you are doing, you could use the enhancement framework to create getter/setter methods in the class.  Attributes are usually private for a reason, so enhancing the class in this way may lead to inconsistancies. &lt;STRONG&gt;So, I really mean it.  If you don't know precisely the effects - don't do it.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on May 29, 2009 10:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 08:15:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-a-private-variable/m-p/5705277#M1295671</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-05-29T08:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: Clear a private variable.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clear-a-private-variable/m-p/5705278#M1295672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Found a method as u have suggested...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The method is named as cleanup_transaction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which clears the ms_lcp_transcation variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for suggestion. found solution based on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Selvakumar M.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 May 2009 09:23:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clear-a-private-variable/m-p/5705278#M1295672</guid>
      <dc:creator>selvakumar_mohan</dc:creator>
      <dc:date>2009-05-29T09:23:24Z</dc:date>
    </item>
  </channel>
</rss>

