on 10-21-2011 6:49 PM
Hi ALL,
I have ALV, i have added a customize button "Delete" in it, i want to delete the selected line from ALV as well from Z table.
Thanks,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ALL,
Can i write code in event of std "Delete Row" button of ALV???? where and how can i get that event???
Thanks In Advance
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Prathamesh,
there are two events provided for the standard functions ( ON_STD_FUNCTION_BEFO and ON_STD_FUNCTION_AFTE )
you need to do the following
1. in your component create event handler methods for the above mentioned event
2. in the FUNCTION_BERFORE event handler, check for the event id and if its delete then from the context node retrieve lead selected element information and store it in member variables
3. in the FUNCTION_AFTER event handler, check for the event id and if its delete then delete the record that is stored in the member variables from the database
you can delete records from database in step 2 itself. but doing it in step3 is a good practice.
BR, Saravanan
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.