<?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: Refresh screen within a class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224023#M1379575</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;each time the PBO is called (i.e) the screen is displayed, the program will automatically fill the values to the screen, if they are mapped to the variables from which you want them to be refreshed.&lt;/P&gt;&lt;P&gt;if not, pass them in the PBO modules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 20:30:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-25T20:30:12Z</dc:date>
    <item>
      <title>Refresh screen within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224022#M1379574</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 have a zclass and a program with a screen. &lt;/P&gt;&lt;P&gt;In this program i have an instance of my zclass. My question is, is it possible to refresh a screen in a method of my class? &lt;/P&gt;&lt;P&gt;Or there is a way to refresh a screen of a program within another program?&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;Pedro Bessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 19:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224022#M1379574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh screen within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224023#M1379575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;each time the PBO is called (i.e) the screen is displayed, the program will automatically fill the values to the screen, if they are mapped to the variables from which you want them to be refreshed.&lt;/P&gt;&lt;P&gt;if not, pass them in the PBO modules&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 20:30:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224023#M1379575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T20:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh screen within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224024#M1379576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My variables are being refreshed in the pbo but how can i force the pbo to be executed from another program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 20:34:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224024#M1379576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T20:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh screen within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224025#M1379577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whaever you call the refreshing of the screen, it is not related to your classes instance. The PBO of a screen is automatically processed after the PAI. PAI is triggered by anay kind of user-command. As long as you do not leave the screen or call another screen, the PBO is executed after PAI and the screen is displayed again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a method of your class to refresh the screen, the method should be called in PBO returning, exporting or changin the screen fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all screen fields are in the same structure, you can do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* PBO
z_screen_structure =  zxy-&amp;gt;get_screenfields( ).

* PAI
zxy-&amp;gt;set_screenfields( z_screen_structure  ).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the get method, define a RETURNING parameter, in the set method an IMPORTING parameter with the TYPE of your screen structure.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 19:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224025#M1379577</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-26T19:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh screen within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224026#M1379578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll try to explain what i want to do...&lt;/P&gt;&lt;P&gt;I'm trying to build a toolbar for a table control. But the instance of the toolbar (CL_GUI_TOOLBAR) is in my zclass. &lt;/P&gt;&lt;P&gt;The problem is when the user click in a button of my toolbar the PBO is not executed. It passes automaticaly to the event receiver of the toolbar... But i need the PBO to be executed before this...&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;Pedro Bessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 20:52:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224026#M1379578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-26T20:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh screen within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224027#M1379579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
    call method cl_gui_cfw=&amp;gt;set_new_ok_code
             exporting
                 new_code = 'REFR'. " Dummy OKcode 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;After this call system auto calls PBO,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Sep 2009 21:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224027#M1379579</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2009-09-26T21:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh screen within a class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224028#M1379580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pedro,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[The handler method that you defined for the event is called automatically by the system.However, you can use the method set_new_ok_code  to set a new value for the OK_CODE field. This then triggers the PAI and PBO modules, and you can evaluate the contents of the OK_CODE field as normal in a PAI module.|http://www.sapalv.net/2009/07/sap-alv-tutorial-2-%E2%80%93-event/]&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Sep 2009 09:07:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/refresh-screen-within-a-class/m-p/6224028#M1379580</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-27T09:07:01Z</dc:date>
    </item>
  </channel>
</rss>

