<?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: Error ! No field defined for function Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939625#M388136</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;Assign a function code for the Push button and write the code in the PAI module of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Feb 2007 17:51:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-12T17:51:11Z</dc:date>
    <item>
      <title>Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939621#M388132</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;I have defined everything correctly but when i try to use the push button to go to next screen this message comes up 'No field defined for function Code' .Please advise . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 17:15:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939621#M388132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T17:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939622#M388133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Are you using dialog programming?&lt;/P&gt;&lt;P&gt;In the properties of the push-button, enter the function code, and in the PAI event check if sy-comm is equal to your function code then do the further processing.&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 17:27:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939622#M388133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T17:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939623#M388134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I am doing Dialog Programming . But still not sure why its not going further to the next screen .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 17:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939623#M388134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T17:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939624#M388135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You assigned the Function code correctly and written the code in the PAI module, see there whethe you have writen the correct code, Seems the Function code is empty when you click the pushbutton, so see in the Debugging whethere you are assigend the correct fucntion code or not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 17:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939624#M388135</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T17:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939625#M388136</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;Assign a function code for the Push button and write the code in the PAI module of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 17:51:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939625#M388136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T17:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939626#M388137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi hari,&lt;/P&gt;&lt;P&gt;    u must assign the function code to the push button and use that function code in the PAI event of module pool.&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;Arun.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 18:01:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939626#M388137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T18:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939627#M388138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am not sure of the reason.&lt;/P&gt;&lt;P&gt;Can you please show the code that you have written for handling the sy-ucomm ( generated by functon code ) to go to next screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, although incorrect function code or absence of function code will not give tis kinda error but still can you just check once if you are handling the correct function code in sy-ucomm. This function code must be defined for the push-button that you are using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Nishant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 18:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939627#M388138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-12T18:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Error ! No field defined for function Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939628#M388139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you put define the name of the OK_CODE field in your screen.  Go to your screen,   click on the element list tab.  You should have a line which as a TYpe as  "OK".   Put the name as OK_CODE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your program.....you need a DATA statement for OK_CODE, and you need to handle the OK_CODE in your PAI of the screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: ok_code type sy-ucomm.



************************************************************************
*      Module  USER_COMMAND_0100  INPUT
************************************************************************
module user_command_0100 input.

  case ok_code.
    when 'BACK' or 'EXIT' or 'CANCEL'.
      clear ok_code
      set screen 0.
      leave screen.
  endcase.

endmodule.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2007 18:42:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-no-field-defined-for-function-code/m-p/1939628#M388139</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-02-12T18:42:41Z</dc:date>
    </item>
  </channel>
</rss>

