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

selection screen window

Former Member
0 Likes
1,402

Hi all..

I have report program in which i am calling a selection screen as window. By default four buttons are coming namely

1. Execute

2. Check Input

3. Save as Variant

4.Cancel

I want to keep the 1st and 4th button and i want to remove the other two....

Can u plzz suggest me a method.. of deactivating them..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,014

Hi Sanju,

Refer the below code snippet. Its pretty clear.

AT SELECTION-SCREEN OUTPUT.
  DATA itab TYPE TABLE OF sy-ucomm.
  gv_repid = sy-repid.

  IF sy-dynnr = 9900.
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
         EXPORTING
              p_status  = 'STATUS'
              p_program = gv_repid
         TABLES
              p_exclude = itab.
  ENDIF.

Here ITAB contains the option you want to exclude.

Regards

Abhii

5 REPLIES 5
Read only

Former Member
0 Likes
1,014

Hi,

You can copy GUI interface of you report program in ZSTATUS & then use this ZSTATUS in your program & you can delete the buttons from SE41 transaction.

Read only

MarcinPciak
Active Contributor
0 Likes
1,014

You can use standard FM RS_SET_SELSCREEN_STATUS to change sel.screen status or deactivate some functions. Refer [this|http://help.sap.com/saphelp_46c/helpdata/en/e7/0eb237e29bc368e10000009b38f8cf/frameset.htm].

Regards

Marcin

Read only

Former Member
0 Likes
1,015

Hi Sanju,

Refer the below code snippet. Its pretty clear.

AT SELECTION-SCREEN OUTPUT.
  DATA itab TYPE TABLE OF sy-ucomm.
  gv_repid = sy-repid.

  IF sy-dynnr = 9900.
    CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'
         EXPORTING
              p_status  = 'STATUS'
              p_program = gv_repid
         TABLES
              p_exclude = itab.
  ENDIF.

Here ITAB contains the option you want to exclude.

Regards

Abhii

Read only

Former Member
0 Likes
1,014

Can anyone provide me with the function codes of :

2. Check Input

3. Save as Variant

Read only

0 Likes
1,014

Hi Sanju,

On the selection screen just enter '/h' in the command field & click on the button for which you want to know the function code, as soon as it goes into debug mode, just check the value of the system field 'SY-UCOMM'

This solves your question.

Regards

Abhii