cancel
Showing results for 
Search instead for 
Did you mean: 

SetSilent Method Error

Former Member
0 Kudos

Hi SAP experts,

 

I have an issue wherein I am
facing a problem , The issue is that the script I have written at pre-phase
change target for Contract documnet class, when the phase changes for approval
( Endorserment Phase) , the Document has a collbaorator called Endorser , who
has to approve the documnet, the document gets locked. Aftre approval, when I
am moving the Phase to any other phase , I need to set the  the
collaborator Endorser to silent , I tried this by calling setSilent() method in
the script , when the phase is chaged from Endorsemnet to any other phase, the
method is invoked successfully when I am calling it with other_Phase variable,
but when I try to invoke the method by capturing the current Phase from the
session , it throws me an exception due to which I am unable to setSilent to
true for the collaborator. Can you please help me understand the reason for
this.

PFA the screen shot of the error and code.

Regards,

Isha

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Isha,

Here are few tips that can help you:

  1. Try to add this import statement at the top of your code: import com.sap.odp.api.doc.collaboration.CollaboratorIBeanIfc;
  2. Instead of using "setSilent(true);", kindly use "setSilent(Boolean.TRUE);"

if still you are facing the same issue then kindly share the complete code.

Regards,
Alaap

Former Member
0 Kudos

Thanks, I have already tried this approach but I am still getting the same error. Is there any other solution anyone can suggest

Answers (0)