<?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: Problem with double editable  ALV GRID refresh in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705659#M2018686</link>
    <description>&lt;P&gt;I don't reproduce your issue. On the left, in the first line I type URL = anything, click on right, in the first line I type CONNID = any number, then press F8, it displays the values I have typed. ABAP 7.57, SAP GUI 7.70 SP 0.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zdemo.&lt;BR /&gt;DATA go_splitter_container TYPE REF TO cl_gui_splitter_container.&lt;BR /&gt;DATA go_container_left TYPE REF TO cl_gui_container.&lt;BR /&gt;DATA go_container_right TYPE REF TO cl_gui_container.&lt;BR /&gt;DATA go_alv_left TYPE REF TO cl_gui_alv_grid.&lt;BR /&gt;DATA go_alv_right TYPE REF TO cl_gui_alv_grid.&lt;BR /&gt;DATA gt_scarr TYPE TABLE OF scarr.&lt;BR /&gt;DATA gt_spfli TYPE TABLE OF spfli.&lt;BR /&gt;TABLES sscrfields.&lt;BR /&gt;PARAMETERS dummy.&lt;BR /&gt;AT SELECTION-SCREEN OUTPUT.&lt;BR /&gt;  IF go_splitter_container IS NOT BOUND.&lt;BR /&gt;    CREATE OBJECT go_splitter_container&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        parent  = cl_gui_container=&amp;gt;screen0&lt;BR /&gt;        rows    = 1&lt;BR /&gt;        columns = 2.&lt;BR /&gt;    go_container_left = go_splitter_container-&amp;gt;get_container( row = 1 column = 1 ).&lt;BR /&gt;    go_container_right = go_splitter_container-&amp;gt;get_container( row = 1 column = 2 ).&lt;BR /&gt;    SELECT * FROM scarr INTO TABLE gt_scarr.&lt;BR /&gt;    SELECT * FROM spfli INTO TABLE gt_spfli.&lt;BR /&gt;    CREATE OBJECT go_alv_left&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        i_parent = go_container_left.&lt;BR /&gt;    go_alv_left-&amp;gt;set_table_for_first_display(&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          i_structure_name = 'SCARR'&lt;BR /&gt;          is_layout        = VALUE #( edit = 'X' )&lt;BR /&gt;        CHANGING&lt;BR /&gt;          it_outtab        = gt_scarr ).&lt;BR /&gt;    CREATE OBJECT go_alv_right&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        i_parent = go_container_right.&lt;BR /&gt;    go_alv_right-&amp;gt;set_table_for_first_display(&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          i_structure_name = 'SPFLI'&lt;BR /&gt;          is_layout        = VALUE #( edit = 'X' )&lt;BR /&gt;        CHANGING&lt;BR /&gt;          it_outtab        = gt_spfli ).&lt;BR /&gt;  ENDIF.&lt;BR /&gt;AT SELECTION-SCREEN.&lt;BR /&gt;  IF sscrfields-ucomm = 'ONLI'.&lt;BR /&gt;    go_alv_left-&amp;gt;check_changed_data( ). " &amp;lt;=== transfer from screen to GT_SCARR&lt;BR /&gt;    go_alv_right-&amp;gt;check_changed_data( ). " &amp;lt;=== transfer from screen to GT_SPFLI&lt;BR /&gt;    MESSAGE |{ VALUE #( gt_scarr[ 1 ]-url OPTIONAL ) } - { VALUE #( gt_spfli[ 1 ]-connid OPTIONAL ) }| TYPE 'I'.&lt;BR /&gt;    sscrfields-ucomm = VALUE #( ).&lt;BR /&gt;  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2168028-image.png" /&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2023 14:37:27 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2023-05-19T14:37:27Z</dc:date>
    <item>
      <title>Problem with double editable  ALV GRID refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705657#M2018684</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I'm having a problem with a dynpro containing two editable ALV GRIDs when I refresh them after editing a cell.&lt;BR /&gt;I am using CL_GUI_ALV_GRID with two containers (header and item) in the same dynpro and I am calling the method register_edit_event with mc_evt_modified and mv_evt_enter for both go_alv_0101_h (header) and go_alv_0101_i (item).&lt;/P&gt;
  &lt;P&gt;This is the problem: if I enter a value in/modify a cell of the header ALV and then I press ENTER or click on another cell of the &lt;STRONG&gt;same&lt;/STRONG&gt; ALV, the method handle_data_changed is triggered and the value is kept (this is OK), while if I enter a value in/modify a cell on the header ALV (without pressing enter or clicking on a cell of the same ALV) and then I click on the item ALV, handle_data_changed is not triggered and if I modify one cell on the item ALV, the new value I entered in the header ALV is lost (the cell returns blank or has the old value).&lt;/P&gt;
  &lt;P&gt;Same problem if a enter a value in the item ALV and soon after I click on a cell of the header ALV and modify one of its cells.&lt;/P&gt;
  &lt;P&gt;Is there a way to trigger handle_data_change when I enter a value in the first ALV and soon after I click on a cell of the second ALV?&lt;/P&gt;
  &lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 09:57:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705657#M2018684</guid>
      <dc:creator>dario_fiorillo49</dc:creator>
      <dc:date>2023-05-19T09:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with double editable  ALV GRID refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705658#M2018685</link>
      <description>&lt;P&gt;Correct me if I'm wrong, In my opinion, it is the ALV default behavior to trigger the data changed method and so far I haven't found other method that could be used to triggered if we do action outside of the ALV area.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 10:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705658#M2018685</guid>
      <dc:creator>xiswanto</dc:creator>
      <dc:date>2023-05-19T10:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with double editable  ALV GRID refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705659#M2018686</link>
      <description>&lt;P&gt;I don't reproduce your issue. On the left, in the first line I type URL = anything, click on right, in the first line I type CONNID = any number, then press F8, it displays the values I have typed. ABAP 7.57, SAP GUI 7.70 SP 0.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zdemo.&lt;BR /&gt;DATA go_splitter_container TYPE REF TO cl_gui_splitter_container.&lt;BR /&gt;DATA go_container_left TYPE REF TO cl_gui_container.&lt;BR /&gt;DATA go_container_right TYPE REF TO cl_gui_container.&lt;BR /&gt;DATA go_alv_left TYPE REF TO cl_gui_alv_grid.&lt;BR /&gt;DATA go_alv_right TYPE REF TO cl_gui_alv_grid.&lt;BR /&gt;DATA gt_scarr TYPE TABLE OF scarr.&lt;BR /&gt;DATA gt_spfli TYPE TABLE OF spfli.&lt;BR /&gt;TABLES sscrfields.&lt;BR /&gt;PARAMETERS dummy.&lt;BR /&gt;AT SELECTION-SCREEN OUTPUT.&lt;BR /&gt;  IF go_splitter_container IS NOT BOUND.&lt;BR /&gt;    CREATE OBJECT go_splitter_container&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        parent  = cl_gui_container=&amp;gt;screen0&lt;BR /&gt;        rows    = 1&lt;BR /&gt;        columns = 2.&lt;BR /&gt;    go_container_left = go_splitter_container-&amp;gt;get_container( row = 1 column = 1 ).&lt;BR /&gt;    go_container_right = go_splitter_container-&amp;gt;get_container( row = 1 column = 2 ).&lt;BR /&gt;    SELECT * FROM scarr INTO TABLE gt_scarr.&lt;BR /&gt;    SELECT * FROM spfli INTO TABLE gt_spfli.&lt;BR /&gt;    CREATE OBJECT go_alv_left&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        i_parent = go_container_left.&lt;BR /&gt;    go_alv_left-&amp;gt;set_table_for_first_display(&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          i_structure_name = 'SCARR'&lt;BR /&gt;          is_layout        = VALUE #( edit = 'X' )&lt;BR /&gt;        CHANGING&lt;BR /&gt;          it_outtab        = gt_scarr ).&lt;BR /&gt;    CREATE OBJECT go_alv_right&lt;BR /&gt;      EXPORTING&lt;BR /&gt;        i_parent = go_container_right.&lt;BR /&gt;    go_alv_right-&amp;gt;set_table_for_first_display(&lt;BR /&gt;        EXPORTING&lt;BR /&gt;          i_structure_name = 'SPFLI'&lt;BR /&gt;          is_layout        = VALUE #( edit = 'X' )&lt;BR /&gt;        CHANGING&lt;BR /&gt;          it_outtab        = gt_spfli ).&lt;BR /&gt;  ENDIF.&lt;BR /&gt;AT SELECTION-SCREEN.&lt;BR /&gt;  IF sscrfields-ucomm = 'ONLI'.&lt;BR /&gt;    go_alv_left-&amp;gt;check_changed_data( ). " &amp;lt;=== transfer from screen to GT_SCARR&lt;BR /&gt;    go_alv_right-&amp;gt;check_changed_data( ). " &amp;lt;=== transfer from screen to GT_SPFLI&lt;BR /&gt;    MESSAGE |{ VALUE #( gt_scarr[ 1 ]-url OPTIONAL ) } - { VALUE #( gt_spfli[ 1 ]-connid OPTIONAL ) }| TYPE 'I'.&lt;BR /&gt;    sscrfields-ucomm = VALUE #( ).&lt;BR /&gt;  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2168028-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:37:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705659#M2018686</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-19T14:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with double editable  ALV GRID refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705660#M2018687</link>
      <description>&lt;P&gt;Thank you Sandra,&lt;BR /&gt;but I am not using cl_gui_splitter_container. I have defined 2 different containers in the dynpro layout, one on top of the screen and the other on bottom.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 14:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705660#M2018687</guid>
      <dc:creator>dario_fiorillo49</dc:creator>
      <dc:date>2023-05-19T14:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with double editable  ALV GRID refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705661#M2018688</link>
      <description>&lt;P&gt;I don't see why it would behave differently whatever the type of container is, and whatever the position is on the left, right, top or bottom.&lt;/P&gt;&lt;P&gt;I just tried (took me 2 minutes to adapt), and I confirm that it works fine for me too.&lt;/P&gt;&lt;P&gt;So, if you want to continue discussing, just try the program above. If it works fine for you, it means that your program has a bug, otherwise, it's a difference due to the ABAP or SAP GUI version, I can't help more, you must then check SAP notes, or install latest SAP GUI version, or install a more recent ABAP version.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2023 18:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705661#M2018688</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-19T18:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with double editable  ALV GRID refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705662#M2018689</link>
      <description>&lt;P&gt;Perhaps in the  &lt;SPAN class="mention-scrubbed"&gt;dalfi&lt;/SPAN&gt; case, he is not doing any action button ( which in your case, you are using the default =ONLI ) button to update both itab, but instead, he is seeking for event which could be triggered if the active cursor leaves from the OO ALV which is changed a moment ago( which will trigger the inline declared method to update respective itab based on which OO ALV event is triggered ), since the data_changed event he is currently using is not triggered when the cursor changed from first OO ALV into second OO ALV. &lt;BR /&gt;&lt;BR /&gt;*usually we triggered the data_changed custom inline method by pressing enter after changing the field value we wanted, right?&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 03:20:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705662#M2018689</guid>
      <dc:creator>xiswanto</dc:creator>
      <dc:date>2023-05-22T03:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with double editable  ALV GRID refresh</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705663#M2018690</link>
      <description>&lt;P&gt;&lt;SPAN class="mention-scrubbed"&gt;xiswanto&lt;/SPAN&gt; No, I adapted my code to reflect &lt;SPAN class="mention-scrubbed"&gt;dalfi&lt;/SPAN&gt; case ("took me 2 minutes to adapt" = dynpro + custom controls vertically positioned, GUI status and button in application toolbar), it behaves exactly same as with my short code above.&lt;/P&gt;&lt;P&gt;Of course, I didn't indicate everything of Dario scenario, but I think that Dario would better post a minimal reproducible example (= few lines of code) so that people can easily test and answer/fix the issue (the same way as I did, anybody can test immediately/no time lost in hypothetical and hazardous assumptions).&lt;/P&gt;</description>
      <pubDate>Mon, 22 May 2023 07:54:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-double-editable-alv-grid-refresh/m-p/12705663#M2018690</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2023-05-22T07:54:33Z</dc:date>
    </item>
  </channel>
</rss>

