<?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: OK_CODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042700#M420165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        In dialog programming or in the reports sy-ucomm keeps a track of FCODES of the pushbutton or any event wbeing clicked on application toolbar or menu or function keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Dialog programming you set a variable as OK_CODE in the element list if you have created own pushbuuton which have FCODE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the system variable sy-ucomm has the values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please rewards if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2007 05:35:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-15T05:35:07Z</dc:date>
    <item>
      <title>OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042697#M420162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;  What is OK_CODE? What is the different types of OK_CODES and their values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marks will be rewarded&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042697#M420162</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042698#M420163</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_Codes are like function code for each button or for any action on the screen.&lt;/P&gt;&lt;P&gt;When you press SAVE or when you Press some Button on the screen, your every action is recorded by using the OK_COde.&lt;/P&gt;&lt;P&gt;for example for ENTER button  it is '/00'.&lt;/P&gt;&lt;P&gt;While you record BDC's using SHDB you will come to know all these OK codes.&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:33:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042698#M420163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042699#M420164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please go through this thread&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="250474"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satyendra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:34:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042699#M420164</guid>
      <dc:creator>satykumar</dc:creator>
      <dc:date>2007-03-15T05:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042700#M420165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;        In dialog programming or in the reports sy-ucomm keeps a track of FCODES of the pushbutton or any event wbeing clicked on application toolbar or menu or function keys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the Dialog programming you set a variable as OK_CODE in the element list if you have created own pushbuuton which have FCODE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the system variable sy-ucomm has the values .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please rewards if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042700#M420165</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042701#M420166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi Kanth,&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 &amp;lt;b&amp;gt;two reasons&amp;lt;/b&amp;gt; for this: &amp;lt;b&amp;gt;Firstly&amp;lt;/b&amp;gt;, the ABAP program has full control over fields declared within it, and &amp;lt;b&amp;gt;secondly&amp;lt;/b&amp;gt;, 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;In your application programs, the first step in PAI processing should be to save the function code in an auxiliary variable and then initialize the OK_CODE field. You can then read the function code from the auxiliary variable (for example, using a CASE structure), and control the program flow from there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandhya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:35:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042701#M420166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042702#M420167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ravi,&lt;/P&gt;&lt;P&gt;see the link beow..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dba99935c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i hope it will help ful..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Mahendar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:39:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042702#M420167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042703#M420168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK_CODE is function code, like in module pool prog if u create a button on screen and assign fun code to it, then on click of that button OK_CODE will contain the fun code assigned to that button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:40:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042703#M420168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:40:10Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042704#M420169</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 of type sy-ucomm.&lt;/P&gt;&lt;P&gt;during runtime u get values in it corresponding to function code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example u create a save button,then give function code as save.&lt;/P&gt;&lt;P&gt;then when u press save the corresponding function code is obtained in ok&lt;/P&gt;&lt;P&gt;_code and action can be triggered.&lt;/P&gt;&lt;P&gt;.For each screens element list u should give ok_code.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;shinu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:50:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042704#M420169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T05:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042705#M420170</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_Codes are the function code for each button or for any action on the screen.&lt;/P&gt;&lt;P&gt;Suppose for better explanation sake take the example of recording the Transaction.&lt;/P&gt;&lt;P&gt;At the time of Transaction Recording we use Enter and Save buttons normally.&lt;/P&gt;&lt;P&gt;When you press SAVE  your every action is recorded by using the OK_COde.&lt;/P&gt;&lt;P&gt;for example for ENTER button it is '/00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like that to recognise every user action on the screen Function codes are there for each user action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 05:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042705#M420170</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2007-03-15T05:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042706#M420171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK_CODE helps you to capture which button was clicked in your module pool screen. The OK_CODE is listed in the element list of you screen. The button can be in the application tool bar/one of the function keys/button on the screen layout. In the data declaration of your module pool ok_code must be declared as type sy-ucomm. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, in the PAI of you module pool you can do something like this....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if OK_CODE eq 'BACK'.&lt;/P&gt;&lt;P&gt;leave program.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*******************&lt;STRONG&gt;Reward if found useful&lt;/STRONG&gt;************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kriththika.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 06:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042706#M420171</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T06:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042707#M420172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HAI,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok code is equal to sy-ucomm.it stores the temerory values which u r clicked &lt;/P&gt;&lt;P&gt;in some event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 06:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042707#M420172</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T06:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: OK_CODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042708#M420173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ravi,&lt;/P&gt;&lt;P&gt;As ABAP is event driven programming, whenever user generates an event using key stroke, menu option,mouse click, system assigns a code to a system variable called SY-UCOMM,can also be called ok_code.&lt;/P&gt;&lt;P&gt;respective actions can be taken under respective ok_codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sujatha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2007 06:22:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/ok-code/m-p/2042708#M420173</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-15T06:22:57Z</dc:date>
    </item>
  </channel>
</rss>

