<?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: Regarding ALV in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362334#M179722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u can change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the USER_COMMAND of ALV &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 May 2006 11:31:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-05-24T11:31:51Z</dc:date>
    <item>
      <title>Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362329#M179717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using alv grid display where i had put only one column as editable. now what i need is,can we change the data in database at one go although i changes more than one records. &lt;/P&gt;&lt;P&gt;e.g. I got 8 records in alv and i changed values of ok status for all 8 records&lt;/P&gt;&lt;P&gt;can we change all 8 record's new values in database at one go.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362329#M179717</guid>
      <dc:creator>former_member508729</dc:creator>
      <dc:date>2006-05-24T11:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362330#M179718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Capture the changed values n the alv into an iinternal tabel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the statement in the user_command routine.&lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;P&gt;This way, the changes are updated to the database at one go.&lt;/P&gt;&lt;P&gt;See the sample program:&lt;/P&gt;&lt;P&gt;BCALV_TEST_GRID_EDITABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362330#M179718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362331#M179719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can. Get all the changes into the internal table and use the MODIFY statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY dbtab FROM ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;NOte : Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:14:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362331#M179719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362332#M179720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, it is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;only thing is you need to capture the changed records, and then you need to use modify.&lt;/P&gt;&lt;P&gt;collect all changed records to IT_CHANGE then use&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODIFY ZTABLE FROM IT_CHANGE.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:20:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362332#M179720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362333#M179721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for ur valuable reply,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But problem here is that we can capture the changed values only after any user command event. and here i am using slis_selfield for getting current index and value. so it only picks up last changed record and no others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u just help me how to pick up all the changed records in internal table for that alv display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:31:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362333#M179721</guid>
      <dc:creator>former_member508729</dc:creator>
      <dc:date>2006-05-24T11:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362334#M179722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes u can change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the USER_COMMAND of ALV &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when 'SAVE'.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;modify ztable from table itab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:31:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362334#M179722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362335#M179723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
   EXPORTING
    I_CALLBACK_PROGRAM                = W_REPID
    I_CALLBACK_PF_STATUS_SET          = 'PF_STATUS'
    &amp;lt;b&amp;gt;I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'&amp;lt;/b&amp;gt;


FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM
                        P_SELFLD TYPE SLIS_SELFIELD.
case p_ucomm.

 when 'SAVE'.

 &amp;lt;b&amp;gt; Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1-&amp;gt;check_changed_data&amp;lt;/b&amp;gt;


   modift ztable from table itab.

endcase.

ENDFORM.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:35:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362335#M179723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362336#M179724</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;Just check B&lt;STRONG&gt;ALV_&lt;/STRONG&gt; from SE38.&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;Laxmi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:37:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362336#M179724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362337#M179725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using ALV GRID then you need to use Chandra sekhar's logic also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to capture only Changed record then ...&lt;/P&gt;&lt;P&gt;you should take the Backup before display, now you will change the contents in ALV. so in user_command  action SAVE you have to code some thing like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_BACKUP.

read table it_changed index sy-tabix.
if sy-subrc = 0.
if it_backup &amp;lt;&amp;gt; it_changed.
move corresponding it_changed to it_save.
append it_save.
clear it_save.
endif.

endif.

ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also try to put the code mentioned By Mr Chandrasekhar. to reflect the changes to internal table IT_CHNAGE if you use ALV GRID FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362337#M179725</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362338#M179726</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;now you have changed  data in &amp;lt;b&amp;gt;it_save&amp;lt;/b&amp;gt; , so you can use that and modify the table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Modify ZTABLE from IT_SAVE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:43:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362338#M179726</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-05-24T11:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Regarding ALV</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362339#M179727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for ur reply i got my requirement.&lt;/P&gt;&lt;P&gt;Thanks a lot to all.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 May 2006 11:55:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/regarding-alv/m-p/1362339#M179727</guid>
      <dc:creator>former_member508729</dc:creator>
      <dc:date>2006-05-24T11:55:57Z</dc:date>
    </item>
  </channel>
</rss>

