<?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: Query to refresh the output data. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700831#M625449</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find my piece code below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Function module to display the ALV output.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_callback_program        = ws_repid&lt;/P&gt;&lt;P&gt;            i_callback_user_command   = 'F0009_USER_COMMAND'&lt;/P&gt;&lt;P&gt;            i_callback_pf_status_set  = 'f0008_set_pf_stat'&lt;/P&gt;&lt;P&gt;            is_layout                 = wa_layo&lt;/P&gt;&lt;P&gt;            it_fieldcat               = i_fieldcat[]&lt;/P&gt;&lt;P&gt;            is_variant                = wa_vari&lt;/P&gt;&lt;P&gt;            i_tabname_header          =  'I_VTTK_1'&lt;/P&gt;&lt;P&gt;            i_tabname_item            =  'I_HEADER'&lt;/P&gt;&lt;P&gt;            is_keyinfo                = ws_keyinfo&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab_header           = i_vttk_1&lt;/P&gt;&lt;P&gt;            t_outtab_item             = i_header&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            program_error             = 1&lt;/P&gt;&lt;P&gt;            OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f0009_user_command  USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                               selfield TYPE slis_selfield. "#EC CALLED&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;to handle the user commands if different from standard ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CASE ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WHEN 'REFRESH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here I am reselecting the data again to get the new changes done.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM f0002_get_selection_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here the flag is getting set.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Aug 2007 23:37:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-23T23:37:46Z</dc:date>
    <item>
      <title>Query to refresh the output data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700829#M625447</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;I have displayed an hierarchy list using 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'  FM.  Now I am trying to refresh the output screen, I have tried the selfield-refresh = 'X' functionality but its is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have thought of other ways like getting the screen instance and then call the refresh method etc, but don't know if that's feasible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ketan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 23:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700829#M625447</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T23:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Query to refresh the output data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700830#M625448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure that you are updating your internal tables used in the ALV and setting that REFRESH flag.  I assume that you are doing the refresh flag within a FORM routine which is tied to the function call.  Maybe you can post your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 23:27:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700830#M625448</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-23T23:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Query to refresh the output data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700831#M625449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find my piece code below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Function module to display the ALV output.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            i_callback_program        = ws_repid&lt;/P&gt;&lt;P&gt;            i_callback_user_command   = 'F0009_USER_COMMAND'&lt;/P&gt;&lt;P&gt;            i_callback_pf_status_set  = 'f0008_set_pf_stat'&lt;/P&gt;&lt;P&gt;            is_layout                 = wa_layo&lt;/P&gt;&lt;P&gt;            it_fieldcat               = i_fieldcat[]&lt;/P&gt;&lt;P&gt;            is_variant                = wa_vari&lt;/P&gt;&lt;P&gt;            i_tabname_header          =  'I_VTTK_1'&lt;/P&gt;&lt;P&gt;            i_tabname_item            =  'I_HEADER'&lt;/P&gt;&lt;P&gt;            is_keyinfo                = ws_keyinfo&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            t_outtab_header           = i_vttk_1&lt;/P&gt;&lt;P&gt;            t_outtab_item             = i_header&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            program_error             = 1&lt;/P&gt;&lt;P&gt;            OTHERS                    = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM f0009_user_command  USING ucomm LIKE sy-ucomm&lt;/P&gt;&lt;P&gt;                               selfield TYPE slis_selfield. "#EC CALLED&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="2" type="ul"&gt;&lt;P&gt;to handle the user commands if different from standard ALV&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;  CASE ucomm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     WHEN 'REFRESH'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here I am reselecting the data again to get the new changes done.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      PERFORM f0002_get_selection_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Here the flag is getting set.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      selfield-refresh = 'X'.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 23:37:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700831#M625449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T23:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: Query to refresh the output data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700832#M625450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You code looks pretty good to me.  Are you sure that FORM f0009_user_command  is actually being fired?  Put a breakpoint in it and execute, click your refresh button.  Is it being fired?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RIch Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 23:40:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700832#M625450</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-23T23:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Query to refresh the output data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700833#M625451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes my subroutine is getting called, I have other functionality in the same FORM for say showing a information popup etc and all of them are getting triggered. Only this particular functionality is not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am modifying couple of values  using the standard transactions and want them to be displayed in the Header and the Item table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But that's not happening and after refresh I am even find my items table data missing from the hierarchy display ( Though it is there in the internal table)  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ketan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 23:52:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700833#M625451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-23T23:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: Query to refresh the output data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700834#M625452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hmm, that's interesting.  You are going to want to debug that FORM which is getting your data again when called from the user command handling form. I'm sure it will reveal what is going wrong.  Also, you mentioned that you are doing an update using a standard transaction, it could be a delay in the update if you are refreshing right away, and the update is not yet complete, could this be possible?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2007 23:56:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700834#M625452</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2007-08-23T23:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Query to refresh the output data.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700835#M625453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will check further and get back if I find something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ketan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Aug 2007 00:15:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/query-to-refresh-the-output-data/m-p/2700835#M625453</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-24T00:15:20Z</dc:date>
    </item>
  </channel>
</rss>

