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.

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

Similar Messages

  • Display value and description of one field in alv grid

    Hi Folks,
       I want to display value and description of one field as one column in alv grid.
    for example iam having Xfield = 01,02,03.
    and 01 iam having text value as xxx,
    01 xxx
    02 yyy
    03 zzz
    Im report display the values are displaying as 01,02,03..
    but i want to display it as 01 xxx,02 yyy, 03 zzz.
    Please do needful.
    Thx.

    Hi, swetha
    You can do this with "concatenate".
    example:
    In you code check where you final internal table is getting filled up before that do this concatenate and then append it.
    data t_text type string.
    t_text = textfield
    CONCATENATE 'Xfield'
                     t_text
                      INTO wa_workarea SEPARATED BY space.
    cheers,
    Bhavana

  • FSG showing Account description instead of value and description

    Hi ,
    I am getting rows without Account Values in an FSG that I created - it has 27 columns. I had specifically created a row order with Value and Description for the Account Segment with all other segments having width zero. When I run this FSG I only get the Description and not the values. I tried everything from increasing the width of the column and also removing the row order but it still shows only the description. I also tried with a row order with Value only for the Account Segment but even then it shows only the Account description. I have no idea what is causing it? Can you tell me how to fix it?
    Thanks,
    Arun

    Can you post the query for which the bind variable values are not being shown and the trace output for the same?
    Probably it is listed down somewhere when you actually executed the query among the others. Try completely analyzing your trace file..

  • Domain Value Shot Description instead of Fixed Value

    Hi Everyone,
    I am having a peculiar issue in Passing domain values from ABAP webdynpro to Interactive forms.
    The scenario is as given below.
    1> Interactive form is only for display purpose.
    2> Passing fields from a Z structure in interactive forms interface.
    3> Certain fields in the Z structure are having data elements which are linked to domains.
    4> The domains mentioned in point number 3 are having fixed values as well as short descriptions.
    5> Fixed values are stored in the tables in R/3 and not short descriptions.
    6> I want to display the Short Description in Interactive forms as a text box and not a dropdown value. Since it is just for display purpose, i dont want to display a dropdown value. Currently The fixed values are getting displayed.
    I wanted to know if there is some way to do this without using Code.
    I have quite a lot of fields and for all of these fields if we select values from dd07t table, Performance would be severely affected.
    Please let me know if someone has any suggestions. If you need any more clarifications don't hesitate to ask.
    Thanks in advance and Warmest Regards
    Mz

    Hello Robert,
    Thanks for your prompt reply.
    Let me try to clarify a bit more.
    As mentioned by you, let us suppose that i have a field ZBUKRS with the domain ZZBUKRS having the same fixed values.
    In case of Webdynpro ABAP, if i create a dropdown and bind this domain (ZZBUKRS) to the dropdown, when i run the report, i see the short descriptions in the dropdown. When selecting a value, the Fixed value is automatically selected for the selected short description. There is no need to go in for seperate coding to acheive this.
    I was wondering, is there any way that a similar thing can be acheived in interactive forms without doing the coding. I know that we can use the FM 'STF4_GET_DOMAIN_VALUE_TEXT'. But since i have a large number of domains, i will have to use this repeatedly.
    Hope i have not confused you
    Please let me know if any further clarifications are required.
    Thanks & with warmest regards,
    Mz

  • Both attribute value and description showing on attribute value dropdown list

    Hi All,
    I am using CRM 7.0 EhP 1 and I have encountered a item I need to address in regard to the display of a Marketing Attribute values on the Account Overview page (BP_HEAD/BPHEADOverview) on the Web Client.
    The component in question on the page is BP_DATA/MarketingAttributesEOVP.
    The value dropdown lists for each attribute show both the Attribute Value (in my case a number) and Description. We require that only the Description is shown and not the Attribute Value in brackets also.
    Is there a user setting that controls this or is displaying both standard with no adjustment possible through user settings or configuration? 
    Thanks,
    Jonathan

    Hi All, 
    The following OSS note looks to resolve issue in question above:
    1647509 - Attributes value shown as value+description in accounts page
    Thanks for your assistance.
    Jonathan

  • Possible to display domain value range descriptions rather than values?

    Hi All,
    We're using ECC6.
    I have a context input field on my view, which is  bound to a data type that is bound to a domain.  The values are brought back from the domain automatically but when the user selects a row, the fixed value is displayed rather than the description, i.e. the code for the value is displayed rather than the short description.
    This is not acceptable.  Before I go off and code something for this instead is there a parameter I can set to tell it to display the description rather than the code.
    Many thanks,
    Liz.

    HI Liz,
    You can read the domain name i guess, then you can use the Function Module DD_DOMVALUES_GET, make the call as
    CALL FUNCTION 'DD_DOMVALUES_GET'
           EXPORTING
                domname        = i_dom_name
                text           = 'X'
                langu          = sy-langu
           IMPORTING
                rc             = lv_rc
           TABLES
                dd07v_tab      = t_dd07v
           EXCEPTIONS
                wrong_textflag = 1
                OTHERS         = 2.
    you should get the short description in the field ddtext of result t_dd07v.
    Now instead of creating a domain you can provide these values to the valid values for your context dynamically.
    Hope this helps.
    Regards
    Vineet

  • Domain value Mapping for Supply chain and order management analytics

    Hi Experts.
    I'm new to BI Applications. I'm configuring Oracle Supply chain analytics and order management analytics and i see in the configuration guide that we need to
    Map each Status Code to one domain value. I dont understand what this means? what is meant by domain value and how can we map the data retreived by the query with the domain values.
    Appreciate your help.
    Thanks
    Rajesh

    Hi Deepak.
    Our functional analysts dont understand what domain values means. they have run the query but since they dont understand what Domain values means they could not proceed.
    Pls could you give an example of how to map the data retrieved with the domain values ?
    Appreciate your help
    Thanks
    Rajesh
    Edited by: user4159900 on Aug 22, 2011 12:17 AM
    Edited by: user4159900 on Aug 22, 2011 12:18 AM

  • Peoplecode to get dropdownlist box value and its description

    Hi,
    I have assigned a value and its description to dropdownlist box. when try to get the value and description in somewhere, i didn't get the description. i got only the value of the current row in a rowset. but i want to fetch the description which i assigned to the dropdownlist for the corresponding value. Is there any way to get the description?

    Since it is not a XLAT bound to the field, you cannot use the field class properties.
    What is the source of the dropdownlist?
    If it comes from a database record, you could fetch the description from the database using the &Field.Value as input.
    But this would cause a lot of database roundtrips.
    You could store the value and description in a two dimensional component array variable and load this array with the values and descriptions at PostBuild Event.
    This will only fires ones during the component build.
    Suppose the values are "hardcoded", something like this
    /* Create component 2-dim array */
    Component array of array of string &DropdownArray;
    &DropdownArray = CreateArrayRept("", 0);
    &DropdownArray.Push(CreateArray("value1", "descr1");
    &DropdownArray.Push(CreateArray("value2", "descr2");
    &DropdownArray.Push(CreateArray("value3", "descr3");
    After this populate the dropdownlist with values and descriptions from the array.
    For &i = 1 To &DropdownArray.Len
      &Field.AddDropDownItem(&DropdownArray[&i][1], &DropdownArray[&i][2]);
    End-For;
    Whenever you need to fetch the description of the dropdownlist value, first find the value by &Field.Value and then search within the array for the description.
    /*Get value from dropdown */
    &Value = &Field.Value;
    /*Find index for value*/
    &Ind = &DropdownArray.Find(&Value);
    /*Get description (second index in subarray)*/
    &Descr = &DropdownArray [&Ind][2];
    I am writing the code without an environment, so typos could exist
    Hope this helps.

  • Need help for displaying key and description in Dropdown (ABAP WEBDYNPRO)

    Hi Experts,
    I am using dropdown as a table field. For this dropdown I want to display the value as well as description.
    In ALV table when we create a dropdown dynamically in table field, there is a method SET_KEY_VISIBLE in class CL_SALV_WD_UIE_DROPDOWN_BY_KEY.
    But I think we cannot use similar method for normal dropdown field in table.
    Is there any way we can display both value and description in dropdown value set ?
    Please help.
    Regards,
    Anand

    Hi,
    I think there is no such option. You need to consider one variable type string and while populating the
    valueset fill this variable by concatenating the value and description and assign it the key and value
    pair of the valueset.
    DATA:
      lt_value_set_ctry      type table of wdr_context_attr_value, " Country/Service Location
      lv_str type string.
        loop at lit_country into ls_country.
          concatenate ls_country-value ls_country-text into lv_str separated by space.
          ls_value_set-value = lv_str.
          ls_value_set-text  = lv_str.
          append  ls_value_set to lt_value_set_ctry.
          clear ls_value_set.
        endloop.
          lr_node_info->set_attribute_value_set( name = 'COUNTRY'
                     value_set = lt_value_set_ctry ).
    Consider this lit_country is a text table for countries.
    Regards,
    Lekha.

  • Query or report for G/L Master data including Tax Field and Description

    Dear SAP Gurus
    Please help me. I am trying to find a report to display G/L master data at company code level and which includes the tax filed and tax catagory description. Does such a report exist please?
    I have also created a query but cannnot add the description of the tax catagory entered in the G/L master data. Can you please tell me if such a table exists which can be used for a query. Besides the VAT code if this is entered in the master data I need to include value and description of the tax catagory such as *, > etc.
    Many thanks
    PRG

    Hi,
    There is no table storing the description on tax catagory such as *, > etc.
    Even SAP has hardcoded the discription in the search help of these special tex categories. For tax codes it picks from table T007A.
    You need to create your program with fetching the values for these tax categories.
    Regards,
    Gaurav

  • Easy DMS | characteristic value an descriptions

    Hi experts,
    In cv01, cv... users could select a value by entering the char. value key.
    On the other side in EDMS users could only select a value by a description.
    Is it possible to display the char. value and description -fields of characteristics in EDMS?
    Thanks in advance....

    You may extract the info using vs studio 2005, by referring the EasyDMSExplorer.tlb file supplied in EasyDMS Installtion. See  wiki http://wiki.sdn.sap.com/wiki/x/cAHEB for example.

  • Entering values in Web Services ID and Description, for External Catalog

    Hi,
    I am trying to connect to an external Vendor Catalog from ERP. Pl note that we just have ERP ECC 6.0 and no SRM. I went to SPRO and followed menu path 'Materials Management >> Purchasing >> Web Services: ID and Description'. I am not sure what to enter in 1) Seq. Number  2) Name of Parameter for Web Service and 3) Call Structure COLUMNS.
    I have URL from Vendor, User Name and Password. I need to know what values are mandatory here so I can successfully connect to external Catalog. If someone can give me sample values, I can try.
    Any help is appreciated,
    Niranjan

    Update on 08/23/2011.
    We are able to connect to Vendor Catalog, select items in Cart. When I press 'Place Order' button, I see all items populated in SAP PO ME21N screen. We can then add other information and create PO. This is working great. We have another question. Heard that with ERP ECC 6.0, we can only connect 1 vendor catalog. But with SRM, we can connect more than  1 vendor catalog. Is there a BAPI or change SAP code to connect more than 1 vendor catalog from ECC 6.0 ?

  • Srvrmgr syntax: how can I create Named Subsystem with both Name and Description values?

    In looking through bookshelf, there is no syntax discussed that allows you to include both the Name value and the Description value for a Named Subsystem/Profile Configuration.  In the screenshot, the circled values were created with the server manager command-line.
    In contrast, you can create a component definition with a Name (full name) and Description.
    For CompDef, this works:
    create component definition CompDefTest1_enu for component type AppObjMgr component group Fins run mode Interactive full name "Test Comp Def Test 1" description "Test 1 Object Manager CompDef"
    For Named Subsytem, this does NOT work:
    create named subsystem Test5 for subsystem EAITransportDataHandlingSubsys full name "Test 5" description 'Test 5 Description'
    Can anyone tell me if, for a Named Subsytem, there is a proper syntax to include both the Name and Description values in the command-line, or is the only way to manually create it in the UI?

    Hi,
    I have reviewed the help for create command in srvrmgr, it does not give the full name and description as parameters for subsystem creation. However, as you indicated these parameters are available for component definition creation:
    srvrmgr> help create
      create { component group | compgrp } <component group name>
           [ full name <descriptive name> ]
           [ { description | desc } <description of component group> ]
      create { component definition | compdef } <component definition name>
           for { component type | comptype } <component type name>
               { component group | compgrp } <component group name>
           run mode { batch | interactive | background }
           [ full name <descriptive name> ]
           [ { description | desc } <description of component definition> ]
           [ with [param <param_name>=<value>[, <param_name>=<value>...]]
                  [fixparam <fixed_param_name>=<fixed_value>[,...]]]
      create named subsystem <named_subsystem_name> for
           subsystem <subsystem_name> with <param_name>=<param_value> [, ..]
    Bookshelf also has an example of subsystem creation that does not include full name and description:
    http://docs.oracle.com/cd/E14004_01/books/StoreFwdMsg/StoreFwdMsg_InstallConfig14.html#wp1351472
    In this case I suggest you to create a ticket on My Oracle Support to confirm that srvrmgr does not support creating a new subsystem with full name and description parameters, and request an enhancement request for these parameters to be included in create statement for new subsystems when using srvrmgr.
    Hope it helps,
    WSiebel

  • Suggest Values(Auto Fill) for code and description in WD ABAP

    Greetings everyone,
                     I have one ABAP webdynpro application which has to provide the auto fill (Suggest Values) option for one of the field for Eg:Material No.The requirement is the user will have only one field where he/she should be able to search the material either by its name or material number in the same field.Please let me know how we can achieve this.As of now i am able to search by material number using suggest values using my own custom search help.But how can i include the material description also as search option for the material number field.Any help will be appreciated.
    Material No:[____________]      <- - -   i should be able to search both by material number and description in suggest values(Autofill)
    Thanks,
    Vignesh

    Hi Thomas,
       You are right. I have exactly thought the same way and i implemented the code as well in the search help exit which will give my own search result to the searching criteria with both number and description. I have able to achieve this for one application and now i am able to search with both number and description in the same field.But when i am trying to get the same functionality for another field ,it is showing a auto fill values but only for code and not for description of the code.I have mentioned below the code i have written in the search help exit and i am passing the list to the source tab and getting the search help result in record_tab.When i test this from normal SAP GUI using F4 functionality it works perfect.But when i try to use this search help via Autofill(Suggest values) in WD ABAP,it is not working the same way what i want.I mean it only searches with the code but not with the description in teh autofill.
    Any help will be appreciated.
      IF callcontrol-step = 'SELECT'.
        DATA:lwa_selopt TYPE  ddshselopt,
             lit_selopt_rsfnr TYPE RANGE OF tn39t-rsfnr,
             lwa_selopt_rsfnr LIKE LINE OF lit_selopt_rsfnr ,
             lit_selopt_desc TYPE RANGE OF stnd_rsfna,"rsfna, "nkdi-stdtext,
             lwa_selopt_desc LIKE LINE OF lit_selopt_desc,
             lwa_tn39t TYPE tn39t,
             lit_tn39t TYPE STANDARD TABLE OF tn39t,
             lv_sel_val TYPE ddshselopt-low.
        READ TABLE shlp-selopt INTO lwa_selopt WITH KEY shlpfield = 'RSFNR'."'DKEY'.
        IF sy-subrc EQ 0.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_rsfnr.
          APPEND  lwa_selopt_rsfnr TO lit_selopt_rsfnr.
          lwa_selopt-option = 'CP'.
          CONCATENATE '' lwa_selopt-low '' INTO lwa_selopt-low.
          MOVE-CORRESPONDING  lwa_selopt TO lwa_selopt_desc.
          APPEND  lwa_selopt_desc TO lit_selopt_desc.
          CLEAR:lit_tn39t[],record_tab[].
          SELECT * FROM tn39t INTO TABLE lit_tn39t
             WHERE spras = sy-langu AND ( rsfnr IN lit_selopt_rsfnr
             OR rsfsn IN lit_selopt_desc ).
          CALL FUNCTION 'F4UT_RESULTS_MAP'
            EXPORTING
              source_structure  = 'TN39T'
            TABLES
              shlp_tab          = shlp_tab
              record_tab        = record_tab        " <--- I am getting the result correctlyin record_Tab ..but it is not coming in the output/
              source_tab        = lit_tn39t
            CHANGING
              shlp              = shlp
              callcontrol       = callcontrol
            EXCEPTIONS
              illegal_structure = 1
              OTHERS            = 2.
          callcontrol-step = 'DISP'.
        ENDIF.
        EXIT. "Don't process STEP DISP additionally in this call.
      ENDIF.
    Thanks,
    Vignesh

  • How to fetch domain value range short descriptions?

    hi all,
    how can i fetch the short descriptions given in domain level, as single values- descriptions for report generation
    Regards,
    Naveen Natarajan

    Hi naveen,
    1. This if the FM.
    2. eg
      DATA : DD07V LIKE DD07V OCCURS 0 WITH HEADER LINE.
    *-----  Get all Master Document Types
      CALL FUNCTION 'GET_DOMAIN_VALUES'
        EXPORTING
          DOMNAME         = 'VBTYP'
        TABLES
          VALUES_TAB      = DD07V
        EXCEPTIONS
          NO_VALUES_FOUND = 1
          OTHERS          = 2.
    DD07V will contain all the domain values.
    regards,
    amit m.

