<?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: Screen Refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984256#M704679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made use of CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE' in PBO. which will trigger PAI for the second time. So the first time it wont trigger the error message.. fine.. the screen fields get cleared in PBO and the second time when the PAI triggers it will tirgger an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone......:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2007 18:57:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-09T18:57:19Z</dc:date>
    <item>
      <title>Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984253#M704676</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 created a dialog program which displays material details (one material at a time). When the user enters matnr1 (valid material) all the associated details are displayed on the screen output.  The requirement is when the user enters an invalid material (matnr2) in succession then an error message needs to be displayed and the screen needs to be refreshed with the prior query details.  I am not allowed to maintain a refresh button on the screen. For material validation I created a module... &amp;lt;i&amp;gt;field &amp;lt;field-name&amp;gt; module &amp;lt;module name&amp;gt;&amp;lt;/i&amp;gt; in PAI and wrote the logic for the field validation. I am able to display the error message but the screen still displays values from the previous run. Since the PBO even is not triggered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My program output has table control and texts. Is there anyway I can refresh the screen output and display an error message before the PBO event is triggered (in PAI). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help regarding this is greatly appreciated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 06:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984253#M704676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T06:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984254#M704677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are issuing the error message in PAI via something like "message e398(00) with 'Invalid material code entered:' matnr2." then you should not be reaching the PBO again i.e. I would expect you to be going:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PBO

on screen:
  User enters matnr1

PAI
  validate - all OK

PBO
  Fill screen details for matnr1

on screen:
  Details of matnr1 are showing
  User enters matnr2

PAI
  validate - issue "E" message... goes no further!&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so yes, the matnr1 details will be on the screen but the error will highlight the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you did want to clear the screen, then in the "validate" you could set a flag like "g_error = 'X'." and issue just an "S" type message so the flow doesn't stop... this would allow you to go back into the PBO where you could test with "if g_error = 'X'.  "clear all screen variables here!. clear: g_error. endif."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or have I missed the point?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 11:48:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984254#M704677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T11:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984255#M704678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for you reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That&amp;#146;s exactly what I am looking for..... Same thing stuck me, about displaying a warning message but the users are looking for error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any more ideas regarding this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 16:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984255#M704678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T16:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Screen Refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984256#M704679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked for me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made use of CALL FUNCTION 'SAPGUI_SET_FUNCTIONCODE' in PBO. which will trigger PAI for the second time. So the first time it wont trigger the error message.. fine.. the screen fields get cleared in PBO and the second time when the PAI triggers it will tirgger an error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks everyone......:)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 18:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/screen-refresh/m-p/2984256#M704679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T18:57:19Z</dc:date>
    </item>
  </channel>
</rss>

