<?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: Diff Between OKCODE / SY-UCOMM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853025#M361023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. It is not possible to clear the content of  sy-ucomm since it is a system variable but we can clear the content of ok_code.&lt;/P&gt;&lt;P&gt;2. The length of sy-ucomm is fixed but the length of ok_code is not fixed. we can take any length&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jan 2007 08:15:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-25T08:15:27Z</dc:date>
    <item>
      <title>Diff Between OKCODE / SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853022#M361020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;wen we use both of in real time.&lt;/P&gt;&lt;P&gt;wat is the exact difference b/n OK-CODE/ SY-UCOMM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 08:02:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853022#M361020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T08:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Between OKCODE / SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853023#M361021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-ucomm is for doing the functions what the user wishes to do at that particular event. You use it in menus and other place . this mainly in using &amp;lt;pfstatus&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code is generally used in screen as of I have used. You will define the function in the screen. and you can use it in the main program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code acts just as a temporary variable that stores the value of sy-ucomm. &lt;/P&gt;&lt;P&gt;When user interacts with the screen elements, the function code that you have assigned is filled in the sy-ucomm field which is turn gets reflected in OK_CODE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your ABAP programs, you should work with the OK_CODE field instead of SY-UCOMM. There are two reasons for this: Firstly, the ABAP program has full control over fields declared within it, and secondly, you should never change the value of an ABAP system field. However, you should also always initialize the OK_CODE field in an ABAP program for the following reason: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same way that the OK_CODE field in the ABAP program and the system field SY-UCOMM receive the contents of the corresponding screen fields in the PAI event, their contents are also assigned to the OK_CODE screen field and system field SYST-UCOMM in the PBO event. Therefore, you must clear the OK_CODE field in the ABAP program to ensure that the function code of a screen is not already filled in the PBO event with an unwanted value. This is particularly important when the next PAI event can be triggered with an empty function code (for example, using ENTER). Empty function codes do not affect SY-UCOMM or the OK_CODE field, and consequently, the old field contents are transported. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 08:04:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853023#M361021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T08:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Between OKCODE / SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853024#M361022</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;Sy-Ucomm is a system variable which captures the input commands without any intervention,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we define the OK_CODE  as a type of SY-UCOMM.&lt;/P&gt;&lt;P&gt;Just to capture different values of input commands..&lt;/P&gt;&lt;P&gt;and thereby we can check different commands and can execute our owncode...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK_CODE is just type of SY-UCOMM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all the helpful answers...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 08:07:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853024#M361022</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-01-25T08:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Diff Between OKCODE / SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853025#M361023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ajay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;1. It is not possible to clear the content of  sy-ucomm since it is a system variable but we can clear the content of ok_code.&lt;/P&gt;&lt;P&gt;2. The length of sy-ucomm is fixed but the length of ok_code is not fixed. we can take any length&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 08:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-okcode-sy-ucomm/m-p/1853025#M361023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T08:15:27Z</dc:date>
    </item>
  </channel>
</rss>

