Skip to Content
0
Former Member
May 07, 2007 at 08:21 AM

Using Custom Enumerations in WebDynpro

46 Views

Good morning,

i need a little hint for the following situation:

i created a entity service using a custom enumeration as an attribute. running this entity service in the CAF- Testtool the entries of the custom enumeration are displayed as expected, but...

i would like to use this custom enumeration inside a webdynpro without using the standard CAF webdynpro patterns, like object browser, object link etc...

when i create a DropDownbyKey and bind the datasource on a context node which has the type of my custom enumeration the following error occured.

How can i bind or access my custom enumeration inside the webdynpro runtime?

I am very grateful (awarding points 😉) for any help.

Thanks Jens

The initial exception that caused the request to fail, was:

   com.sap.dictionary.runtime.DdException: SimpleType can't be created from xmlMap {SimpleType={ExternalRepresentation={uppercase=false, defaultValue=, maxExternalLength=0, readOnly=false, translateFlag=false, format=}, baseTypeName1=, typeKind=SimpleType, baseTypeName=, Hint={softwareLanguage=java, languageDataType=com.siemens.poc.customtypes.Group}, backendName=, TextObject={locale=, quickInfo=Group, docuUrl=, fieldLabel=Group, description=, columnLabel=Group}, prefix=com.siemens.poc.customtypes, classRepresentation=true, SchemaType={totalDigits=0, minExclusive=, maxLength=100, maxExclusive=, minLength=0, length=0, fractionDigits=0, maxInclusive=, minInclusive=}, builtInType=string, name=Group}}

    at com.sap.dictionary.runtime.DdSimpleType.makeNew(DdSimpleType.java:188)
    at com.sap.dictionary.runtime.DdSimpleType.makeNew(DdSimpleType.java:211)
    at com.sap.dictionary.runtime.DdJavaProvider.getDataType(DdJavaProvider.java:62)
    at com.sap.dictionary.runtime.DdJavaProvider.getDataType(DdJavaProvider.java:45)
    at com.sap.dictionary.runtime.DdDictionary.getDataType(DdDictionary.java:95)
    ... 41 more