<?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: Button is not generating Function COde in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669992#M883949</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;There may be 2 problems. One you have not set Function code in the Psh button attributes. Please check the screen field attributes. If that is fine, Check if you have given a OKCODE in your screen. There will be an entry in your screen element list without a name. you have to give a name to this field. Then you have to write your logic in the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the push button FCODE is 'SUBMIT'. screen okcode name is W_OKCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have declare a variable in your main program DATA: w_okcode TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in PAI MODULE USER_COMMAND,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case w_okcode.&lt;/P&gt;&lt;P&gt;when 'SUBMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; Action to be performed&amp;gt;&lt;/P&gt;&lt;P&gt;when others.&lt;/P&gt;&lt;P&gt;&amp;lt;Action........&amp;gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your problem.&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Apr 2008 04:31:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-18T04:31:09Z</dc:date>
    <item>
      <title>Button is not generating Function COde</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669988#M883945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hellow Sirs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i m creating a  module pool , for that i have got a screen and there are 2 buttons. for Confirmation and one for selection..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when i m using them in my Code. it is not Generating any code . &lt;/P&gt;&lt;P&gt;so they are not workin. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please provide any solution nd if possible provide an example how it is using!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanking you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 03:52:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669988#M883945</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T03:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Button is not generating Function COde</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669989#M883946</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;&lt;/P&gt;&lt;P&gt;While providing attributes for buttons we have to maintain function code field in attributes and while writing code we have to mention that function code under that we will write respective code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example if you maintain button conform in layout.for that if u had given function code as conform then in flowlogic we have to write like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'conform'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  /&lt;STRONG&gt;respective logic&lt;/STRONG&gt;/&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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Swetha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 03:59:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669989#M883946</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T03:59:41Z</dc:date>
    </item>
    <item>
      <title>Re: Button is not generating Function COde</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669990#M883947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;once check your code&lt;/P&gt;&lt;P&gt; either you have given the fct code in small letter between the quotes in pai event&lt;/P&gt;&lt;P&gt;or the fct code you provided in the screen painter is different remove the unecessary blanks etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;prasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 04:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669990#M883947</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-04-18T04:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Button is not generating Function COde</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669991#M883948</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; &lt;STRONG&gt;1.&lt;/STRONG&gt;  Check your code&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;2.&lt;/STRONG&gt;  You might  have given the fct code in small letter between the quotes in pai event&lt;/P&gt;&lt;P&gt; &lt;STRONG&gt;3.&lt;/STRONG&gt;  The fct code you provided in the screen painter is different remove the unecessary blanks etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward if Helpful.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jagadish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 04:30:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669991#M883948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T04:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: Button is not generating Function COde</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669992#M883949</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;There may be 2 problems. One you have not set Function code in the Psh button attributes. Please check the screen field attributes. If that is fine, Check if you have given a OKCODE in your screen. There will be an entry in your screen element list without a name. you have to give a name to this field. Then you have to write your logic in the PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example the push button FCODE is 'SUBMIT'. screen okcode name is W_OKCODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have declare a variable in your main program DATA: w_okcode TYPE sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in PAI MODULE USER_COMMAND,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case w_okcode.&lt;/P&gt;&lt;P&gt;when 'SUBMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt; Action to be performed&amp;gt;&lt;/P&gt;&lt;P&gt;when others.&lt;/P&gt;&lt;P&gt;&amp;lt;Action........&amp;gt;&lt;/P&gt;&lt;P&gt;endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should solve your problem.&lt;/P&gt;&lt;P&gt;Reward points if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Lakshmi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 04:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669992#M883949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T04:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Button is not generating Function COde</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669993#M883950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check the function code used in attributes is exactly same as the one which u used in ur code also. Give OK_CODE in the element list also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u add a button in ur screeen n by maitaining fct code,  it'll not generate any code by itself but &lt;STRONG&gt;u'v to code&lt;/STRONG&gt; it in case sy-ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e...&lt;/P&gt;&lt;P&gt;case sy-ucomm.&lt;/P&gt;&lt;P&gt;when 'CONFORM'&lt;/P&gt;&lt;P&gt;.........................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SUBMIT'&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;Iyswarya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 04:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/button-is-not-generating-function-code/m-p/3669993#M883950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T04:38:15Z</dc:date>
    </item>
  </channel>
</rss>

