If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
agregar el boton MODIFICAR DISÓSICION en un alv O.O
Hola ivansap1 para agregar botones al ALV en a barra de herramientas del mismo, este es un ejemplo que cambia unos botones y elimina otros. pero esta el metodo que puedes controlar
method handle_toolbar.
data: ls_toolbar type stb_button.
clear ls_toolbar.
case sy-dynnr.
when 2000 or 3000 or 3100.
move 'AGRE' to ls_toolbar-function.
move icon_create to ls_toolbar-icon.
move 'Agregar Registros' to ls_toolbar-quickinfo.
move 'Crear' to ls_toolbar-text.
move ' ' to ls_toolbar-disabled.
* APPEND ls_toolbar TO e_object->mt_toolbar.
modify e_object->mt_toolbar from ls_toolbar
transporting function icon quickinfo text
where function = '&LOCAL&INSERT_ROW' .
clear ls_toolbar.
move 'DELETE' to ls_toolbar-function.
move icon_delete to ls_toolbar-icon.
move 'Eliminar Registros' to ls_toolbar-quickinfo.
move 'Borrar' to ls_toolbar-text.
move ' ' to ls_toolbar-disabled.
modify e_object->mt_toolbar from ls_toolbar
transporting function icon quickinfo text
where function = '&LOCAL&DELETE_ROW'.
delete e_object->mt_toolbar
where function = '&LOCAL&APPEND'.
delete e_object->mt_toolbar
where function = '&LOCAL©_ROW'.
endcase.
endmethod.
Cordialmente Fabián Leonardo Velásquez P.
Consultor SAP ABAP
Bogota - Colombia
Comentario