LinkedIn
RSS

Hide functions in reports

Have you ever need that your program don’t show the execute button, or background execution option, or even the variant selection option?

You can do it but declaring this info:

REPORT bla bla bla.

….
*- Data declaration
DATA gt_exclude                TYPE TABLE OF rsexfcode.
DATA gs_exclude                TYPE rsexfcode.

INITIALIZATION.
*- Hide options
gs_exclude-fcode  = ’ONLI’. ”Hide execute
APPEND gs_exclude TO gt_exclude.
gs_exclude-fcode  = ’PRIN’. ”Hide Print+Execute
APPEND gs_exclude TO gt_exclude.
gs_exclude-fcode  = ’SJOB’. ”Hide Execute in backgroun
APPEND gs_exclude TO gt_exclude.
gs_exclude-fcode  = ’GET’. ”Hide Call variant
APPEND gs_exclude TO gt_exclude.
gs_exclude-fcode  = ’VSHO’. ”Hide Show variant
APPEND gs_exclude TO gt_exclude.
gs_exclude-fcode  = ’VDEL’. ”Hide Delete variant
APPEND gs_exclude TO gt_exclude.
gs_exclude-fcode  = ’SPOS’. ”Hide Save as Variant
APPEND gs_exclude TO gt_exclude.

*- Do it!
CALL FUNCTION ’RS_SET_SELSCREEN_STATUS’
EXPORTING
p_status  = ’%_00′
p_program = sy-repid
TABLES
p_exclude = gt_exclude.


Leave a Reply