Professional Documents
Culture Documents
method WDDOINIT.
lv_boton1 = 2.
lv_boton2 = 2.
lo_el_boton->set_attribute(
exporting
name = 'BOTON1'
value = lv_boton1 ).
lo_el_boton->set_attribute(
exporting
name = 'BOTON2'
value = lv_boton2 ).
endmethod.
method ONACTIONBOTON1.
lo_el_boton->get_attribute(
EXPORTING
name = 'BOTON2'
IMPORTING
value = lv_boton2 ).
IF lv_boton1 = 2.
lv_boton1 = 1.
lv_boton2 = 2.
ENDIF.
lo_el_boton->set_attribute(
EXPORTING
name = 'BOTON1'
value = lv_boton1 ).
lo_el_boton->set_attribute(
EXPORTING
name = 'BOTON2'
value = lv_boton2 ).
endmethod.
Dentro de la accin del botn 2 poner el siguiente cdigo
method ONACTIONBOTON2.
IF lv_boton2 = 2.
lv_boton2 = 1.
lv_boton1 = 2.
ENDIF.
lo_el_boton->set_attribute(
EXPORTING
name = 'BOTON1'
value = lv_boton1 ).
lo_el_boton->set_attribute(
EXPORTING
name = 'BOTON2'
value = lv_boton2 ).
endmethod.