Serach help

Hi All,
    How to specify searc h help parameter  as mandatory for user.
Thanx,
Amruta.

This is how we can Attach a Search Help to the Screen Field
Use this functionality .
FORM HELP_CHECK.
*-- Set up fields to retrieve data
  ltab_fields-tabname    = 'ZFI_PMNTADV'.
  ltab_fields-fieldname  = 'CHECT'.
  ltab_fields-selectflag = 'X'.
  APPEND ltab_fields.
  ltab_fields-tabname    = 'ZFI_PMNTADV'.
  ltab_fields-fieldname  = 'PMNT_ADV'.
  ltab_fields-selectflag = 'X'.
  APPEND ltab_fields.
  SORT ltab_fields.
  DELETE ADJACENT DUPLICATES FROM ltab_fields.
*-- Fill values
  SELECT chect
  INTO TABLE ltab_values
         FROM zfi_pmntadv
            WHERE pmnt_adv NE space.
  SORT ltab_values.
  DELETE ADJACENT DUPLICATES FROM ltab_values.
CALL FUNCTION 'HELP_VALUES_GET_WITH_TABLE'
     EXPORTING
          fieldname                 = 'chect'
          tabname                   = 'zfi_pmntadv'
          title_in_values_list      = 'Select a value'
     IMPORTING
          select_value              = so_chect
     TABLES
          fields                    = ltab_fields
          valuetab                  = ltab_values
     EXCEPTIONS
          field_not_in_ddic         = 01
          more_then_one_selectfield = 02
          no_selectfield            = 03.
ENDFORM.                    "fiscal_year
Hope this might help you to solve your query.
If you find the above usefull please award Points.
cheers,
Chandra Sekhar.

