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

Domain Values and Description

Former Member
0 Likes
3,721

I have defined one custom data element with custom domain and some fixed values at the Domain level.

I am using that data element at the Custom screen. The problem is that I am getting F4 help without Desription.

In the drop down help I am getting on Values not the description. How I can get both in the F4 drop down help.

I have defined one custom data element with custom domain and some fixed values at the Domain level.

I am using that data element at the Custom screen. The problem is that I am getting F4 help without Desription.

In the drop down help I am getting on Values not the description. How I can get both in the F4 drop down help.

7 REPLIES 7
Read only

Former Member
0 Likes
1,990

Hi Try to Create a search help usig descriptions also for that in se11 and add to that field.

then you will get both...

regards

vijay

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,990

You can try something like this... It is building the search help on the fly in the program based on the domain fixed values.




report zrich_0001 .


data: dbdiff_values type ddfixvalues,
      dbdiff_val    type ddfixvalue.

data: begin of help occurs 0,
      low type ddfixvalue-low,
      ddtext type ddfixvalue-ddtext,
      end of help.

data: return type table of ddshretval with header line.

parameters: p_koart type koart.


at selection-screen on value-request for p_koart.

  call function 'DDIF_FIELDINFO_GET'
       exporting
            tabname      = 'BSEG'
            fieldname    = 'KOART'
            lfieldname   = 'KOART'
       tables
            fixed_values = dbdiff_values.

  clear help.  refresh help.
  loop at dbdiff_values into dbdiff_val.
    move-corresponding dbdiff_val to help.
    append help.
  endloop.

  call function 'F4IF_INT_TABLE_VALUE_REQUEST'
       exporting
            retfield    = 'KOART'
            dynprofield = 'P_KOART'
            dynpprog    = sy-cprog
            dynpnr      = sy-dynnr
            value_org   = 'S'
       tables
            value_tab   = help.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,990

Hi Amandeep If you want for This Program then You Can use Rich logic.If you want it for future then You need to Create the Search Help.

vijay

Read only

Former Member
0 Likes
1,990

If you defined the domain with domain values and their description, used the domain in the dataelement, and used the data element in the table for the field, then you don't have to do anything. It will automatically show both value and the description.

Are you coding for the F4 in your program like in a AT SELECTION-SCREEN ON VALUE-REQUEST or PROCESS ON VALUE-REQUEST? In that case you may encounter this problem, but if you leave it as it is, it will automatically show both upon F4. I just quickly tried one and it worked.

Srinivas

Read only

ananjun1
Explorer
0 Likes
1,990

Amandeep,

Make sure you have "Short text" filled for the Fixed values in your domain "Value range" tab. This will bring up the descriptions.

Cheers

Anand

Read only

Former Member
0 Likes
1,990

Hi,

You have 2 options......

1. you can assign Search help for field in through SE11-->create search help and assign to it.

2. At Selection-screen on value request for field.

here you need to call function 'F4IF_INT_TABLE_VALUE_REQUEST'.

for this you need to get values of domain level from table DD07T through Select and that must be passed to FM.

If you need further clearence revert back to forum.

Thanks

If this helps you reward points and close the thread.

Read only

Former Member
0 Likes
1,990

Hi Amandeep,

1. I have also tried the same thing

and its working fine.

2. In Domain , make sure u have used/entered

the SHORT TEXT.

3. Just try one more thing,

instead of module pool,

make a temporary program in SE38

using

parameters : a like mydatalement.

4. Test this parameter on F4. It SHOULD

show what u require. (it is showing

properly at my end)

Regard,

Amit M.