09-24-2008 11:28 AM
Hi Experts,
I have ALV list and i want to update the edited rows in database table when i press "update" button.
i'm looking forward for your answers
Regards,
Mohanraj.R
09-24-2008 11:32 AM
I don't know if I correctly understood: you have an internal table (represented with ALV) and you want that clicking a button, the db is updated. If so, you have to manually update db contents row by row.
09-24-2008 11:44 AM
i'm displaying an internal table using ALV.
ex:There are 10 rows in that
And i'm editing few rows with some values in that ALV list
when i click "Update" button,How can i update the edited rows into the database table?
09-24-2008 11:38 AM
09-24-2008 11:41 AM
Hi,
Try this.
You may be using an internal table to populate the ALV list. in the click event of the push button write the code to update the internal table and then use the internal table to update the database table.
Sharin.
09-24-2008 11:41 AM
in the user_command event you can handle the Update button action and Accordingly you can Update the data.
Check this thread...
https://forums.sdn.sap.com/click.jspa?searchID=16682136&messageID=6031562
09-24-2008 11:42 AM
hi in your
FORM user-command using p type sy-ucomm
ff type selfield.
case sy-ucomm.
when 'UPDATE'.
loop at itab where box = 'X'.
modify itab.
modify ztab from itab.
endloop.
NOte:when you edit a row ,you should select it.
Edited by: swati gupta on Sep 24, 2008 12:51 PM
09-24-2008 11:54 AM