<?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 Tree : Multiple time User Interactions in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609223#M1569155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you describe in brief how you so it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's check some relevant code lines about display, refresh, event handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some tons of blogs&amp;amp;wiki may be worth checking.&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>Mon, 31 Jan 2011 20:52:48 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2011-01-31T20:52:48Z</dc:date>
    <item>
      <title>ALV Tree : Multiple time User Interactions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609222#M1569154</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'm using an ALV Tree(Oops based) to display data . There are some user interactions on this output .&lt;/P&gt;&lt;P&gt;I'm able to acheive the necessary user interactions(like checkbox, update line item, etc) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My queries are :- &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="info"&gt;&lt;/SPAN&gt; But these interactions are not working when I use it for the second time . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, If I check a line item and update the a field , it is working perfect ,&lt;/P&gt;&lt;P&gt;But soon after this, if I check another line and try to update the field, there is no change in the output . It stays where it was .&lt;/P&gt;&lt;P&gt;I have used these: Flush or frontend method , but to no avail . &lt;/P&gt;&lt;P&gt;Pls let me know, what am I missing here .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(ii) Also , I'm calling this ALV tree from another screen . But if I go back and come back again to the ALV Tree screen ,&lt;/P&gt;&lt;P&gt;there is a blank screen only . &lt;/P&gt;&lt;P&gt;I could not find a solution for this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks in Advance .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Jan 2011 18:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609222#M1569154</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-01-31T18:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree : Multiple time User Interactions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609223#M1569155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you describe in brief how you so it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let's check some relevant code lines about display, refresh, event handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some tons of blogs&amp;amp;wiki may be worth checking.&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>Mon, 31 Jan 2011 20:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609223#M1569155</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-01-31T20:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree : Multiple time User Interactions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609224#M1569156</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;The ALV Tree I'm displaying has got checkboxes assigned for each line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I click some checkboxes and Press the button DESELECT ALL(a custom button created on the application toolbar)&lt;/P&gt;&lt;P&gt;all the checkboxes are UNCHECKED . So far it is good .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, when I try to repeat these actions( by checking some more checkboxes and pressing the DESELECT ALL button)&lt;/P&gt;&lt;P&gt;this time it would not work .  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code I used here is&lt;/P&gt;&lt;P&gt;case sy-ucomm .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'DESELECT' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD tree1-&amp;gt;get_checked_items&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      et_checked_items = it_checked_items.&lt;/P&gt;&lt;P&gt;  APPEND LINES OF it_checked_items TO i_selected_lines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ls_laci-fieldname  = tree1-&amp;gt;c_hierarchy_column_name.&lt;/P&gt;&lt;P&gt;  ls_laci-chosen     = ''.&lt;/P&gt;&lt;P&gt;  ls_laci-u_chosen   = 'X'.&lt;/P&gt;&lt;P&gt;  ls_laci-class      = cl_gui_column_tree=&amp;gt;item_class_checkbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF i_selected_lines[] IS NOT INITIAL .&lt;/P&gt;&lt;P&gt;    LOOP AT i_selected_lines .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD tree1-&amp;gt;get_outtab_line&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_node_key    = i_selected_lines-nodekey&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          e_outtab_line = i_checked_lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD tree1-&amp;gt;change_item&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;          i_node_key     = i_selected_lines-nodekey&lt;/P&gt;&lt;P&gt;          i_fieldname    = tree1-&amp;gt;c_hierarchy_column_name&lt;/P&gt;&lt;P&gt;          i_data         = i_checked_lines&lt;/P&gt;&lt;P&gt;          i_u_data       = ''&lt;/P&gt;&lt;P&gt;          is_item_layout = ls_laci&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;          node_not_found = 1&lt;/P&gt;&lt;P&gt;          OTHERS         = 2.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDLOOP .&lt;/P&gt;&lt;P&gt;  ENDIF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD tree1-&amp;gt;frontend_update.&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;endcase .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is that I'm missing here .&lt;/P&gt;&lt;P&gt;(Also , the second time , the checked lines internal table is initial . I dont know why ?? )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Feb 2011 10:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609224#M1569156</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-01T10:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: ALV Tree : Multiple time User Interactions</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609225#M1569157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;as your code is not formatted at all&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is not very good to read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do not see any (local, global?) variable declaration, do not know what may be cleared or not. Also, you use internal tables with header lines, forbidden in oo context anyway, and not good for analysis anyway.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may try to replace FORM routines by methods and separate global from local data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A frequent error is creating more than one instance of the tree - in debugger you can see the instance number, check that this does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always try the Preview tab before posting, thank you.&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>Tue, 01 Feb 2011 11:04:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/alv-tree-multiple-time-user-interactions/m-p/7609225#M1569157</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-02-01T11:04:37Z</dc:date>
    </item>
  </channel>
</rss>

