cancel
Showing results for 
Search instead for 
Did you mean: 

DMS dobt on statuses

Former Member
0 Kudos

Hello Team,

How to set a status which can prevent a department from downloading a document.

Actually a status is required which customer wants to set which will prevent the other person from downloading the documents available in the same.

I checked with lock status but its not working, it will block all the fields but allows to download the document.

regards,

sai

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member188883
Active Contributor
0 Kudos

Hi,

To achieve your requirement, in the authorization profile for the authorization object C_DRAW_DOK, give the value 53 - Display application start only for the filed ACTVT(Activity) for the particular document type.

By providing this you would be able to read the original and unable to save as the original.

Alternatively, you can use the Badi "DOCUMENT_STORAGE01" and in the method "BEFORE_CHECKOUT" add following code.

IF SY-TCODE = 'CV02N'

OR SY-TCODE = 'CV03N'.

IF SY-UCOMM EQ 'F_CHANGE'

OR SY-UCOMM EQ 'F_SHOW'

OR SY-UCOMM EQ 'F_ATTR'

OR SY-UCOMM EQ 'F_IMPORT'

OR SY-UCOMM EQ 'F_IMP_AS'

OR SY-UCOMM EQ 'F_BROWSE'

OR SY-UCOMM EQ 'F_DELETE'.

ELSE.

MESSAGE i899(MM) WITH 'You are not authorized to perform this action' RAISING cancel.

ENDIF.

ENDIF.

ENDIF.

This code will block using copy button. For display, user need to select the original and press display button.

I have restricted based on T.Code CV02N/CV03N. You can add your own validations.

Hope this helps.

Regards,

Deepak Kori