Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Delete line in toolbar

Hi guys,

I have to display the 'delete_line' button in alv toolbar, but this button doesn't exist, altough this button is a standard button.

how can I do this?

PS : I am working on alv not editable, but I must have possibility to deleting lines.

need help


Former Member
Former Member replied

Hello Mohamed

Sample report BCALV_GRID_05 demonstrates how to define your own toolbar button.

* Purpose:
* ~~~~~~~~
* Demonstrate the creation of an own toolbar button.
* To check program behavior
* ~~~~~~~~~~~~~~~~~~~~~~~~~
* The report shows a list of flights of one airline.
* Select one or more lines and press the 'Detail'-Button to popup
* a dialog window with related bookings.
* Essential steps (Search for 'ยง')
* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* 1.Apply steps for event handling for events TOOLBAR and
*   USER_COMMAND (see example for print events)
* 2.In event handler method for event TOOLBAR: Append own functions
*   by using event parameter E_OBJECT.
* 3.In event handler method for event USER_COMMAND: Query your
*   function codes defined in step 2 and react accordingly.
* 4.Call method 'set_toolbar_interactive' to raise event TOOLBAR.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question