<?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: problem regarding alv in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-alv/m-p/7378888#M1543892</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aruna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are doing the entire event handling within you event handler method (e.g. HANDLE_USER_COMMAND).&lt;/P&gt;&lt;P&gt;However, I recommend to use a different approach. Within your event handler method trigger PAI using the following coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD handle_user_command.

  CASE e_ucomm.
    WHEN 'EXECUTE_FUNCTION'.
        CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code
           EXPORTING
              ok_code = 'EXECUTE_F1'.
..

" Result: This method call triggers PAI of the screen with a defined ok-code
ENDMETHOD.

MODULE user_command_0100. " PAI
  CASE gd_okcode.
    WHEN 'EXECUTE_F1'.
      perform CALL_FUNCTION_F1.
...
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of this approach is that after executing the function you are always at a defined in the flow logic, i.e. after PBO when the screen is displayed.&lt;/P&gt;&lt;P&gt;Note the normal event handling does NOT trigger PAI which may be required depending on your program logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Oct 2010 19:05:23 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2010-10-10T19:05:23Z</dc:date>
    <item>
      <title>problem regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-alv/m-p/7378887#M1543891</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;     In report i am using alv grid control with push buttons on the toolbar using oops concept .when i execute the report and click on button for first time ievent is triggered but when i click second time or another button on tool bar control is coming out of program .can u please tell me how to resolve it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 18:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-alv/m-p/7378887#M1543891</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-10T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: problem regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-alv/m-p/7378888#M1543892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Aruna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume you are doing the entire event handling within you event handler method (e.g. HANDLE_USER_COMMAND).&lt;/P&gt;&lt;P&gt;However, I recommend to use a different approach. Within your event handler method trigger PAI using the following coding:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
METHOD handle_user_command.

  CASE e_ucomm.
    WHEN 'EXECUTE_FUNCTION'.
        CALL METHOD cl_gui_cfw=&amp;gt;set_new_ok_code
           EXPORTING
              ok_code = 'EXECUTE_F1'.
..

" Result: This method call triggers PAI of the screen with a defined ok-code
ENDMETHOD.

MODULE user_command_0100. " PAI
  CASE gd_okcode.
    WHEN 'EXECUTE_F1'.
      perform CALL_FUNCTION_F1.
...
ENDMODULE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of this approach is that after executing the function you are always at a defined in the flow logic, i.e. after PBO when the screen is displayed.&lt;/P&gt;&lt;P&gt;Note the normal event handling does NOT trigger PAI which may be required depending on your program logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Oct 2010 19:05:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-alv/m-p/7378888#M1543892</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2010-10-10T19:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: problem regarding alv</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-alv/m-p/7378889#M1543893</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;  Problem is resolved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Oct 2010 08:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-regarding-alv/m-p/7378889#M1543893</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-12T08:39:21Z</dc:date>
    </item>
  </channel>
</rss>

