<?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: What is the diff between OK_CODE and SY-UCOMM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605727#M1438084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK_CODE is just a user define field to transfer SY-UCOMM data to your main program....You have to link them in Element List --&amp;gt; General attributes to field of type OK....If you define variable with same name (OK_CODE) in your main program, values of SY-UCOMM will automatically get transferred to it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may very define this variable as OKIE_CODE, OKKKK_CODE or whatever you like &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Feb 2010 09:00:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-11T09:00:47Z</dc:date>
    <item>
      <title>What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605719#M1438076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to develop on module pool program using push buttons to pass the data to input/out filed. When I do the debugging the sy-ucomm is showing the data but not OK_CODE in case statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Case OK_CODE.&lt;/P&gt;&lt;P&gt;When 'one'.&lt;/P&gt;&lt;P&gt;num = '1'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'ZCA_INPUT_OUT'.&lt;/P&gt;&lt;P&gt;Import&lt;/P&gt;&lt;P&gt; numz = num&lt;/P&gt;&lt;P&gt;export &lt;/P&gt;&lt;P&gt;number = inputi. " input/output field in screen painter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end case. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls give me a solutions what is the main mistake I did here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not able to pass the data through push button to input/out field. &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;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 07:46:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605719#M1438076</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T07:46:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605720#M1438077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you declared ok_code in the top include of your module pool program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ok_code             TYPE          sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the element list of your screen.&lt;/P&gt;&lt;P&gt;give Name of a Screen Element : OK_CODE .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it will have value same as sy-ucomm.(system varaible to hold the user selected function code value)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 07:59:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605720#M1438077</guid>
      <dc:creator>JoffyJohn</dc:creator>
      <dc:date>2010-02-11T07:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605721#M1438078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to declare OK_CODE TYPE SY_UCOMM. And pass sy-ucomm value to ok_code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:16:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605721#M1438078</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T08:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605722#M1438079</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;OK_code is a user define variable where as SY_UCOMM is a system variavle to store the user action for example double click, etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what you have to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

DATA: ok_code type sy-ucomm.

