on 11-21-2011 6:22 PM
Hi,
Is there any settings to automatically disable the Trashcan/Delete Icon on Contract Document Tab, when document reaches EXECUTED phase?
If I write script to lock the same, what will be the field id? I tried using DELETE but it didnt work.
Thanks,
Saloni
Hi Saloni ,
When the contract Document is in Executed phase ,the Delete/Trash Icon is disabled when I have the following values in System Administrator Security Profile for Contract Generation Access rights: I have Tested it . Pls create new contract and Check once!.
Create Allow
View Allow
Edit Allow
Delete Not Set (I guess you have put Deny here)
Administrative Delete Not Set
Purge Not Set
Import Allow
Hope it Helps ,I am working on Sourcing 7.0 SP1. On which Version you are working?..
(When you are checking , Inactive the related script Definitions)
Regards,
Uday.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I dont think this is a version issue. I too am using version 5.1 SP09 and certain users have Delete capability and some dont.
Here are the couple of things you should try:
In Security profile for that group or user pull up the Access rights tab. In Business document, change the Business document mover profile to Deny.
Then goto page 2 and under master agreement, set the document delete to Deny.
Let me know if applying both the above works for you. If it still doesnt, please raise an OSS message and have them take a look. I am sure SAP would be able to help you.
Thanks,
Vikram
Saloni,
I am not sure about the automatic disabling of the Delete icon but we had a requirement wherin we were supposed to prevent Documents --> Cancel of a MA if Contract document was in the Executed phase. Maybe this can give you some idea.
Scripting Context: Document Lifecycle Event
External ID:CUSTOM-ValidateMAChecks
Class: Master Agreement(1004)
Target: Validated
// Create an instance of class ApplicationException for error handling purposes
ApplicationException ae = new ApplicationException();
// Declare variables
// "CTR_IS_RELEASED" is an OOB field.
ctrIsReleased = doc.getExtensionField("CTR_IS_RELEASED").get();
// If contract is executed i.e. CTR_IS_RELEASED checkbox is checked and document is
// canceled via toolbar then do not allow cancellation and raise exception.
if(doc.isCancelled() @and ctrIsReleased)
{
// Chain a new application exception
ae.chainAtEnd(doc.createApplicationException("CTR_IS_RELEASED","xxx.executedagreement_cancel"));
}
Hope this helps,
Vikram Shukla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.