<?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: BDC_OKCODE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336126#M799570</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OKCODE identifies the command field&lt;/P&gt;&lt;P&gt;it can use function key number or function code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ for function key number and = for function code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'/3' --&amp;gt;Back function key&lt;/P&gt;&lt;P&gt;'/15'--&amp;gt;Quit function key&lt;/P&gt;&lt;P&gt;'/11'--&amp;gt; save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 06:38:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T06:38:09Z</dc:date>
    <item>
      <title>BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336122#M799566</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;how can i get the list of all ok_code and there meaning.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:29:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336122#M799566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336123#M799567</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;hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Pls Reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is a way to find the BDC ok codes. just findout the screen and press&lt;/P&gt;&lt;P&gt;F1 on any field and in that click on Technical info .in technical info u&lt;/P&gt;&lt;P&gt;can see GUI status of the screen and double click on that u will go to&lt;/P&gt;&lt;P&gt;display status of that Gui status in that click functional keys there u can&lt;/P&gt;&lt;P&gt;find all the OK_codes u required.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:36:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336123#M799567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336124#M799568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;U cannot get the list of all okcodes at once.&lt;/P&gt;&lt;P&gt;  if u want it for the particular t-code then goto se51 and check for that screen or while debugging u can get it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Plzz reward points if it helps.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:37:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336124#M799568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336125#M799569</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;check the table RSMPTEXTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:37:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336125#M799569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336126#M799570</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BDC_OKCODE identifies the command field&lt;/P&gt;&lt;P&gt;it can use function key number or function code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/ for function key number and = for function code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'/3' --&amp;gt;Back function key&lt;/P&gt;&lt;P&gt;'/15'--&amp;gt;Quit function key&lt;/P&gt;&lt;P&gt;'/11'--&amp;gt; save&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;reward if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336126#M799570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336127#M799571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir ,&lt;/P&gt;&lt;P&gt;Please have a look below .Hope it is suitable and simpler solution for your question.&lt;/P&gt;&lt;P&gt;Please do reward if useful.&lt;/P&gt;&lt;P&gt;Thankx.&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;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;The OK_CODE field can have a different name on each screen. However, common practice is to use the same name for the field on each screen of an ABAP program. You then only need one field in the ABAP program, with the same name, into which the function code is placed, and from which you can read it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer the link:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/d1/801e61454211d189710000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/d1/801e61454211d189710000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz reward, if found helpfull&lt;/P&gt;&lt;P&gt;thanx,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:39:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336127#M799571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336128#M799572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amar,&lt;/P&gt;&lt;P&gt;             we have to declare ok_code like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ok_code like sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case ok_code.&lt;/P&gt;&lt;P&gt;when 'UPDATE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'DELETE'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After u click the push button and go to DEBUGGING then only u can see the ok_code values..Other wise u dont get the ok_code values ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; Kiran Kumar.G.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 06:45:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/3336128#M799572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T06:45:59Z</dc:date>
    </item>
  </channel>
</rss>

