Skip to Content
avatar image
Former Member

SetSilent Method Error

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

Exception.png (35.8 kB)
ScriptCode.png (18.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Jan 05, 2015 at 09:18 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

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