Skip to Content
avatar image
Former Member

How to restrict users from printing documents and exporting to local file

Hi SAP gurus,

I have two questions.

1. How can I restrict users from printing a document? i.e. billdoc? I would like to know if I could block it though authorization. If yes, what auth obj to use?

2. How to restrict certain users from exporting to local file? the System > List >Save-->Local File. I have tried restricting it using auth object S_GUI but it seems it is only applicable to older versions of SAP. im on ecc6.

Thank you in advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 15, 2010 at 09:33 AM

    checked ECC6 and below check is still there

    authority-check object 'S_GUI'

    id 'ACTVT' field '61'.

    please re-check your role for this object

    regards,

    Surpreet

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      Check this:

      Create your own gui status and attach it to the list in the event START-OF-SELECTION.

      In the menu painter extra -> adjust template.

      Make it a list status and you will see all the standard list options appear including list->download

      Deactivate the ones you don't want.

      If you just want to prevent users from downloading the list you can achieve this with authorization object S_GUI, activity 61. Menu option will still be there though.

      Please note that if you remove authorisation for S_GUI activity 61 then all downloads will not be possible.

      If you just want to disable downloads only for a particular report, you can try this test program:

      Code:

      REPORT ztest.

      DATA: PROGNAME LIKE SY-CPROG value 'Z_CHECK_AUTH',

      FORMNAME LIKE SY-XFORM value 'F_CHECK_AUTH'.

      START-OF-SELECTION.

      CALL FUNCTION 'SET_DOWNLOAD_AUTHORITY'

      EXPORTING

      FORM = FORMNAME

      PROG = PROGNAME

      EXCEPTIONS

      OTHERS = 1.

      WRITE: / 'TEST'.

      You also need this:

      Code:

      PROGRAM z_check_auth.

      FORM f_check_auth USING pe_result TYPE i.

      pe_result = 5.

      ENDFORM.

      Also have a look at the exit SGRPDL00.

      Hope this helps you.

      Rgds,

      Raghu

  • Jun 11, 2012 at 07:39 AM

    Hi Experts,

    I also need to disable print and save from list of system menu in abap report,i am confused of how to use s_gui ans s_apo_dev authorisation objects.I am cheching them in start-of-selection but no use.

    Can any one tell me the way to use these authorisation objects in my program.

    Add comment
    10|10000 characters needed characters exceeded