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

Similar Messages

  • Search help for a field with no dictionary reference

    Hi!
    I have created a serchhelp (see se11)
    there  are two included search helps nested. Each one
    has it own serch help exit. First search help has two
    fields and one of them is a character field (CHAR030).
    It hasn't a reference dictionary table in that case.
    How can I assign a search help esspecially for this field.
    Its values are stored inside a internal table.
    Regards
    ertas

    Hi,
    I think you need to attach a search help to a field programitically .
    Below is one sample code.
    REPORT  ZMSTR0022.
    CONSTANTS: C_FORM_NAME TYPE TDSFNAME VALUE 'ZMST_PER_APPL'.
    TABLES :ZMST_PERMIT.
    TYPE-POOLS: SLIS.
    TYPE-POOLS :VRM.                           "Value Request Manager
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-023.
    SELECT-OPTIONS:S_PIDNUM FOR ZMST_PERMIT-ZPIDNUM ,
                   S_ENGDSC FOR ZMST_PERMIT-ZENGDSC NO INTERVALS LOWER CASE,
                   S_ARBDSC FOR ZMST_PERMIT-ZARBDSC NO INTERVALS LOWER CASE,
                   S_TARIFF FOR ZMST_PERMIT-ZTARIFF NO INTERVALS,
                   S_PERNUM FOR ZMST_PERMIT-ZPERNUM NO INTERVALS,
                   S_ARRPRT FOR ZMST_PERMIT-ZARRPRT NO INTERVALS MATCHCODE OBJECT ZMST_PORTS.
    PARAMETER:P_PERTYP(2) TYPE C AS LISTBOX VISIBLE LENGTH 20.
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_PIDNUM-LOW.
      W_NAME2 = 'S_PIDNUM-LOW'.
      W_NAME1 = 'ZPIDNUM'.
      PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_PIDNUM-HIGH.
      W_NAME2 = 'S_PIDNUM-HIGH'.
      W_NAME1 = 'ZPIDNUM'.
      PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_ENGDSC-LOW.
      W_NAME2 = 'S_ENGDSC'.
      W_NAME1 = 'ZENGDSC'.
      PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_ARBDSC-LOW.
      W_NAME2 = 'S_ARBDSC'.
      W_NAME1 = 'ZARBDSC'.
      PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_TARIFF-LOW.
      W_NAME2 = 'S_TARIFF'.
      W_NAME1 = 'ZTARIFF'.
      PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_PERNUM-LOW.
      W_NAME2 = 'S_PERNUM'.
      W_NAME1 = 'ZPERNUM'.
      PERFORM F4_HELP USING W_NAME1 W_NAME2 .         "calling subroutine to provide desired F4 help
    *&      Form  F4_HELP
          text
    -->  p1        text
    <--  p2        text
    FORM F4_HELP USING: W_VAR TYPE DFIES-FIELDNAME
                        W_VAR1 TYPE HELP_INFO-DYNPROFLD .
    Fetching data from zmst_permit for F4 help on PERMIT ID No.--
      IF IT_PERMIT[] IS INITIAL.
        SELECT ZPIDNUM
               ZENGDSC
               ZARBDSC
               ZTARIFF
               ZPERNUM
               ZARRPRT
               ZEFFDT
               ZEXPDT
               FROM ZMST_PERMIT INTO CORRESPONDING FIELDS OF TABLE IT_PERMIT.
      ENDIF.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          RETFIELD        = W_NAME1 " 'ZPIDNUM'
          DYNPPROG        = 'ZMSTR0022'
          DYNPNR          = SY-DYNNR
          DYNPROFIELD     = W_NAME2 "'S_PIDNUM'
          VALUE_ORG       = 'S'
        TABLES
          VALUE_TAB       = IT_PERMIT
        EXCEPTIONS
          PARAMETER_ERROR = 1
          NO_VALUES_FOUND = 2
          OTHERS          = 3.
      IF SY-SUBRC <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDFORM.                                                    " F4_HELP
    I hope this will help you.
    Help children of U.N World Food Program by rewarding  points and encourage others to answer your queries.

  • Search help for custome field with different data type

    Hi Friends,
    I have Created a  custom table in which i have created a field is
    ZMATLONG which stores material number.
    Now the data element is zdmat which is of char 40..
    Now i want to give search help for this field ZMATLONG..
    I have tried many ways giving search help to this field
    a) i Tried to attach the standard search help of MATNR ie : MAT1 but its showing me data type inconsistancy
    b) i created a zsearch help and in the selection method i have used database table mara , again here iam getting the same error data type inconsistancy...
    Now how can i give the search help like matnr field to my custom field ZMATLONG...
    How can i do it..?
    Thanks in Advance..
    Regards
    Kumar

    Hi,
    MATNR ahs length 18 and ZMATLONG has length 40.So due to this u cannot use MAT1 search help.
    best way would be cope MAT1 into Z search help. Then in the search help parameter change the data element of field
    MATNR as ZMATLONG.
    Now if you assign Z search help to ZMATLONG  it will work.
    I tried this its working fine.
    Shanmugavel Chandrasekaran

  • Validate field with value range

    Hello,
    I need to validate a field. This field's domain is defined in the Dictionary as a Value Range (i. e. 'A', 'B', etc.).
    How can I do it generically, that is, when I update the domain, my code will still validate correctly the values?
    Thank you!

    hi,
    Write a select on DD07L table by passing DOMNAME and get DOMVALUE_L & DOMVALUE_H which has the domain values and validate accordingly ... You can get the domain name of a data element from DD04L table where pass the data element name in ROLLNAME and get DOMNAME ...
    Regards,
    Santosh

  • How to delete entries from search help for a field

    hi guys
    how r u all doing.
    i have some questions for u.
    1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
    2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
    3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
    any help in this regard,wud be appreciated.
    thanks

    Follow this
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • Search help for a field in table control based on another field value

    Hi,
    I want to attach the Search help for a field in table control based on another field value.
    Please help me asap.
    Will be highly rewarded

    HI,..
      Check these links
    search help in table control
    Re: How to create Search Help for a field in Table control !!
    How to create Search Help for a field in Table control !!
    F4 Help In Table Control
    Control table F4 help
    Problem in F4 help in screen field
    check this code
    DATA: BEGIN OF it_value4 OCCURS 0,
             TEXTCODE  LIKE  ZXX-TEXTCODE,
             TEXTDESC  LIKE  ZXX-TEXTDESC,
           END OF it_value4.
      progname = sy-repid.
      dynnum   = sy-dynnr.
             SELECT TEXTCODE TEXTDESC
               FROM  xxxx
               INTO CORRESPONDING FIELDS OF TABLE<b> it_value4</b>
              WHERE  LOSS_CODE =<b> IT_VALUE1 .</b>
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield    = 'TEXTCODE'
          dynpprog    = progname
          dynpnr      = dynnum
          dynprofield = 'ITVALUE-TEXTCODE'  "-->UR  4 th filed value in screen
          value_org   = 'S'
        TABLES
          value_tab   = it_value4.
    endmodule.
    Message was edited by:
            veereshbabu ponnada

  • Custom field in SRM as a dropdown field with values stored in R/3

    Hi all,
    I need help with custom drop-down field in SRM 5.0 shopping cart. We need to create custom field called Location in SRM goods receipt transaction. And this location field will be a drop-down field that will be filled with values from locations stored in R/3. I would really appreciate if someone can help me achieve this.
    Regds,
    Kim

    Hi,
       Just attach a  custom search help to this field and then in the search help EXIT(RFC enabled Function module) write the logic to reterive the values from R/3.
    BR,
    Disha.
    Pls reward points for useful answers.

  • Search help for table control input value

    Hi,
    We have designed a GUI for supply invoice approval workflow with table control.
    In the table control fields, we assigned one search help on one field.
    We can enter the values(F4 Help) up 8 row in the default screen, which is having 8 row.
    After scrolling down for 9th row, I am not getting any F4 help, which I am able to get upto 8 rows.
    Please any one could help me in this...
    BR,
    Thirupathi

    Hi,
    Did you assign the search help to the <b>Search Help</b> of the <b>Attributes -> Dictionary</b> tab of the field?
    Irrespective of scrolling, the F4 help should work for the field in table control.
    Regards,
    Raj

  • Search help for screen fields in module pool

    Hi All,
    I have a screen in Module pool which has 3 input fields, each input field is attached to the same search help.
    These fields are from ztable . I have created a search help USING these 3 fields. All the 3 fields are marked for IMPORT and EXPORT.
    So whenever i click F4 on any of the above 3 fields, It will display search help popup and returns some rows...But the values are transfered back only for 1 fields ..i.e for the first field only .
    I want that ...as soon as i select any of the row from Search hit list..all the 3 columns should get populated with corresponding fields from that row.
    I require it this way as user wants to select based on * selection.Ex: as then every this related to that should be popped up.
    Pls help ASAP
    Thanks,

    This is how i got.
    data:l_shlp type SHLP_DESCR,
    l_rc type sy-subrc,
    w_DDSHRETVAL type DDSHRETVAL ,
    ls_shintf LIKE LINE OF l_shlp-interface,
    t_DDSHRETVAL type TABLE OF DDSHRETVAL.
    DATA: dyname LIKE d020s-prog,
    dynumb LIKE d020s-dnum.
    DATA: BEGIN OF dynpfields OCCURS 3.
    INCLUDE STRUCTURE dynpread.
    DATA: END OF dynpfields.
    CALL FUNCTION 'F4IF_GET_SHLP_DESCR'
    EXPORTING
    SHLPNAME = 'YTESTDMSSB'
    SHLPTYPE = 'SH'
    IMPORTING
    SHLP = l_shlp .
    ls_shintf-valfield = 'X'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SNNTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBRTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'SBSTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'ENPTX'.
    MODIFY l_shlp-interface FROM ls_shintf TRANSPORTING valfield
    WHERE shlpfield = 'PLANT_CODE'.
    CALL FUNCTION 'F4IF_START_VALUE_REQUEST'
    EXPORTING
    SHLP = l_shlp
    DISPONLY = ' '
    MAXRECORDS = 500
    MULTISEL = 'X'
    CUCOL = SY-CUCOL
    CUROW = SY-CUROW
    IMPORTING
    RC = l_rc
    TABLES
    RETURN_VALUES = t_DDSHRETVAL
    IF l_rc = 0.
    LOOP AT t_DDSHRETVAL INTO w_DDSHRETVAL.
    CASE w_DDSHRETVAL-fieldname.
    WHEN 'SNNTX'. "W_SNNTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SNNTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBRTX'. "W_SBRTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBRTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'SBSTX'. "W_SBSTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_SBSTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'ENPTX'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_ENPTX'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    WHEN 'PLANT_CODE'. "W_ENPTX = w_DDSHRETVAL-fieldval.
    dyname = sy-repid.
    dynumb = sy-dynnr.
    dynpfields-fieldname = 'W_WERKS'.
    dynpfields-fieldvalue = w_DDSHRETVAL-fieldval.
    APPEND dynpfields.
    ENDCASE.
    ENDLOOP.
    CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
    dyname = dyname
    dynumb = dynumb
    TABLES
    dynpfields = dynpfields.
    ENDIF.

  • Search Help for a Field of a Table Control

    I have designed a screen using 'Table Control' with fields like Date, BoxNo,Quantity etc. Kindly tell me how to go about providing a search help for the field 'BoxNo' of this table control so that the user is not required to scroll down the entire table/list for selecting a particular box no.
    Thanx in advance,
    Alok.

    When you go to screen painer, in screen painter attributes window, there is an atribute called search help, fill it.
    Another way is, after PAI put:
    PROCESS ON VALUE-REQUEST.
      FIELD box_no MODULE f1_help_box_no.
    And gives logic in that module using FM F4IF_INT_TABLE_VALUE_REQUEST.
    Regards.

  • Search help for a field in ztable

    Good day everyone!
    I want to create a search help for a field. I have a field 'country' in my Ztable. Now I want to create a search help for that field so that they appear in the SM30 transaction while entering the data into the table. How can I do that?
    thanks.

    First of all if the field is country and you want to display all the countries avaiable in SAP in the search help then yuo dont need to create search help for that. For that field put the data element LAND1. The F4 help will automatically appear in SM30 and when you press F4 all the countries will be displayed in the hit list.
    Now suppose there is a case where you want to display selected values only  and not all the countries in your search help then one way is to create a z-table of countries and put all the countries you want in that table then create z-data element and z-domain for that country field and in domain give the table as a value table.
    Another way is to create a view for T005  and T005T table and give the selection conditions as per your requirement and then create the search help with this view and attache the search help to your country field.

  • Search help ehancement of field in t-code F-02.

    Hi all,
    I want to ehance a filed's search help in t-code f-02.
    requirement is as below.
    when you click one field's sech help in t-code f-02. A search help pop-up window will display. In this pop-up window, there are several tabs.  I want to add a new tab in this pop-up window.
    In this new tab, I want to add 2 new fields (for example, company code & bank code) in this tab. each tab also has search help.
    And also if I input value "1000" in the company code field, the search help value of field bank code will automatically relate to "1000".
    could anyone give me a solution or suggestion?
    Thanks in advance!

    Hi,
    1. You can add new fields in the complex search help of the field
    by editing the search help exit. please check search help have any search help exit attached to it.
    Frank Zhang wrote:
    > And also if I input value "1000" in the company code field, the search help value of field bank code will automatically relate to "1000".
    I not sure how a F-02 screen value of company code in the entry screen can be relate with bank code in the search help

  • How can we create a Collective search help  plz tell me with steps

    How can we create a Collective search help  plz tell me with steps
    thanks,
    basu

    Hi
    1) Elementary search helps describe a search path. The elementary search help must define where the data of the hit list should be read from (selection method), how the exchange of values between the screen template and selection method is implemented (interface of the search help) and how the online input help should be defined (online behavior of the search help).
    2) Collective search helps combine several elementary search helps. A collective search help thus can offer several alternative search paths.
    3)An elementary search help defines the standard flow of an input help.
    4) A collective search help combines several elementary search helps. The user can thus choose one of several alternative search paths with a collective search help.
    5)A collective search help comprises several elementary search helps. It combines all the search paths that are meaningful for a field.
    6)Both elementary search helps and other search helps can be included in a collective search help. If other collective search helps are contained in a collective search help, they are expanded to the level of the elementary search helps when the input help is called.
    CREATION:
    Go to SE11  Tcode
    select search help
    give the 'z' search help name and create
    select the selection method ur table name eg : 'mara'
    dialog module 'display value immediately'.
    add the field whatever u want and lpos = 1 and spos = 1 and check import and export parameter.
    where left position when displaying and spos = search position
    and then save and activate ..
    See the links:
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    Search Help Exits:
    Re: dynamic values for search help
    Re: Dynamic search  help
    Reward points for useful Answers
    Regards
    Anji

  • Adding Search help to a field of standard transction

    hi experts,
    i m new to abap.
    my pp consultant wants that in transaction MM03, for the field on selection screen (Material) one more search help should be added. and on pressing f4 it should be displayed there with other search options.
    The search field is "(Document)-Number of the drawing that exists for this object".
    Note: To see this field run transaction MM03, enter a material and press enter then we get a screen to choose a view. choose basic data2. In the block "design drawing" there is a field for "Document".
    is it possible? if yes how much time it would take and to do it.
    how should i go about it.
    plz help.

    Hi ANNIE,
    Go through the following Procedure to add a Search help to a field of standard Transaction
    The Matchcode is replaced by search help from the version 4.6C.
    I will tell u how create the search help.
    Name of a search help
    A search help is an object of the ABAP Dictionary with which input helps
    (F4 helps) can be defined.
    There are the following types of search helps:
    o Elementary search helps implement a search path for determining the
    possible entries.
    o Collective search helps contain several elementary search helps. A
    collective search help therefore provides several alternative search
    paths for possible entries.
    o Append search helps can be used to enhance collective search helps
    delivered by SAP with customer-specific search paths without
    requiring a modification.
    The three components of the input help process described by a search
    help are the outer interface, the online behavior and the method of data
    Go to Tcode SE11. Select the search help radio button.
    Give name as ztest and click create
    There are two types of search help.
    Once is elementary search help
    & collective search help
    Choose one.
    Add the data element.
    MatchCode is replaced by search helps.
    To attach a search help to a field.
    Use this code.
    at selection-screen on value-request for source.
    progname = sy-repid.
    dynnum = sy-dynnr.
    clear value_tab.
    refresh value_tab.
    Filling the Value_tab internal table by itab2 internal table.
    loop at itab_desc.
    write itab_desc-description to value_tab.
    append value_tab.
    endloop.
    prog = sy-repid.
    no = 1000.
    clear tab.
    refresh tab.
    Building the Structure of the Seach Help.
    tab-tabname = 'FMFCTRT'.
    tab-fieldname = 'BESCHR'.
    collect tab.
    Function Used to provide Search Help.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'BESCHR'
    dynpprog = prog
    dynpnr = no
    dynprofield = 'SOURCE'
    window_title = 'Function'
    TABLES
    value_tab = value_tab
    field_tab = tab.
    Regards
    Sreeni

  • Hi search help for my field?

    Hi friends,
                   I have got a input field in screen painter with name FORMNo.
    Formnos are stored in Zform table.
    I want to create search help for this field please can anyone share me the procedure for createing the search help for my field. Its veru veru urgent please help me with answer.
    points will awarded for helpful answer.
    THks

    hi,
    PARAMETERS: p_filnam TYPE ibipparms-path.
    For value request use the below function
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_filnam. 
    And
    you have to call one functio nmodule
    CALL FUNCTION 'F4_FILENAME'
    EXPORTING
       program_name        = syst-cprog
       dynpro_number       = syst-dynnr
      FIELD_NAME          = ' '
    IMPORTING
       file_name           = p_filnam-----pass the p_filnam here
    Reward Points if usefull
    Regards
    Fareedas

Maybe you are looking for

  • Embedded m4v, avi and mov did not load, when published to server

    Hi there, today I created a new webpage, for the first time with iWeb. It work perfect on my mac including embedded movies. When I published it to my server, all pages loaded fine, but the movies did not. They started a bit and then everything ended

  • Circling the drain; Word= unexpected quit @ startup

    Funny how things accumulate.... ok, I just fixed the "Verify Disk" logged in. Reinstalled Office X. Put in code. Start Word app: Unexpected Quit. Any thoughts? What vulnerability did the Word app have to require the patches/updates? (I'll google sear

  • E-Mail while in PhotoShop?

    Just got Adobe PhotoShop, and cannot figure out how to send a picture via an e mail in my Outlook 2007?

  • Granting Privileges on Functions

    Hi, I have created two functions and am using them in a SQL statement. I would like to run the statement in apps mode, however the functions have been created under another account. I get this error message when running the statement in apps mode: OR

  • My book project won't open in iPhoto '11

    Finally got my iLife disc in the mail yesterday and installed. Ran through the iPhoto upgrade, no problems that I could see. I backed up my Library before upgrading just in case - no apparent loss in file size; actually the new library is a little bi