<?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 Screen programming checking in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859077#M1592818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i want to ask how can i check the screen fields whether they have been edited?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far i used the method of chain endchain but one limitation is that when the user changes the field and then clicks back the PAI is not triggered which results in the chain endchain not functioning. The reason is because my fields are in a subscreen and the user command is in the main screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another method i tried is the comparing the work areas of the screen fields and the work area used to populate the screen fields.  Im encountering the same problem as the chain endchain where the PAI is not triggered means the fields are not changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in SAP standard programs all of them have checking when you edit a field and then you exit the program it prompts a message asking if you want to save the changes. Im actually trying to achieve the same thing. Your help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Apr 2011 14:52:19 GMT</pubDate>
    <dc:creator>john_wayne</dc:creator>
    <dc:date>2011-04-28T14:52:19Z</dc:date>
    <item>
      <title>Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859077#M1592818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi i want to ask how can i check the screen fields whether they have been edited?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So far i used the method of chain endchain but one limitation is that when the user changes the field and then clicks back the PAI is not triggered which results in the chain endchain not functioning. The reason is because my fields are in a subscreen and the user command is in the main screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another method i tried is the comparing the work areas of the screen fields and the work area used to populate the screen fields.  Im encountering the same problem as the chain endchain where the PAI is not triggered means the fields are not changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see in SAP standard programs all of them have checking when you edit a field and then you exit the program it prompts a message asking if you want to save the changes. Im actually trying to achieve the same thing. Your help is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:52:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859077#M1592818</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-04-28T14:52:19Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859078#M1592819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SY-DATAR field. if it is 'X' - Modified screen else no.... SAP uses this field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 14:56:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859078#M1592819</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-04-28T14:56:39Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859079#M1592820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your suggestion partly solves my problem but then when i edit the field the system field returns an X which is what i want but then when i edit the field and try to update it the edited field does not store the changes that i have made. I think this is because it has not entered the PAI of the screen. So any solution to that problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859079#M1592820</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-04-28T15:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859080#M1592821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try these. You should be able to capture any changes on the screen. It is not impossible. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;chain.&lt;/P&gt;&lt;P&gt;      field: wa_wa-field1&lt;/P&gt;&lt;P&gt;             module chain_input_field1 on chain-input.&lt;/P&gt;&lt;P&gt;    endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    chain.&lt;/P&gt;&lt;P&gt;      field: wa_wa1-field2,&lt;/P&gt;&lt;P&gt;             wa_wa1-field3&lt;/P&gt;&lt;P&gt;        module chain_request_fld2_3 on chain-request.&lt;/P&gt;&lt;P&gt;    endchain.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 15:46:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859080#M1592821</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-04-28T15:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859081#M1592822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mention this above in my first post. I edit the details on the screen and then exit the screen. With the system field you provided before i managed to popup a confirmation box to save the changed data. When i select yes the data that is to be saved is not the changed data due to the fact that the screen has not entered the PAI part of the screen which means that using the chain statement would not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:14:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859081#M1592822</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-04-28T16:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859082#M1592823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alright. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the PAI part will be executed no matter what you do on the screen unless you enter (/nxxx) in command line. Did you try to put a breakpoint under PAI? if not, put a break point. if not already clear, you should enter into PAI no matter what you do on the screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;update portion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is a table control and you would like to update, you better use chain with options. Have you used on chain-input, on chain-request in the module that you put between chain and endchain. if yes, post your code here. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example if there are few fields...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chain.&lt;/P&gt;&lt;P&gt;field: field1,&lt;/P&gt;&lt;P&gt;         field2&lt;/P&gt;&lt;P&gt;module modify_my_entries_here on chain-request. &lt;/P&gt;&lt;P&gt;endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is a table control then&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop with control mytable_control_name.&lt;/P&gt;&lt;P&gt; chain.&lt;/P&gt;&lt;P&gt;   field: field1,&lt;/P&gt;&lt;P&gt;            field2&lt;/P&gt;&lt;P&gt;            module change_my_data_here on chain-request. &lt;/P&gt;&lt;P&gt;  endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module modify_changed_data. (within this module =&amp;gt; modify my_itab from my_workarea index my_table_control-current_line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;module handle_user_command. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this doesn't work. Don't just ask but tell us what you have done so far and post the code and mention where you are not getting the changed data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:28:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859082#M1592823</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-04-28T16:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859083#M1592824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHAIN.&lt;/P&gt;&lt;P&gt;  FIELD: ztt_einfo-cpl_id,&lt;/P&gt;&lt;P&gt;         ztt_einfo-srs_id,&lt;/P&gt;&lt;P&gt;         ztt_einfo-ref_no,&lt;/P&gt;&lt;P&gt;         ztt_einfo-tic_ownr,&lt;/P&gt;&lt;P&gt;         ztt_einfo-itdesc&lt;/P&gt;&lt;P&gt;  MODULE trans_from_sdyn_9210 ON CHAIN-REQUEST.&lt;/P&gt;&lt;P&gt;ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is my code in the PAI for the chain. I tested with a break point in the module that is in the PAI and it still wont trigger.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:55:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859083#M1592824</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-04-28T16:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859084#M1592825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I edit the details on the screen and then exit the screen. With the system field you provided before i managed to popup a confirmation box to save the changed data. When i select yes the data that is to be saved is not the changed data due to the fact that the screen has not entered the PAI part of the screen which means that using the chain statement would not work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not quite.  PAI is triggered, but presumably, your BACK and EXIT functions are set as exit commands which means processing flows directly to the exit command module.  This means that the normal field transport (screen field to program field), which is forced by the CHAIN and FIELD commands in your screen, does not happen.  You need to scrape the screen using the DYNP_VALUES_READ function to get the current values.  It would be better if you just transitioned out of exit command processing and into your normal ok code processing for saving the data if that choice is made.  Field transport would be assured in that case...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 16:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859084#M1592825</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-04-28T16:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859085#M1592826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so what your saying is that the the user commands are set to the exit command which means it will skip the chain and go straight to the exit command module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859085#M1592826</guid>
      <dc:creator>john_wayne</dc:creator>
      <dc:date>2011-04-28T17:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859086#M1592827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. Exit commands skip all processing regardless of screen flow logic order and go directly to the exit-command module logic defined...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859086#M1592827</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-04-28T17:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859087#M1592828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh Well, did you assign the exit commands to your back / cancel / exit buttons? are you handing them in your PAI anywhere? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if yes, brad is right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:43:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859087#M1592828</guid>
      <dc:creator>former_member191735</dc:creator>
      <dc:date>2011-04-28T17:43:39Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859088#M1592829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Yes. Exit commands skip all processing regardless of screen flow logic order and go directly to the exit-command module logic defined...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think this is only the case for a module called AT EXIT-COMMAND.&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, 28 Apr 2011 17:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859088#M1592829</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-28T17:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Screen programming checking</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859089#M1592830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, of course.  I simply assumed that would be the case if you define an exit command.  I never define a main screen without it; I guess I shouldn't assume that's the case for others ;-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's really the only explanation for the lack of field transport the poster is describing unless we're missing some other info OR there's a module defined in the flow logic before the CHAIN/FIELD statements in question and that's where this back handling is occuring.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Apr 2011 17:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-programming-checking/m-p/7859089#M1592830</guid>
      <dc:creator>brad_bohn</dc:creator>
      <dc:date>2011-04-28T17:53:03Z</dc:date>
    </item>
  </channel>
</rss>

