cancel
Showing results for 
Search instead for 
Did you mean: 

ResultList.SUPPRESS in Java code is not working as expected

Former Member
0 Kudos

Hi,

My scenario demands in writing a Java code to handle the queues which is very complex to explain. But please understand that I need to write Java code and in brief to explain, If I get SUPPRESS from the queue then I need to pass some value otherwise I need to pass another value. But I noticed that there two types of SUPPRESS, one is grey and other is flouroscent green coloured. I need to use grey SUPPRESS.

Can you pl. help me?

Right Now I am writing the code as follows:

for (int i=0;i<dd10.length; i++)

{

if( dd10<i>.equals(SUPPRESS))

{

result.addValue(dd10<i>);

}

else

{

if (ddh3[j].equals("true"))

{

result.addValue(dd10<i>);

}

else

{

result.addValue(dd10[1]);

i++;

}

j++;

}

}

Thanks & Regards,

Vijay

Accepted Solutions (0)

Answers (4)

Answers (4)

justin_santhanam
Active Contributor
0 Kudos

Vijay,

Please find the below URL's for reference.

Grey -Suppressed: Actually its not suppresses its context change

http://www.flickr.com/photo_zoom.gne?id=798590221&size=o

Green-Suppressed

http://www.flickr.com/photo_zoom.gne?id=798590229&size=o

Now according to ur requirement, the code must be written as below.

For Grey : example.equals("__cC_");

For Green :example.equals("_sUpPresSeD_");

I hope it helps you!!

Best regards,

raj.

henrique_pinto
Active Contributor
0 Kudos

Then it's not a SUPRESS entry, it is a ResultList.CC (ContextChange) entry.

Regards,

Henrique.

Former Member
0 Kudos

<b>I noticed that there two types of SUPPRESS, one is grey and other is flouroscent green coloured. I need to use grey SUPPRESS.</b>

Gray SUPRRESS is equal to ResultList.SUPPRESS [Context Change]

flouroscent green coloured SUPRRESS is equal to just empty space " "[Empty Value]

So if you want to put value when context change occues then use the constant ResultList.SUPPRESS otherwise just check that whether it has the value or empty.

I think now it is clearn for you.

Warm Regards,

Vijay

henrique_pinto
Active Contributor
0 Kudos

Hey Vijay,

that is probably because your node is a subnode of another node which also have some supresses in its queue.

In order to avoid having to deal with upper-level supresses, use context UDF type instead of queue UDF type.

Also, the proper object you should point to is <i>ResultList.SUPPRESS</i>.

Regards,

Henrique.

Former Member
0 Kudos

What is you version??

If it is PI7.0 SP10/11 you maybe in trouble ( as I have this error)

You may have to upgrade to SP12.

https://service.sap.com/sap/support/notes/1053706

They are having problems as the correction they provided has not fixed the error for us... I have had an OSS Note for nearly two months about this...