<?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: clearing screen fields in module pool in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572640#M587572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Before the error message, you need to do all these thigns, &lt;/P&gt;&lt;P&gt;Just before the message, Just clear all the fields, and you need to write these field in between CHAIN and ENDCHAIN so that fields will be enables for input&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Aug 2007 16:07:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-07T16:07:04Z</dc:date>
    <item>
      <title>clearing screen fields in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572637#M587569</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;My requirement is like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User inputs some values in the dialog screen. After processing in the middle he encounters an error, and an error message appear on the status bar (status message). Here after the status message the screen fields should be cleared and should be input enable for the user to enter the valid data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this we have some 6 to 7 messages in the processing. So when ever a message executes the screen fields should be cleared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can not use chain and end chain as i am not validating the screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please tell how to reach my requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Praveena.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 14:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572637#M587569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T14:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: clearing screen fields in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572638#M587570</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;If you are not validating the Screen fields, then how these status messages are formed ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you are displaying those status messages, then at that time, you must be knowing which field has an error. So you can clear it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if you are using Message Type as 'E' for that field, then it will be cleared automatically.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 15:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572638#M587570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T15:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: clearing screen fields in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572639#M587571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before raising any error message , you get sy-subrc ,if sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;Then clear all variables which you are using in screen,then raise error message&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way ,keep one push button in screen, when user click on this button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When &amp;#145;CLEA&amp;#148;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use clear ,refresh command here.&lt;/P&gt;&lt;P&gt;&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>Tue, 07 Aug 2007 15:58:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572639#M587571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T15:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: clearing screen fields in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572640#M587572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Before the error message, you need to do all these thigns, &lt;/P&gt;&lt;P&gt;Just before the message, Just clear all the fields, and you need to write these field in between CHAIN and ENDCHAIN so that fields will be enables for input&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 16:07:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572640#M587572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T16:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: clearing screen fields in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572641#M587573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do this way...&lt;/P&gt;&lt;P&gt;Before the message is displayed on the screen, clear the data in the variables. Now, u need to write these fields inbetween CHAIN and ENDCHAIN so as that fields will be enabled for input of data..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 16:12:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572641#M587573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T16:12:30Z</dc:date>
    </item>
    <item>
      <title>Re: clearing screen fields in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572642#M587574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi praveena, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this approach and let me know if it helped &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be firstly using a sy-subrc check before you display the message ryt?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before you display the message, just loop on the screen and clear the required fields .&lt;/P&gt;&lt;P&gt;you can simultaneously make it input enable by &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;changing screen-active to '1'.&lt;/P&gt;&lt;P&gt;A small snippet of the above is as below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
If sy-subrc &amp;lt;&amp;gt; 0.
Loop at screen.
If screen-name = 'TEXTBOX1'. "ensure that the screen field name is in capitals
clear textbox1.
screen-input = 1.
endif.
modify screen.
endloop.
( display message here. ) "eg:message i000.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If you want it for all the screen fields, then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;Loop at screen.&lt;/P&gt;&lt;P&gt;screen-input = 1.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;( display message here. ) "eg:message i000.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;you can include this code in a perform-form and call it after each message.&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;SJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 16:41:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572642#M587574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T16:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: clearing screen fields in module pool</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572643#M587575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To do this:&lt;/P&gt;&lt;P&gt;If there is an error then:&lt;/P&gt;&lt;P&gt;1. Set a variable in the PAI e.g. "g_error = 'X'."&lt;/P&gt;&lt;P&gt;2. Issue your message as an "S" type - then it will display at the bottom of the screen&lt;/P&gt;&lt;P&gt;2. In the PBO have a test: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;if g_error = 'X'.
  perform clear_screen.  "reset you values
  clear: g_error.  "ready for next time
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2007 23:30:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/clearing-screen-fields-in-module-pool/m-p/2572643#M587575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-07T23:30:46Z</dc:date>
    </item>
  </channel>
</rss>

