‎2010 Aug 16 12:22 PM
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..
‎2010 Aug 16 1:05 PM
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
‎2010 Aug 16 12:26 PM
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.
‎2010 Aug 16 12:45 PM
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
‎2010 Aug 16 1:05 PM
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
‎2010 Aug 16 2:19 PM
Can anyone provide me with the function codes of :
2. Check Input
3. Save as Variant
‎2010 Aug 16 2:22 PM
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