<?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 problems in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110681#M1362135</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you are using CL_GUI_ALV_GRID then the standard toolbar function do NOT trigger event USER_COMMAND (as do custom buttons).&lt;/P&gt;&lt;P&gt;A possible workaround is to make the toolbar interactive (go_grid-&amp;gt;set_toolbar_interactive( ) ) and define a new ok-code for the SORT button. Then you are able to catch the event but, of course, you need to implement to sorting logic yourself.&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>Tue, 25 Aug 2009 16:59:22 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-08-25T16:59:22Z</dc:date>
    <item>
      <title>ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110679#M1362133</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;   did anybody know about  how the ALV standard buttons work .? after I run my programs , I get the correct output in the ALV .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then I want to sort the output table by click the sort button , then the layout changed , but I have a column needed to be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recalculated . then I set a break-point on the user command , however when I click the the sort button , it doesn't go to the user&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;command . I have totally no idea . is there anybody help ???&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 15:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110679#M1362133</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T15:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110680#M1362134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What type of ALV did you write?  Objects or the call function module?  In both you have to set up the user command code.  And check for it.  I can give you a code snippet.  But I'm not sure which one to put out here.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 16:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110680#M1362134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T16:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110681#M1362135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Nick&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assuming you are using CL_GUI_ALV_GRID then the standard toolbar function do NOT trigger event USER_COMMAND (as do custom buttons).&lt;/P&gt;&lt;P&gt;A possible workaround is to make the toolbar interactive (go_grid-&amp;gt;set_toolbar_interactive( ) ) and define a new ok-code for the SORT button. Then you are able to catch the event but, of course, you need to implement to sorting logic yourself.&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>Tue, 25 Aug 2009 16:59:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110681#M1362135</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-08-25T16:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110682#M1362136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;when the ALV is displayed, put &lt;STRONG&gt;/h&lt;/STRONG&gt; on the command bar. hit enter.&lt;/P&gt;&lt;P&gt;then click the sort button. it will take you to the debugger window. check which event is getting triggered there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 17:10:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110682#M1362136</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T17:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110683#M1362137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you have to mention the form name and the event name in the events table and pass it on the ALV call... then only it can be possible .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 17:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110683#M1362137</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T17:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110684#M1362138</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; first , thanks very much , I use the call function module to display the ALV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110684#M1362138</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110685#M1362139</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michelle ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ! I already write the user_command in the program . but for the status of ALV, I copy from list viewer . then when the layout is shown , it is automatically seen . However , when I click on that buttons , it doesn't trigger the user_command events .&lt;/P&gt;&lt;P&gt;so do you get any ideas? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:09:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110685#M1362139</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T19:09:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110686#M1362140</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi nick,&lt;/P&gt;&lt;P&gt;i hope you have used REUSE_ALV_GRID_DISPLAY.&lt;/P&gt;&lt;P&gt;in that FM, you have the I_****** parameters were you pass the respective event responding subroutines. like&lt;/P&gt;&lt;P&gt;i_callback_top_of_page = 'SUB_TOP_OFPAGE'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what ever you write in the &lt;/P&gt;&lt;P&gt;FORM SUB_TOP_OFPAGE.&lt;/P&gt;&lt;P&gt;ENDFORM. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will reflect in the top of page. like wise you need to check which event is getting triggered for you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so trigger a debugger as i have said in the previous post. and check&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110686#M1362140</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T19:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110687#M1362141</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow!  Long thread.  Maybe someone has a better idea than I have.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could copy the standard STANDARD_FULLSCREEN from function group SLVC_FULLSCREEN to your program.  Change the sort code to something that you will use in your user-command routine.  Then you will have to set up the status in your program with the set pf-status from the function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully there is a better answer.  This seems like a lot of work.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do have a program where I have used the pf-status.  But I have not tried to trap for one of the predefined statuses.  Worst case,  you could create your own sort button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good Luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110687#M1362141</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-25T19:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110688#M1362142</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;Even i had same problem, and i copied standard pf-status to z- and put it in my code, it work fine then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:44:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110688#M1362142</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2009-08-25T19:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: ALV problems</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110689#M1362143</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;Even i had same problem, and i copied standard pf-status to z- and put it in my code, it work fine then.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2009 19:44:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-problems/m-p/6110689#M1362143</guid>
      <dc:creator>Noorie</dc:creator>
      <dc:date>2009-08-25T19:44:34Z</dc:date>
    </item>
  </channel>
</rss>

