<?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: HELP ME IN OKCODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893189#M373571</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Ok_code is the variable that you declare in the screen to get the function code. When ever you create a button or say select a menu entry the relative function code will be there in the system variable sy-ucomm. by defining ok_code in your screen you get the value in sy-ucomm into your varable.  You need to store the ok_code in a temporary filed and clear it so that it will not cause any side effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Screen PAI you need to check what action user has done on the UI the value in ok_code will give you the idea what user has selected in the UI.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Feb 2007 04:32:58 GMT</pubDate>
    <dc:creator>seshatalpasai_madala</dc:creator>
    <dc:date>2007-02-02T04:32:58Z</dc:date>
    <item>
      <title>HELP ME IN OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893187#M373569</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; COULD ANYBODY TELL ME THE FUNCTIONALITY OF OKCODE?&lt;/P&gt;&lt;P&gt;WITH REGARDS,&lt;/P&gt;&lt;P&gt;KHADAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 04:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893187#M373569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T04:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME IN OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893188#M373570</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;Generally it is used to store sy-ucomm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 04:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893188#M373570</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-02-02T04:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME IN OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893189#M373571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;        Ok_code is the variable that you declare in the screen to get the function code. When ever you create a button or say select a menu entry the relative function code will be there in the system variable sy-ucomm. by defining ok_code in your screen you get the value in sy-ucomm into your varable.  You need to store the ok_code in a temporary filed and clear it so that it will not cause any side effects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your Screen PAI you need to check what action user has done on the UI the value in ok_code will give you the idea what user has selected in the UI.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 04:32:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893189#M373571</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-02-02T04:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME IN OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893190#M373572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  , &lt;/P&gt;&lt;P&gt;  OKCODE is same as SY-UCOMM , it is used to handle the actions performed by the user on your program.&lt;/P&gt;&lt;P&gt;..&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;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 04:36:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893190#M373572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T04:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: HELP ME IN OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893191#M373573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for different push buttons ,menu or radio button you have to assign different okcode as per your need . you can catch those okcode when you are pressing those items and code at perticular event for different functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you have two push buttons on your screen next -- okcode NEXT and previvious okcode PREV. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as per user interaction &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case okcode.&lt;/P&gt;&lt;P&gt;when 'NEXT'.&lt;/P&gt;&lt;P&gt;call screen 200.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'PREV'.&lt;/P&gt;&lt;P&gt;set screen 0.&lt;/P&gt;&lt;P&gt;leave screen.&lt;/P&gt;&lt;P&gt;end case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Feb 2007 04:37:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-me-in-okcode/m-p/1893191#M373573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-02T04:37:51Z</dc:date>
    </item>
  </channel>
</rss>

