<?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: Problems in ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854084#M1320215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this problem...by adding the following code to update the internal table in the USER_COMMAND subroutine.&lt;/P&gt;&lt;P&gt;Thanks everyone~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_repid LIKE sy-repid, "Exists&lt;/P&gt;&lt;P&gt;        ref_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;IF ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_grid = ref_grid.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF NOT ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD ref_grid-&amp;gt;check_changed_data .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2009 13:43:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-06T13:43:54Z</dc:date>
    <item>
      <title>Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854076#M1320207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I copy a pf status from FG SALV and set 2 buttons in it, ADD &amp;amp; DELETE. But when I press the butten created by myself,  the internal table of the data didn't reflesh, that is , the user's action didn't take any effect. For example, I changed one column in the internal table from 3 to 2, when I debugged and I found the value of the internal table was still 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The internal table was g_t_alv in this case.&lt;/P&gt;&lt;P&gt;My code is the following:&lt;/P&gt;&lt;P&gt;call function 'REUSE_ALV_GRID_DISPLAY_LVC'&lt;/P&gt;&lt;P&gt;   exporting&lt;/P&gt;&lt;P&gt;     i_callback_program                = sy-repid&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set          = 'SUB_PF_STATUS_SET'&lt;/P&gt;&lt;P&gt;      i_callback_user_command           = 'SUB_USER_COMMAND'&lt;/P&gt;&lt;P&gt;     is_layout_lvc                         = l_layout&lt;/P&gt;&lt;P&gt;     it_fieldcat_lvc                       = l_t_fieldcat[]&lt;/P&gt;&lt;P&gt;    tables&lt;/P&gt;&lt;P&gt;      t_outtab                          = g_t_alv&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 09:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854076#M1320207</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T09:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854077#M1320208</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;Use the below methods and FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD gr_alvgrid_100_1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        is_layout                     = gs_layout&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        it_outtab                     = git_po_temp&lt;/P&gt;&lt;P&gt;        it_fieldcatalog               = gt_fieldcat_100_1&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        invalid_parameter_combination = 1&lt;/P&gt;&lt;P&gt;        program_error                 = 2&lt;/P&gt;&lt;P&gt;        too_many_lines                = 3&lt;/P&gt;&lt;P&gt;        OTHERS                        = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*--Input field can be modified&lt;/P&gt;&lt;P&gt;    CALL METHOD gr_alvgrid_100_1-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_ready_for_input = 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   register enter key event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD gr_alvgrid_100_1-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   register field modified event&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL METHOD gr_alvgrid_100_1-&amp;gt;register_edit_event&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USE this methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : lv_ref1 TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;        IMPORTING&lt;/P&gt;&lt;P&gt;          e_grid = lv_ref1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      CALL METHOD lv_ref1-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now  u can check the changed avlues..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 09:32:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854077#M1320208</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2009-07-06T09:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854078#M1320209</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;Can you tell me how yo editing the value in your internal table.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Dhasarathy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 09:34:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854078#M1320209</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854079#M1320210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Add Refresh button and add function code  '&amp;amp;REFRESH' to that button.&lt;/P&gt;&lt;P&gt;After changing the value on the output. Refresh using created button.&lt;/P&gt;&lt;P&gt;You can check the changed value in the table in the user_command when you double click on the output.&lt;/P&gt;&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 = '&amp;amp;IC1'.
    "Put breakpoint here and check the final table which is displayed
  ENDIF.
ENDFORM.                    "USER_COMMAND&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Venkat.O&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 09:46:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854079#M1320210</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2009-07-06T09:46:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854080#M1320211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  I hope you have a check box to select the records to be deleted .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  gs_glay-edt_cll_cb = 'X'.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_callback_program       = sy-cprog&lt;/P&gt;&lt;P&gt;      it_fieldcat              = gi_fieldcat&lt;/P&gt;&lt;P&gt;      i_grid_settings          = gs_glay&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     i_grid_title             = 'Create Condition Record '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      i_grid_title             = gv_text&lt;/P&gt;&lt;P&gt;      i_callback_pf_status_set = 'SET'&lt;/P&gt;&lt;P&gt;      i_callback_user_command  = 'USER_COMMAND'&lt;/P&gt;&lt;P&gt;      i_default                = 'X'&lt;/P&gt;&lt;P&gt;      i_save                   = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      t_outtab                 = gi_display&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;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE: text-005.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write the code for the delete button in " form user_command". &lt;/P&gt;&lt;P&gt;The selected records will have X in the checkbox column .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 09:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854080#M1320211</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T09:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854081#M1320212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;   Add a column in the internal table for check box .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 09:59:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854081#M1320212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T09:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854082#M1320213</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;try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after you perform the user action try the givn below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   SELFIELD-REFRESH = 'X'. " to refresh the internal table
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&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;Ritesh J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 10:32:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854082#M1320213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T10:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854083#M1320214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did set a check column in my data table as the first column. My problem is when I check the CHECK colum or change the other column's value and click the button created by me, it didn't update to the internal table. &lt;/P&gt;&lt;P&gt;After I debugged in the subroutine of USER_COMMAND, and check the value of the internal table g_t_alv, which is the data souce of REUSE_ALV_GRID_DISPLAY. I found Whatever the user click the checkbox , input or change the value in the ALV , the result will never update to the data internal table when I click the button created by myself. But when I click the standard button 'SAVE' , which is next to the TCODE input, all the changes made by user can update to the internal table.&lt;/P&gt;&lt;P&gt;It is the problem of the update of the ALV data. Why the standard SAVE button update all the changes to the internal table , but not my customized button .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has nothing to do with SELFIELD-REFRESH = 'X', it is the internal table can not be updated ,but not the ALV display result didnot be refleshed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: YICHAO SUN on Jul 6, 2009 3:31 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: YICHAO SUN on Jul 6, 2009 3:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 13:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854083#M1320214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T13:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems in ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854084#M1320215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved this problem...by adding the following code to update the internal table in the USER_COMMAND subroutine.&lt;/P&gt;&lt;P&gt;Thanks everyone~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: gd_repid LIKE sy-repid, "Exists&lt;/P&gt;&lt;P&gt;        ref_grid TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;IF ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'&lt;/P&gt;&lt;P&gt;      IMPORTING&lt;/P&gt;&lt;P&gt;        e_grid = ref_grid.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;IF NOT ref_grid IS INITIAL.&lt;/P&gt;&lt;P&gt;    CALL METHOD ref_grid-&amp;gt;check_changed_data .&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 13:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-in-alv/m-p/5854084#M1320215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T13:43:54Z</dc:date>
    </item>
  </channel>
</rss>

