<?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: alv  output problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181106#M1373263</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Kiran,
&amp;lt;li&amp;gt; The below code is more than enough. It works for your requirement.
&amp;lt;li&amp;gt;Define events 
&lt;PRE&gt;&lt;CODE&gt;DATA: it_events TYPE slis_t_event,
           wa_event like line of it_events.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Fill events like below.
&lt;PRE&gt;&lt;CODE&gt;wa_events-name = 'PF_STATUS_SET'.
wa_events-form = 'PF_STATUS_SET'.
append wa_events to it_events.
clear   wa_events.
wa_events-name = 'USER_COMMAND'.
wa_events-form =  'USER_COMMAND'.
append wa_events to it_events.
clear   wa_events.
&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Set pf status like below.
&lt;PRE&gt;&lt;CODE&gt;
FORM PF_STATUS_SET USING RT_EXTAB TYPE SLIS_T_EXTAB.
 SET PF-STATUS 'STATUS' EXCLUDING rt_extab.
"When you set pf-status using above statement, you dont see ALV toolbar. To get back all the tools copy status of the any "program status which is using ALV in SE41 transaction code to your program with status you mentioned here.
"Program :SAPLKKBL
"status    :STANDARD_FULLSCREEN
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Use USER_COMMAND event like below
&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
 FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE SLIS_SELFIELD.
  IF R_UCOMM = 'REFRESH'."Create one button on ALV toolbar with function code REFRESH
    RS_SELFIELD-REFRESH = 'X'. "Set this one. It refreshes internal table data with new values
  ENDIF.
ENDFORM.                    "USER_COMMAND
&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Call function module like below
&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program = program
              it_fieldcat        = it_fieldcat
              it_events          = it_events
         TABLES
              t_outtab           = i_mard.&lt;/CODE&gt;&lt;/PRE&gt;

Let me know if you have any problem.

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 19 Sep 2009 00:12:38 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2009-09-19T00:12:38Z</dc:date>
    <item>
      <title>alv  output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181102#M1373259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have alv output with some values, now I need to put a push button  on application tool bar  if I change any values in the out put  and then press that push button  then the new values should be updated with out re execution  of the alv  program .   how to do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 17:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181102#M1373259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T17:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: alv  output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181103#M1373260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;CHeck this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://wiki.sdn.sap.com/wiki/display/Snippets/ALV%20GRID%20COMPLETE%20EXAMPLE%20WITH%20TOOLBAR%20BUTTONS%20USING%20CLASS" target="test_blank"&gt;https://wiki.sdn.sap.com/wiki/display/Snippets/ALV%20GRID%20COMPLETE%20EXAMPLE%20WITH%20TOOLBAR%20BUTTONS%20USING%20CLASS&lt;/A&gt;.&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;Subramanian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 17:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181103#M1373260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T17:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: alv  output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181104#M1373261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is event called DATA_CHANGED &lt;/P&gt;&lt;P&gt;search SDN, there are a lot of post related to this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but DATA_CHANGED is triggered only byF8(refresh) button.&lt;/P&gt;&lt;P&gt;you can also call the data changed event from USER_COMMAND event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 17:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181104#M1373261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T17:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: alv  output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181105#M1373262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kiran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check below link:&lt;/P&gt;&lt;P&gt;[http://www.sapalv.net/2009/08/sap-alv-tutorial-8-handling-data-change/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[www.sapgeek.net]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Sep 2009 23:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181105#M1373262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-18T23:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: alv  output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181106#M1373263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;Hi Kiran,
&amp;lt;li&amp;gt; The below code is more than enough. It works for your requirement.
&amp;lt;li&amp;gt;Define events 
&lt;PRE&gt;&lt;CODE&gt;DATA: it_events TYPE slis_t_event,
           wa_event like line of it_events.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Fill events like below.
&lt;PRE&gt;&lt;CODE&gt;wa_events-name = 'PF_STATUS_SET'.
wa_events-form = 'PF_STATUS_SET'.
append wa_events to it_events.
clear   wa_events.
wa_events-name = 'USER_COMMAND'.
wa_events-form =  'USER_COMMAND'.
append wa_events to it_events.
clear   wa_events.
&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Set pf status like below.
&lt;PRE&gt;&lt;CODE&gt;
FORM PF_STATUS_SET USING RT_EXTAB TYPE SLIS_T_EXTAB.
 SET PF-STATUS 'STATUS' EXCLUDING rt_extab.
"When you set pf-status using above statement, you dont see ALV toolbar. To get back all the tools copy status of the any "program status which is using ALV in SE41 transaction code to your program with status you mentioned here.
"Program :SAPLKKBL
"status    :STANDARD_FULLSCREEN
ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Use USER_COMMAND event like below
&lt;PRE&gt;&lt;CODE&gt;
*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  USER_COMMAND
*&amp;amp;---------------------------------------------------------------------*
 FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM RS_SELFIELD TYPE SLIS_SELFIELD.
  IF R_UCOMM = 'REFRESH'."Create one button on ALV toolbar with function code REFRESH
    RS_SELFIELD-REFRESH = 'X'. "Set this one. It refreshes internal table data with new values
  ENDIF.
ENDFORM.                    "USER_COMMAND
&lt;/CODE&gt;&lt;/PRE&gt;
&amp;lt;li&amp;gt;Call function module like below
&lt;PRE&gt;&lt;CODE&gt;
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
              i_callback_program = program
              it_fieldcat        = it_fieldcat
              it_events          = it_events
         TABLES
              t_outtab           = i_mard.&lt;/CODE&gt;&lt;/PRE&gt;

Let me know if you have any problem.

Thanks
Venkat.O&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2009 00:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181106#M1373263</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-09-19T00:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: alv  output problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181107#M1373264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank u very much  it was  very sweet and simple solution  ,  i was worried about classes and all that  u have made it simple &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank u very much venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Sep 2009 03:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-output-problem/m-p/6181107#M1373264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-19T03:37:46Z</dc:date>
    </item>
  </channel>
</rss>

