Value range of domain as serach help

A Z domain have been defined a with a value range and domain is not used in any table. Can this value range of domain  is used as F4 help on selection screen.
Selection screen is not designed thru screen painter but thru statements.
Kindly resolve.
anu

HI anu  ,
yes  it is  possible   in the   at selection output   ...
DATA  : lt_dd07v_tab_a     TYPE  TABLE OF dd07v.
  DATA  : ls_dd07v_tab_a     LIKE  LINE  OF lt_dd07v_tab_a.
  DATA  : lt_dd07v      TYPE  TABLE OF dd07v.  " this  is  internal table for  your screenfield
  DATA  : ls_dd07v      LIKE  LINE OF  lt_dd07v. " work area for  your screenfield
CALL FUNCTION 'DD_DOFV_GET'
       EXPORTING
         get_state           = 'M'
         langu               =  ' '
*       PRID                = 0
         withtext            = 'X'
         domain_name         =   'zkunnr'       "  your  zdomain hardcode it
*     IMPORTING
*       GOT_STATE           =
        TABLES
          dd07v_tab_a         =  lt_dd07v_tab_a
          dd07v_tab_n         =  lt_dd07v_tab_n
     EXCEPTIONS
       illegal_value       = 1
       op_failure          = 2
       OTHERS              = 3
LOOP  AT  lt_dd07v_tab_a   INTO  ls_dd07v_tab_a .
        MOVE-CORRESPONDING   ls_dd07v_tab_a   TO   ls_dd07v .
        APPEND   ls_dd07v  TO  lt_dd07v .
      ENDLOOP .
in the  above  the    lt_dd07v  is your     screen  field  internal table  
or else   you can  move the   field  which you  delcare in the program
reward  points if it is usefull
Girish

