cancel
Showing results for 
Search instead for 
Did you mean: 

Where to define constants in Web Dynpro (Dictionary?)?

Former Member
0 Kudos

Hello everybody,

which is best to define constants in Web Dynpro?

Is there a way to do this in the dictionary?

How to I get access from my coding to the dictionary?

Thanks a lot

Regards

Mario

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Mario,

Create a simple java file with public static final fields and put it in src\packages\<YOUR_PACKAGE_STRUCURE> and use inside any WD component entities (views, controllers etc.). So, no magic - everything like in pure java.

Or, do you have some special requirements?

Best regards, Maksim Rashchynski.

Former Member
0 Kudos

Hi Maksim,

yes, this could be one solution.

But I want users that are not used with JAVA show a more simple way. I thought this could be via the dictionary.

Regards Mario

former_member182372
Active Contributor
0 Kudos

Hi Mario,

Dictionary is resposible for types/structures/database tables definitions. The only thing which comes to mind regarding your idea is generation a class representation of the enumeration but I can`t imagine how dictionary type enumeration class can help with constants.

Best regards, Maksim Rashchynski.