<?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/4348430#M1035583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ali Sanchez  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;chk this Documents...&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;Regards&lt;/P&gt;&lt;P&gt;deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Aug 2008 11:29:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-22T11:29:11Z</dc:date>
    <item>
      <title>BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348429#M1035582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again guys , is there any documentation where I can find the meaning of the differents BDC_OKCODE ???&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348429#M1035582</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T11:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348430#M1035583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ali Sanchez  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;chk this Documents...&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;Regards&lt;/P&gt;&lt;P&gt;deva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:29:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348430#M1035583</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T11:29:11Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348431#M1035584</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;BDC okcode is actually present in BDC structure...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After recording ur BDC,when u save ur recoeding  BDc okcode generate automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Prabu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:29:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348431#M1035584</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T11:29:44Z</dc:date>
    </item>
    <item>
      <title>Re: BDC_OKCODE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348432#M1035585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table RSMPTEXTS. It gives list of function codes based on transaction or program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most OK_CODE are defined in Menu painter and depend on the status associated with the screen. (SET PF-STATUS in PBO)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The text are stored in RSMPTEXTS Menu Painter: Texts, you can make query on this table, but keep in mind that the in the key you have the program field, you can even have different value for the same OK_CODE in different status of a single program. (SUB_CODE &amp;gt; 001)&lt;/P&gt;&lt;P&gt;(OBJ_TYPE = F for OK_CODE, TEXTTYPE = M for Object text)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Be aware that some other codes are defined in program source or dynpro and cannot be easily found. So make some tries with SHDB recording.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Aug 2008 11:29:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-okcode/m-p/4348432#M1035585</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-22T11:29:54Z</dc:date>
    </item>
  </channel>
</rss>

