SAP KD

Archives

March 26, 2010 @ 12:15 am

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.

VN:F [1.9.3_1094]
Rating: 5.0/5 (1 vote cast)
VN:F [1.9.3_1094]
Rating: +1 (from 1 vote)
Hide functions in reports, 5.0 out of 5 based on 1 rating

Filed under BC - ABAP

1 Comment »

  1. Posted by Lucho

    May 24, 2010 @ 8:50 pm

    Nice…

    so simple…

    Just what I was looking for…

    VA:F [1.9.3_1094]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.3_1094]
    Rating: 0 (from 0 votes)

RSS feed for comments on this post · TrackBack URI

Leave a Comment

About

The absolute best damn Wordpress Gallery on the net. ArenaWP is the sandbox for various designs by Terry Ng of Kineda.
Read More

Social

Subscribe by email:

Delivered by FeedBurner

Pages

  • Loading...


    Loading...

    Login






    Register | Lost password?



    Register





    A password will be mailed to you.
    Log in | Lost password?

    Retrieve password





    A confirmation mail will be sent to your e-mail address.
    Log in | Register
  • Calendar

    March 2010
    M T W T F S S
    « Aug   Apr »
    1234567
    891011121314
    15161718192021
    22232425262728
    293031  

    Sap Websites

    Recent Posts

    Categories

    Disclaimer

    SAP and the SAP logo are registered trademarks of SAP AG. SAPKD.com is a personal blog and is not affiliated with SAP or other companies mentioned here. I capture the things I learn that might be helpful to others here. No warranties on the information provided are offered or implied. Please feel free to use at your own risk