on 12-29-2010 3:36 PM
Hello all gurus,
in SRM 7, my requirement is to check when a new document (contract or purchase order) satisfies certain conditions w.r.t. the user that is currently trying to access it; the user should belong to the same purchase unit of the document, otherwise an error message should prompt immediately saying that "the user cannot modify the document". (off course, in this case also related buttons for modifications are disabled). This message is a persistent one, so it remains on the message top even if the user navigate (in display mode) the document.
I tried to do that enhancing WDDOINIT and it works. I tried also a post-exit of WDDOMODIFYVIEW when FIRST_TIME = 'X': it worked too. The two alternatives seems to be equivalent. BUT... there's a problem when the user tries to copy the document.
When the document is copied, the copy has the purchase unit set by default to the value of the user.
So, a new check should be done and the message should not appear anymore.
But when a copy (which is standard) is done, how can I understand it in WDDOMODIFYVIEW or in WDDOINIT?
I hoped to get a FIRST_TIME = 'X' again, but that's not the case.... FIRST_TIME is blank after the copy's done.
Waiting for your help and suggestions,
best regards
Matteo
Solved with a workaround.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.