cancel
Showing results for 
Search instead for 
Did you mean: 

How to block attachment deletion in a DMS document

Former Member
0 Kudos

Hi gurus,

Does anybody knows how to block some users to delete the attachment in some DMS types? Is there any configuration that can be done to control this?

Many thanks!

Renan

Accepted Solutions (0)

Answers (2)

Answers (2)

christoph_hopf
Advisor
Advisor

Hi Renan,

in the standard each user who is able to edit the document info record (enter CV02N) is able to delete the attached originals.

However a user is not able to delete originals if the document is set to a status of status type 'S' (locked status). Within this kind of status it is not possible to delete originals and change some other document data.

So you can also try to create a authorization profile where some users are only allowed to enter document info records with a non-locked status. So you avoid that some users are able to enter document info records which are not set to a locked status.

For this please see the WIKI page under https://www.sdn.sap.com/irj/sdn/wiki?path=/display/plm/caDMS-AuthorizationObjects where you will find all the existing DMS authorization objects.

Maybe object C_DRAW_TCS or C_DRAW_TCD could be useful for this issue.

Best regards,

Christoph

P.S.: Please reward points for useful information

barca23
Explorer
0 Kudos

Hello,

You can use the method D101_BEFORE_PAI of the definition DOCUMENT_MAIN02 to include your code in order to avoid the deletion of the attachment.

Kind regards,

Pelaez Lopez Philippe