Professional Documents
Culture Documents
Technical Document
DOCUMENT INFORMATION
DOCUMENT HISTORY
SAP Implementation
Page 2 of 6
1 Authorization Objects:
Z_DOC_CRE is created with fields DOKAR (Document Type) and ACTVT (Activity).
To create documents under ‘Credit Risk’ Folder (Z17 Document Type), Authorization
for Z_DOC_CRE with DOKAR = ‘Z17’ and ACTVT = ‘01’ is needed.
2.1 ZEASYDMS_MANI01
2.1.1 GETURL
This method is triggered when ‘Send URL’ or ‘Copy URL’ is selected in Easy DMS.
Code:
method IF_EX_EASYDMS_MAIN01~GETURL.
endmethod.
2.1.1 GETDOCTYPES
In Our Implementation, We are using this method to check if user is authorized to create
document in that particular folder.
Code:
SAP Implementation
Page 3 of 6
method IF_EX_EASYDMS_MAIN01~GETDOCTYPES.
endmethod.
2.1.3 CHECK_DELFOLDER
In Our Implementation, We are using this method to check if user is authorized to delete
folder created by others.
Code:
METHOD if_ex_easydms_main01~check_delfolder.
IF sy-subrc EQ '0'.
SELECT SINGLE dwnam FROM draw INTO lv_user WHERE dokar = iv_dokar
AND doknr = iv_doknr
AND doktl = iv_doktl
AND dokvr = iv_dokvr.
IF lv_user EQ sy-uname.
ev_has_auth ='X'.
ELSE.
ev_has_auth = space.
ENDIF.
ENDIF.
IF ev_has_auth = space.
AUTHORITY-CHECK OBJECT 'Z_DOC_DEL'
ID 'CLASS' DUMMY
ID 'ACTVT' FIELD '06'.
IF sy-subrc EQ 0.
ev_has_auth ='X'.
ENDIF.
ENDIF.
ENDMETHOD.
SAP Implementation
Page 4 of 6
2.2 ZEASYDMS
Implementation Class: ZEASYDMS
Implementation Method: MASS_DELETE_DOCUMENTS
In Our Implementation, We are using this method to check if user is authorized to delete
folder created by others.
Code:
LOOP AT DOCUMENTSTRUCTURE INTO WA_DOCUMENTSTRUCTURE.
IF sy-subrc EQ '0'.
SELECT SINGLE dwnam FROM draw INTO lv_user WHERE dokar = WA_DOCUMEN
TSTRUCTURE-DOCUMENTTYPE
AND doknr = WA_DOCUMEN
TSTRUCTURE-DOCUMENTNUMBER
AND doktl = WA_DOCUMEN
TSTRUCTURE-DOCUMENTPART
AND dokvr = WA_DOCUMEN
TSTRUCTURE-DOCUMENTVERSION.
IF lv_user ne sy-uname.
AUTHORITY-CHECK OBJECT 'Z_DOC_DEL'
ID 'CLASS' DUMMY
ID 'ACTVT' FIELD '06'.
if sy-subrc ne 0.
RETURN-TYPE = 'E'.
RETURN-
MESSAGE = 'You can not delete documents created by Others'.
endif.
ENDIF.
ENDIF.
3 Function Modules:
Below function Modules are created in function group ZEDMS for EXPORT Folder
Functionality as per Note 6940603.
SAP Implementation
Page 5 of 6
Note 694603 -
Enhancement module Z_EASYDMS_FOLDER_EXPORT.pdf
3.1 Z_EASYDMS_CREATEDIRECTORY
3.2 Z_EASYDMS_FOLDER_EXPORT
SAP Implementation
Page 6 of 6