<?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: sy-ucomm in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727723#M317117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-ucomm is a system field in to which fct code of a pushbutton will get stored when you click on the push button. In module pool program you will store this sy-ucomm data in a user defined variable called ok code, using this variable you will code the program. Values that it stores depends on the &amp;lt;b&amp;gt;fcode that you assign to that particular button &amp;lt;/b&amp;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>Tue, 05 Dec 2006 10:49:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-05T10:49:23Z</dc:date>
    <item>
      <title>sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727722#M317116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can we know possible values of sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 10:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727722#M317116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T10:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727723#M317117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Raj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-ucomm is a system field in to which fct code of a pushbutton will get stored when you click on the push button. In module pool program you will store this sy-ucomm data in a user defined variable called ok code, using this variable you will code the program. Values that it stores depends on the &amp;lt;b&amp;gt;fcode that you assign to that particular button &amp;lt;/b&amp;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>Tue, 05 Dec 2006 10:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727723#M317117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727724#M317118</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 system field.&lt;/P&gt;&lt;P&gt;in the code you can check the value of sy-ucomm to do processing.&lt;/P&gt;&lt;P&gt;it can have any value, &lt;/P&gt;&lt;P&gt;e.g.- in module on the push button click, fcode given is sy-ucomm.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 10:52:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727724#M317118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T10:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727725#M317119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can know the possible values of SY-UCOMM by debugging the code; checking the SY-UCOMM value for all the functioncodes specified in the object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 10:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727725#M317119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T10:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727726#M317120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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 PF-status. &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;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Vibha &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 10:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727726#M317120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T10:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727727#M317121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'sy-ucomm'  will contain the function codes of any screen element clicked on or used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there's a button on a screen and you have assigned 'PUSH' as its function code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;In ABAP program:&amp;lt;/u&amp;gt;&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;MODULE PAI INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE ok_code.&lt;/P&gt;&lt;P&gt;  WHEN 'PUSH'.&lt;/P&gt;&lt;P&gt;       // your logic.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok_code, will contain function codes of any screen element clicked or used.&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;Shehryar Dahar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 10:56:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727727#M317121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T10:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: sy-ucomm</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727728#M317122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;chk this link:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba3ae35c111d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_di471/helpdata/EN/9f/dba3ae35c111d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;keerthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 11:08:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-ucomm/m-p/1727728#M317122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T11:08:19Z</dc:date>
    </item>
  </channel>
</rss>

