<?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 Problem with ALV grid in edit mode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-grid-in-edit-mode/m-p/7744792#M1582094</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, gurus!&lt;/P&gt;&lt;P&gt;I have a problem with ALV-grid. Sometimes when I call F4 help for a cell, data is inserted in a different cell.  And when I call check_changed_data method, my internal table (passed to ALV-control in set_table_for_first_display) does not updates properly. In what can be a problem?&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Mar 2011 07:18:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-03-15T07:18:59Z</dc:date>
    <item>
      <title>Problem with ALV grid in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-grid-in-edit-mode/m-p/7744792#M1582094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, gurus!&lt;/P&gt;&lt;P&gt;I have a problem with ALV-grid. Sometimes when I call F4 help for a cell, data is inserted in a different cell.  And when I call check_changed_data method, my internal table (passed to ALV-control in set_table_for_first_display) does not updates properly. In what can be a problem?&lt;/P&gt;&lt;P&gt;Thanks, &lt;/P&gt;&lt;P&gt;Mikhail&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Mar 2011 07:18:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-grid-in-edit-mode/m-p/7744792#M1582094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-15T07:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV grid in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-grid-in-edit-mode/m-p/7744793#M1582095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helllo Mikhail , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its better to paste your codings here .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 02:09:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-grid-in-edit-mode/m-p/7744793#M1582095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-16T02:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with ALV grid in edit mode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-grid-in-edit-mode/m-p/7744794#M1582096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prabhu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE pbo_100 OUTPUT.

  SET PF-STATUS 'MAIN100'.
  title_of_report = text-010.
  SET TITLEBAR '0100' WITH title_of_report.

  DATA: g_event_receiver TYPE REF TO lcl_event_handler.

  IF z_custom_container IS INITIAL .

    CREATE OBJECT z_custom_container
      EXPORTING
        container_name = 'ALV_ZAC'.

    CREATE OBJECT alv_grid
      EXPORTING
        i_parent = z_custom_container.


    g_repid = sy-repid.
    gs_variant-report = g_repid.
    x_save = 'A'.

    PERFORM check_alv_grid_fields.
    ps_layout-cwidth_opt = 'X'.
    ps_layout-edit = 'X'.

    CALL METHOD alv_grid-&amp;gt;set_ready_for_input
      EXPORTING
        i_ready_for_input = '1'.

*    CALL METHOD alv_grid-&amp;gt;register_edit_event
*      EXPORTING
*        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.

    APPEND   s_list_rec   to it_list_rec.

    CALL METHOD alv_grid-&amp;gt;set_table_for_first_display
      EXPORTING
        is_layout       = ps_layout
        is_variant      = gs_variant
        i_save          = x_save
      CHANGING
        it_fieldcatalog = pt_fieldcat
        it_outtab       = it_list_rec[]. 


    CALL METHOD alv_grid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_enter.

    CALL METHOD alv_grid-&amp;gt;register_edit_event
      EXPORTING
        i_event_id = cl_gui_alv_grid=&amp;gt;mc_evt_modified.
ENDIF.

FORM check_alv_grid_fields .
  DATA: ls_fcat LIKE LINE OF pt_fieldcat.
 
 REFRESH pt_fieldcat .
 CLEAR: ps_layout, ls_fcat.

  ls_fcat-fieldname = 'VBELN'.
  ls_fcat-ref_field = 'VBELN'. ls_fcat-ref_table =  'LIPS'. " .
  ls_fcat-outputlen = 9.
*  ls_fcat-datatype   = 'CHAR'.
*  ls_fcat-inttype    = 'C'.

  APPEND  ls_fcat TO pt_fieldcat.
  CLEAR: ls_fcat.

  ls_fcat-fieldname = 'ERDAT'.
  ls_fcat-ref_field = 'ERDAT'. ls_fcat-ref_table = 'LIPS'.
  ls_fcat-outputlen = 9.
*  ls_fcat-f4availabl = 'X' .
*  ls_fcat-datatype   = 'DATS'.
*  ls_fcat-inttype    = 'D'.

  APPEND ls_fcat TO pt_fieldcat.
  CLEAR: ls_fcat.

ENDFORM.                    " check_alv_grid_fields&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FORM save_p .
  CLEAR l_valid.
  CALL METHOD alv_grid-&amp;gt;check_changed_data
    IMPORTING
      e_valid = l_valid.
  IF l_valid IS INITIAL.
    CALL FUNCTION 'POPUP_TO_INFORM'
      EXPORTING
        titel = text-i01
        txt1  = text-i02
        txt2  = text-i03
        txt3  = text-i04.
  ELSE.
    i_dat_reg = zrumm_prr-cdprr.
    CLEAR is_temp_otc.

    freshit i_prrpus_fax.
    freshit i_list2_ot.

    LOOP AT it_list_rec INTO s_list_rec.
      MOVE-CORRESPONDING s_list_rec TO i_list2_ot. 
      i_list2_ot-fgrup = 'RECE'.
      i_list2_ot-prrnu = i_num_prr. 
      APPEND i_list2_ot.
      MOVE-CORRESPONDING s_list_rec TO i_prrpus_fax.
      APPEND i_prrpus_fax.
    ENDLOOP.


  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mikhail Sarychev on Mar 16, 2011 6:41 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mikhail Sarychev on Mar 16, 2011 6:49 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mikhail Sarychev on Mar 16, 2011 6:49 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Mar 2011 05:40:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-with-alv-grid-in-edit-mode/m-p/7744794#M1582096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-16T05:40:45Z</dc:date>
    </item>
  </channel>
</rss>

