<?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: Changing Cell Contents in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824138#M351837</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beejal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this suggestion.  I am in the middle of implementing it, but I still see 1 problem - namely where is the edited data 'i_spfli' obtainined from.  If i_spfli is the data outtab specified, then where is the changed data stored.  For eaxample, if i_spfli is the table containing the data written into the ALV grid, when I come back into the PAI 'When ...' modules, i_spfli contains the old table values only, not the modified values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 06:15:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-29T06:15:22Z</dc:date>
    <item>
      <title>Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824136#M351835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement to display table output in an ALV grid, making 1 column editable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done this by setting the EDIT = 'X' flag in the field catalog for the field in question.  Yet, when the field value is modified and the users try to continue processing, I cannot find the value that was changed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The process for building and displaying the table is as follows:&lt;/P&gt;&lt;P&gt;1) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  method constructor.
*/ Initialise variables here...

*/  Set the name of the internal table that will be displayed
*/  in the ALV grid

    m_active_Table = 'IT_SPECTRUM_RECS'. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;*/  Assign the data display table to a field-symbol for ALV display
    assign (m_active_Table) to &amp;lt;fs_datatab&amp;gt;. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    call method go_grid-&amp;gt;set_table_for_first_display
      EXPORTING
        is_layout            = ms_layout
        is_variant           = ms_Variant
        i_save               = m_var_save_st
        it_toolbar_excluding = mt_Excl_UI_Func
      CHANGING
        it_sort              = mt_sort
        it_fieldcatalog      = mt_FieldCat
        it_outtab            = &amp;lt;fs_datatab&amp;gt;. &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Coming back into the PAI of the program, the changes in the editable field are not displayed, only the PBO values of the table (IT_SPECTRUM_RECS) and the field symbol &amp;lt;FS_DATATAB&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to loop through the table and verify the edited column details.  Any thoughts would be greatly appreciated, and points will be rewarded accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 01:08:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824136#M351835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T01:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824137#M351836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Check if you have done the following:&lt;/P&gt;&lt;P&gt;---You have to modify the field Catalog fields to set the field EDIT as 'X'.&lt;/P&gt;&lt;P&gt;---Call the method &lt;/P&gt;&lt;P&gt;CALL METHOD ALV_GRID_INSTANCE-&amp;gt;set_ready_for_input&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_ready_for_input = 0. ( For Display ) and '1' for Edit )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put this after the set_table_for_first_display method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--- If you want to check if the user has entered any value on the grid, use the Method : CALL METHOD ALV_GRID_INSTANCE-&amp;gt;check_changed_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will reflect as a change in your existiing data table to new data added on the editable grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,you can use it at user-command 'SAVE':&lt;/P&gt;&lt;P&gt;  WHEN 'SAVE'.&lt;/P&gt;&lt;P&gt;      call method alv-&amp;gt;check_changed_data&lt;/P&gt;&lt;P&gt;                 importing e_valid = l_valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      if l_valid = 'X'.&lt;/P&gt;&lt;P&gt;        MODIFY SPFLI FROM TABLE I_SPFLI.&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;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Beejal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;**Reward if this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 05:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824137#M351836</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T05:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824138#M351837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beejal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for this suggestion.  I am in the middle of implementing it, but I still see 1 problem - namely where is the edited data 'i_spfli' obtainined from.  If i_spfli is the data outtab specified, then where is the changed data stored.  For eaxample, if i_spfli is the table containing the data written into the ALV grid, when I come back into the PAI 'When ...' modules, i_spfli contains the old table values only, not the modified values?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824138#M351837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T06:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824139#M351838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this demo program on how to get the modified cell value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BCALV_EDIT_03&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824139#M351838</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-29T06:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824140#M351839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Durairaj, but unfortunately the client has deleted all the SFLIGHT details from the system.  I can see the code of the BCALV* programs, but can't test them or see what they do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:34:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824140#M351839</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T06:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824141#M351840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can run tcode BC_DATA_GEN to reload those data into flight tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:37:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824141#M351840</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-29T06:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824142#M351841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 10:33:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824142#M351841</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-29T10:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: Changing Cell Contents</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824143#M351842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Raja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the program.  It worked fine, and from that, I have been able to get individual cell data changes to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stephen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jan 2007 02:18:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/changing-cell-contents/m-p/1824143#M351842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-30T02:18:11Z</dc:date>
    </item>
  </channel>
</rss>

