2009 Apr 01 9:21 AM
HI ALL,
I have created an editable alv report using docking conatainer.
i am facing list of problem while need to maintain these activities.
1. I need to save the changes which are made change in the grid layout.
2. As the alv itself gives a option adding a new row and deleting a new row, while doing that i need to capture the previous record value. And assign these values to the first 2 field in the added row.
In order to do how can we deffer the original functionality.
Can any one give some suggestions in order to work.
Thanks and regards,
Naresh
2009 Apr 01 9:34 AM
hi,
First you have to take your data into another internal table and then send data for display of ALV.At the time of save you can compare the old internal table with new edited data and based on which you can save the data for it.
SAP will give provision for triggering of our own subroutine before/after the user command method is called. You can call those subroutines for those adding/deleting lines.
Regards,
Veeresh
HI ALL,
I have created an editable alv report using docking conatainer.
i am facing list of problem while need to maintain these activities.
1. I need to save the changes which are made change in the grid layout.
2. As the alv itself gives a option adding a new row and deleting a new row, while doing that i need to capture the previous record value. And assign these values to the first 2 field in the added row.
In order to do how can we deffer the original functionality.
Can any one give some suggestions in order to work.
Thanks and regards,
Naresh
2009 Apr 01 9:34 AM
hi,
First you have to take your data into another internal table and then send data for display of ALV.At the time of save you can compare the old internal table with new edited data and based on which you can save the data for it.
SAP will give provision for triggering of our own subroutine before/after the user command method is called. You can call those subroutines for those adding/deleting lines.
Regards,
Veeresh
2009 Apr 01 9:51 AM
Go through OOPs ALV tutorial . There are methods to handle various events .
you just need to handle the events.
2009 Apr 01 9:57 AM
Hi,
Go to SE80, and open the package SLIS. Inside this package got a lot of sample codes for ALV.
Try look at the program BCALV_EDIT_0*.
hope this helps.
Br,
Edison
2009 Apr 01 10:06 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |