Application Development and Automation 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: 
Read only

replace fixesd values with a value table

Former Member
0 Likes
1,876

Hi All,

I have a dropdown that displays values from the fixed values maintained in the values range of a domian. but now the requirement is to remove the fixed values from the domain and create a ztable with these values(enterd throgh SM30) and assign it to domain. And also the dropdown should display the entire description but only key (the number) should get saved. please tell me the step by step procedure to acheive this.

Thanks & Regards,

Pritha

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,040
  1. Create/activate a table that contains only the value (client + one field using domain, both keys)
  2. Create/activate a text table associated to the previous one (same keys + language + text field, foreign relation of text type)
  3. Create a dialog maintenance for the table (will use text table implicitly, should trigger transport)
  4. Fill the table with current values of domain
  5. Change the domain to use the table as a value table
  6. If required activate dynpro using this domain

Regards,

Raymond

4 REPLIES 4
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,041
  1. Create/activate a table that contains only the value (client + one field using domain, both keys)
  2. Create/activate a text table associated to the previous one (same keys + language + text field, foreign relation of text type)
  3. Create a dialog maintenance for the table (will use text table implicitly, should trigger transport)
  4. Fill the table with current values of domain
  5. Change the domain to use the table as a value table
  6. If required activate dynpro using this domain

Regards,

Raymond

Read only

0 Likes
1,040

Thank you Raymond for your reply..As I am new to abap I have a few queries.

1.After creating the dialog maintenance will it call the text table automatically and display the entire text as dropdown is using the domain name as reference.

2.is deleting the fixed values from the value range of domain and creating the table as discussed earlier and using the same in the value table solve the issue. Please let me know of the above points

Read only

0 Likes
1,040

Some more queries:

Can i use the same domain name as it a Z domain and it is a standard transaction so I will not be able to activate the dynpro. Is it fine?

Read only

0 Likes
1,040

The domain of a standard data element cannot be changed without a modification. It is also not recommended in general. If the field is a custom one then you can use a custom domain. It is possible to add custom fields to standard transactions via designated user exits, so standard transaction <> all standard fields.

You might want to ask for a mentor to be assigned to you while you are learning. Also - just look at how the same things are already done in SAP. E.g. your first question could have been easily answered without SCN if you've just looked at any configuration table (T*) that has a text.