Skip to Content
Former Member
Jun 27, 2007 at 01:33 PM

Problem with central build of Simple Date Type with Enumeration


Dear gurus,

I hope I'm posting this in the correct forum. Please advise if I'm in the wrong forum.

I have a Web Dynpro DC in which I've created a simple data type with enumeration. It is used for binding to a radio box. The data type is called DownloadType; the enumeration contains two vales: current and archive. To allow me to access the enumeration values, I turn on the "Generate a class representation of the enumeration" in the data type builder.

I then reference the enumeration values with code like:

if (downloadType.equals (DownloadType._CURRENT))

yada yada yada

This works fine when building locally and deploying directly. But when the DC is built by CBS (or doing a "Development Component->Build..." in NW Dev Studio), the build fails, stating that the DownloadType._CURRENT symbol cannot be resolved.

For example: cannot resolve symbol
symbol  : variable _CURRENT 
location: class yadayadayada.DownloadType
                equals(DownloadType._CURRENT))  {

Apparently the central builder is not smart enough to handle the "Generate a class representation" flag.

Is this a known problem? Are there any workarounds?

Thanks in advance for any help you can provide.


P.S. Environment: 2004s