Application Development 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: 

disabling pushbuttons?

Former Member
0 Kudos

hi all,

How to disable the pushbutton. If there r 2 pushbuttons in a list, if i press 1 push

button the second one has to b disable.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

if you have two buttons

for eg: A, B are the pf keys

then for condition one

set pf_status excluding 'A'.

for condtion two

set pf_status excluding 'B'.

then for condition one B will be activated

and for condition two A will be activated

if you have more than that

declare like this

DATA:

BEGIN OF gt_status_except OCCURS 0,

funktion LIKE t185f-fcode,

END OF gt_status_except.

in the status

gt_status_except = 'A'. APPEND gt_status_except.

gt_status_except = 'B'. APPEND gt_status_except.

set pf_status excluding gtUstatus.

now in this case both will be deactivated

regards,

Venkatesh

2 REPLIES 2

Former Member
0 Kudos

Hi,

if you have two buttons

for eg: A, B are the pf keys

then for condition one

set pf_status excluding 'A'.

for condtion two

set pf_status excluding 'B'.

then for condition one B will be activated

and for condition two A will be activated

if you have more than that

declare like this

DATA:

BEGIN OF gt_status_except OCCURS 0,

funktion LIKE t185f-fcode,

END OF gt_status_except.

in the status

gt_status_except = 'A'. APPEND gt_status_except.

gt_status_except = 'B'. APPEND gt_status_except.

set pf_status excluding gtUstatus.

now in this case both will be deactivated

regards,

Venkatesh

Former Member
0 Kudos

Hi,

use like:

DATA: ITAB TYPE TABLE OF CHAR5.

SET PF-STATUS <UR STATUS> EXCLUDING ITAB

WHERE ITAB CONTAINS THE FUNCTION CODE FOR YOUR PUSH BUTTON.

Regards,

Renjith Michael.