Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ALV edit buttons

Former Member
0 Likes
731

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

4 REPLIES 4
Read only

Former Member
0 Likes
677

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

Read only

0 Likes
677

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

Read only

0 Likes
677

Hello Bogdan,

I think you might like to read the thread

If you have further queries, please feel free to get back.

Regards,

Anand Mandalika.

Read only

ssimsekler
Product and Topic Expert
Product and Topic Expert
0 Likes
677

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

[email protected]