Domain - single value range

HI,
Ive created an enumarated domain.
I want to print a report based on this table, how can i print the description depeneding on value.
For e,.g the domain zcusttype contains following allowed values
01- Internal
02 - external
How can i pick the decsription based on field value .
Is there any direct FM availabled or would i have to do a case-endcase coding to print descriptions.
BYe

hi,
  use FM DOMAIN_VALUE_GET...
Rgds.,
subash

Similar Messages

  • Convert domains Single values

    Hi!
    I'm trying to convert domains Single values (fromvalue range) into another languages. .
    Thx
    ilhan

    What is your db version?
    In 11g you can do
    SQL> var str varchar2(30)
    SQL> exec :str := 'SCOTT,KING,JONES,ALLEN'
    PL/SQL procedure successfully completed.
    SQL> select empno, ename from emp, xmltable(('"' || replace(:str, ',', '","') || '"'))
    where ename = trim(column_value)
         EMPNO ENAME    
          7788 SCOTT    
          7839 KING     
          7566 JONES    
          7499 ALLEN    
    4 rows selected.

  • Domains-Without Value range.

    HI All,
           My secnario is that  i have use few standard domains that do nat have any value range for that domain,
    so i requried for data type char 20
                                          numc 5
                                          numc 10.
    I need your valuable suggestions to this.
    regards,
    Swathi.K

    hi  swathi,
    goto se11.
    there select domain and press f4.
    now a pop-up window appears where u need to specify datatype and length  and press enter.
    now u can find standard domain elements for your particular datatype and length.
    give datatype: char
           length   : 20
    sample list of domains:
    ABI_DOCITM
    ABI_OBJCT
    ABLBELNR
    ABLLI
    ABSCHLGRP
    ACEPS_STATUS
    ACE_ARCH_PREP_STATUS
    ACE_CALC_VARIABLES
    ACE_GLSYMB
    ACE_SOP_STATUS
    ACTIO
    ACTIVITYID_BRO
    ADFDR_CHAR20
    ADFDR_DOCID
    ADPIC_DOM_PROCESS_CODE
    ADRESSE
    ADSPCIP_RANGE
    ADSPC_ANGNR
    ADSPC_SBNBR
    AFRUV
    AFW_TEXT20
    AII_NAME
    AIN_EPC_PREFIX
    AIN_SSCC
    AKB_TABSET_NAME

  • 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

  • Maximum number of "Single values" accepted in "Multiple Selection"

    Hello gurus. I wonder if you could help me with this.
    You know how in transactions like the Data Browser (SE16), you want to look up records in a table, for example MARA.
    If you want to list only individual values, then you can press the yellow arrow to the right of the fields, and this opens the "Multiple Selection" window. In it you can add single values, ranges, etc.
    My question is, what is the maximum number of single values that you can put in here?
    For example, sometimes if I put like 5000 lines, instead of getting a result I get an ABAP runtime error that reads:
    Runtime errors         DBIF_RSQL_INVALID_RSQL
    Exception              CX_SY_OPEN_SQL_DB    
    "Error in the module RSQL accesing the database interface".
    But if I put around 1500 or less, then I don't have that problem. It lists the results just fine.
    How do I know what the maximum number of lines these functions allow?

    Hi
    Yes even I had the same experience and based on my several tests I dont put more than 2000 valeues.
    Please advice if you have any question.
    Thanks

  • Checking domain fixed values

    I have a screen field in a dynpro where the domain has a fixed value range. The values shows up in the F4 help, but I can't figure out the best way to validate it in the PAI short of hardcoding, which I'd like to avoid.
    Take for example a domain with possible values 'A', 'B', 'C', '1', '2' or '3'. These values pull through to the search help but I also need to validate manual user input against this list.
    I understand the DDIC attribute for a screen element can do this, but that's not an option in this case as the name of the field does not match the name of a dictionary field. Any other suggestions?
    Thanks

    >
    Chris wrote:
    > I have a screen field in a dynpro where the domain has a fixed value range. The values shows up in the F4 help, but I can't figure out the best way to validate it in the PAI short of hardcoding, which I'd like to avoid.
    >
    > Take for example a domain with possible values 'A', 'B', 'C', '1', '2' or '3'. These values pull through to the search help but I also need to validate manual user input against this list.
    >
    > I understand the DDIC attribute for a screen element can do this, but that's not an option in this case as the name of the field does not match the name of a dictionary field. Any other suggestions?
    >
    > Thanks
    If this field should only contain values from the domain fixed value range, why don't you make it into a drop down listbox field?  This would make manual input impossible and all they can do is select values from the drop down list.

  • HR ABAP: Value Range Filtering in F4 help.

    Dear Experts,
    I'm using a common data element and domain used by our team for a field called "Overall Status"! The value range inside the domain for this OS is appended by each individuals, as and on based on individual requirements.
    Now, i've appended 5 value range inside the existing domain's value range.
    When, i call my custom infotype screen, i need only those values added by me in the f4 search help, instead of all the existing enteries in the value range?
    Can anyone throw some lights for the procedure to do so?
    Thanks in anticipation!
    Useful solution will be definitely rewarded!
    Regards,
    Sundar.

    Old!

  • 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

  • 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 add ranges for field BUKRS in Tcode GP52  is single value fied

    Hi Experts,
    In Tcode GP52 we can only give single value for company code in source data .. but i want to make it to accept ranges..
    i have checked it but it is not a report program it is a module pool object..
    i tried by creating a z program with selection screen and thaought of alling that program  using my selection parameters but i failed ....can anyone help me in this
    Thanks,
    Vamsee

    instead of enhansing the screen i have created BDC.
    clossing this

  • The range can't be used as a single value.

    Sorry all, a bit new to spreadsheets
    I am creating a budget spreadsheet in Numbers to learn how it all works
    I have a costing for Oil use; 12 monthly columns that are added together to produce a total for the year.
    However there is a standing charge to be added to this for the oil tank and that is £60 per year.
    So I started with a formula that states simply:
    SUM(B6:M6)
    This returns my yearly oil consumption cost but when I amend it to add the standing charge of £60p.a. like this
    SUM(B6:M6)+60
    I get the syntax error message "The range B6:M6 can't be used as a single value"
    I am sure there must be an easy work around for this but I haven't found it yet.
    Anyone got any thoughts ?

    Hmmm - this is quite a bit to take in !
    OK let me ask you about another instance.
    I have a column and at the top I have my Income for that month and below I have expenses incurred during that month.
    What I am aiming to do is out put the profit i.e. Income minys expenses.
    If I do this:
    I get an error
    But if I do this
    I get a result but obviously it shows my Profit as a negative number.
    That's why I find it strange.
    Simply reversing the order of the values stops the formula working.
    In one case the "range" (B3:B8) is producing a number value, and in the other it isn't.

  • Finding short text description of Fixed values for value range for domain

    Hi,
    When I got to Dictionary: Dispaly Domain and click on tab value range; I get the template showing Fix. Val and its associated short text.
    I want to fetch the short text for a particular fix. val for a domain.
    How can I do that ? What table can I use it ? Or do I need to use some function module ?
    Lets say I want to fetch the short text for a given Fix val. for domain VBELN.
    Please help me out.

    Hi,
    You can use Function Module 'FM_DOMAINVALUE_CHECK' to get the fixed values of any domain.
    Regards,
    Atanu

  • Can i create value range in domain

    can i create value range in domain

    Hi,
    Value range means we will give possible values at Domain level.
    We will have Value tabe also at Domail level.
    when we give possible values at Domain level it will restrict to those values to that particular field.
    Deepak.
    If this helps you reward with points.
    Message was edited by: KDeepak

  • Value range for domain

    Is it possible to enter value range more than 10 characters long ??

    HI Michal
    This seems to be a restriction as the DOMAIN for storing the value range is defined of length 10 Chars.
    Kind Regards
    Eswar

  • 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

