09-15-2008 3:20 PM
hai friends,
in screen painter put one push button.
initially table field is disable.
go to own t.code (se93).
once press the push button.
the disable field will becomes enable.
please write code brifly ?
09-15-2008 3:28 PM
Hi,
Your query:
in screen painter put one push button.
initially table field is disable.
go to own t.code (se93).
once press the push button.
the disable field will becomes enable.
please write code brifly ?
Here is it mean then when we execute a transaction, then the input field should be enabled.
Please check the values in the input field. i mean cross check it how it works.
In the PBO of the screen make the field as display mode. depending on the transaction it will be enable.
Use
case sy-ucomm.
when 'TCODE' ( created in se93 )
loop at screen.
if screen-name = 'TABLE-FIELD'.
screen-input = 1. - enable
modify screen.
endif.
endloop.
when others.
loop at screen.
if screen-name = 'TABLE-FIELD'.
screen-input = 0. - disable
modify screen.
endif.
endloop.
endcase.
Regards,
Venkatesh
09-15-2008 3:33 PM
In PBO write a module with this code
case sy-ucomm.
when 'PUSHBUTTON' .
loop at screen.
if screen-name = 'FIELD'.
screen-input = 1. "enable
modify screen.
endif.
endloop.
when others.
loop at screen.
if screen-name = 'TABLE-FIELD'.
screen-input = 0. "disable
modify screen.
endif.
endloop
Thanks & Regards,
Vivek Gaur