<?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: Track Changes to Custom Screen fields on Exit command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444452#M547401</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you understand my question, could you explain how can i use sy-datar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; That way is too long to reach my answer, which will lead to ambiguous state for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess we can use SCU3 and AUT10 for data log changes. Could any one of you explain how can i use. I am not familiar with that piece. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Jun 2007 21:05:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-21T21:05:43Z</dc:date>
    <item>
      <title>Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444449#M547398</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 want to track the changes in my screen fields, if it is already updated in the database table, when user selects any exit command it should not give any pop up message(allowing them to go back). If not i need to give a pop up message, giving the user an option to save before exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a bunch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 19:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444449#M547398</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T19:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444450#M547399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;clear flag.&lt;/P&gt;&lt;P&gt;Check the screen fields value with respect to database.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;flag = 'X'&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'EXIT'.&lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;leave to screen 0.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;give pop up message&lt;/P&gt;&lt;P&gt;leave to screen current screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use at exit command ,if you use will not get output as you expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 19:33:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444450#M547399</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T19:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444451#M547400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can check sy-datar to see if the screen has changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So long as the command you are using to exit is defined as an exit-command, you can use an exit module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rob Burbank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 19:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444451#M547400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T19:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444452#M547401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  If you understand my question, could you explain how can i use sy-datar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seshu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; That way is too long to reach my answer, which will lead to ambiguous state for others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess we can use SCU3 and AUT10 for data log changes. Could any one of you explain how can i use. I am not familiar with that piece. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 21:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444452#M547401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T21:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444453#M547402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Module  EXIT_100  INPUT
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
module exit_0100 input.

  data: answer.

  case ok_code.

    when 'CAN'.
      if not sy-datar is initial.
        call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA'
             exporting
                  titel     = 'Exit Editing'
                  textline1 = 'Do you want to exit editing?'
             importing
                  answer    = answer.
        if answer = 'J'.
          leave program.
        endif.
      else.
        leave program.
      endif.

    when '%EX'.
      if not sy-datar is initial.
        call function 'POPUP_TO_CONFIRM_LOSS_OF_DATA'
             exporting
                  titel     = 'Exit Editing'
                  textline1 = 'Do you want to exit editing?'
             importing
                  answer    = answer.
        if answer = 'J'.
          leave program.
        endif.
      else.
        leave program.
      endif.

    when 'CLEAR'.
      perform clear_screen.
      leave to screen '0100'.

    when 'HELP'.
      perform action_help.

  endcase.

endmodule.                 " EXIT_100  INPUT
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 21:08:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444453#M547402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T21:08:45Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444454#M547403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a table control in the screen? I'm not sure if sy-datar can keep track of changes in a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 21:19:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444454#M547403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T21:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444455#M547404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I have table control in my screen...........but let me check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2007 22:42:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444455#M547404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-21T22:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444456#M547405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rob, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  I got it done, it is working for table control also. Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 03:24:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444456#M547405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T03:24:04Z</dc:date>
    </item>
    <item>
      <title>Re: Track Changes to Custom Screen fields on Exit command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444457#M547406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good - glad to help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2007 13:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/track-changes-to-custom-screen-fields-on-exit-command/m-p/2444457#M547406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-22T13:02:22Z</dc:date>
    </item>
  </channel>
</rss>

