12-22-2006 5:09 AM
Hey Guys,
I know How to change the o/p in ALV using Edit option in the fieldcatalig ..after changing it i want to save that ..how can we do this?
12-22-2006 5:16 AM
When you use the EDIT option, and actually EDIT the field and hit ENTER, the changes you have done are updated to the internal table that you have used for display.
You will have to take the changes from there and update the database.
If the internal table is not getting updated, call the method CHECK_CHANGED_DATA of the grid and the internal table will be updated.
Regards,
Ravi
Note - Please mark all the helpful answers
12-22-2006 5:16 AM
When you use the EDIT option, and actually EDIT the field and hit ENTER, the changes you have done are updated to the internal table that you have used for display.
You will have to take the changes from there and update the database.
If the internal table is not getting updated, call the method CHECK_CHANGED_DATA of the grid and the internal table will be updated.
Regards,
Ravi
Note - Please mark all the helpful answers
12-22-2006 5:17 AM
Check the Program BCALV_GRID_EDIT in se38.
then you need to write the code.
under sy-ucomm.
when 'SAVE'.
write your logic..
12-22-2006 6:18 AM
Hey..thanks.
But if i change and hit enter is changing..but after changing i want to press the SAVE button in the standard tool bar so that it has to save in DB as well as if if exicute again the new o/p it should be reflected..
Can any body pls..provide me teh sample code....
12-22-2006 5:22 AM
Go to transaction SE80 and select package SLIS.In it there are lot of sample programs with name BCALV_EDIT_01 etc.Check out those programs.
Thanks,
Sutapa.