Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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.

10 REPLIES 10

Former Member
0 Kudos

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

0 Kudos

yes it is still there. But what i mean is that even if i did uncheck the "act 61" or i unchecked all activities, the user could still export to local file. It seems S_GUI doesnt have any effect on what I want to restrict.

Thanks for the quick response anyway

0 Kudos

Probably what you are looking for is "activity 04" (print to...) for the application objects, but also try taking all of their digital camera's away from them?

Cheers,

Julius

0 Kudos

Per my knowledge, ....... well none of the BPO's, KPO's ....... allow digital camera or mobile phone with camera in work premises.

my 2 cent

0 Kudos

yes you are right.

checked again, issue is that this check is applied only on ALV ......

not sure why not on simple list......

regards,

Surpreet

is there any way we can restrict only ALV is displayed.........

Edited by: Surpreet Singh Bal on Oct 15, 2010 3:28 PM

Edited by: Surpreet Singh Bal on Oct 15, 2010 3:29 PM

0 Kudos

Hi,

Am I getting the concept of the object S_GUI correct? while i want to restrict the user from exporting data to output file, i added the object S_GUI to the role then leave the activity 61 which is export as unchecked. I did that but the export is still available.

I also wanted to restrict users from printing docs.. could you help me with what object to use?

Thanks for the response

0 Kudos

my 2 cent

I have a photographic memory, so I raise the bets by 2 cents more and would like to see your print documents...

Cheers,

Julius

0 Kudos

Hi, can you further explain what that ALV thing is? I still cannot restrict the download to localfile through S_GUI.

Do you think there's something I have to activate in SPRO?

Thanks in advance!

0 Kudos

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

former_member569532
Participant
0 Kudos

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.