2005 Feb 26 11:18 AM
I would like to override the standard functionality of three buttons on the ALV toolbar: New Line, Insert Line, Copy Line.
Is this possible?
What event do these butons trigger?
Thank you,
Bogdan
I would like to override the standard functionality of three buttons on the ALV toolbar: New Line, Insert Line, Copy Line.
Is this possible?
What event do these butons trigger?
Thank you,
Bogdan
2005 Feb 26 6:18 PM
Hi,
Take a look at http://help.sap.com/saphelp_erp2004/helpdata/en/bf/3bd1369f2d280ee10000009b38f889/frameset.htm and https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/an easy reference for alv grid control.pdf for detailed references on ALV Programming.
For implementing your own functionality, one of the ways could be to hide standard buttons and place your own on the toolbar with your own logic.
Regards
Message was edited by: Shehryar Khan
2005 Feb 28 10:55 AM
I already read the document "An Easy Reference to ALV Grid Ccontrol". A very useful document. There are some in-depth features of ALV that are not covered by this document, though.
If I intented to create new buttons, I would't have asked the question in the first place, right?
I am interested if the standard edit buttons can be overriden.
Bye
2005 Feb 28 11:38 AM
2005 Feb 28 1:12 PM
Hi Bogdan
In fact, there should be a section in the mentioned document as "Overriding Standard Functions". Namely, at "before_user_command" event execute your functionality and after, set the user command of ALV to space(null) to prevent further processing.
However, for the functions you have mentioned, the ALV may not visit "before_user_command". Instead you can utilize the events "data_changed" which is visited before commitment of data changes and "data_changed_finished" which is triggered after commitment. These events are also explained briefly in the tutorial.
Regards
*--Serdar
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |