cancel
Showing results for 
Search instead for 
Did you mean: 

MDM JAVA API: ValidationProperties.getCode() throws UnsupportedOperationException

Former Member
0 Kudos

Hi,

http://help.sap.com/javadocs/MDM71/com/sap/mdm/validation/ValidationProperties.html#getCode%28%29

  public String getCode()

  {

    throw new UnsupportedOperationException();

  }

Why does this throw an UnsupportedOperationException by design?

How can i get the code of a validation instead?

API-Version: 7.1 SP5

Thanks in advance

Michael

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Michael,

Kindly let us know the following information.

1. Did any upgradation happened ?? or

2. Did any patch got installed ??

Regards

Ashok

Answers (3)

Answers (3)

Former Member
0 Kudos

Upgrade is currently not possible. Hoped it would be somehow possible in this version.

But thank you anyway!

Michael

Former Member
0 Kudos

Hi Ashok, Martin,

thanks for your responses.

No patch got installed. SP-Level is 5 on both server and NWDI track.

How can i get the validation code instead then?

Thanks

Michael

Former Member
0 Kudos

Hi Michael,

Have you referred below mentioned link .

http://help.sap.com/javadocs/MDM71/com/sap/mdm/validation/ValidationProperties.html

Regards

Ashok

martin_schffler
Participant
0 Kudos

I guess there is no easy way to get at the code in your version.

You could open an OSS message but they will tell you to upgrade to a newer MDM version, as SP05 is out of development for quite some time (latest patch is from 02.05.2011).

Regards,

Martin

martin_schffler
Participant
0 Kudos

Seems like support for Validations was not complete with 7.1. SP05.

Just checked with 7.1 SP09 and there the getCode() method works as expected. I didn't have the .jars for the other SPs at hand so I could not check when it was fixed.