2013 Aug 06 10:41 PM
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
2013 Aug 07 12:34 AM
Hi,
Have you checked the various notes pertaining to the GOS related authorization objects. Might help you achieve it via them. Check the link below, the point 4 deals with authorization specific notes.
Cheers,
Arindam
2013 Aug 07 6:51 AM
2013 Aug 07 7:01 AM
Hi Gaurav,
go in transaction OAC3, try to find your FBL5n (must be a BKPF entry), in the column link you will find the table that store this link, maybe TOA01 (the default one).
Look inside the table TOA01 if you could find your document with object type, doc type and the key of the table
regards
Fred
2013 Aug 07 7:42 AM
Hi,
Table TOA01 does not contain entry for my document.
I removed my custom code and attached the file. Attachment was success but still there is no entry in this table and i can see the attachment.
I noticed that the class CL_GOS_SRV_ATTACHMENT_CREATE is creating the problem.
In SGOS i removed my custom class and placed the standard CL_GOS_SRV_ATTACHMENT_CREATE. In this case also the attachments are not created.
Could you please suggest ?
Thanks
Gaurav
2013 Aug 16 3:30 PM
There is a check box 'commit required' in Tcode SGOS. we had missed it. after checking it documents were getting saved.