ok_code = sy-ucomm
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use the above code before the case statement in your code its works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ritesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:22:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605722#M1438079</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T08:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605723#M1438080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SCREEN PAINTER (SCREEN LAYOUT) you  give push button  &lt;STRONG&gt;name  = ONE&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;and  &lt;STRONG&gt;Fctcode = ONE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CASE sy-ucomm&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;WHEN 'ONE'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:51:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605723#M1438080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T08:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605724#M1438081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, you are correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:53:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605724#M1438081</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T08:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605725#M1438082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have written this code in main program. When I am declaring the data types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:54:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605725#M1438082</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T08:54:19Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605726#M1438083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;John wrote:&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;In the element list of your screen.&lt;/P&gt;&lt;P&gt;&amp;gt;give Name of a Screen Element : OK_CODE .&lt;/P&gt;&lt;P&gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;gt;then it will have value same as sy-ucomm.(system varaible to hold the user selected function code value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You declared this one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Feb 11, 2010 1:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 08:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605726#M1438083</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-02-11T08:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605727#M1438084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK_CODE is just a user define field to transfer SY-UCOMM data to your main program....You have to link them in Element List --&amp;gt; General attributes to field of type OK....If you define variable with same name (OK_CODE) in your main program, values of SY-UCOMM will automatically get transferred to it...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may very define this variable as OKIE_CODE, OKKKK_CODE or whatever you like &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&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;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 09:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605727#M1438084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T09:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605728#M1438085</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;i think you are write OK_CODE entry in the Module pool screen's Element list  is not there.enter OK_CODE in last of the element list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 09:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605728#M1438085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T09:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605729#M1438086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swarna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have not created this field in screen painter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you pls explain how to assign this field in screen painter. Do you want me to just mention in field attributes ... or some where else I need to assign .........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls give me the replay asap.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandra.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:24:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605729#M1438086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T11:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605730#M1438087</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;In screen painter you have Attributes, Element list and Flowlogic tabs. In the Element list tab create OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:47:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605730#M1438087</guid>
      <dc:creator>sridhar_meesala</dc:creator>
      <dc:date>2010-02-11T11:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605731#M1438088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to create it, there will be field with type OK created by default...You have to mention OK_CODE as it's name and define same in your main program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data : OK_CODE type sy-ucomm.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:51:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605731#M1438088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T11:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605732#M1438089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Only one answer.Do not copy the codes.Just understand them first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:52:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605732#M1438089</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T11:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605733#M1438090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is not a seperate field to create. In the element list tab, the last row contains a type - OK. Write ok_code in the Name column against this OK type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you already know the path to elementary list tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swarna Munukoti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:54:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605733#M1438090</guid>
      <dc:creator>former_member217544</dc:creator>
      <dc:date>2010-02-11T11:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605734#M1438091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please elaborate your comment ?? "COPY THE CODE???"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 11:55:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605734#M1438091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T11:55:27Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605735#M1438092</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; In the element list tab, the last row contains a type - OK. and there have you write OK_CODE in 1st column last where ok is written in front of that and activate .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 18:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605735#M1438092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605736#M1438093</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;&lt;/P&gt;&lt;P&gt;still I have same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;below is my program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZCA_CALCULATOR_DEMO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA INPUTI TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data num type string.&lt;/P&gt;&lt;P&gt;DATA: OK_CODE TYPE SY-UCOMM,&lt;/P&gt;&lt;P&gt;      save_ok like ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen '100'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ZCA_CALCULATOR_DEMO_STATUS_O03.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE ZCA_CALCULATOR_DEMO_STATUS_O03 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE STATUS_0100 OUTPUT.&lt;/P&gt;&lt;P&gt;  SET PF-STATUS 'GUI100'.&lt;/P&gt;&lt;P&gt;  SET TITLEBAR 'ZCHAR'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " STATUS_0100  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ZCA_CALCULATOR_DEMO_USER_COI01.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;***INCLUDE ZCA_CALCULATOR_DEMO_USER_COI01 .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Module  USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      text&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE USER_COMMAND_0100 INPUT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;save_ok = ok_code.&lt;/P&gt;&lt;P&gt;clear ok_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CASE save_ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    WHEN 'one'.&lt;/P&gt;&lt;P&gt;      num = '1'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;    WHEN 'two'.&lt;/P&gt;&lt;P&gt;      num = '2'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;    WHEN 'three'.&lt;/P&gt;&lt;P&gt;      num = '3'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 'FOUR'.&lt;/P&gt;&lt;P&gt;      num = '4'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;WHEN 'FIVE'.&lt;/P&gt;&lt;P&gt;      num = '5'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;WHEN 'SIX'.&lt;/P&gt;&lt;P&gt;      num = '6'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;WHEN 'SEVEN'.&lt;/P&gt;&lt;P&gt;      num = '7'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;WHEN 'EIGHT'.&lt;/P&gt;&lt;P&gt;      num = '8'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;WHEN 'NINE'.&lt;/P&gt;&lt;P&gt;      num = '9'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&lt;/P&gt;&lt;P&gt;WHEN 'ZERO'.&lt;/P&gt;&lt;P&gt;      num = '0'.&lt;/P&gt;&lt;P&gt;      CALL FUNCTION 'ZCA_CAL_INPUT'&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          NUM    = num&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          NUMBER = inputi.&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;ENDMODULE.                 " USER_COMMAND_0100  INPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;function zca_cal_input.&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;"Local Interface:&lt;/P&gt;&lt;P&gt;*"  IMPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(NUM) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"  EXPORTING&lt;/P&gt;&lt;P&gt;*"     REFERENCE(NUMBER) TYPE  STRING&lt;/P&gt;&lt;P&gt;*"----&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------" /&gt;&lt;P&gt;data: nextnum type string,&lt;/P&gt;&lt;P&gt;      currnum type string.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if screen-name = 'inputi'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;nextnum = num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate currnum nextnum into currnum.&lt;/P&gt;&lt;P&gt;number = currnum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endfunction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my entire program code.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now I have mention OK_code type ok in screen painter attribute also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but still haveing sample problem .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you pls some one will explain what need to be done in this case.&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;Chandra V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Feb 2010 18:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605736#M1438093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-11T18:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605737#M1438094</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;code looks fine...&lt;/P&gt;&lt;P&gt;recheck ....ok_code entry in elementary list    &amp;amp;  Activate screen painter,screen  again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 06:34:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605737#M1438094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T06:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: What is the diff between OK_CODE and SY-UCOMM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605738#M1438095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope function codes ONE, TWO.....ZERO are defined in PF-STATUS...-- just to cross check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check if PF-STATUS is activated to be on safer side..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I am correct, are you defining these buttons on Screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mohaiyuddin Soniwala on Feb 12, 2010 12:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Feb 2010 07:24:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-diff-between-ok-code-and-sy-ucomm/m-p/6605738#M1438095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-12T07:24:37Z</dc:date>
    </item>
  </channel>
</rss>

