Disable fields in search help restriction window

Hi Experts,
Here is the situation:
I have created the new search help for material number and assigned this search help in my module pool program.
As soon as user press F4 button on material number , it will display search help restrictions window with 4 fields ( material, material type, plant, plant status).
I have set default value for the material type in search help itself. But I would like to disable this field.
I mean .... user should not enter any other values other than my default value. So I should disable the material type field in searh help restrictions window.
Pls help me.
Thanks
Raghu

Hi Vinod,
In the FM F4IF_INT_TABLE_VALUE_REQUEST, pass exporting parameter callback_form = 'SUB_CALL_BACK'.
Define the sub routine with the SUB_CALL_BACK with below logic
        FORM SUB_CALL_BACK TABLES record_tab STRUCTURE seahlpres
                                               CHANGING shlp      TYPE           shlp_descr
                                                                 callcontrol TYPE DDSHF4CTRL.
               callcontrol-MULTISEL = 'X'.           
         ENDFORM.
Hope it helps.
Regards
Gangadhar

Similar Messages

  • Extra fields in search help window in Record working time EHP5

    Hi Experts,
    Can you please let me know how to add additional fields/select options in search help window for Record Working Time ?
    My system is EHP5 NW 7.02
    I have added the custom search help for the respective filed in table " TCATS_SHLP_ITS".
    I can see this table is having entry for only 4 selection options and 6 value fields for search help display.
    But in my custom search help programme is having 8 select options(for advance search) and 10 display fields on the search window. It's working from CAT2 transaction but when I am running through webdynpro timesheet, I can only get 4 select options and 6 value fields.
    Please let me know how to make the other fields available.
    Thanks in advance.
    Sonia

    Hi Siddharth,
    Thanks for your response. In that modify possible entries screen (Details view) I can see the search help is only having 4 select options and 6 display fields.
    So as per my understanding max 6 display fields/4 select options can only be displayed on search window.
    My requirement is to display more fields on search help OVS window.
    Can you please suggest.
    Thanks ,
    Sonia

  • How to display check box in the search help restriction pop-up window

    Hi Experts,
    I have created one searc help with dialog value restrictions. Search help contains 4 fields.
    Out of which one field has length one character.
    As oon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 4 fields.
    I would like to show that field ( one character length field) as check box in search help restrictions pop-up window.
    Pls help me ,... How can we acheive this..
    Thanks
    Raghu

    Ur Exact Requirement,
    Types : begin of itab,
         fields type c,
         Check type c,(For Check Box)
         end of itab.
    data it_tab type standard table of itab.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_input-low.(If it is in select-options)
      CLEAR  v_input.
      GET CURSOR FIELD s_input VALUE  v_input.
      CALL FUNCTION 'AIPC_CONVERT_TO_UPPERCASE'
        EXPORTING
          i_input  = v_input
          i_langu  = sy-langu
        IMPORTING
          e_output = v_input.
      CLEAR s_input-low.
      IF v_input NE '' .
        IF v_input NE '?'..
          v_input1-sign = 'I'.
          v_input1-option = 'CP'.
          v_input1-low = v_input.
          APPEND v_input1.
        ENDIF.
      ENDIF.
    SELECT DISTINCT   Field
                      FROM Table
                      INTO TABLE it_tab
                      WHERE field IN v_input.
    CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
              EXPORTING
                i_title                 = 'Select Colors'
               i_selection             = 'X'
                i_zebra                 = 'X'
                i_screen_start_column   = 5
                i_screen_start_line     = 5
                i_screen_end_column     = 30
                i_screen_end_line       = 12
                i_checkbox_fieldname    = 'CHECK'
                i_tabname               = 'IT_TAB'
                i_scroll_to_sel_line    = 'X'
                it_fieldcat             = it_fieldcat1
                i_callback_program      = sy-repid
                i_callback_user_command = 'USER_COMMAND1'
              IMPORTING
                es_selfield             = selfield
              TABLES
                t_outtab                = it_tab
              EXCEPTIONS
                program_error           = 1.
    Cheers,
    Naveen

  • CheckBox in search help restriction dialog.

    Hi Experts,
    I have created one search help with dialog value restrictions. Search help contains 6 fields.
    Out of which three fields has length one character(Data Element XFELD).
    As soon as user press on F4 on particular field, it will display pop-up window with restrictions and displayed 6 fields.
    I would like to show that fields(with Data Element as XFELD) as Check Box in search help restrictions pop-up window.
    Pls help... How can we do this.
    Thanks
    Vinod

    Hi,
    Kindly check the standard search help "F4TESTCHECKBOX".  Copy it and change the dialog type to 'Display with restrictions' . On execution,  you will notice that -
    i) On the restriction screen the checkbox is displayed as textbox .
    ii)  In list display , checkbox is displayed correctly .
    Follow Raymond's suggestion,
    You could define your own selection-screen, and display it in a search-help exit : if step = 'PRESEL', display your screen, modify selected values in table shlp-interface  and force next step as 'SELECT' to bypass standard selection-screen.
    Regards,
    DPM

  • How to replace a field's search help of DDIC in FPM feeder class?

    Hi All,
    I want to replace a field's search help in DDIC structure, for an example, in structure HCMT_BSP_PA_XX_R0009, the field BANKL(Bank Keys) has a search help named 'H_BANKL', I want to replace this search help with other one such as 'H_BANKEY' in the FPM feeder class CL_HRESS_PER_DETAIL, I redefined such method:
    method if_fpm_guibb_form~get_definition.
    field-symbols: <fs_field_description> like line of et_field_description.
    call method super->if_fpm_guibb_form~get_definition
    importing
    es_message = es_message
    eo_field_catalog = eo_field_catalog
    et_field_description = et_field_description
    et_action_definition = et_action_definition
    et_special_groups = et_special_groups
    ev_additional_error_info = ev_additional_error_info.
    read table et_field_description assigning <fs_field_description> with key name = 'BANKL'.
    set search help name of field 'bank key'
    if <fs_field_description> is assigned.
    <fs_field_description>-ddic_shlp_name = 'H_BANKEY'
    endif.
    endmethod.
    I test it and found the search help window was replaced indeed, but all the value of import/export parameters in the new search help was lost, it means, the value of import paramer BANKS(Bank country) and the export parameter BANKA(bank name) were lost. Only the value of BANKL itself can be returned by the new search help window. Can you give me some suggestions about how to maintain the link( value exchange) between structure HCMT_BSP_PA_XX_R0009 and dynamically defined search help 'H_BANKEY' in FPM feeder class?
    I tried to use sap memory ID but it doesn't works well.

    This question was answered at [Webdynpro Forum|how to replace a field's search help of DDIC in FPM feeder class?;:
    That is because for the import and export of DDIC Search help values to work in WDA, not in FPM layer.Feeder Class can do nothing about it.

  • How to delete a field from search help which is delivered

    hi
    I got a requirement to delete a field from search help which is delivered long back
    Regards
    krishna

    Hi
    Whether it exists in DEV system or not?
    Take the name of that Search Help from PRD/Quality(if it is not there in DEV system) and modify/change it by removing that field from the search help in DEV system and create a Transport request and transport the same request to Quality/PRD systems
    Now the New changes (in which the field was removed) will be over written on the old search help in the PRD system, since it is the same Name (search help)
    Regards
    Anji

  • Adding new field in search help result view

    Dear Experts,
    I want to include one more field in search help result. The field shoud give description.
    How can i do this in UI result view?
    If I try to add attribute in result view, the result view is of type table, and it does not allow us to add value node. It will allow us to add model attribute. If I add attribute in search help resut table view then will i be able to see it in table form.
    Thanks and regards
    Pankaj Kumar

    Hi Pankaj,
    Its not that difficult.
    There are two ways
    1. You can enhance your Result BOL object through EEWB and append your z-field to std. BOL result object. This then appears automatically for your result context node and then you can pull it to the view in config tool.
    2. Directly go to your context node class (CN00 , CN01 etc ) , now copy method GET_S_XYZ , paste it and rename as GET_yourfieldname. Similarly copy SET_S_XYZ, GET_M_XYZ and GET_I_XYZ and paste and rename. Once activated. Quit the component browser completely. Open again using bsp_wd_cmpwb. open you view and then your node. You can find you new attribut present as struct.YourField.
    You can then copy code from available setter-getter methods for this attribute. You must handle setter getter by urself in this case. In may std. nodes, this is done for description field. I have personally done this for product descripton field.
    if you dont want the field to be part of structure ( i.e. as struct.Yourfield ) then you can also copy paste GET_XYZ, SET_XYZ methods. your filed then do not appear as Struct.YourField but it just appears as YourField name under context node.
    Hope this helps you.
    Thanks & Regards.
    You can check PRODUCTDESCRIPTION  attribute of BTAdminI node of BT115QIT_SLSQ/Items  view of BT115QIT_SLSQ component. They have added it the same way as i described above. You see the GET_ method to see how they are retrieving product description. In my object, i wrote direct query to Comm_prshtext table to retriev short_text by passing product guid and then assigen it to value variable of Get method.
    Edited by: suchita P on Sep 20, 2008 2:22 AM

  • F4 help in selection fields of search help

    Hi all,
    I've created a elementary search help for sold to party and appended it to collective search help.
    Now my problem is i need F4 help in one of the selection fields of search help.
    How can i get it.
    I m using selection method where ive created a view which fetches all data..
    Thanks in advance
    Palak

    Hi,
    1)Double click on the dataelement of your field on which you want f4 help then in the first tab itself you will find two option one for attaching the search help you have created(Elementry/ Collective) and second option is the parameter ID.
    You have to look for the first option to attach the search help.
    2) You can create f4 help for your Parameter or Selection screen by using the event.
    AT SELECTION-SCREEN ON VALUE-REQUEST for PARA/Selection screen.
    Further you can use the FM mentioned above F4_INT.....
    Hope it is clear now.
    Vikas Badhan

  • Search Help - Restricting entries in standard search helps

    Hi, is there any way to restrict entries in an SAP supplied search help?  The search help in question is 'SSH_T007A', this search help also has a user exit 'F4_TAXCODE_USER_EXIT'.  I'm not sure if the user exit is of any use or how to use it.  Ideally what I need to do is to restrict the list of applicable tax codes to only those that we want our users to select.  Does anyone have an idea of how to do this with a minimum of customization?
    Thanks in advance,
    Kevin May

    Hi Seshatal,
         Thanks for the input, but this field does NOT  have any ON VALUE REQUEST event associated with it ....
       as soon as F4 is hit, it goes to Function help_start ,so I don't think we can make any changes here as it is standard .
       I think including a standard search help will help....how to achieve this ?
    Thanks,

  • Regarding search help restrictions...

    Hi Experts,
    I have created search help with dialog type C (i.e Dialog with restrictions).  As soon as user hits F4 on particular field , it will give pop-up with restriction count.
    I want to set restrict count by default 10 instead of 500. How can we acheive this.
    Please help me .
    Thanks in advance
    Raghu

    [search help exit|http://help.sap.com/saphelp_nw04s/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm]
    [Search help Help|http://www.sapdevelopment.co.uk/dictionary/shelp/shelphome.htm]
    check my wiki for the code for a search help exit.
    J@Y

  • Search help restricted selection

    Dear All,
    Can we restrict search help to display only desired value.
    for example I have two input fields one each for plant and storage location and I want to display possible values for Storage location based on the input plant.
    is it possible?
    I am using a search help based on table T001L
    Can you guys help me on this.
    Thanks
    Amit

    For plant and storage location, this is handle automatically by the standard search helps.  I believe you need to use the memory ids to force this behavior.  Please try this as it works good in my system.
    report zrich_0001.
    tables: mseg.
      select-options WERKS for MSEG-WERKS memory id WRK.
      select-options LGORT for MSEG-LGORT memory id LAG.
    Regards,
    Rich Heilman

  • The field SAKNR search help doesn't work?

    Dear Expert,
    My dialog program used a table field data element call SAKNR ,
    and i set the search help in the layout screen of my table control.
    the search help works but after i double click it but the value didn't show up
    in the field.
    don't know what's going on...
    Please Help.
    Regards
    Jack Lee

    Search Help Name   :- C_SAKNR for data element  SAKNR and value table is SKA1 in module pool you can assign  Search Help Name

  • Value is not populating in field through search help f4

    Hello Expert,
    I have made one field as a search help but data is not populating from popup.
    Data is coming from BP_search_help. Here i did not create any search help in se11. not required here.
    i used Code in get_p method.
    Method GET_P_BP_NUMBER.
    CASE iv_property.
        WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
          IF iv_display_mode EQ abap_true.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_event_link.
          ELSE.
            rv_value = cl_bsp_dlc_view_descriptor=>field_type_input.
          ENDIF.
        WHEN if_bsp_wd_model_setter_getter=>fp_onclick.
          rv_value = ' '.  "EC NOTEXT
      ENDCASE.
    ENDMETHOD.
    GET_V Method.
    DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
            lt_inmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
            lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
      ls_map-context_attr = 'STRUCT.BP_NUMBER'.
      ls_map-f4_attr = 'PARTNER'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
            EXPORTING
              iv_help_id        = 'BP_HEAD_SEARCH'                            "#EC NOTEXT
              iv_help_id_kind  = if_bsp_wd_valuehelp_f4descr=>help_id_kind_dtel
              iv_trigger_submit = 'X'
              iv_input_mapping  = lt_inmap
              iv_output_mapping = lt_outmap
    endmethod.
    But when i activate get_v method .i am getting 1 error.
    Error is
    Please help me how to rectify this error and any other way to populate data in field through f4 help.
    If u want more detail. Please follow attachment.

    Hi Madhuri,
    You can refer the below code for search help for partner. The code has to be written on GET_V_XXX method.
    DATA: ls_map TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
             lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab.
       ls_map-context_attr = 'STRUCT.BP_NUMBER'.
       ls_map-f4_attr = 'PARTNER'.
       APPEND ls_map TO lt_outmap.
       CREATE OBJECT rv_valuehelp_descriptor TYPE cl_bsp_wd_valuehelp_f4descr
         EXPORTING
           iv_help_id        = 'UIF_BUPAP_WIDE_COL'    ""Search help name
           iv_help_id_kind   = if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp
           iv_trigger_submit = abap_true
           iv_input_mapping  = lt_inmap
           iv_output_mapping = lt_outmap.
    Thanks,
    Ritu

  • Value Transport (Exporting) to multiple screen fields in Search Help

    Hi all,
    I have created elementary search help using exit and attached it to data element. After F4 when I get hitlist I want all the values from the selected rows to get copied to the screen fields. I.e. I want the value transport.
    In the search help I am exporting those values which I want to get copied back but I am unable to get the result.
    With Regards,
    Chandra

    Hi,
        You can get this behaviour only by making the SEARCH HELP assignment at the STRUCTURE level.
    You need to create or use an existing structure to create your screen fields which you want to populate using the search help. Then assign this search help directly to the structure and there do the mapping between structure fields and the search help export params.
    Only by doing this you can autopopulate the values using one search help.
    Regards,
    Sesh

  • How to disable buttons in Search help screen ?

    Hi All,
    How do we disable Print button in customer search help ?
    We want that nobody should be able to take a printout of Customers from Search help result. Hence we want to disable the print button which comes in Search help.
    Any idea how do we go about it ?
    Regards,
    Ashish

    Hi there,
    you should be able to do that with the search help exit. Try replacing the PF-STATUS for instance. I am not sure if this works though!
    For instance:
    IF call_control-step = 'PRESEL'.
    SET PF_STATUS 'ZZ' OF PROGRAM 'ZZZ'
    ENDIF.
    Or you might call the existing PF-STATUS and use EXCLUDING.
    Roy

Maybe you are looking for