cancel
Showing results for 
Search instead for 
Did you mean: 

Master Agreement - Update Status

Former Member
0 Kudos

ESO Experts,

I am trying to change the status(VLV and non-editable) of Master Agreement on a certain condition by using the following code.

statusHome = IBeanHomeLocator.lookup(session, doc.getStatusRef());

status = statusHome.findUniqueByNameType("Executed", 1);

doc.setStatusRef(status.getLocalizedObjectReference());

But after executing the script the status is showing as blank. Appreciate if you can provide your comments on this.

Best Regards,

Adarshpal Brar

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Adarshpal,

Your code looks ok to me. Have you checked the logs for any errors? You may want to check if the status variable is what you are expecting. I would suggest writing it to the log to troubleshoot.

Regards,

Vikram