Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Modify domain values at runtime

Former Member
0 Kudos
964

Hi Experts

is there a way I can dynamically modify the values of a domain as I do not have a fixed set of values for the domain and instead get these values only during the runtime ? I thought it can be achieved via a value table which I can populate dynamically but it doesnt seem to be possible. Please help.

Now this is for the purpose that I have a dropdown on my UI for a field in my DB table(I use WebDynpro for front end technology), which automatically takes the values from the domain of its underlying field. Hence I need to change these domain values dynamically so that the dropdown changes accordingly at runtime.

Regards

Sukanya

Edited by: Sukanya Mayuri Gogoi on Mar 16, 2009 12:47 PM

5 REPLIES 5

ThomasZloch
Active Contributor
0 Kudos
253

Maybe you can call function VRM_SET_VALUES rather than tampering with the domain values.

This works in classic ABAP, not sure about Web Dynpro.

Thomas

Former Member
0 Kudos
253

Hi Sukanya,

Very purpose of defining the domain values is not served if you have dynamic values to be selected depending upon your other conditions.

Domain values are defined as master data which are very rrely changed.

It will be ideal to build temperory Z-table with these values.

Former Member
0 Kudos
253

Hi Sukanya

Domain values are defined as master data which are hard core values which need to be changed runtime or dynamically.

Rather then storing values in domain you can create a ztable which can store values and use this table for ur reference in f4 or whereever needed.

Thanks.

Smita

Former Member
0 Kudos
253

If you want use the value of a table, you can use the value table of the domain. After defined the domain, you should then define a data element using this domain, and then define a table with primary key of the data element. Back to the domain maintain screen, on the bottom "Value range" tab page, you fill the table name in the "Value table" field. In doing so, you will get the value help of the domain on you screen.

If want use part entires of a table, please define a search help or coding in POV.

Former Member
0 Kudos
253

I did this via a Webdynpro functionality. Thanks.