Application Development and Automation 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: 
Read only

Customizing object services toolbar

Former Member
0 Likes
942

In transaction QA02 there´s a object services toolbox, in service "atachment list" the list of the documents

appendend to the object is displayed and show a toolbar. I need deactivate button "delete" (some users can't delete documents).

I found information about how customize object services (http://help.sap.com/saphelp_nw04/helpdata/en/15/7b623c28695c63e10000000a11405a/frameset.htm) but not the toolbar that appear.

Any suggest.

thanks and regards

Laura

4 REPLIES 4
Read only

naimesh_patel
Active Contributor
0 Likes
683

You can retrict the "DELETE" functionality in the GOS toolbar by authorization object S_OC_ROLE.

Your security consultant can restrict the authorization by using this authorization object.


* for allowing delete
    AUTHORITY-CHECK OBJECT 'S_OC_ROLE'      
                    ID     'OFFADMI'        
                    FIELD  'ADMINISTRATOR'. 

Regards,

Naimesh Patel

Read only

0 Likes
683

Thanks Naimesh! I will comment whit my consultant. ¿He only has to assing authorization object? ¿I must write some code?.

Regards

Read only

0 Likes
683

No code is required.

Your Security consultant can assign this object to the Users and don't give them the ADMINISTRATOR value.

Regards,

Naimesh Patel

Read only

0 Likes
683

Hello Naimesh,

I have exactelly the same problem as Laura. I also already know the authorization object S_OC_ROLE. The problem is: if you assign the object to a user, he is no longer able to delete attachments of other people, but he still can delete own attachements. I'm looking for a solution to allow only creating attachments, but no deleting. Do you have a hint how I can handle this?

Best regards,

Michael