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

GUI-status disable button?

Former Member
0 Likes
8,498

Hi,

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

tnx.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,780

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
Read only

Former Member
0 Likes
3,780

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

Read only

Former Member
0 Likes
3,780

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.

Read only

Former Member
0 Likes
3,780

hii

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

regards

twinkal

Read only

Former Member
0 Likes
3,781

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

Read only

Former Member
0 Likes
3,780

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.

Read only

0 Likes
3,780

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

Read only

0 Likes
3,780

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

Read only

0 Likes
3,780

Hello Everyone,

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

Thank you a lot.