Skip to Content
0
Apr 07, 2014 at 12:38 PM

Hiding the Print Button in the Selection Screen

241 Views

Dear Experts,

I Have a requirement to Hide the Standard Buttons in the Selection Screen,

By Using the Following Link: http://scn.sap.com/thread/1101883 I got the Solution

Here is the Code :


DATA: it_ucomm TYPE TABLE OF sy-ucomm.

PARAMETERS: carrid TYPE sflight-carrid.

AT SELECTION-SCREEN OUTPUT.

APPEND :

'PRIN' TO it_ucomm, "for print

'SPOS' TO it_ucomm,

'ONLI' TO it_ucomm, "for execute

'ECAN' TO it_ucomm. "for cancel

CALL FUNCTION 'RS_SET_SELSCREEN_STATUS'

EXPORTING

p_status = sy-pfkey

TABLES

p_exclude = it_ucomm.

Q1. In the above code How can we Get the User Command 'PRIN' for Print.

Q2. If i try to Debug the FM: RS_SET_SELSCREEN_STATUS the Control is not going into the FM.