F4 help:Restrict Value Range

Hello Experts,
I want to a search help for one field such that when user click on F4 help , it will again pop- up with one  screen, in which I need to have 2- 4 fields to Restrict the values then user enter some values here then F4 help will appaer.
Like in standard tables mseg-lifnr F4 help Restrict Value Range screen , but i require only one tab
Plz suggest
Aastha

Hello,
Use the following piece of code.
Parameter : p_value type ......
  TYPES : BEGIN OF y_value,
                  value TYPE text6,
                 END OF y_value.
  DATA : t_value TYPE STANDARD TABLE OF y_value.
  DATA: t_return TYPE STANDARD TABLE OF ddshretval.
Fill table t_value with the values which  u require in the F4 help.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
      retfield         = 't_value-value' 
      dynpprog     = sy-repid
      dynpnr         = sy-dynnr
      dynprofield   = 'p_email'     
TABLES
      value_tab       = t_value
      return_tab      = i_return
    EXCEPTIONS
      parameter_error = 1
      no_values_found = 2
      OTHERS          = 3.

Similar Messages

  • ECATT: Recording "Restrict Value Range" screen for CO58

    Hi,
    I need to provide PI Sheet # for CO58 (Process a material). Here, I search the PI Sheet # from Process Order # when I perform this manually. But, when recording this via TCD Mode or SAPGUI mode, I am not able to record the part where PI Sheet # is searched through the "Restrict Value Range" screen through Process Order #.
    How can I record this part?
    OR
    Is there any way to obtain PI Sheet number from PO # through some other transaction. I tried using CO60 but the values inside the table displayed there with PI Sheet # is also not getting recorded.
    Any help would be highly appreciated.
    Thanks,
    Punit Sethi.

    Hi,
    I need to provide PI Sheet # for CO58 (Process a material). Here, I search the PI Sheet # from Process Order # when I perform this manually. But, when recording this via TCD Mode or SAPGUI mode, I am not able to record the part where PI Sheet # is searched through the "Restrict Value Range" screen through Process Order #.
    How can I record this part?
    OR
    Is there any way to obtain PI Sheet number from PO # through some other transaction. I tried using CO60 but the values inside the table displayed there with PI Sheet # is also not getting recorded.
    Any help would be highly appreciated.
    Thanks,
    Punit Sethi.

  • Restrict Value Range

    Hi,
    is it possible to set the values of Restrictions (F4) programmatically. How?
    Thanks.
    /Elvez

    Hi Srinivas,
    I would like to default the selection screen to something, however, dynamically and not be setting the default value in the search help. Here is the what I would like to achieve:
    1) F4 help for an additional infotype field with competence category id.
    2) The F4 uses molga, begda, endda to select data.
    => Problem: How to transfer the selection parameters to F4 when they are not fields on the screen?
    /Elvez

  • Prefill "Restrict value range" ?

    Hello. My first posting, but after searching, I can't find any threads discussing this subject.
    So:
    My code is like this:
      select-options: %%hyperi for ska1-saknr,
                      %%saknr for ska1-saknr.
    When the users press F4 on these fields, they get the same search-help. I want to prefill this search-help so that correct "sub-sheet" is selected, and values are correct.
    Is this possible?
    I've tried to use
      at selection-screen on value-request for %%hyperi-low
      and so on..
    after filling an internal table, but the funcionality isn't good enough I feel.

    Hi Helge,
    It is not very clear whether you just want the user to get a different "tab" of the search help for each of these fields, or whether you (also) want to fill your own values into the search-help. I shall try to explain to you both these cases.
    Case 1 : You just want to display a different tab for the user for each of these fields, when he presses F4.
    The search help SAKO, which is being used in this case, has around 8 different tabs from which the user can select a value. This search-help is therefore called a "Collective search-help", becauses you are providing the suer with several ways of obtaining the input help through a single search-help.
    Now, let us assume that you want the user to be able to select from "G/L account number in company code" for the first field. That is to say, when he presses F4 for the first field, he should be able to see only that tab of the actual search-help.
    In your program, you will ahve to code something like this:
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_HYPERI-LOW.
      call function 'F4IF_FIELD_VALUE_REQUEST'
        exporting
          tabname    = 'SKA1'
          fieldname  = 'SAKNR'
          SEARCHHELP = 'GL_ACCT_CA_NO' 
        tables
          return_tab = ITAB_RETVAL.
          IF ITAB_RETVAL[] IS NOT INITIAL.
            READ TABLE ITAB_RETVAL INDEX 1.
            S_HYPERI-LOW = ITAB-RETVAL-FIELDVAL.
          ENDIF.
    Here ITAB_RETVAL is the return table which contains the entry the user has selected. It is of the type DDSHRETVAL.
    2. If you want to use your own values in the F4 help of the user, it is generally recommended to use the search-help exit. However, you can always programmatically control that,too. The function Module F4IF_INT_TABLE_VALUE_REQUEST can be used for the same. Please go through the documentation for this Function Module - SAP has explained it better than I ever can :-).
    In general, you should always try to search for the Function Modules beginning with F4IF* for any information on programming the input-help.
    Hope this information has been useful.
    Regards,
    Anand Mandalika.
    P.S: In case you did not get how I obtained the search-help GL_ACCT_CA_NO for use in the above example, just go to SE11, and display the search-help SAKO. you will find a tab called "Included search helps". Just dig a little deeper into it and at the end of it, you will understand how several elementary search-helps make up the different tabs of the collective search help.

  • Restrict Value Range - VA05n

    Dear Experts.
    In VA05n(List Of Sales Order) T-Code, when i do press F4 for Sold-To-Party field in that i do want to add customer group for selection.
    Regards
    Bhavesh Vegad

    Hi Bhavesh,
    It is quite simple,
    1. Create an Elementary Search Help in that include all the fields you want to have in your search.
    2. After doing this then Open  Collective Search help DEBI from there goto tab Included Search Helps
        goto in Change Mode and put a new entry there ( this is the append search help which is being created).
    3. Next double click on the newly appended search help here u will find 3 tabs:
           1. Attributes
           2. Defination - In this you enter the following  two rows
    Search help paramater            Data Element                                                Default Value
    KUNNR                                 KUNNR                         
    BUKRS                                 BUKRS                                                             BUK
    Tick both import and export parameters in here.
            3. Included Search Helps - In this include the Elementary Search help that you have created.
    In this Elementary Search help i Propose the following parameters:
    Search help paramater                                                               Data Element Default Value
    KUNNR      4     4                                           KUNNR                         
    VKORG     1     1                                           VKORG         VKO
    VTWEG     2     2                                           VTWEG         VTU
    SPART     3     3                                           SPART          SPA
    NAME1     5     5                                           NAME1_GP                         
    NAME2     6     6                                           NAME2_GP                         
    KVGR1     7     7                                           KVGR1                         
    KDGRP     8     8                                           KDGRP           VKD
    Also u need to you need to have a Help view created say ZKDGRP which is assigned in the Selection Method of the Elementary Search Help
    Dialog Type - "C"
    Hot Key       - "G"
    In the Help View join the two tables KNVV & KNA1 specifying the output fields in the View Fields Tab.
    Hope this helps you, for more help you can refer the following link,
    Link: [Search Help|http://help.sap.com/saphelp_wp/helpdata/en/1f/29ef5777df11d2959800a0c929b3c3/content.htm]
    Regards,
    Abhijit G. Borkar

  • Hi,   search help     --   restricted value

    hi
    there is already a search help for a field in one of the transaction codes in fico. i think this search help is attached in code by writing match code syntax.
    but my prob is that this search help for the particular field shows 10 char and out of this 10 char i need to show only 5 char from 3 to 7 when the user press f4.
    eg. 1234567890 i need to show 34567 only without changing the se38 code.
    when user press f4 he gets lots of records and all records should show 5 char only, now it is showing 10 char.
    is it possible, if yes, then how???
    pl can anybody help me.
    thanx
    rocky

    Hi rocky,
    You can do like this.
    Use the below logic with your table, you will get as desired,
    DATA: BEGIN OF gt_matnr OCCURS 0,
          matnr TYPE mara-matnr,
          END OF gt_matnr,
          BEGIN OF gt_list OCCURS 0,
          field1(5) TYPE c,
          END OF gt_list.
    PARAMETERS: p_matnr TYPE mara-matnr.
    INITIALIZATION.
      SELECT matnr
        FROM mara
        INTO TABLE gt_matnr.
      LOOP AT gt_matnr.
      gt_list-field1 = gt_matnr(5).
      APPEND gt_list.
      ENDLOOP.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_matnr.
      CALL FUNCTION 'POPUP_WITH_TABLE'
           EXPORTING
                endpos_col   = 30
                endpos_row   = 20
                startpos_col = 10
                startpos_row = 10
                titletext    = 'Select MATNR'
           IMPORTING
                choice       = p_matnr
           TABLES
                valuetab     = gt_list
           EXCEPTIONS
                break_off    = 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.

  • Value range restrictions for Characterstics

    Hi all,
    I am not sure where should I post this message as it is related to characterstics in classification system and variant configuration, and I am aware that SD experts are the most knowledgable in those areas 
    My requirement is simple:
    I have a characterstic (CT04) where it has values maintained in the values tab. After some time, some of the values manitained need to be either hidden or locked, so my question is
    Is there such a way to do that? I have heard about (value range restrictions) functionality, but I really don't know how to use it or where to use it?
    I really appreciate any help.
    Regards,

    I appreciate if someone could share some experience.
    Regards,

  • Restrict dictionnary Search help displayed values.

    Hi,
    my problem is that I have to display a search help. The search help already exists in the dictionnary and is defined using a Dictionnary Table.
    I need to display the same serach help but I have to filter the results using a range of values for one of the fields and I would like to know how to proceed.
    I know that user-exit exists in some search help, it's not the case here.
    The kind of solutions I'm looking for is :
    -  directly restrict the existing search hellp values
    -  found a way to display a search help from abap using an internal table ( cause it's easy in this case to do fill a internal table doing the sql request myself)
    - if the solutions above can't apply, doing my own search help in the dictionnary but in this case, I don't know to make this search help for values restriction.
    I specify that the screen use the screen painter, it may be important ?
    Thanks for your help
    best Regards,
    Morgan

    Hi,
    Search Hels exits is only for exceptions, so in our case, we won't use the search help exits, it is better create/change the Custome one and attach the same to the fiels, there you can give the Default value for the fileds, so there you can restrict the values
    or else, we have an option like, APPEND SEARCH HELPS, so by using this, we can restrict some field values, this Append Search helps, can be append to Standard Search helps also, so do Append the Standard Search help and add your field and give the Default values to restrict the user
    hope you get the answer
    Regards
    Sudheer

  • Restrict Characteristic on value range in Query Designer

    Hi,
    In 3.5, it was possible to restrict a filter in the query designer on a value range, even if the start- and end values of that range did not exist in the master data.
    In 2004s, it is possible to restrict single value filters to a non-existing masterdata value. However, for value ranges, this does not seem to be the case. Do you know any workaround for this?
    Regards,
    Daniel

    of course, BI 7.0 support value range for restrict.Please kindly release more information about your case .
    Value Range
    • Instead of selecting single values you can quickly gather multiple characteristic values using this next option. This choice provides the following additional options:
    1. Between
    2. Greater than or equal to
    3. Less than or equal to
    4. Greater than
    5. Less than
    And you can reference following URL on this topic
    http://help.sap.com/saphelp_nw2004s/helpdata/en/f1/0a563fe09411d2acb90000e829fbfe/content.htm
    Edited by: Brian on Oct 22, 2008 3:08 PM

  • Need to restrict values in F4 help for Batch Characteristic

    Hi,
    I need to restrict values in F4 Help for a batch characteristic based on values entered for another characteristic. I could not find any BADI or Exit for this purpose. There is a BADI CACL_VALUE which is triggered after an entry is selected from dropdown list but nothing when we press F4. I thought of using Object Dependency but I need to write a programming logic for the requirement. Please let me know if there is any way to write program in Object Dependency or any other way for this requirement.
    Regards,
    Nikhil

    Hi nikhil simha,
    first of all, find out which search help is called.
    [Hierarchy of the Search Help Call|http://help.sap.com/saphelp_nw70/helpdata/en/0b/32e9b798da11d295b800a0c929b3c3/frameset.htm]
    may help you.
    If you know the search help, you may enhance it, but first of all you should check the where-used-list and make sure that the search help shows the requested behavior only in the context where you want it to.
    If it is your own program, you may be better off to create your own search help and define the triggering fields as search help interface input fields. Then you can use the values to filter results.
    Regards
    Clemens

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

  • 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

  • Hi experts,   restricted value through F4 help

    hi all
    in alv grid output there is a input enabled field say xyz, this field is given f4 help by creating ztable, and when f4 is pressed on xyz field, it is fetching all the data related to that field, but the user wants restricted value with respect to company code and land1. 
    how to restrict the value coming in through F4 help ???
    thanking u in advance
    rocky

    Rocky,
    In  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    check the name of the USER_COMMANG.Based on  User command there will be one FORM ......... ENDFORM .
    In that there will be selection statement to internal table by which you are getting F4 help.Put the condition WHERE company code eq and land1 eq.
    Pls. reward if useful.....

  • Implementing routine in DTP to restrict value

    Hi ,
    I want to implement a routine in DTP to restrict value 'F' or 'f' which can appear anywhere in the number of a field.
    ex : "00000F389877" .
    As 'F' appears at the six position in the number, there can be a possibility of 'F'/'f' appearing at any position in the number.
    I went to the filter section of the DTP under extraction and tried to implement the logic but I need some help as to what exactly I should put there.
    I have included the table name as '/BIC/A....' and the high and low variables for the range .
    Any qucik help in this regard would be highly appreciated.
    Kindly also let me know if there is any alternate method to tackle this kind of problem.
    Regards,
    Amit

    Hello,
    Find below a sample code used in DTP filter to restrict date field:
    form compute_/BIC/ZDATE
      tables l_t_range structure rssdlrange
      changing p_subrc like sy-subrc.
          Insert source code to current selection field
    $$ begin of routine - insert your code only below this line        -
    data: l_idx like sy-tabix.
              read table l_t_range with key
                   fieldname = '/BIC/ZDATE'.
              l_idx = sy-tabix.
    data: g_date(6) type n.
    data: g_date1 type d.
    CALL FUNCTION 'ZMONTH_CALC'
    Exporting
         MONTHS = -17
         OLDDATE = sy-datum
    Importing
         NEWDATE = g_date1.
    g_date = g_date1+0(6).
    clear g_date1.
    concatenate g_date '01' into g_date1.
    l_t_range-iobjnm = 'ZDATE'.
    l_t_range-FIELDNAME = '/BIC/ZDATE'.
    l_t_range-sign = 'I'.
    L_T_RANGE-OPTION = 'GE'.
    l_t_range-LOW = g_date1.
              if l_idx <> 0.
                modify l_t_range index l_idx.
              else.
                append l_t_range.
              endif.
              p_subrc = 0.
    But i feel what you want to achieve will be much more easier to achieve in start routine of the transformation.
    Here you just need to loop at result package, check for the record with the number containing F/f and delete the record.
    REgds,
    Shashank
    Edited by: Shashank Dighe on Feb 27, 2008 10:22 AM

Maybe you are looking for

  • CE 7.1 Ehp1 SP5 on Oracle 10.2.0.4 Performance - XSS track import of SCAs

    Hi, I'm currently building a new track on my newly built CE server which has the NWDI capability configured. I've had a few problems importing the SCA files into the track. I've been getting DTR internal server errors. Looking through the logs I coul

  • Export as QT movie

    Lately I have been having issues exporting sequence for uploading to YouTube and other sites. A short five minute sequence can take as long as 50-60 minutes to export as Quick Time movie and the file size is enormous (last one was 280mb) which takes

  • Transfer from one pc to another pc

    I upgraded to the 5 and sync'd. All of my songs are on the 5 but most are shadowed and cant be accessed. Help

  • Need more info than ORA-02291

    Hi! I wonder if there is a way to find out more specific information than the error "ORA-02291" provides - it only tells you which constraint was violated, not what the violating value(s) were?! In my scenario, an application inserts data into severa

  • Why does Labview insert quotations in the case structure selector box?

    I was building a case structure with an array of strings.  So, I copied the strings from the array on the FRONT PANEL directly into the SELECTOR LABEL.  My 3 strings have the form; to me, these are 5- character strings with spaces, or 7 characters if