Similar Messages

  • Can we create serach help for a selection screen field

    Can we create serach help for a selection screen field with out creating searchhelp object.
    I mean is it possible to create serchelp in the program itself with some specific values i want to give.
    E.g say we can define any internal table and fill it with values and using that into selection screen fields
    Regards
    Mave

    AT SELECTION-SCREEN ON VALUE-REQUEST FOR paymeth.
      PERFORM PAYMENT_HELP.
    FORM PAYMENT_HELP.
      DATA: begin of DESCR_TAB occurs 0,
            DESCR LIKE BKPF-BKTXT,
            END OF DESCR_TAB.
      DATA: gd_repid like sy-repid.
      gd_repid = sy-repid.
      DESCR_TAB-DESCR = 'aaaaa'.
      append DESCR_TAB.
      DESCR_TAB-DESCR = 'bbbbb'.
      append DESCR_TAB.
      DESCR_TAB-DESCR = 'ccccc'.
      append DESCR_TAB.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
           EXPORTING
                retfield    = 'DESCR'
                DYNPPROG    = gd_repid
                DYNPNR      = '1000'
                DYNPROFIELD = 'paymeth'
                VALUE_ORG   = 'S'
                DISPLAY     = ' '
           TABLES
                value_tab   = DESCR_TAB.
    endform.
    Svetlin

  • Serach help  exit (vendor NAME1 field)

    Hi friends,
    I have developed a search for vendor number using a custom view.
    In view I am parameter for name. In case vendor if I gives lower case details if I specifiy lowrcase value (e.g. test) and gives only uppercase value for in case uppercase values (TEST). I know it is happing becasue of lower option is ticked on domain of NAME1 field.
    I want to get both uppercase and lowercase values irespective of input is uppercase or lowercase.
    Is it possible to elminate the restriction using serach help exit?
    Regards,
    Amit R.

    Hi,
    I used MCOD1 field in Search help for field refernce to NAME1 field.
    Thanks and regards,
    Amit R.

  • Edit Default Serach help

    HI Experts,
                   Is there any way to personalize the settings available on search help?
    Default serach help comming for my input field contains two fields. i want to hide one with my code.
    Please suggest if u have some idea to do this
    Regards
    Sarath

    Hi,
    Its not possible .... u have to copy that search help as Z search help and then disable that field for display ...
    regards
    Yash

  • Diff between elementary & collective serach help?

    frends tell me diff between elementary & collective serach help?

    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.
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee38446011d189700000e8322d00/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee45446011d189700000e8322d00/content.htm
    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.
    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.
    Elimentary search help is a single search help and you will not see any more TAB's in the search help you will see only one dialog screen or directly the data.
    In the case of collective search help you will have collection of search helps in to one search help. Dialogs of each search will be available as one TAB in the search help for that field. You include search helps which are similar into one collective search and use that for your field.
    sri

  • Prefered Vendor Serach Help

    Hi All,
    I am facing a problem in using the prefered vendor search help.
    When I create a SC and go to sources of supply serach help and on click on start I get few BP numbers.
    The problem comes when on selecting on any BP numbers (hyperlink)...it does not transfer to SOS screen ,prefered vendor field
    Kindly Suggest what could be the problem .
    Regards
    Bidyut

    Hello,
    You can verify if note 1391524 helps you.
    In this case, an External Service Staff- Order has been inserted in the cart and assigning a vendor via search help does not work.
    Kind regards,
    Ricardo

  • Hide append serach help

    Hi,
    I have few append type search helps available in a collective search help "DEBI". i want to hide 2 of the append seacrh helps. But when i try to do that the hide checkbox for "append search help" comes inactive and it doesn't allow me to hide .
    is there any other way to hide append search helps within a collective search help.
    pls advice.

    Hi Neha,
    DEBI is standard search help and i am having authorisation for modification. but concern is that it contains 3 append search helps in it which i want to hide. but it is not allowing me to hide those 3 append search helps as the checkbox for "hide" is inactive in case of append search help.
    is there any other way to hide append search help within a serach help. i know we can hide elementary or collective search help by making "hide" as "X" but what about append search helps. it doesn't allow modification in Hide option as the checkbox for hide is inactive.
    pls advice....
    Sandy

  • Search Help with in a serach help required in SRM 4.0

    Hi,                                                     
    Requirement: Search help required for Product Category field in the Search help for Product(BBPH_PRODUCT) in SRM portal.
    This search help is used in Create shopping Cart transaction. The hyper link on Internal Goods/Services leads to the search help BBPH_PRODUCT. 
    My analysis:           
    The field Product Category (CATEGORY_ID) has search help(COM_CAT_HIER) attached to its data element. When I single test the search help BBPH_PRODUCT in SAP GUI,I can see the search help for field product category in the selection dialogue box. However the same does not appear on the corresponding screen in HTML.
    Please let me know whether I need to do some thing to make the search help appear on the HTML screen?
    With Regards,         
    Prakash Kamath

    Hi Prakash,
    I have the same problem but with another field. Unloading point. Could you please tell me how did you solve this problem with displaying F4 help on html/ SRM portal?
    Thank you very much.
    Best regards,
    Danijela ZIvanovic

  • Serach help in Select-option in WD ABAP

    Hi Folks,
    I am using WDR_SELECT_OPTIONS reusable component in my Component.  I want to attach customized search help particular fild while creating select-option using
    wd_this->m_handler->add_selection_field(
                 i_id        = 'IWERK'
                 it_result   = lt_range_table
                 i_read_only = read_only ).
    Can anyone explian how can I attach search help here.
    Regards,
    Vishal.

    Hi Vishal,
    If its a search help, use the following code:
    lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'S_PLANETYE' ).
    wd_this->m_handler->add_selection_field(
    i_id = 'S_PLANETYE'
    it_result = lt_range_table
    i_read_only = read_only
    I_VALUE_HELP_TYPE = 'SEARCHHELP'
    i_value_help_id = 'Z_SAPLANE' ).
    In this example, 'Z_SAPLANE' is the dictionary search help.
    This will solve your problem
    For further details, goto interface IF_WD_VALUE_HELP_HANDLER to get a list of values you can supply to parameter I_VALUE_HELP_TYPE.
    This is similar to what you do with a context, similar to the options you get in the dropdown for Input Help property.
    Regards,
    Chitrali

  • Calling serach helps from  R/3

    HI Guru's
    How do I call a R/3 search help from SRM? I want to work it the same way as it works in R/3.
    Thanks,
    Krishna

    Hello,
    Please check the following notes:-
    171117
    550052                          
    642202                         
    673390
    656633
    746788
    708580 
    693795
    712701
    725247
    I hope this will definately help.
    Thanks and regards,
    Gaurav

  • How to create a serach help

    Hi Guys
    Could you please explain me in detail the steps involved in
    creating a dsearch help
    Thanks in advance

    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
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=2176485
    https://forums.sdn.sap.com/click.jspa?searchID=3173469&messageID=3601619
    pls go through this for search help creation
    http://help.sap.com/saphelp_nw2004s/helpdata/en/41/f6b237fec48c67e10000009b38f8cf/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee2b446011d189700000e8322d00/content.htm
    Search Help Exits:
    Creating Elementary Search Helps
    Procedure
    In the initial screen of the ABAP Dictionary, select object class Search help, enter the name of the search help and choose Create.
    A dialog box appears in which you must select the type of search help.
    Select Elementary search help and choose .
    The maintenance screen for elementary search helps appears.
    Enter an explanatory text in the field Short text.
    You can for example find the search help at a later time using this short text.
    In the Definition tab page enter the selection method of the search help.
    You can enter the name of a table or a view (database view, projection view or help view) here. If you enter a table that has a text table, the name of the text table is automatically entered in the corresponding field.
    Using the input help (F4 help), select fields of the selection method as parameter in the Search help parameter area. Select the fields that should be used in the dialog box for value selection or in the hit list.
    If the selection method is a table that has a text table, both the fields of the table and the fields of the text table are offered in the input help.
    The data element of the parameter is automatically copied from the selection method. The data element defines the output attributes and the F1 help of the parameter in the hit list and in the dialog box for value selection.
    You can assign the parameter another data element. To do so, select the Mod flag. The Data element field is now ready for input. Then select a data element with the input help (F4 help). Only data elements whose data type, length and number of decimal places is the same as those of the previous data element can be assigned.
    This removes the link between the data element of the search help parameter and the data element of the selection method field having the same name. If you cancel the Mod flag, the data element of the assigned table field is used again.
    Define the attributes of the search help parameters.
    Select the IMP flag if it is an import parameter. Select the EXP flag if it is an export parameter.
    You can define the dialog for the input help with the fields LPos, SPos and SDis. Enter the parameter position in the hit list in LPos. If you enter nothing or the value 0 here, the parameter is not displayed in the hit list.
    Enter the parameter position in the dialog box for value selection in SPos. If you enter nothing or the value 0 here, the parameter is not displayed in the dialog box for value selection.
    Set the SDis flag if the parameter should be a pure display field in the dialog box for value selection. The user is thus informed that the contents of the parameter restrict the value, but he cannot change this restriction. This makes sense for example when the parameter is an import parameter or if it has a default value.
    You can assign the parameter a default value in the Default value field.
    Select the dialog type of the search help.
    The dialog type defines how the hit list is displayed in the input help.
    Save your entries.
    A dialog box appears in which you have to assign the search help a development class.
    Choose .
    Do not forget to link the search help to a screen field. The search help attachment is not part of the search help definition; it is part of the object definition to which the search help is attached.
    Result
    The search help is activated. You can find information about the activation flow in the activation log, which you can display with Utilities ® Activation log. If errors occurred during activation, the activation log is automatically displayed.
    Other Options
    Assign a hot key: If the search help is to be accessed with a hot key, you must enter a one-place ID in the Hot key field. All the elementary search helps contained in a collective search help should have different short cuts.
    Assign a search help exit: In exceptions, you might have to change the standard flow defined by the search help with a search help exit. In this case enter the name of the search help exit in the corresponding field.
    Test the search help: You can test the flow of an input help defined by the elementary search help with . A dialog box appears in which you can simulate the behavior of the search help under different conditions. You can obtain information about the options provided in this window with .
    http://help.sap.com/saphelp_erp2005/helpdata/en/cf/21ee5f446011d189700000e8322d00/content.htm

  • Help on Serach help needed

    Hi friends
    I have to make changes to a search help created by sap
    In this search help ither are  attached 4 fields from a table , but I have to exclude some records based on another field wich is not in the chosen fileds.
    let say that  I have a  header  field which can have 1 , 2 , 3  or 4 value, I only want the value 1 and 2 to be showen.
    Is there any way that I can add the header field to the other fields, or any way that I can write  a code to exclude header 3 and 4.
    any help is higly appreciated.
    Thanks

    Hi malu,
    Please search in SCN.

  • 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

  • Usage of serach help in BDC

    Hi,
    I have problem with search help for a field while using BDC.
    process on value-request.
      field: tcp-cp module value_for_cp.
    Here I'm calling perform value_for_cp when the user press f4 button.
    But when I run BDC recorder its not recording F4(search help) selection.
    Any idea how to use search help(F4) for a field using BDC or is there is any function code is available for F4 button.
    Thanks for your help in advance.
    Regards
    Chandra

    Hi Chandra,
    ok, there is no recording. Normally I would select necessary data in my program, which creates BDC - it's much easier (and faster).
    Nevertheless: try adding bdc_okcode /04 (should simulate typing F4) and add further fields and screens manually in your BDC.
    If there is only one hit, different users will have different settings for 'immediate return'. If there are many hits, you will have trouble to identify desired line.
    You can get some aid, when hitting F1, F9 one important fields to see technical attributes. In the end of popup 'name for batch-input' will be shown, also screen number and program name are shown in the beginning.
    Sometimes it might be difficult to pre-read allowed values - but still: should be easier.
    Regards,
    Christian

  • Clear the webdynpro error messages in Dictionary serach help window

    Hi ,
       I have a search help attached to one of the table column in table control. In the On Enter event of search help i am trowing some error messages. I am using Dictionary standard search help....
    On enter event is working fine.  My issue is when some error messages are thrown in the webdynpro view those messages are also displaying in the search help window. Whatever may be the message is showing in the webdynpro view at runtime all those messages are getting displayed when i open a searchhelp  in the table control.
    How can i clear those messages ? When its standard searchhelp where can i write the code to clear the webdynpro meesages.
    Could anybody suggest me on this....?
    Thanks & Regards
    Sireesha...

    Hi Sireesha,
    As far as I know there is no direct way to track the event of F4 window opened, so that we can clear the messages...
    Below is one solution.
    WD Standard fires an event when ever a window is opened in the application.
    The event that is fired is CL_WDR_WINDOW->IF_WD_WINDOW~WINDOW_OPENED
    This is an instance event. Please follow the below steps to handle this event
    1) Store the message manager reference in a class as a Static variable
    2) Create a Event handler for all instances (A Static event handler will suffice)
    3) Give importing parameter Sender (it will be automatically identified by the class builder and the corresponding CL_WDR_WINDOW reference will be populated into this at runtime)
    4) Now use the below code to clear the messages
      DATA lcl_window_ref TYPE REF TO cl_wdr_internal_window.
      TRY.
          lcl_window_ref ?= sender.
       CATCH cx_sy_move_cast_error.
          RETURN.
      ENDTRY.
      IF lcl_window_ref->is_value_help = abap_true.
        CALL METHOD gr_wd_msg_mgr->clear_messages
          EXPORTING
            including_permanent_msg = abap_true.
      ENDIF.
    below is how u can set the handler
    Assuming handler method is clear_msgs_on_f4wd_window_open
       SET HANDLER clear_msgs_on_f4wd_window_open FOR ALL INSTANCES.
    Please let me know if you need more help
    Thanks,
    Anand

  • Serach help prob

    hello friends
    i had an table named zhr_per_m where i had ocode field that had foriegn key with a table zhr_occu_type.
    OCODE,ZCHAR,CHAR,ZHR_OCCUP_TYPE,Explicit search help attachment to field,ZHR_HELP_OCCUPTYPE,ZCHAR
    i had made a help elementary help which retrives the vale for occup and its desc
    search help para   imp exp  lpos spos       Data Element
    OCODE                              1        1          ZCHAR
    OTYPE                              2        2          ZVARCHAR
    ok
    now the problem is that
    <b>" i m entering the values for ocode by using f4 help but weni want to change the output lets suppose first  i enter 1 for student and now i want to enter 2 for engineer then its not showing other options rather than student i mean wen i go back and press f4 its not showing the full value"</b>
    and if remove help from zhr_per_m and then run then it will only show 1 2 3 but will chnge as i want
    but i want
    1 student
    2 engineer
    like this
    Hopefully i m able to explain my problem
    Help me out
    Thanx
    With Best Regards
    Ruby

    H,
    I think you are marking some paramters as both Importing and Exporting.
    For the second time the paramter that you exported is being used as the IMPORTING paramter and only that value is beig shown.
    So make only those paramters as IMPORT in the search help which you want to use as filtering criteria.
    Regards,
    Sesh

Maybe you are looking for

  • It wont let me download FREE apps?

    I bought a few apps (paid with credit card) a few days later I went to download a free app and now it says I have a past due amount. But shouldnt I still be able to get free apps?

  • Error message 4850

    I am getting error message 4850 (attempt to burn disc failed) whenever I try to record either an MP3 disc or a regular cd. I am completely unable to burn. I am posting my CD diagnostics. I am a computer idiot, but I can be walked through a process to

  • Youtube freezes or hangs firefox but works great in Internet Explorer

    Every time pull up youtube in Firefox it immediately freezes or hangs the entire browser. the only thing I can do is close down Firefox via the task manager. This happens every single time. It used to work fine. I've even disable accelerate video. No

  • Oracle 10g: Pl/sql  and bind and decimals.

    Hi! I wonder if someone could help me with this PL/SQL -issue. Looks like basics example of binding, but how do you get decimals in the output? I have tried to declare dec, decimals, number(7,2) etc., but best I can get is just plain numbers without

  • Apps downloading real slow on iPhone 5?

    I just got the 5 after my 4 mysteriously died last night. None of my apps showed up so I went to the app store and started downloading all the ones I used to have on my old phone (they were marked with a cloud). There are about 30, and they are still