Maybe you are looking for

  • Problems with the (WINDOWS 8 pro -64 BIT) IN THINKPAD L520 - 5016 RL2

     I have some problems with the (WINDOWS 8 pro -64 BIT) is not working properly IN THINKPAD L520 - 5016 RL2. 1. Message appears telling me that the drivers of the display  has been restored crash. 2. The mouse pointer moves very slowly sometimes, and

  • Suddenly can't connect to windows server

    I suddenly can't connect to the windows server. The username and password is correct, but it says "Connection Failed: Unknown user, incorrect password, or login is disabled. Please retype the name and password or contact the server's administrator."

  • Can't install EAX cons

    On an audigy 2. I downloaded the console from the website and when I try to install it says "Setup did not detect the required components. Setup will exit." Using the beta drivers atm, but get the same thing with the non beta drivers. I've tried the

  • Problems in accessing Connection Factories in JMS

    Hi We are porting A J2ee application from weblogic to SAP Web AS. Primarily in weblogic we always get a Connection Factory Instance from the Connection Factory and then typecast it to either QueueConnectionFactory or TopicConnectionFactory.(Pl. see t

  • Photoshop crashes when trying to start program

    Photoshop crashes when trying to start program Using Powerbook G-4 10.4.11 15 GB available When trying to open Photoshop it crashes when the display window is trying to open and the text: BUILDING MARK TWAIN is showing. Then it crashes never making i