ALV search help

Hi all:
  I have a requirements for an ALV of 2 columns (A and B).
  Based on the value for row A a search help should be displayed on the column B.
  P.e. If column A row 1 value is YES column B should display a search help.
         If column A row 2 value is NO column B should NOT display the search help.
  Does anybody know how to modify the catalog based on the information of the alv?
Many thanks,

Hi:
  Thanks for the answer.
  Your answer is helpfull but is not a solution because the search help from column B should be displayed based on value from column A. So the F4 event will not be triggered always.
  If column A has value NO then NO search help will be available. That is the requirement. How can I "modify" dinamically if the B column cell requires or not the search help.
  Any help would be appreciated.
Regards,

Similar Messages

  • Problem with ALV search help Dictionary Search Help

    Hello experts
    I have a problem with ALV search help.
    I use DDIC table ZXXX with text table ZXXX_T. I created DDIC search help form table ZXXX. In my WD application, in context on COMPONENTCONTROLLER i set on attribute: 'Input help mode' as 'Dictionary Search Help' and in 'Dictionary Search Help' I pass name of new created DDIC search help.
    I create a input field from that atrribute and search help works fine (there was a value and description for value from text table). So I created ALV witch contains that attribute too.
    Next I set column for this attribute in ALV as editable but on Serch help for this collumn I have only value. I DON'T HAVE TEXT DESCRIPTION FOR VALUE.
    Please help me and tell me what I do wrong?
    Miko

    Hello,
    Thank's for your help. I create DDic Search help for all fields from my ALV. Next I changed 'TYPE' for all ALV fields in COMPONENTCONTROLLER from ZXXX-Zfield to Zfield, and I changed 'Input help mode' from 'Automatic' to 'Dictionary Search Help'. Now I see Value and Description for value in Search Help in my ALV.
    Regards
    Miko

  • ALV search help handling

    Is there anyone who has experience on providing self-defined search help for the input field in ALV .
    Any help would be greatly appreciated.
    Thanks in advance!

    if you want to have dynamic search help, Pl. see this sample code..may be it will help u.
    REPORT zooalvf14 .
    Global data definitions for ALV.......................................
    DATA : alvgrid TYPE REF TO cl_gui_alv_grid, custom_container TYPE REF TO cl_gui_custom_container, fieldcatalog TYPE lvc_t_fcat.
    table to contain fields that require f4............................... DATA : lt_f4 TYPE lvc_t_f4 WITH HEADER LINE.
    ok_code declaration................................................... DATA : ok_code TYPE sy-ucomm.
    Tables declaration.................................................... TABLES : zemployee_c7.
    Types declaration..................................................... TYPES : BEGIN OF ty_emp, empid LIKE zemployee_c7-empid, empname LIKE zemployee_c7-empname, END OF ty_emp.
    Internal table declaration............................................ DATA : i_emp TYPE TABLE OF ty_emp.
    Workarea declaration.................................................. DATA : wa_emp TYPE ty_emp.
    Selection screen parameters........................................... SELECT-OPTIONS : s_empid FOR zemployee_c7-empid.
    CLASS lcl_event_handler DEFINITION ---------------------------------------------------------------------
    CLASS lcl_event_handler DEFINITION. PUBLIC SECTION. METHODS : handle_on_f1 FOR EVENT onf1 OF cl_gui_alv_grid IMPORTING e_fieldname es_row_no er_event_data, handle_on_f4 for event onf4 of cl_gui_alv_grid importing e_fieldname es_row_no er_event_data . ENDCLASS. ----
    CLASS lcl_event_handler IMPLEMENTATION ---------------------------------------------------------------------
    CLASS lcl_event_handler IMPLEMENTATION. METHOD handle_on_f1.
    custom f1 help for empid field....................................... IF e_fieldname = 'EMPID'. CALL SCREEN 3001. ENDIF.
    to prevent processing of standard f1 help............................ er_event_data->m_event_handled = 'X'. ENDMETHOD. Method handle_on_f4. standard f4 help will be invoked...................................... endmethod.
    ENDCLASS.
    start of selection....................................................
    START-OF-SELECTION. SELECT empid empname FROM zemployee_c7 INTO CORRESPONDING FIELDS OF TABLE i_emp WHERE empid IN s_empid. CALL SCREEN 3000. &---- *& Module STATUS_3000 OUTPUT &---- * text ----
    MODULE status_3000 OUTPUT. SET PF-STATUS 'ZTOOL'. SET TITLEBAR 'ZTITLE'. IF alvgrid IS INITIAL. CREATE OBJECT custom_container EXPORTING container_name = 'ZCONTAINER'. CREATE OBJECT alvgrid EXPORTING i_parent = custom_container. PERFORM prepare_f4. CALL METHOD alvgrid->register_f4_for_fields EXPORTING it_f4 = lt_f4[] . creating instance for event handler.................................. DATA : event_handler TYPE REF TO lcl_event_handler. CREATE OBJECT event_handler. SET HANDLER event_handler->handle_on_f1 FOR alvgrid. SET HANDLER event_handler->handle_on_f4 FOR alvgrid.
    preparing field catalog.............................................. PERFORM prepare_fieldcatalog CHANGING fieldcatalog. CALL METHOD alvgrid->set_table_for_first_display * EXPORTING * I_BYPASSING_BUFFER = * I_BUFFER_ACTIVE = * I_CONSISTENCY_CHECK = * I_STRUCTURE_NAME = * IS_VARIANT = * I_SAVE = * I_DEFAULT = 'X' * IS_LAYOUT = * IS_PRINT = * IT_SPECIAL_GROUPS = * IT_TOOLBAR_EXCLUDING = * IT_HYPERLINK = * IT_ALV_GRAPHICS = * IT_EXCEPT_QINFO = CHANGING it_outtab = i_emp it_fieldcatalog = fieldcatalog * IT_SORT = * IT_FILTER = * EXCEPTIONS * INVALID_PARAMETER_COMBINATION = 1 * PROGRAM_ERROR = 2 * TOO_MANY_LINES = 3 * others = 4 . IF sy-subrc 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. ENDIF. ENDMODULE. " STATUS_3000 OUTPUT
    preparing field catalog............................................... FORM prepare_fieldcatalog CHANGING i_fieldcatalog TYPE lvc_t_fcat. DATA : ls_fcat TYPE lvc_s_fcat. ls_fcat-fieldname = 'EMPID'. ls_fcat-ref_table = 'ZEMPLOYEE_C7'. ls_fcat-coltext = 'EMPLOYEE ID'. APPEND ls_fcat TO i_fieldcatalog. CLEAR ls_fcat. ls_fcat-fieldname = 'EMPNAME'. ls_fcat-ref_table = 'ZEMPLOYEE_C7'. ls_fcat-coltext = 'EMPLOYEE NAME'. APPEND ls_fcat TO i_fieldcatalog. ENDFORM.
    &---- *& Module USER_COMMAND_3000 INPUT &---- * text ----
    MODULE user_command_3000 INPUT.
    CASE ok_code.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    WHEN 'EXIT'.
    LEAVE PROGRAM.
    ENDCASE.
    ENDMODULE.
    " USER_COMMAND_3000 INPUT &---- *&
    Module USER_COMMAND_3001 INPUT &---- * text ---- MODULE user_command_3001 INPUT.
    CASE ok_code.
    WHEN 'SAVE'.
    LEAVE TO SCREEN 0.
    WHEN 'BACK'.
    LEAVE TO SCREEN 0.
    ENDCASE.
    ENDMODULE.
    " USER_COMMAND_3001 INPUT &---- *& Module STATUS_3001 OUTPUT &---- * text ---- MODULE status_3001 OUTPUT. SET PF-STATUS 'GUI'. SET TITLEBAR 'TITLE'. ENDMODULE. " STATUS_3001 OUTPUT preparing fields to be registered for f4 help......................... FORM prepare_f4. lt_f4-fieldname = 'EMPNAME'. lt_f4-register = 'X'. lt_f4-getbefore = 'X'. lt_f4-chngeafter = 'X'. APPEND lt_f4. ENDFORM.
    hope this will help you.

  • ALV search help register problem

    Hello Gurus, i am using this code:
    data: wa_searchhelp type LVC_S_F4,
          searchhelp type LVC_T_F4.
          clear wa_searchhelp.
          wa_searchhelp-FIELDNAME = 'LIFNR'.
          wa_searchhelp-REGISTER = 'X'.
          wa_searchhelp-GETBEFORE = 'X'.
          wa_searchhelp-chngeafter = 'X'.
          append wa_searchhelp to searchhelp.
          call method grid->register_f4_for_fields exporting it_f4 = searchhelp.
    to register the search help for LIFNR field. The field is set to editable, there is a search help defined in the database table and still it won`t work. Please help, i will reward points.

    have a look at sample report BCALV_TEST_GRID_F4_HELP, maybe you are missing something like register for event F4.

  • ALV: Search help for editable column using OVS/Input Help Component Usage?

    Hi all,
    Is is possible to assign a value help like OVS or "Input Help Component Usage" to a editable ALV column using Web Dynpro?
    Thanks and regards,
    Ulrich

    Hi Madhu,
    Than I must have made something wrong because this is exactly what I've tried.
    I'll check my freely prgrammed value  and the assigning again.
    Thanks a lot for your quick reply.
    Ulrich

  • Search help (PREM) for personal no. is not coming in ALV grid table control

    hi experts,
    Search help (PREM) for personal no. is not coming in ALV grid table control.
    i have assigned the srch help (prem) to my 'ZFIEXP_PROJALLOC' table for the emp_id.
    but in output it is now showing the help.
    ls_fcat-fieldname = 'EMPLOYEE CODE'.
      ls_fcat-ref_table = 'ZFIEXP_PROJALLOC'.
      ls_fcat-ref_field = 'EMP_ID'.
      ls_fcat-outputlen = '10'.
      ls_fcat-key = 'X'.
      ls_fcat-edit = 'X'.
      ls_fcat-coltext = 'EMPLOYEE CODE'.
      ls_fcat-seltext = 'EMPLOYEE CODE'.
      append ls_fcat to pt_fieldcat.
      clear ls_fcat.
    Then i tried to solve it using the PA0002 . ie.,
    ls_fcat-fieldname = 'EMPLOYEE CODE'.
      ls_fcat-ref_table = 'PA0002'.
      ls_fcat-ref_field = 'PERNR'.
      ls_fcat-outputlen = '10'.
      ls_fcat-key = 'X'.
      ls_fcat-edit = 'X'.
      ls_fcat-coltext = 'EMPLOYEE CODE'.
      ls_fcat-seltext = 'EMPLOYEE CODE'.
      append ls_fcat to pt_fieldcat.
      clear ls_fcat.
    with this it is showing the help in employee code, but, when i click on an empl number, it is not added to my table control and allowing me to add the number by typing them.
    plz help me.
    thanks.

    Hi 
    In the layout give layout-sel_mode  = 'A'.  and
    pass  'A'    to  i_save  exporting parameter to method  set_table_for_first_display.
    The same thing if you are working with function module
    reuse_alv_grid_display.
    Reward points for useful answer.
    Venkat

  • How to add a search help for a field in alv?

    HI!Everyone ,
    i want to add a search help created by myself for one field in alv,
    and i want to use this function "HELP_VALUES_GET_WITH_TABLE".
    can anyone help me ?
    thanks!

    HI,Vijay.
    My code like this :
          PERFORM build_fcat.
          PERFORM build_objects.
          PERFORM layo_build.
          PERFORM set_drdn_table .
          CALL METHOD alv_grid->set_table_for_first_display
            EXPORTING
             i_structure_name = 'STU_S'
              is_layout        = s_layo
            CHANGING
              it_outtab        = itab_out
            it_fieldcatalog  = i_fcat
            ."Period
          IF sy-subrc <> 0.
            EXIT.
          ENDIF.
    for example, there is a field 'UNAME' IN Structure 'STU_S',
    i want to add a search help for 'UNAME'.
    the 'UNAME'  is not users in SAP R/3 , i want to add some data by myself or from a table .

  • How to add search help for field in ALV object

    Hello,
    In a program, we use ALV object ( container) to create a liste like : field1, field2 .. but when display we do not have search help for this . Could you please help me how to add match code in this case for field 1 and field2, We use set_table_for_first_display
    Thanks,

    Hi,
    when you define your field catalogue you can create data elements with search help in se11 and use them for field 1 and field 2.
    But maybe it is enough to use data elements belonging to a domain with a value help and to set field F$AVAILABL in the field catalogue or to fill the name of the field CHECKTABLE.
    Regards,
    Klaus

  • Web dynpro for abap how to create a customize search help in alv column

       hi:
          Web dynpro for abap how to create a customize search help in alv column and put search help value into alv column?
          Are there specific examples ?
          thanks!!

    HI:
       I want to created a freely programed help which include date&time,and put help value to alv column.
      I have created a freely programed help in web dynpro for abpa application,I refer:
      **************** - WebDynpro for ABAP
      but have a problem!
       If you focus on the the input field in the first row, you get the value help
    However if  I go to the second row and focus on the same input field in this column, I don't get the value help:
    What is a good way to solve similar problems?
    thanks

  • Using Search Help with ALV and Dynamic context node

    The topic subject already describes my situation.
    I have to create, populate and remove context nodes at runtime, and bind them to an ALV, to let user display the data or modify the data. The nodes I create are always typed with a table name, but the table name is of course, dynamic.
    This is all working: what's not working is help for entries inside the ALV; since the table has foreign keys and domains with check tables or fixed values, I expected that search helps were detected and managed by the framework.
    Instead, no help search is displayed except the input help based on data-type of the one "Date" input fields.
    I think I have to work on the dynamic node creation, and not on the ALV itself, since the latter only takes the node/attributes information, but i could be wrong. I tried with both the two following codings:
      CALL METHOD lo_nd_info_root->add_new_child_node
        EXPORTING
          static_element_type          = vs_tabname
          name                         = 'SAMPLE_NODE_NAME'
    *    is_mandatory                 = abap_false
    *    is_mandatory_selection       = abap_false
         is_multiple                  = abap_true
         is_multiple_selection        = abap_false
    *    is_singleton                 = abap_false
          is_initialize_lead_selection = abap_false
          is_static                    = abap_false
        RECEIVING
          child_node_info              = lo_nd_info_data .
    cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
          parent_info = lo_nd_info_root
          node_name = 'SAMPLE_NODE_NAME'
          structure_name = vs_tabname
          is_multiple = abap_true ).
    The result is the same...is there any way to let the ALV know what search helps it has to use, and doesn't force me to manually build a VALUE_SET to be bound on the single attributes? There are many tables, with many fields, and maintaining this solution would be very costly.

    I have checked with method GET_ATTRIBUTE_VALUEHELP_TYPE of interface IF_WD_CONTEXT_NODE_INFO, on an attribute which i know to have a search help (Foreign key of a check table).
    The method returns 'N', that is the constant IF_WD_VALUE_HELP_HANDLER~CO_VH_TYPE_NO_HELP. So, the framework was not able to find a suitable search help.
    Using method GET_ATTRIBUTE_VALUE_HELP of the same interface, on the same attribute, returns me '111', which is constant C_VALUE_HELP_MODE-AUTOMATIC.
    Therefore, the WD framework knows it has to automatically detect a value help, but fails to find one.
    Also, this means in my opinion that the ALV and the dynamic external mapping are not the culprits: since node creation, no help is detected for any attribute but the date. Honestly, I don't have a clue on what's happening.

  • Search help for date in ALV grid

    I have ALV grid with field type date and search help for this:
    ws_field-ref_table = 'ADCP'.
    ws_field-ref_field = 'DATE_FROM'.
    ws_field-inttype = 'D'
    After I have clicked on this key F4 then I see a calendar and I have choosen some date, but in input grid field there aren't
    choosen value. Why? Another search helps works perfect except this. Where is the problem?
    Edited by: Kosmo on Jul 7, 2009 8:48 AM

    Hi,
    Find the code below
    TYPE-POOLS: slis.
    DATA: it_fcat TYPE slis_t_fieldcat_alv,
          wa_fcat LIKE LINE OF it_fcat.
    DATA: it_data TYPE vbap_t.
    SELECT *
      FROM VBAP
      INTO TABLE it_data
      UP TO 20 ROWS.
    wa_fcat-fieldname = 'VBELN'.
    wa_fcat-tabname  = 'IT_DATA'.
    wa_fcat-ref_fieldname = 'VBELN'.
    wa_fcat-ref_tabname = 'VBAK'.
    APPEND wa_fcat TO it_fcat.
    clear wa_fcat .
    wa_fcat-fieldname = 'POSNR'.
    wa_fcat-tabname  = 'IT_DATA'.
    wa_fcat-seltext_l = 'Date'.
    wa_fcat-ref_fieldname = 'ERDAT'.
    wa_fcat-ref_tabname = 'VBAK'.
    APPEND wa_fcat TO it_fcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_interface_check       = sy-repid
          it_fieldcat             = it_fcat
        TABLES
          t_outtab                = it_data
        EXCEPTIONS
          program_error           = 1.
    I have derived the above code from WIKi link
    https://wiki.sdn.sap.com/wiki/display/Snippets/f4helpforalvgrid+display
    Regards,
    Murthy.

  • ALV in Search Help

    Hello ppl,
    I have requirement wherein I need to provide an ALV display in a search help for a Selection Screen Field, kindly let me know if this is possible.
    If yes the method in brief.
    Will we need to use a exit in this case?

    Nonconformist Pagal 
    You can achieve a out put in search help by passing all the required fields into a itab and pass the itab to the function module 'F4IF_INT_TABLE_VALUE_REQUEST'.
    For instance check the following code to get the F4 help in select options for G/L Account. Here i am passing the itab IT_HKONT for the field HKONT.  You define the structure and fill the itab with required fields and data. The structure of the itab will be populated in Search Help for that field.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR HKONT-LOW.
    SELECT KSTAR KTEXT INTO TABLE IT_HKONT FROM CSKU WHERE SPRAS EQ 'EN'.
    SORT IT_HKONT BY KSTAR.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'HKONT'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = IT_HKONT
    RETURN_TAB = IT_RETURN.
    IF SY-SUBRC = 0.
    READ TABLE IT_RETURN INDEX 1.
    MOVE IT_RETURN-FIELDVAL TO HKONT-LOW.
    ENDIF.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR HKONT-HIGH.
    SELECT KSTAR KTEXT INTO TABLE IT_HKONT FROM CSKU WHERE SPRAS EQ 'EN'.
    SORT IT_HKONT BY KSTAR.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'HKONT'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = IT_HKONT
    RETURN_TAB = IT_RETURN.
    IF SY-SUBRC = 0.
    READ TABLE IT_RETURN INDEX 1.
    MOVE IT_RETURN-FIELDVAL TO HKONT-HIGH.
    ENDIF.
    Reward Points if useful.

  • How to pass custom search help(F4 help) for a field in ALV output?

    Hi,
    I want to activate the F4 help in ALV output for a field for which we do not have search help assigned at table ,data element and domain level.
    In field catalog i have enabled it by below line.
    ls_fcat-F4AVAILABL = 'X'.
    but because there are no standard input help available it is giving message as "No input help is available".
    so how to pass our custom search help (g_search) for any field in ALV output.
    I am using object oriented ALV grid display.
    Thanks!!!
    Rajesh Gupta.

    hi,
    check this out:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/acdefb13-0701-0010-f1a2-8eeefa7d3780
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b3d5e890-0201-0010-c0ac-bba85ec2ae8d?quicklink=index&overridelayout=true

  • How to disappear the search help in alv

    hi experts:
       some field's search help in alv appear automaticly,such as bukrs. I want to disappear the search help in ALV.how it come true?
    the alv is CL_GUI_ALV_GRID.
    Edited by: huiqing wei on Apr 20, 2009 10:35 AM

    In the Layout give parameter NO_F4 = 'X'.
    DATA:        wa_layo type lvc_s_layo.
    wa_layo-no_f4 = 'X'.
      call method grid_alv->set_table_for_first_display
        exporting
    *    I_BUFFER_ACTIVE               =
    *    I_BYPASSING_BUFFER            =
    *    I_CONSISTENCY_CHECK           =
    *        i_structure_name              = 'T_MARD'
    *    IS_VARIANT                    =
    *    I_SAVE                        =
          i_default                     = 'X'
        is_layout                     = wa_layo   <<<<<<<<<<<<<<<<<<<<<
    *    IS_PRINT                      =
    *    IT_SPECIAL_GROUPS             =
    *    IT_TOOLBAR_EXCLUDING          =
    *    IT_HYPERLINK                  =
    *    IT_ALV_GRAPHICS               =
    *    IT_EXCEPT_QINFO               =
    *    IR_SALV_ADAPTER               =
        changing
          it_outtab                     = i_mard[]
      it_fieldcatalog               = i_fieldcat[]
    *    IT_SORT                       =
    *    IT_FILTER                     =
    exceptions
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      others                        = 4
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

  • Search Helps in ALV grids.

    Hi,
    I am working on ALV grids in custom control.
    My requirement is to provide search helps in the ALV grid for few fields out of which the search help for one field should be populated dynamically.
    Please help me.

    hi
    good
    You can have almost everything you like in a search help. Nice search help examples are:
    MPLAL (exit = F4_MATCHCODE_USER_EXIT) -> calls a selection report (transaction IP03)
    HRBAS00OBJID (exit = RHF4_EXIT_OBJID) and include search helps
    thanks
    mrutyun^

Maybe you are looking for

  • Train on Master/Detail views

    Hi, assume these tables : Organization: orgId,orgName Branch: brId,orgId,brName Terminal : tId,brId,serialNo as you see,there is a hierarchy in these tables. I want to use Train to let user add an Organization,and then Define it's branch,and finally

  • How do I stop PDF's from Opening inside Safari

    Several versions back of Safari, I found out how to make PDF's download to the downloads folder or other preferred location (desktop for me) instead of opening inside a Safari window. As I recall, it actually had something to do with a setting in Ado

  • Updating from 10.2.8 to 10.4.6

    I have a Power PC G4 350 mhz with 10.2.8 installed. I just bought the Tiger 10.4 disc (black). When I attempt to update (the manuel says 'If you already have Mac Os X v10.2 or later installed on your computer: All you need to do is upgrade to Tiger.'

  • Time Capsule isn't talking to Time Machine. Need HELP!

    I am experiencing a problem with my Time Machine & Time Capsule For starters, I'm not much of a techie .... Have been deleting data stored on Time Machine to make more room for backups. Started getting error message: "Backup volume could not be mount

  • RB_Split

    Hi, I have a 1:N File to IDOC scenario which I need to do without using CCBPM.I am using the RB_Split feature in Interface Determination. Could someone please explain to me, the steps I need to take? I have SP14 installed. regards, Prashanth