Any FM avaliable for reading domain value range

Hi experts,
Is there any FM avaliable to read values from value range of a domain.
I need to fetch short  descriptions for corresponding fixed values in value range.
Please help.
Thanks in advance,
Neelima

Hi,
Is there any FM avaliable to read values from value range of a domain?
Yes. Of course, you can try using the following.
Let me assume that there is a domain called ZGENDER and it has the following fixed values:
Value  Description
M        Male
F         Female
U         Unknown.
Then do the following code:
DATA: l_t_gender TYPE TABLE OF dd07v.
To get the possible list of Genders
  CALL FUNCTION 'GET_DOMAIN_VALUES'
    EXPORTING
      domname         = 'ZGENDER'
    TABLES
      values_tab      = l_t_gender
    EXCEPTIONS
      no_values_found = 1
      OTHERS          = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
I need to fetch short descriptions for corresponding fixed values in value range.
Yes. After calling the function module, l_t_gender-ddtext will have the short descriptions.
Please revert back for any clarifications.
Best Regards,
Suresh

Similar Messages

  • Domain value range

    hi
    i am changing the table field domain value range. after changing i am getting the warning msg like below. if i ignore it and transport odes it affect anyways.
    and also does anyone tell me when we transport only the structure get transported or even the values get transported?
    <b>The key length, i.e. the sum of the field lengths of all the key fields of the table,
    is more than 120 bytes.
    Note the following restricted fuctionality for this table:
    - Table contents cannot be transported by specifying key values, at
      best by specifying generic key values with a maximum length of 120
      bytes.
    - The table may not be used as the base table of a lock object.</b>

    Hi ,
    Instead of changing the domain value range ,
    create a Z Domain group say copy it from the existing one and increase the range .
    This will reflect on the field name in the Ztable . Do activate and adjust database from SE14 on the table .
    Remember that the new range of values will be overlapped to the existing version in the target system .
    for this what u have to do is for the existing domain field where used list see the tables in which it is to be used .
    and then if its not causing any inconsistencies u can transport or else the dependent tables which are referring to the domain group have to be modified .
    regards,
    Vijay

  • Filtering domain value ranges

    Is it possible to filter domain value ranges when displaying a dropdown listbox in a table control according to the value of another field?
    For instance,
    - I have an ITAB with the fields FIELD1 and FIELD2 and a table control TABCON connected to it.
    - FIELD1 is an instance of the domain ZDOMAIN1 and FIELD2 is an instance of the domain ZDOMAIN2.
    - ZDOMAIN1 has the value range X, Y.
    - ZDOMAIN2 has the value range A, B, C, D.
    The value of FIELD1 will be already set and not changeable at this point, as for the drop-down list for FIELD2, I want it to include
    - only A and B if the value of FIELD2 is X for that entry
    - only C and D if the value of FIELD2 is Y for that entry
    I hope I've been able to explain my problem here.

    yes it is possible
    in process before output, you should build the value list dynamically and call function module VRM_SET_VALUES to update it on screen

  • Is there any native method for converting String value to Hungarian notat..

    Hello. there.
    This might be very simple question. but I'm just curious about this.
    I am wondering if Java API offer the any native method for converting uppercased string value to lowercase which obey the Hungarian notation.
    What I'm going to do is using Reflection for excuting RFC function on SAP. I was found it is very similar to JDBC Programming.
    Please refer to blow codes.
    //mTable
    JCoTable mTable = function.getTableParameterList().getTable(rtnTblNm);
        for (int i = 0; i < mTable.getNumRows(); i++) {
         mTable.setRow(i);
         HashMap tmpData = new HashMap ();
              for (int j=0; j < mTable.getNumColumns(); j++) {
                     // I want to set key String [userNo] instead of  [USER_NO] here.
              tmpData.put(mTable.getMetaData().getName(j).toLowerCase(), mTable.getString(j));
              result.add(tmpData);
    } Basically, The idea was from ibatis framework [com.ibatis.common.beans.classInfo] dropcase();
    Any idea would be very helpful for me. Thank you.
    Edited by: hosung.seo on Aug 30, 2009 10:42 PM
    Edited by: hosung.seo on Aug 30, 2009 10:50 PM

    ejp wrote:
    Hungarian notation is a representation of logical/arithmetic expressions in postfix form. Not what you're talking about.
    So your title is very confusing to the people here who know what it means, which is probably all of them, because people read threads based on their title.From now on, I will pay more attention when I post an question.
    If the titile as " +Is there any native method for converting String value to camelcase?"+ would be easier to what i'm pointing at.
    As I mentioned in above sorce code, converting [USER_NO] to [userNo] isn't relevant Hungarian notation. yes, it was ambiguous. Agree! :)
    But some answer wasn't fit to converting case or recognizing "underscore" delimiter. I was expecting toCamelCase() such as blew. Thanks.
        public static String toCamelCase(String name) {
            String lowerName = name.toLowerCase();
            String[] pieces = lowerName.split("_");
            if (pieces.length == 1) {
                return lowerName;
            StringBuffer result = new StringBuffer(pieces[0]);
            for (int i = 1; i < pieces.length; i++) {
                result.append(Character.toUpperCase(pieces.charAt(0)));
    result.append(pieces[i].substring(1));
    return result.toString();

  • Extract data from domain-value range

    Hi,
    I have a requirement to extract data from Domain-Value range.
    I am using MDM generic extractor(mdmgx)
    in 'Maintain ports and check tables' i can create a port but i should mention a table name.
    I have a 'DOMAIN'
    with a specific value range:
    01    text1
    02   text2
    03   text3
    so on...
    i need to get these entries as a part of extracted data.
    Could you please tell me how to do this?
    Thanks a lot in advance.
    Regards,
    Rashmi

    Hey guys,
    you're making things much to complicated. For extracting Domains with MDMGX, the TABLE NAME equals the DOMAIN NAME. Example for domain XFELD that is a common Yes/No Flag:
    CLIENT            000
    SYSTEM TYPE       R3
    OBJECT TYPE       Vendor
    MDM PORTCODE      LT_YesNoIndicator
    TABLE NAME        XFELD
    NONLANG FIELDS    KEY=Key
    LANG FIELDS       LANGKEY=LANGKEY,VALUE=Name
    WHERE CLAUSE
    LINK INFO
    FUNC XML
    FUNC XSD
    PROCESS LEVEL     0
    TABLE NAME equals the domain name.
    NONLANG FIELDS and LANG FIELDS use default entries as defined above.
    If you check your system for "table" XFELD, you'll clearly see that it's a domain.
    Cheers
    Michael

  • How to retrieve data from domain(Value Range)  of the table

    hi
    how to retrieve data from domain(Value Range)  of the table
    thanks

    Hello,
    You can try using the FM: DOMAIN_VALUE_GET TB_DOMAINVALUES_GET.
    BR,
    Suhas
    Edited by: Suhas Saha on Mar 24, 2009 10:08 AM

  • Get domain value range dynamically

    Hi all,
    I need to create a dynamic method that retrieves the value range (key-value) of a domain.
    It is pretty simple to get fixed values using FM DD_DOMVALUES_GET, but how do I manage a value table?
    For example:
    Field XFELD has fixed values so use DD_DOMVALUES_GET
    Fields BUKRS and SPRAS have value tables.
    I can get the value table name using FM DDIF_FIELDINFO_GET and retrieve the data from that table. Unfortunately, I can be sure to get the right key field, but I can't be sure to get the right value field, it depends on the value table definition.
    BUKRS has T001 that stores the text in field BUTXT of the same instead SPRAS has T002 that stores the text in text table T002T in field SPTXT.
    Is there any standard function module that does the trick?
    In this thread Gregor Wolf managed it manually using a case statement, but I would avoid it, too many case statements...
    Thanks
    Ivan

    What I am doing is not quite the same but similar - I am dynamically getting the text description when I have a data element and the value of the variable that references that data element.
    I was pointed to CL_TEXT_IDENTIFIER which when you pass in the domain and the value magicaly brings back the text description, despite the fact that, as far as I can see, SAP has set up almost every text table slightly differently - sometimes in the main table like T001W or lFA1, sometimes which just the language and the value as a key, sometimes with extra key fields (e.g. MAKT) and sometimes with added organisational key fields e.g. the same GL account have different text descriptions in different chart of accounts.
    I think at some stage CASE statements or subclasses are going to have to come into the equation, due to the utter lack of consistency in SAP table defintions.
    Cheersy Cheers
    Paul

  • 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.

  • Diplay Domain Value Range.

    Hi,
    I wish to display Value Range as define in Domain for certain field in R/3.
    Eg, ZSEX domain 's Value Range in R/3 as below
    01 Male
    02 Female
    Assume ZZSEX field is using ZSEX domain;and
    Expected "Male" to be display when field value ZZSEX = 01.
    How to achieve this in Java Web Dynpro?
    Thanks.
    Best regards,
    Xiang Li Heah

    Hi,
    Why dont you send both ZSEX domain 's value range and text to WebDynpro from R/3 in bapi output as below?
    ZZSEX     ZZSEXTXT
    01           Male
    02           Female
    (Or)
    What you need to do is , You have to store these texts (key , value) in WebDynpro side.
    You can use simple type for this purpose.
    Create one simple type "SEXSimpleType" in webdynpro local dictionary and enter the enumeration values as below.
    01           Male
    02           Female
    Create one context attribute called "SEXAttr" and change the type of this context attribute to "SEXSimpleType".
    Now in the code when the value of ZZSEX = 01 then get the corresponding text by using the below code.
    ISimpleTypeModifiable simpleType = wdContext.nodeTest().getNodeInfo().getAttribute( "SEXAttr").getModifiableSimpleType();
    ISimpleValueServices services = simpleType.getSVServices();
    IModifiableSimpleValueSet valSet = services.getModifiableSimpleValueSet();
    wdComponentAPI.getMessageManager().reportSuccess( "SexText: " + valSet.getText(ZZSEX));
    Regards,
    Charan

  • HOW TO ACESS DOMAINS VALUE RANGE PROGRAMTICALLY

    DOMAIN IS WITHOUT VALUE TABLE, BUT WITH FIXED VALUES,
    HOW CAN WE ACCESS THESE VALUES PROGRAMTICALLY,
    WELL NOT FOR VALUE REQUEST TO SEE THE VALUES BUT TO DISLPAY ALL THE VALUES ENTRED IN THE VALUE RANGE OF DOMAIN , WITHIN THE PROGRAM
    REGARDS

    Using the FM is probably the best way to go.
    report zrich_0001.
    data: idd07v type table of  dd07v with header line.
    start-of-selection.
    call function 'DD_DOMVALUES_GET'
         exporting
              domname        = 'RFBSK'    "<<--- Supply domain name here
              text           = 'X'
              langu          = sy-langu
         tables
              dd07v_tab      = idd07v
         exceptions
              wrong_textflag = 1
              others         = 2.
    loop at idd07v.
      write:/ idd07v-domvalue_l, idd07v-ddtext.
    endloop.
    Regards,
    Rich Heilman

  • How to not to display any line items for val flds values are zero in KE30?

    Dear All,
    In KE30,in one of my reports,  i do not want to display such line items for which all values are zero for all val flds, it should only display the line items for which there is any value, i have tried Zeros hide in KE35 in formatting menu>other format>hide zeros, but unofrtunately it didnt came out.
    Regards
    Rashid
    Edited by: rashinuet on Feb 20, 2012 4:38 PM

    Dear Abhishek,
    I have tried that as well in ke35 and made this option activated on my val flds like sales revenue for hide zero values, but it didnt came out as well, then in i tried ke32 change report >Extras menu>form settings, this adopts all the settings in the report from the form you have assigned, but this is not working, i am failed to understand what has gone wrong.
    Regards

  • BAPI for reading CCMS values

    Hey everyone,
    I am currently developing a small application which reads actual values from the CCMS Monitoring, but I got a small problem.
    I actual use the BAPI " BAPI_SYSTEM_MTE_GETPERFCURVAL" to read the values from the ccms environment (e.g CPU_Utilisation).
    But for some values this is not working. A collegue told me to use " BAPI_SYSTEM_MTE_GETMLCURVAL".
    But this one is also not working for all CCMS Items (eg. it is not working for CPU_Utilisation).
    Is there a BAPI which can read all CCMS values. It would be great if there is an BAPI which has the same input parameters as the ones above.
    Regards
    Markus
    PS: (Yes, I know in the near future there will be a new monitoring environment (MAI))

    Hi,
    I figured something out.
    Each CCMS Object has a type. (performance, logging, allerting)
    https://help.sap.com/saphelp_nw04/helpdata/en/6a/c7453bafc6007ce10000000a11402f/content.htm
    I know, that the BAPI " BAPI_SYSTEM_MTE_GETTIDBYNAME" Delivers me the TID for the given MTE-OBJECT-Name tupel. Inside the TID is a field which is called "MTCLASS".
    Can anybody tell me, where I can find the values for the field "MTCLASS" so that I can decide wether to use "BAPI_SYSTEM_MTE_GETPERFCURVAL" or "BAPI_SYSTEM_MTE_GETMLCURVAL"?

  • Domain Value Range: long value

    Hi,
    how can i get the "long value" (Short Description of the Fix. Value) of a Domain?
    -> for example
    A    ABAP
    J    JAVA
    In the db, i get the value 'A' or 'J' , on screen i want to give out ABAP or JAVA..
    Thx

    This will work
      REFRESH vrm_table.
      SELECT domvalue_l ddtext INTO TABLE vrm_table
        FROM dd07t
        WHERE domname = 'ZLMFUCONTTYPE'
          AND ddlanguage = sy-langu
          AND domvalue_l IN type_range.

  • 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

  • How to fill Domain Value range Programatically?

    Hi Experts,
    I like to fill the domain range values from 'ZTABLE' ..
    so please help me how to fill the domain range values programatically .
    Thanks
    Banu.

    Hi Banu,
    You can update these values for Domain using Table *DD07L*.
    DOMNAME " Domain Name
    AS4LOCAL
    VALPOS
    AS4VERS
    DOMVALUE_L " Lower Limit
    DOMVALUE_H " Upeer Limit
    APPVAL
    So in program
    Fill your Work Area and update
    modify table DD07L where DOMNAME = 'YOUR_DOM_NAME'.
    Cheerz
    Ram

Maybe you are looking for

  • I am getting a 42404 error message when opening itunes and itunes will not let me connect my iphone to it trying to get me to restore. I need help?

    I am getting a 42404 error message when opening itunes and itunes will not let me connect my iphone to it trying to get me to restore. I need help? I am not that technically inclined and really simple terms  are appreciated.

  • Create Business Action : Document Type Error

    I am trying to create Create Business Action for X12 over Generic In the Document Definition block, I have entered Name : 850 Definition Definition : 850.xsd Document Type Parameters Functional Group Identifier Code : PO Transaction Set ecs File : 85

  • Thumbnails but "!" for pics

    Oh help. I can see my thumbnails but when I click on my pictures to edit or print it comes up with a gray screen and a dotted line with an "!" instead of the picture. I have read below that this has happened to others so I followed previous advice an

  • Photo Compression

    Hi, I'm trying to get an idea of which size iPad to order. Is there a compression ratio that can be applied to figure out how much space a photo library will take up on an iPad after the magical itunes compression? My library is currently approximate

  • Could not complete request file already open

    Hi, can anybody please help with this issue. In Fireworks CS6 on a Mac: When i open a file to make changes to it, then try saving it, it will give me the following error: "could not complete your request, because the file is already open in another a