Skip to Content
PLM Document Management System (DMS)

Report to remove ACL permission

Tags:

Hi!

Since the new ACL permission tab in DMS is available it might happen that some users create an accidental ADMIN permission for their userID. With such an authorization entry other users are no longer able to access the affected document info records. Due to the standard system design it is also not possible to remove such initial ADMIN authorizations again. Therefore the following report could be used for removing such unwanted ACL permissions again:

*&---------------------------------------------------------------------*

*& Report  Z_ACL_DELETE_FOR_DIS

*&

*&---------------------------------------------------------------------*

*&

*&

*&---------------------------------------------------------------------*

REPORT  Z_ACL_DELETE_FOR_DIS.

TABLES: draw.

DATA: lt_draw   TYPE draw  OCCURS 0 with header line.

WRITE:/1 'LIST OF DIRs WITH ACLs DELETED' COLOR COL_HEADING INTENSIFIED ON,

      /2 '          DIR KEY                   ' COLOR COL_HEADING.

SELECTION-SCREEN BEGIN OF BLOCK dms_block10 WITH FRAME TITLE text-001.

SELECT-OPTIONS: s_dokar FOR draw-dokar MEMORY ID cv2,

                s_doknr FOR draw-doknr,

                s_doktl FOR draw-doktl,

                s_dokvr FOR draw-dokvr.

SELECTION-SCREEN END OF BLOCK dms_block10.

SELECT * FROM draw INTO TABLE lt_draw

    WHERE dokar IN s_dokar AND

          doknr IN s_doknr AND

          doktl IN s_doktl AND

          dokvr IN s_dokvr.

LOOP AT lt_draw.

Delete from DMS_GUID where dokar = lt_draw-dokar and doknr = lt_draw-doknr

and doktl = lt_draw-doktl and dokvr = lt_draw-dokvr.

if sy-subrc = 0.

write:/ lt_draw-doknr,lt_draw-dokar ,lt_draw-dokvr, lt_draw-doktl.

endif.

ENDLOOP.

Please note that this report should not be used by all users in a system. Maybe this coding can be used to create a special transaction where only system admins have access to.

No comments