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

Disable selection screen application toolbar button

Former Member
0 Likes
2,275

Hi All,

Could you please let me know how to hide or disable application toolbar pushbuttons in the selection screen default screen 1000??

Thanks & regards,

Santhosh

8 REPLIES 8
Read only

Former Member
0 Likes
1,645

HI Santosh,

use PF_STATUS.

Regards,

Vijay

Read only

Former Member
0 Likes
1,645

Hi,

To hide the push buttons on the application tool bar of your screen, you can declare one internal table and workarea of char10.

Suppose you have confirm, detail push bottons on the screen with code CONF and DETL then you can write following code:

wa_exclude = 'CONF'.

APPEND wa_exclude to it_exclude.

wa_exclude = 'DETL'.

APPEND wa_exclude to it_exclude.

Set PF-STATUS pf_status EXCLUDING it_exclude.

Thanks,

Shobhit

Read only

0 Likes
1,645

Hi Shobit,

Its not working....

Any other suggestion please..

Thanks & regards,

Santhosh

Read only

0 Likes
1,645

Hi

Use the fm RS_SET_SELSCREEN_STATUS

Max

Read only

0 Likes
1,645

Goto SE11 transaction. Provide any table name and click on display button. Select "Table of Contents" button.

Now whatever the screen displayed is generated with selection screens. Check the generated code. You can get the program name from the bottom right side corner of the screen. Check the code. You may get some clue.

Read only

Former Member
0 Likes
1,645

Hi

Check this link.

It may help you.

Thanks.

Read only

Former Member
0 Likes
1,645

Hi,

Check Marcin's reply in the following link.

[]

Read only

venkat_o
Active Contributor
0 Likes
1,645

Hi, Try this way.

"Create table for function codes
DATA: it_exclude TYPE TABLE OF sy-ucomm.
"
PARAMETERS: r1 RADIOBUTTON GROUP gr1 USER-COMMAND uco1,
            r2 RADIOBUTTON GROUP gr1.

INITIALIZATION.
  "Create two buttons with function codes FCODE1 and FCODE2.
  SET PF-STATUS 'MY_GUI'.

AT SELECTION-SCREEN OUTPUT.
  IF r1 = 'X'.
    APPEND 'FCODE1' TO it_exclude.
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
      EXPORTING
        p_status  = 'MY_GUI'
      TABLES
        p_exclude = it_exclude.
  ELSE.
    REFRESH it_exclude.
  ENDIF.
Thanks Venkat.O