Skip to Content
author's profile photo Former Member
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

PFA the screen shot of the error and code.



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

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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;
    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.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.