2009 Mar 16 11:38 AM
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
2009 Mar 16 11:54 AM
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
2009 Mar 16 11:56 AM
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.
2009 Mar 16 1:01 PM
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
2009 Mar 17 5:04 AM
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.
2009 Mar 18 6:07 AM