cancel
Showing results for 
Search instead for 
Did you mean: 

Set Initial ACL authorization in easyDMS folder

stefan_neumann2
Explorer
0 Kudos

We are using ACL functionality in easyDMS and it's working properly.

We need to set an initial authorization in case of creating a folder (doctype FOL) as described in discussion

 

http://scn.sap.com/thread/657747

I implemented FM 'CVAUTH_SET_INITIAL_AUTH' and ' CVAUTH_SET_AUTHORIZATIONS' in Badi DOCUMENT_AUTH01.

But the authorization set here is overwritten afterwards by SAP Standard, so it's not working.

At which place do we have to set initial authorization ?

Attached you can see the coding in Badi DOCUMENT_AUTH01.

Accepted Solutions (1)

Accepted Solutions (1)

christoph_hopf
Advisor
Advisor
0 Kudos

Dear Stefan,

from my point of view maybe the method AFTER_SAVE or BEFORE_SAVE in BADI DOCUMENT_MAIN01 would be a place to put your logic for initial ACL.

Another useful BADI could be EASYDMS_MAIN01.

Best regards,

Christoph

stefan_neumann2
Explorer
0 Kudos

OK, I was successful with DOCUMENT_MAIN01/AFTER_READ_DATA

Answers (1)

Answers (1)

0 Kudos

Hi Gents, I've had a few attempts to do this using the Document BAdi's and never got it quite right but I just had success using DOCUMENT_MAIN01 method BEFORE_SAVE.  I'm still testing it but I called:

Check for a buffered value as used by the GUI but not EasyDMS.

CVAUTH_LOOKUP_DOCREFBUFFER

If no buffered value

CVAUTH_SET_INITIAL_AUTH

CVAUTH_LOOKUP_DOCREFBUFFER

CVAUTH02_CREATE