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: 

deactivate the button(function) on pf-status dynamically

shiva_suvarna
Participant
0 Kudos

Hello friends

i want to activate/deactivate the button on a pf-status dynamically .

i want to do it with only one pf-status .

if anybody know please help me

thanks in advance

1 ACCEPTED SOLUTION

former_member214131
Active Contributor
0 Kudos

Hello,

Check out Online documentation for:

SET PF-STATUS pfstat ... EXCLUDING f or ... EXCLUDING itab

There are other variants with exaample code.

Hope this helps you.

Regards, Murugesh AS

7 REPLIES 7

former_member214131
Active Contributor
0 Kudos

Hello,

Check out Online documentation for:

SET PF-STATUS pfstat ... EXCLUDING f or ... EXCLUDING itab

There are other variants with exaample code.

Hope this helps you.

Regards, Murugesh AS

0 Kudos

with excluding option it will totally exclude that button it won't show on the pf-status.

my requirement is i just want to disable or enable that function dynamically

0 Kudos

Hi,

There's a standard way to do that. When you Create / Edit a GUI status in the Menu Painter, you can choose whether you want the disabled function codes to be hidden or to be displayed as grayed out.

Follow the menu path <b>Goto>Attributes>Pushbutton Assignment</b>. You will get a pop-up with three options. The default option is <b>Hide all</b>. Just choose <b>Display all</b> on this pop-up and activate the GUI status. Your functionality is achieved.

If this helps, please reward the points and close the thread. Otherwise, please get back with the problem you might be facing in doing so.

Regards,

Anand Mandalika.

0 Kudos

hi poornanad

thanks for cooperating but i think i am not explaining u clearly .

see, in standard ABAP editor if i change the the mode to chage from display using display<->change button then

then pattern button will be enabled

and if i switched to display mode then pattern button will be disabled

my reqirement is also exactly the same thing

as u said in the last reply the button is disabled at every time.

0 Kudos

Hi,

I think you have not tried the solution I told you. It will do exactly as you want...

In the PBO, when you use SET PF-STATUS ...EXCLUDING, the buttons which you are trying to exlcude will become disabled when you follow the above instructions.

Otherwise, they will just disappear.

Regards,

Anand Mandalika.

0 Kudos

it was solved thanku i have given u the points

0 Kudos

How you solve the problem?

I have the same problem: when I push change button the save button have to display, and when I push again the change button, the save button have to hide.