<?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 How to find OK_CODE value while is running a t-code? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002187#M1697986</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;I'm running the transaction FB60 once with a company code, and second time with a diferent company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debug the program in both cases to see ok_code value and this one changes for every case, even when the process in FB60 is the same, exactly the same fields filled for both companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an idea why ok_code changes when I'm doing the same process in the transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to find the point in program where ok_code gets the value but it looks automatically, from no other variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD: the reason why I'm checking ok_code is because depending on its value, the transaction executes a validation by doc. position or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Sep 2012 10:19:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-07T10:19:18Z</dc:date>
    <item>
      <title>How to find OK_CODE value while is running a t-code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002187#M1697986</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;I'm running the transaction FB60 once with a company code, and second time with a diferent company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I debug the program in both cases to see ok_code value and this one changes for every case, even when the process in FB60 is the same, exactly the same fields filled for both companies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have an idea why ok_code changes when I'm doing the same process in the transaction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to find the point in program where ok_code gets the value but it looks automatically, from no other variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PD: the reason why I'm checking ok_code is because depending on its value, the transaction executes a validation by doc. position or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 10:19:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002187#M1697986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-07T10:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to find OK_CODE value while is running a t-code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002188#M1697987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why you are not going with sy-ucomm or sy-tcode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sy-ucomm = command&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sy-tcode&amp;nbsp;&amp;nbsp; = entered transcation&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 10:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002188#M1697987</guid>
      <dc:creator>bharat_rathod2</dc:creator>
      <dc:date>2012-09-07T10:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to find OK_CODE value while is running a t-code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002189#M1697988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bharat, the code of this transaction is standard and I'm only trying to find out why the value of ok_code changes when I'm running the transaction two times with the same data except company code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 11:01:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002189#M1697988</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-07T11:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to find OK_CODE value while is running a t-code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002190#M1697989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try to debug your transction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in debug mode you find &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;handle_double_click&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;CALL &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;METHOD &lt;/SPAN&gt;cl_gui_cfw&lt;SPAN class="L0S70"&gt;=&amp;gt;&lt;/SPAN&gt;set_new_ok_code&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;EXPORTING&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new_code &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;m_okcode_select&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;here value of ok_code is change&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 11:07:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002190#M1697989</guid>
      <dc:creator>bharat_rathod2</dc:creator>
      <dc:date>2012-09-07T11:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to find OK_CODE value while is running a t-code?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002191#M1697990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code = user command value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means enter, back, exit,cancle,etc...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 11:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-find-ok-code-value-while-is-running-a-t-code/m-p/9002191#M1697990</guid>
      <dc:creator>bharat_rathod2</dc:creator>
      <dc:date>2012-09-07T11:08:48Z</dc:date>
    </item>
  </channel>
</rss>

