Skip to Content
author's profile photo Former Member
Former Member

Domain Values and Description

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • Posted on Dec 05, 2005 at 03:44 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2005 at 03:48 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2005 at 03:58 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 05, 2005 at 04:43 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2005 at 07:53 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 04:25 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 06, 2005 at 04:34 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.