Maybe you are looking for

  • I want to upload data from excel to R.12 tables

    Dear All, We have implemented R.12 we have already migrate data from legacy to EBS but during go live period many transaction cannot be record. I have data in excel I want to upload. What is the best & save way please let me know. Regards, Muhammad F

  • How do i let users modify patch lists?

    I'm designing an application in which the user needs to create and modify patches. I would like the interface to have a list of user patches, followed by sliders an textual input boxes to modify parameters. I am aware that i could easily put together

  • How to automatically close PR ?

    Hi all, PR item has an indicator : CLOSED . It is said: Purchase Requisition Closed Flags a purchase requisition as closed, that means that no further purchase orders are to be created for this purchase requisition. Use You can: Set this indicator ma

  • Add "recent files" folders to Favorites

    Hello, I remember being able to addin previous Bridge versions the 3 precious "recent files" folders to the Favorites Tab of Bridge. In CS5 I cannot drag them anymore to the tab, like I would with any other file or folder. Does anyone have any clue?

  • New Jdev install - FND_COOKIE_HAS_NO_ICX_ENTRY error while using Lov

    Hi, I installed Jdev recently and am having quite a few issues with it. 1. I could not make the HelloWorld message spit out a message. That is being following up on another thread. I still can't do so. 2. So I went ahead and created the Empsearch tut