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: 

GUI-status disable button?

Former Member
0 Kudos

Hi,

How to disable an button on my gui-status MAIN?

tnx.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

You can use the following command:

DATA: it_buttons TYPE STANDARD TABLE OF sy-ucomm,
          wa_buttons TYPE sy-ucomm.

wa_buttons = 'SAVE'.

APPEND wa_buttons TO it_buttons.

SET PF-STATUS 'ABC' EXCLUDING it_buttons.

Screen will have the button disabled having F-CODE 'SAVE'.

Regards,

Kunjal

8 REPLIES 8

Former Member
0 Kudos

goto the pf-ststus of the program and remove the button..

Former Member
0 Kudos

Hello,

Include the GUI Status of the main selection screen program in you report.

There you can disable which ever button you want.

Thanks.

Swati.

Former Member
0 Kudos

hii

refer to following link for disable button.or search in SDN forum.

regards

twinkal

Former Member
0 Kudos

Hi,

You can use the following command:

DATA: it_buttons TYPE STANDARD TABLE OF sy-ucomm,
          wa_buttons TYPE sy-ucomm.

wa_buttons = 'SAVE'.

APPEND wa_buttons TO it_buttons.

SET PF-STATUS 'ABC' EXCLUDING it_buttons.

Screen will have the button disabled having F-CODE 'SAVE'.

Regards,

Kunjal

Former Member
0 Kudos

Hi,

Use 'EXCLUDING' addition with 'SET PF-STATUS' statement.

Just declare a internal table with single field of length minimum of 20 characters.

Append all the function code of whatever button you want to disable to this internal table.

set pf-status 'PF' excluding GT_UCOMM.

Regards,

R.Nagarajan.

0 Kudos

thanks guys,

but WHERE do i have to say

set pf-status 'PF' excluding GT_UCOMM.

in the initialization part ? i have tried, but it does not work

reg, Martini

0 Kudos

Describe exactly what you want..? do you have any status on your screen, is it a module pool or Executable..program

0 Kudos

Hello Everyone,

I tried the solution of Kunjal Patel and it works very well.

Thank you a lot.