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

module pool program

Former Member
0 Likes
363

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 ?

2 REPLIES 2
Read only

Former Member
0 Likes
341

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

Read only

Former Member
0 Likes
341

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