Skip to Content
0
Aug 06, 2013 at 09:41 PM

Deactivate the attachments using SGOS for unauthorized users

680 Views

Hi,

We have a requirement to restrict Some users from displaying and creating the attachments.

We have created 2 custom classes which inherit the below standard classes.

CL_GOS_SRV_ATTACHMENT_LIST

CL_GOS_SRV_ATTACHMENT_CREATE

Then the method "check_status" in both class is changed to deactivate the attachment.

Also the changes are done in transaction "SGOS"

PCATTA_CREA Active Z_GOS_SRV_ATTACHMENT_CREATE

VIEW_ATTA Active Z_GOS_SRV_ATTACHMENT_LIST

Sample source code of both class methods are attached for your reference.

The attachment is deactivated for unauthorized users as per requirement.

The authorized users can see and create the attachments in FB02, ME22N.

However for transaction FBL5N when user tries to add the attachment system gives message as attachment saved. but when the user saves the record and comes out of the transaction then in display mode the attachment is not visible.

Could you please guide us what changes are required for this ?

Thanks in advance.

Gaurav

Attachments