Similar Messages

  • 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 of domain

    Hi Experts,
                       what is the importance of value range tab of domain?........if we enter any interval in value range for the domain and then we assgined that domain to a table field.Now can we only enter value into the field only satisfying the interval in value range of the domain?
    I have already assigned domain to a package and Now I want to change that package and request no.Is there any way out?

    Hi,
    A Domain defines a Value Range. The value range of a domain can be restricted by defining fixed values. If all the fields or components that refer to the domain should be checked against a certain table, this table can be defined as the value table of the domain. If you maintain only the interval values, then your values entered will be restricted in that Interval only.
    For Changing the package Assignment of the domain, go the Object Navigator (TX:SE80) and then navigate to the domain using the package. Select the Data Dictionary Objects like Domain and using the Context Menu of the mouse you can change the package assignment.
    For changing the transport request, you have to go to SE09 ( Transport Organizer Tool) and then delete the old task from it or you can create a new transport request and the change the task assignment of the existing ones to the new one.
    Hope this helps.
    Thanks,
    Samantak

  • Fixed Value Ranges in Domain

    Hi all,
                i have create table in DDIC and use some domain in that. Now my problem is that there is a option in Domain which is Value Range.I am not able to find the reason why we use this in domain. Means what is the benifit of using Value Range ??
    Hoping for the best solution.
    Thanx,
    Vaneet

    The check table must have a key field which has the same domain as the check field of the foreign key table."
    the above means that when I use domain(which contains value table ) the same domain must be there in check table .
    Yes, the domain must be the same for check field (some field in ztable which you want input help for) and for key field of check table (which we match with check field).
    I.e. when you look at table SPFLI you can see field CARRID (this is check field ) . Click on it and select Foreign keys (key icon button). You will see SCARR (this is check table ) and matching keys MANDT and CARRID (foreign keys for them are SPFLI-MANDT and SPFLI-CARRID). Then you go to check table SCARR and look at field CARRID.
    The domain must be equal for check field (SPFLI-CARRID) and corresponding check table field (SCARR-CARRID). Only then the input help will be provided correctly.
    So that means value table and check table are always same .
    Not necessarly, but most often yes. This is because value table serves only the purpose of providing default table for foregin key relationship (when you want to define one), but you are allowed to change that assignment during relationship creation. No other "value" comes with using value table
    By defining only value table i cannot get input help , i have to have check table
    Correct!
    Then what is the use of value table ?
    As explained above, only for developer to have proposed this value table as a check table during foreign key definition.
    whlile creating z field i can directly use a check table without defining a value table in domain.
    Yes, you can. Nevertheless you will have to provide check table yourself. System will not suggest one.
    Kindly explain me the use of value table in terms of adding zfield .
    No sure if correctly understand you here. ZFIELD can use value table, but without check table it is useless. It will not provide you any input help, nor will check entry for that field when used i.e. on the screen.
    If you still feel not good with above explanations please refer [url]When is Value table called?;url]
    Edited by: ajay KOLLA on Jun 29, 2010 12:40 PM

  • 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

  • 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

  • Value range

    what is value range

    hi,
    Refer this thread..
    Re: can i create value range in domain
    Cheers
    Alfred
    Reward points for helpful answers.

  • Search help on a field with value range

    Hi,
    I have a z-table. One of its fields has a z-data element with z-domain which has a value range. I have a requirement to add a search help on selection screen field which is parameter for mentioned field of my z-table. How can I do that?
    Tnx in advance,
    Nati

    Hi,
    Where you want to add the search help, i mean in report or in screen painter.
    In Screen painter, you can take the reference of Z-Data Element by Dictionary option in Screen layout.
    If it is report, you can use F4 function module(F4IF_INT_TABLE_VALUE_REQUES) or can creat the elementary search help in DDIC and give it as MATCHCODE OBJECT in PARAMETER statement.
    Regards,
    Chandu

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

  • 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

  • Get value range value from Domain

    Hi all,
    My screen field ZXX is using data element ZDEXX and domain ZDOXX.
    I maintain list of record in ZDOXX, eg
    001 Pepsi
    002 Cola
    After user select value from value-help table for ZXX field(say 001), the field will be display '001'.
    I want to display the description, "Pepsi" when user hit enter key on ZXX field.
    How can i achieve that? Can i read the value range table value from Domain ZDOXX?
    Many thanks.
    Best regards,
    Xiang Li Heah

    Hi,
    in se11->search help ->create a search help
    provide the table name and the field for wich u need to provide the search help
    now in the database table u need to provide the foreign key relationship for that field.
    generate a proposal and give the data element name , make sure that the domain name is the same.
    thanks
    ravi aswani

  • 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

  • ALV, domain and F4 value ranges.

    Hi all
    I'm having trouble with getting F4 value range help up and running on a cell in my ALV. The main reason for my problems is because I'm not using a DDIC structure, but one I defined locally. The structure's field is associated with a domain type defined in the DDIC and as such I'd like to pull the value range from there.
    Here's what more-or-less what I'm doing:
    - Create a local structure type corresponding to fields of a DDIC table.
    - Select from the table into the structure.
    - Load ALV with structure.
    Is there anyway to get the F4 help on a cell?
    Ps. ref-table and ref-field doesn't work.

    As I'm not at the office at the moment I can't test anything, so I'll give you a progress update tomorrow, but in the mean time:
    Anjali - I'll have a look at that link. I'm still fairly new to ABAP so I can't tell off hand if that's what I'm looking for, but I'll know for sure when I have a look at the demo applications.
    Vijay - I do have value ranges for the domain of the type used by my structure. I believe ref-table and ref-field isn't working because my internal table is of type local structure rather than DDIC table type.
    Sekhar - I did try setting F4AVAILABL to 'X', but all that does is display the 'value range button' (which you can click to get the same effect as pressing F4), without actualling doing anything else.
    Thanks for the help thus far.

  • F4 help not reflecting in ALV Grid for fixed values specified in domain

    Hi experts,
       As per subject i have a field for which i have assigned 5 fixed values in the domain level (of that field) . The problem is when i am displaying my ALV grid output i need a F4 help and F4 Option for the same is not reflecting and i have assigned in the field catlog as shown bellow.
    wa_fcat-fieldname = 'ZDEPLOY'.
      wa_fcat-tabname = 'IT_FINAL'.
    wa_fcat-f4availabl = 'X'.
    wa_fcat-key     =  'X'.
      WA_FCAT-SELTEXT_L = 'Deployment Planned'.
      wa_fcat-outputlen = '25'.
       WA_FCAT-EDIT = 'X'.
       WA_FCAT-REF_FIELDNAME = 'ZDEPLOY'.
       WA_FCAT-REF_TABNAME = 'ZETMDEPL'.
      APPEND WA_FCAT TO IT_FIELDCAT.
      CLEAR WA_FCAT.
    for the above field the f4 help is not reflecting.
    Intrestingly i have another field which i have declared using the same procedure for which my F4 help (with fixed values ) is reflecting in the same program .with the values as shown below
        wa_fcat-fieldname = 'ZFINAL'.
      wa_fcat-tabname = 'IT_FINAL'.
      WA_FCAT-SELTEXT_L = 'Final Status'.
      wa_fcat-outputlen = '10'.
       WA_FCAT-EDIT = 'X'.
       wa_fcat-ref_fieldname = 'ZFINAL'.
       wa_fcat-ref_tabname = 'ZETMDEPL'.
      APPEND WA_FCAT TO IT_FIELDCAT.
      CLEAR WA_FCAT.
    can u plz suggest me with a solution .
    Regards,
    Edited by: abhilash aswath on Oct 20, 2010 3:32 PM
    Moderator message: please do not use SMS speak.
    Edited by: Thomas Zloch on Oct 20, 2010 3:58 PM

    hi,
    There was a mismatch of characteristics. I resolved by matching the same.

Maybe you are looking for

  • Errors when inserting and updating form using VIEW.

    Here's my view: CREATE OR REPLACE FORCE VIEW  "SH_ADD_EMPLOYEES_VW" ("EMP_ID", "DEPT_ID", "JOB_DESC_ID", "EMPNO", "EMP_FIRST", "EMP_LAST", "USER_NAME", "USER_INI", "DEPTNO", "DEPT_DESC", "ROLES_ID", "ADMIN", "CREATES", "APPROVES", "QUALITY", "CUST_SV

  • Adding a link to Amazon

    Does anyone know how to add a 'widget' to a specific amazon page, in this case a book, where it will show a picture and price of the book and allow the user to click through to Amazon? Does it have to be done as an HTML snippet? In which case where d

  • Double dynamic dispatch

    I'm just throwing an idea out here for a moment..... I'm fiddling about a bit with OOP at the moment (LVOOP to be precise) and I'm wondering if I can use it in a semi-nice way to do a certain task. I was wondering if it's possible to have a VI which

  • Bug? Scheduling a single day X for a throughput deduplication job on a volume in Server Manager ... Volume Configure Deduplication becomes day X-1 (previous day) in Task Scheduler

    Scheduling a single day X for a throughput deduplication job on a volume in Server Manager>...>Volume>Configure Deduplication becomes day X-1 (previous day) in Task Scheduler Using configure deduplication for a volume in Server Manager, I selected a

  • Dreamweaver CS5 slow to open CFM files

    Carey, All, Our whole team has problems when opening our (.cfm) files. Like the original poster (peterallcdn) we think it's because of related files...? In our case, we think it's our includes (fyi - we're using ColdFusion). When we remove all the in