cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving multilingual string values from single session using new API

Former Member
0 Kudos

I am unable to retrieve language specific strings within a single user session…I have searched the API and am starting to think it is not implemented in the API although SAP consultants have led me to believe that this functionality should be in the new API…

I am using MDM API 5.5.35.16 (SP4patch3) (the newer API, mdm-admin.jar, mdm-common.jar, mdm-core.jar, mdm-data.jar, mdm-protocol.jar – NOT the MDM4J.jar)….

I need confirmation of whether this is possible and if so a quick code sample to point me in the right direction….

I have a method that processes any MdmValue object…The relavent part of the code is below:

For the strings that are multilingual, the mdmValue object is is actually the com.sap.mdm.valuetypes.StringValue class but this class does not have any methods to retrieve the multilingual strings values…

private static void ProcessMDMValue(MdmValue mdmValue, FieldProperties fProp) {

String fieldCode = fProp.getCode();

String fieldTypeName = fProp.getTypeName();

if (!mdmValue.isNull()) {

switch (fProp.getType()) {

case FieldProperties.FIXED_WIDTH_TEXT_FIELD:

System.out.println(fieldCode + " = " + mdmValue.toString() + " (" + fieldTypeName + ")");

FixedWidthTextFieldProperties fwtfp = (FixedWidthTextFieldProperties) fProp;

if (fwtfp.isMultilingual()) {

System.out.println(fieldCode + " class name = " + mdmValue.getClass().getName());

// How to retrieve the multilingual strings ????

}

}

}

}

Any help GREATLY appreciated...Thanks!

Tony Schoenoff

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Tony

The (new) API SP05 will support multilingual values.

Regards,

Goekhan