<?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: Problem on Obligatory Fields on Back Button in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395798#M1405484</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;Give the function type for the button as 'E' and write your code in the MODULE &amp;lt;module_name&amp;gt; AT EXIT-COMMAND.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Dec 2009 05:58:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-01T05:58:09Z</dc:date>
    <item>
      <title>Problem on Obligatory Fields on Back Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395797#M1405483</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;I am having a problem with the obligatory fields when I click on the BACK button. It requires me to fill in entries for all required fields even if I want to click on the BACK button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&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;Arlis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 05:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395797#M1405483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T05:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on Obligatory Fields on Back Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395798#M1405484</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;Give the function type for the button as 'E' and write your code in the MODULE &amp;lt;module_name&amp;gt; AT EXIT-COMMAND.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 05:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395798#M1405484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T05:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on Obligatory Fields on Back Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395799#M1405485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Nitwick. I thought I already have one set for my GUI-STATUS and that it is not working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 06:12:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395799#M1405485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T06:12:40Z</dc:date>
    </item>
    <item>
      <title>Re: Problem on Obligatory Fields on Back Button</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395800#M1405486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Arlis,&lt;/P&gt;&lt;P&gt;The module with AT EXIT-COMMAND will do well to fix your issue;&lt;/P&gt;&lt;P&gt;what really happens is; when you validate certain fields using FIELD &amp;lt;field-name&amp;gt; MODULE &amp;lt;validate_fields&amp;gt;, and when you click 'BACK' or 'EXIT'; it will gonig to check the fields against the validate_fields module and then the error message which you have specified keeps popping up hampering you to get back to the desired screen.&lt;/P&gt;&lt;P&gt;All you can do is to; put sy-ucomm or ok_code like sy-ucomm, in the validate_fields module, so as to easily get back to the desired screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For instance;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
MODULE validate_fields INPUT.
  IF NOT &amp;lt;field-name&amp;gt; IS INITIAL.
    SELECT * FROM trdir INTO TABLE t_table WHERE name = &amp;lt;field-name&amp;gt;.
    IF sy-subrc = 0.
      fl_flag = 'Y'.
    ELSE.
      fl_flag = 'N'.
      MESSAGE 'Invalid Program Name' TYPE 'E'.
    ENDIF.
  ELSEIF ok_code EQ 'BACK'.
    LEAVE TO SCREEN 0.
  ENDIF.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope, it'll gonna help you fix the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Zahack&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Dec 2009 06:16:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-on-obligatory-fields-on-back-button/m-p/6395800#M1405486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-01T06:16:44Z</dc:date>
    </item>
  </channel>
</rss>

