Dynamic Search Helps In An Input Field

Hi Experts,
          I need to populate an input field with different search helps based on the user action i.e when user selects "Audit"  i hav to show the audit search help for my input field, when he selects  "Audit Plan" i would hav to show audit plan search help.
My Questions >
1> i intend to use the method set_attribute_value_help of the interface if_wd_context_info and do the coding as :-
data lo_nd_info  type if_wd_context_node_info.
  lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
        EXPORTING
          name            = 'identification' (attribute Name)
          value_help_mode = '121'
          value_help      = 'plm_auditplan'.(Help Name)
Is this the correct way to go if not plz suggest a more appropriate method.
2> in the context for that attribute ,what should i specify for the property input field
    Input Help Mode
    i.e should it be deactivated , automatic or should i give the dictionary serach help and specify  one of the search helps by giving its name.
Your responses will be greatly appreciated,
Chaitanya.

Hi Ebru,
Yes, it is possible using OVS, freely programmed and dictionary help.
For OVS, refer this blog: /people/shruti.rathour/blog/2008/05/05/ovs-help-in-web-dynpro-abap
For Dictionary Search Help, refer http://help.sap.com/saphelp_nw70/helpdata/EN/47/9f724642314aabe10000000a42189b/frameset.htm
For freely programmed, refer:
http://help.sap.com/saphelp_nw70/helpdata/EN/47/9ef8cc9b5e3c5ce10000000a421937/content.htm
I hope it helps.
Regards
Arjun

Similar Messages

  • Search help for a Input Field........

    Hi,
      I'm fairly new to BSP and I would like to know how to attach Search Help to the Input Field in BSP application.
    Thanks
    NP.

    Hi nagendra
                        Search Help for input field Provide using attribute of input field is showHelp and onvaluehelp
                      This is providing the search help .

  • SEARCH HELP TO AN INPUT FIELD

    HOW TO APPLY SEARCH HELP TO AN INPUT FIELD FOR FOLLOWING EXAMPLE:
    FOR THE FIELDS LOCATIONS, AND CONFERENCE ROOM NO.
    LOCATIONS ARE A, B, C, D, G AND CONFERENCE ROOMS OF THESE LOCATIONS ARE,
    A1, A2 ,A3,, LIKE WISE FOR REST OF THEM.
    HERE IS THE PROBLEM,
    hi,
    this is a realtime implementation scenario pls provide full coding and answers with screen programming of it.
    it is as follows:
    Business Scenario u2013 conference room booking for the company
    Business Scenario
    You will build a computerized system to automate the process of Conference room booking for a company .
    Xi Infotech, a software company, is having 5 locations at Bangalore. Each location has 3 conference rooms available
    Masters
    Maintain Employee Details
    Maintaining Conference room Details.
    Maintaining booking details
    Transactions
    Maintaining Date and timing of Meeting
    The conference room in any of these locations have to be Pre-booked for the meeting indicating the purpose of meeting & no. Of attendees, date and time for which required.
    Booking Confirmation has to be sent to the employee who blocks the room. If any other person tries to book the same room, he should be able to see that this room is blocked and the details regarding the employee who has blocked and the purpose & time for which the room is blocked
    Reports
    Datewise report on the conference rooms of all locations.
    Month wise reports of conference room booked.

    Hi,
    For a given field if you have more number of possible values then go for the Value table or check table.
    If you have a few values for a given field, then go for Value ranges. These can be maintained at Domain level for a field.
    For each field create a correspondign data element(DE)
    In this DE, we can have the FURTHER CHARACTERISTICS tab we can create a search help Or directly from SE11 we can create a SH then attach this to the DE Or we can directly maintian Or At the DOMAIN level we can  .
    Ex:
    LOCATIONS ARE A, B, C, D, G AND CONFERENCE ROOMS OF THESE LOCATIONS ARE,
    A1, A2 ,A3,, LIKE WISE FOR REST OF THEM.
    Ex:
    SE11->
    DE and Domain names is LOC.
    In SE11->DOMAIN->LOC->
    Here as you have a few values we can maintain it in VALUE RANGES tab->
    like
    A (Description to be given) ie Loc A for Hyderabad
    B Bangalore
    C
    D
    G
    Room Numbers-> here can createa value table with serial numbers at the Domain level.
    Attach the same to the  respective DE in the SE11.
    Similary we can maitain for Conference room numbers or
    We can create a Search help using the two field LOC and RoomNos and create a Elementary search help.
    Like this we can do.
    Get back if you still have queries on this.
    Please refer to this link  for more info-
    SEARCH help
    Regards,
    Chandralekha

  • How to assign search help for an input field by fetchign values from an int

    i have an input field ,
    i want to assign search help for the same by fetching values from a table.
    how to achieve this ?

    Using the below ways you can assign search help to a field.
    1) [OVS Search Help|http://wiki.sdn.sap.com/wiki/display/Snippets/OVSsearchhelp]
    2) [Freely Programmed Search Help|http://wiki.sdn.sap.com/wiki/display/WDABAP/Freelyprogrammedinput+help]
    3) Dictonary Help - Use the Data element for that purpose.

  • In CAT2 - The search help populating the input field with wrong data

    Hi Guys,
    I have created a ZCITY table for which has below 2 field
    ZZCITY (Code ) (5 Char) u2013 Key field
    ZZNAME (City Name ) (40 Character)
    I have added a custom field ZZCITY & ZZNAME in CI_CATSDB. Funtional guy has configured to make ZZNAME as  VISIBLE  and ZZCITY is HIDDEN on CAT2 screen in Data Entry area.
    I created search help on table ZCITY with export parameters as  ZZCITY and ZZNAME.
    In SE11, I have mapped the export parameters with CI_CATSDB
    Now in tcode CAT2, when I press F4 on City Name field, the list is displayed with City code and City names. And when I select any city code, the ZZNAME is populated by City code instead of City name.
    I want that City Name should be populated in ZZNAME and City Code should be populated in hidden field ZZCITY.
    Please tell me how I can fix this problem.
    Thanks in advance.
    mini

    Hi,
    Search helps have a one to one relationship with a screen field.  To achive what you are trying to, I would have ZZCITY and ZZNAME side by side, and i would have a drop down only only ZZCITY.  The key of the table will be ZZCITY. So when you chose the record, The city will populate in ZZCITY and you can make use of user exit EXIT_SAPLCATS_002 to populate the name automatically in the ZZNAME field.
    thanks.
    JB

  • Dynamic Search Help in WDA Table

    Hello Expert,
    I would like to assign the standard search help for Webdynpro abap table in item level,
    I know using the below code we can assign the search help for particular input field ,
    DATA lo_nd_info TYPE REF TO if_wd_context_node_info.
               lo_nd_info = lo_nd_eqt_partner->get_node_info( ).
               CALL METHOD lo_nd_info->set_attribute_value_help
                 EXPORTING
                   name            = 'PARTNER' " Your attribute Name
                   value_help_mode = '121' " Valid value help mode
                   value_help      = 'DEBI'. " Search help name.
    But my scenario is i have one table which is having threee columns,
    Partner type   partner   name,
    so based on the partner type i would like to call the standard search help ,
    if the line item 1 is having partner type 'KU' then i need to assign DEBI search help
    if the line item 2 is having Partner type 'LI' or 'AG' then i need to assign KRED search help ,
    If the line item 3 is having Partner type 'AP' then i need to assign VKNK search help
    so please help me to achieve the same.
    Thanks,
    Sankar

    One method to achieve this functionality would be  :
    1. Find out the maintenance screen and function group of the table maintenance generator say 2000 and ZFGRP.
    2. Go to SE80 and open ZFGRP screen number 2000.
    3. For Field number 1 , it is assumed that there is already a standard search help for it.
    4. For field 2 - create a module in Process on Value Request Event in PAI of the maintenance screen ( Similar to any module pool program)
    5. Use FM DYNP_VALUES_READ to read the value of field 1 on the screen ( Because this is before enter is pressed and field 1 on the module pool porogram would not be populated with value )
    6.  While creating internal table for this FM, filter out all the values that are not required based on value obtained above.
    call the FM F4IF_INT_TABLE_VALUE_REQUEST( In Process on Value request event of field 2 in PAI)

  • Dynamic Search-help in Selection Screen Parameter

    Hi,
    Please can you provide some solution for the below requirements.
    I have 2 fields ( Organization channel and Team ) in my selection screen. Under one organization channel there can be many teams.
    And I am trying a  dynamic search help on both the fields using event AT selection-screen on Value request and
    FM 'F4IF_INT_TABLE_VALUE_REQUEST'.
    But I am facing the below issue .
    First I am giving some values in field 'Organization channel' . Then I am clicking on F4 button on my  2nd field 'Team' .
    and in debugging mode under the event  'At selection-screen on value request', Select option SO_Team is blank.
    The value provided in the Organiozation channel is not being captured in SO_TEAM-Low
    Please have a look on the below codes.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
    if not  so_orgchannel-low  is  initial.      "Here so_orgchannel-low  value is coming as Zeros.
    select  * from HRP1001 into table GT_HRP1001
              where objid = so_orgchannel-low.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
             EXPORTING
                  retfield        = 'ORGID'
                  value_org       = 'S'
                  dynpprog        = 'ZTEST'
                  dynpnr          = '1000'
             TABLES
                  value_tab       = gt_hrp1001
             EXCEPTIONS
                  parameter_error = 1
                  no_values_found = 2
                  OTHERS          = 3.

    Hi,
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_team-low .
    "Add This  Begin
      CLEAR t_dynpfields.
      REFRESH t_dynpfields.
      t_dynpfields-fieldname  = 'SO_ORGCHANNEL-LOW'.
      APPEND t_dynpfields.
      w_repid = sy-repid.
    * reading Screen variables and Values
      CALL FUNCTION 'DYNP_VALUES_READ'
           EXPORTING
                dyname     = w_repid
                dynumb     = sy-dynnr
           TABLES
                dynpfields = t_dynpfields
           EXCEPTIONS
                OTHERS.
      READ TABLE t_dynpfields INDEX 1.
      so_orgchannel-low = t_dynpfields-fieldvalue.
    "Add this End
    if not  so_orgchannel-low  is  initial.      "Your code is here
    select  * from HRP1001 into table GT_HRP1001
               where objid = so_orgchannel-low.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                   retfield        = 'ORGID'
                   value_org       = 'S'
                   dynpprog        = 'ZTEST'
                   dynpnr          = '1000'
              TABLES
                   value_tab       = gt_hrp1001
              EXCEPTIONS
                   parameter_error = 1
                   no_values_found = 2
                   OTHERS          = 3.
    Regards,
    Prabhudas

  • Dynamic search help for one field of the SM30 generated maintenance view

    Hi experts,
    I have one Z* table with three fields. For that table I have generated maintenance dialog in SE55 so I can now run the maintenance in SM30. My requirement is: as soon as a user enters a value for the first field, the search help for the second field should be depended on the value in the first field. Let's say when user entered value 01 into the first field then the search help for the second field should be S_HLP01. For other values entered into the first screen the search help for the second field should be S_HLP02. Both search helps are standard (the names differ).
    Is there any change how to achieve this without making completely new dynpro transaction?

    Hi ,
    You can try it this way.
    pass your match-code( search help to function ) HELP_VALUES_GET_WITH_MATCHCODE and get the value and update it in  your screen field.
    But you have to modify the flow logic in POV event. it would be better if you create your own transaction because once the maintenance is regenerated your modified flow logic will vanish

  • Dynamic value help for a table field to fill two fields, how to?

    Hi all gurus,
    In SRM 7 I defined a dynamic value help for a single field (ZZ_PROLE_R3) of my header custom table.
    That's the code from WDDOMODIFYVIEW in the webdynpro /SAPSRM/WDC_DODC_CT, view V_DODC_CT:
    DATA: lo_tabnode        TYPE REF TO IF_WD_CONTEXT_NODE.
          DATA: lo_tabnode_info   TYPE REF TO IF_WD_CONTEXT_NODE_INFO.
          DATA: tab_value         TYPE WDR_CONTEXT_ATTR_VALUE_LIST,
                wa_value          TYPE WDR_CONTEXT_ATTR_VALUE.
          lo_tabnode = wd_context->GET_CHILD_NODE( name = 'THCUS' ). "the custom table node
          lo_tabnode_info = lo_tabnode->get_node_info( ).
          wd_this->GET_VALHELP_ZZ_PROLE_R3( EXPORTING iv_guid = lv_guid
                                            IMPORTING ZZ_PROLE_R3_VALHELP = tab_value ). "this method returns the dyn value table
          lo_tabnode_info->set_attribute_value_set( name = 'ZZ_PROLE_R3'
                                                     value_set = tab_value ).
    The method GET_VALHELP_ZZ_PROLE_R3 dynamically builds the value help table tab_value; such table is made up by two fields:
    value : contains the value of the field
    text   : contains a description of the value
    The above solution works; now I'd like to enhance it. The custom table THCUS contains also a field called ZZ_PROLE_R3_DESC, which represents the description of ZZ_PROLE_R3. It is, exactly, the TEXT field in tab_value.
    So I'd like to do as follows:
    - the user clicks on the search help for ZZ_PROLE_R3 field of the table;
    - the above described value help appears;
    - after the selection, both ZZ_PROLE_R3 and ZZ_PROLE_R3_DESC are filled with the selected couple value - text chosen from the value help.
    Could anyone help me achieving such a behaviour?
    Again, a little request... when I open the above value help dialog box, the window itself has a label "Floorplan Manager application for OIF.." that obviously I'd like to redefine (e.g. "Role selection value help"). Is there any way to do that?
    Thanks in advance

    Chris Paine wrote:
    It seems to me - given that your code is in wddomodifyview that you are trying to have different dropdowns per row
    - I'm not sure where you are populating lv_guid - but I'd guess it is an attribute of the row selected? If it isn't then I can't see any reason that you would do this code in wddomodifyview and not wddoinit.
    Hi Chris and thanks for your help,
    lv_guid is the GUID of the document's header; I need to pass it to the method that populates my value help table because the values in it are derived from some fields on the document. (the situation actually is more complex; there's an RFC call on the backend for which the document is intended for to retrieve the data that populate the value help...).
    I'm quite unexperienced on webdynpro and terminology; if dropdown menus are fixed selection option that appears on a field, I guess this is not my case. I did a pair of screenshot to provide an idea of what the solution by now is, and what "I would like to have":
    [Pre-selection (F4 icon on the field in table)|http://imagebin.ca/view/npIsaqF.html]
    [Value Help popup for the field ZZ_PROLE_R3|http://imagebin.ca/view/8fZUh3T.html]
    [Result by now |http://imagebin.ca/view/3PaqdvE.html]
    [Result I'd like to have.|http://imagebin.ca/view/dExR0J.html]
    Chris Paine wrote:
    However - by your comment on the "value help dialog box" I am guessing you are using an input field? If this is the case then I would strongly suggest that you change/enhance the structure of the context node THCUS (btw, better coding practise to refer to it as wd_this->wdctx_thcus when using the get child node construct) so that you refer to an actual SAP ddic search help, if you then associate in the structure the value and text fields then populating the text field should happen automatically. Also you'd have the nice side effect that your value help dialog would be named after the associated ddic search help.
    Thanks for the code suggestion, I'll apply that. For what concerns the context node THCUS... It is, by standard, a node which I can't explictly find in the context for the view V_DODC_CT. The problem is that ZZ_PROLE_R3 and the corresponding description field ZZ_PROLE_R3_DESC of the table must be filled with data retrieved dynamically @ runtime from the backend. So I guess I can't populate a val help referring to a dictionary table/field; I'd rather do as follows:
    - retrieve what's the target backend for the document (to do so, I have to process the document .. that's why the header guid passed to my method);
    - RFC call to a custom method that extracts possible values for the specific backend;
    - bind the ammissible values to the value help.
    Chris Paine wrote:
    I realise that this is rather a lot - so if you have any specific question please do respond - hopefully I or someone else will be able to clarify.
    Thanks again for your help; additional info as well as code examples would be highly appreciated

  • Search help to a table field

    Hello Folks,
    I have an immediate requirement to assign a search help to a specific field in a Table.Requirement is as follows:
    requirement:
    I want the search help to be populated for the field HRP1000-SHORT when HRP1000-OTYPE='O'.
    Values of search help are to be populated from another Custom table field1 where field2 = 'x'.
    Please help me out in fixing this.

    *---Report with selection screen and to display the list of
    possible entries for field 'B' as per the value in field 'A'.
    parameters: p_vbeln type vbak-vbeln,
                p_posnr type vbap-posnr.
    at selection-screen on value-request for p_posnr.
      data: begin of help_item occurs 0,
              posnr type vbap-posnr,
              matnr type vbap-matnr,
              arktx type vbap-arktx,
            end of help_item.
      data: dynfields type table of dynpread with header line.
      dynfields-fieldname = 'P_VBELN'.
      append dynfields.
      call function 'DYNP_VALUES_READ'
           exporting
                dyname               = sy-cprog
                dynumb               = sy-dynnr
                translate_to_upper   = 'X'
           tables
                dynpfields           = dynfields
           exceptions
                invalid_abapworkarea = 1
                invalid_dynprofield  = 2
                invalid_dynproname   = 3
                invalid_dynpronummer = 4
                invalid_request      = 5
                no_fielddescription  = 6
                invalid_parameter    = 7
                undefind_error       = 8
                double_conversion    = 9
                stepl_not_found      = 10
                others               = 11.
      read table dynfields with key fieldname = 'P_VBELN'.
      p_vbeln = dynfields-fieldvalue.
      call function 'CONVERSION_EXIT_ALPHA_INPUT'
           exporting
                input  = p_vbeln
           importing
                output = p_vbeln.
      select posnr matnr arktx into table help_item
                     from vbap
                          where vbeln = p_vbeln.
      call function 'F4IF_INT_TABLE_VALUE_REQUEST'
           exporting
                retfield    = 'POSNR'
                dynprofield = 'P_POSNR'
                dynpprog    = sy-cprog
                dynpnr      = sy-dynnr
                value_org   = 'S'
           tables
                value_tab   = help_item.

  • How Can I get multi column values from dynamic search help?

    Hi Gurus;
    I'm using dynamic search help in my program.
    I want to get multi column values from search help. But I dont know solution for this issue.
    I'm using F4IF_INT_TABLE_VALUE_REQUEST FM.
    How Can I get multi column values from dynamic search help?
    Thanks.

    Believe it or not, the same FM worked for me in a dynpro. I will try to explain here how it works in custom screen and then you can do your work for other screens or program types. I am not going to write my actual work but will explain in general.
    I have 4 fields (FLD1, FLD2, FLD3, FLD4) and i made the search based on FLD2 and when user click on a line (could be any field), then this would bring the line on to the screens.
    There are like 3 steps.
    You have your value_tab for my fields FLD1, FLD2, FLD3 and FLD4. This is just the data that we pass into the FM. (data: IT_VALTAB type table of ZVAL_TABLE)
    Next map the screen fields into an internal table (data: It_dynpfld type table of dselc ). I also have other internal tables defined  (just to keep it straight, i will be putting here) data:  It_return type standard table of ddshretval.
    Next step is to call the function module. Make sure you have values in IT_VALTAB.
    call function 'F4IF_INT_TABLE_VALUE_REQUEST'
    exporting
            retfield        = 'FLD2'
            value_org       = 'S'
          tables
            value_tab       = It_VALTAB
            return_tab      = It_return
            dynpfld_mapping = It_dynpfld
          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.
        else.
          perform get_selected_fields tables It_return.
        endif.
    The code within the perform GET_SELECTED_FIELDS  - We need to map the result fields after user selects it. The code goes like this. This is step is to update the dynpro fields.
    I need a internal table as well as a work area here. like,
    data: lt_fields type table of dynpread,
            la_fields type dynpread.
      field-symbols: <fs_return> type ddshretval.
    so fill out LT_FIELDS from the IT_RETURN table
    loop at lt_return assigning <fs_return>.
        la_fields-fieldname = <fs_return>-retfield.
        la_fields-fieldvalue = <fs_return>-fieldval.
        append la_fields to lt_fields.
        clear: la_fields.
      endloop.
    Call the FM to update the dynpro
    call function 'DYNP_VALUES_UPDATE'
        exporting
          dyname               = sy-repid
          dynumb               = '1002' "This is my screen number. You could use 1000 for selection screen (hope so)
        tables
          dynpfields           = lt_fields
        exceptions
          invalid_abapworkarea = 1
          invalid_dynprofield  = 2
          invalid_dynproname   = 3
          invalid_dynpronummer = 4
          invalid_request      = 5
          no_fielddescription  = 6
          undefind_error       = 7
          others               = 8.
      if sy-subrc <> 0.
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
    good luck

  • Need some help in creating Search Help for standard screen/field

    I need some help in adding a search-help to a standard screen-field.
    Transaction Code - PP01,
    Plan Version - Current Plan (PLVAR = '01'),
    Object Type - Position ( OTYPE = 'S'),
    Click on Infotype Name - Object ( Infotype 1000) and Create.
    I need to add search help to fields Object Abbr (P1000-SHORT) / Object Name (P1000-STEXT).
    I want to create one custom table with fields, Position Abb, Position Name, Job. Position Abb should be Primary Key. And when object type is Position (S), I should be able to press F4 for Object Abb/Object Name fields and should return Position Abbr and Position Name.
    I specify again, I have to add a new search help to standard screen/field and not to enhance it.
    This is HR specific transaction. If someone has done similar thing with some other transation, please let me know.
    There is no existing search help for these fields. If sm1 ever tried or has an idea how to add new search help to a standard screen/field.
    It's urgent.
    Thanks in advace. Suitable answers will be rewarded

    Hi Pradeep,
    Please have a look into the below site which might be useful
    Enhancing a Standard Search Help
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/daeda0d7-0701-0010-8caa-
    edc983384237
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee93446011d189700000e8322d00/frameset.htm
    A search help exit is a function module for making the input help process described by the search help more flexible than possible with the standard version.
    This function module must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE. The search help exit may also have further optional parameters (in particular any EXPORTING parameters).
    A search help exit is called at certain timepoints in the input help process.
    Note: The source text and long documentation of the above-specified function module (including the long documentation about the parameters) contain information about using search help exits.
    Function modules are provided in the function library for operations that are frequently executed in search help exits. The names of these function modules begin with the prefix F4UT_. These function modules can either be used directly as search help exits or used within other search help exits. You can find precise instructions for use in the long documentation for the corresponding function module.
    During the input help process, a number of timepoints are defined that each define the beginning of an important operation of the input help process.
    If the input help process is defined with a search help having a search help exit, this search help exit is called at each of these timepoints. If required, the search help exit can also influence the process and even determine that the process should be continued at a different timepoint.
    timepoints
    The following timepoints are defined:
    1. SELONE
    Call before selecting an elementary search help. The possible elementary search helps are already in SHLP_TAB. This timepoint can be used in a search help exit of a collective search help to restrict the selection possibilities for the elementary search helps.
    Entries that are deleted from SHLP_TAB in this step are not offered in the elementary search help selection. If there is only one entry remaining in SHLP_TAB, the dialog box for selecting elementary search helps is skipped. You may not change the next timepoint.
    The timepoint is not accessed again if another elementary search help is to be selected during the dialog.
    2. PRESEL1
    After selecting an elementary search help. Table INTERFACE has not yet been copied to table SELOPT at this timepoint in the definition of the search help (type SHLP_DESCR_T). This means that you can still influence the attachment of the search help to the screen here. (Table INTERFACE contains the information about how the search help parameters are related to the screen fields).
    3. PRESEL
    Before sending the dialog box for restricting values. This timepoint is suitable for predefining the value restriction or for completely suppressing or copying the dialog.
    4. SELECT
    Before selecting the values. If you do not want the default selection, you should copy this timepoint with a search help exit. DISP should be set as the next timepoint.
    5. DISP
    Before displaying the hit list. This timepoint is suitable for restricting the values to be displayed, e.g. depending on authorizations.
    6. RETURN (usually as return value for the next timepoint)
    The RETURN timepoint should be returned as the next step if a single hit was selected in a search help exit.
    It can make sense to change the F4 flow at this timepoint if control of the process sequence of the Transaction should depend on the selected value (typical example: setting SET/GET parameters). However, you should note that the process will then depend on whether a value was entered manually or with an input help.
    7. RETTOP
    You only go to this timepoint if the input help is controlled by a collective search help. It directly follows the timepoint RETURN. The search help exit of the collective search help, however, is called at timepoint RETTOP.
    8. EXIT (only for return as next timepoint)
    The EXIT timepoint should be returned as the next step if the user had the opportunity to terminate the dialog within the search help exit.
    9. CREATE
    The CREATE timepoint is only accessed if the user selects the function "Create new values". This function is only available if field CUSTTAB of the control string CALLCONTROL was given a value not equal to SPACE earlier on.
    The name of the (customizing) table to be maintained is normally entered there. The next step returned after CREATE should be SELECT so that the newly entered value can be selected and then displayed.
    10. APP1, APP2, APP3
    If further pushbuttons are introduced in the hit list with function module F4UT_LIST_EXIT, these timepoints are introduced. They are accessed when the user presses the corresponding pushbutton.
    Note: If the F4 help is controlled by a collective search help, the search help exit of the collective search help is called at timepoints SELONE and RETTOP. (RETTOP only if the user selects a value.) At all other timepoints the search help exit of the selected elementary search help is called.
    If the F4 help is controlled by an elementary search help, timepoint RETTOP is not executed. The search help exit of the elementary search help is called at timepoint SELONE (at the
    F4IF_SHLP_EXIT_EXAMPLE
    This module has been created as an example for the interface and design of Search help exits in Search help.
    All the interface parameters defined here are mandatory for a function module to be used as a search help exit, because the calling program does not know which parameters are actually used internally.
    A search help exit is called repeatedly in connection with several
    events during the F4 process. The relevant step of the process is passed on in the CALLCONTROL step. If the module is intended to perform only a few modifications before the step, CALLCONTROL-STEP should remain unchanged.
    However, if the step is performed completely by the module, the following step must be returned in CALLCONTROL-STEP.
    The module must react with an immediate EXIT to all steps that it does not know or does not want to handle.
    Hope this info will help you.
    ***Reward points if found useful
    Regards,
    Naresh

  • How to add a search help on a screen field from screen painter

    Hi,
    I would like to add an existing Search Help on a screen field in Screen painter.
    Of course it's possible to just click on th screen field and in the property box, I just have to set the name of teh search help.
    The problem is that I need the screen field to be grey and user musn't be able to change the field value if he doens't use the search help.
    I'm not allowed to modify the existing search help or to built it on my own from source code, I must use the existing one.
    Do you have an idea on how to do so?
    Regards,
    Morgan

    Dropdown Box:
    In the screen painter for that field goto properties -> Dropdown ->select listbox.
    Option 1:
    Instead let that field be in change mode and if user enters any wrong entry which is not there in the table give a error messgae.
      CHAIN.
        FIELD addr1_data-country.
        MODULE modify_screenfields1.
      ENDCHAIN.
    MODULE modify_screenfields1 INPUT.
      CASE sy-ucomm.
        WHEN 'ENTER' OR 'EXECUTE'.
          IF NOT addr1_data-country IS INITIAL.
            SELECT SINGLE landx FROM t005t INTO lws_landx WHERE
                                          land1 = addr1_data-country
                                      AND spras = 'EN'.
            IF sy-subrc <> 0.
              MESSAGE e000(zo_spa) WITH text-022.  " Invalid Country code
            ELSE.
              t005t-landx = lws_landx.
            ENDIF.
          ELSE.
            CLEAR: t005t-landx.
          ENDIF.
       ENDCASE.
    ENDMODULE.                 " modify_screenfields1  INPUT
    Option 2: Other than if u want the way u like, let that field be greyed out. don't attach the search help.
    In the PROCESS ON VALUE-REQUEST.
      FIELD addr1_data-region MODULE region_pov.
    MODULE region_pov INPUT.
    Using the F4IF_INT_TABLE_VALUE_REQUEST table value request show the search help.
    also make that field input enabled.
    ENDMODULE.                 " region_pov  INPUT
    I think this will solve ur problem.
    Regards,
    Prakash.
    Message was edited by: Prakash Ramu

  • Search help for selection screen field

    Hi ,
    steps for creating search help for a key field in selection screen..
    tables is a userdefined from which the field is taken..
    thxs,
    vind

    hi,
    c this.
    REPORT ZXYZ_0002 .
    data: dynfields type table of dynpread with header line.
    data: return type table of ddshretval with header line.
    selection-screen begin of block b1 with frame title text-001 .
    selection-screen begin of line.
    PARAMETERS: P_BUKRS type T001-BUKRS.
    selection-screen comment 30(20) BUTXT for field p_bukrs.
    selection-screen end of line.
    selection-screen end of block b1.
    at selection-screen output.
    if butxt is initial.
       select single butxt into butxt
             from t001
            where bukrs = p_bukrs.
    endif.
    at selection-screen on value-request for p_bukrs.
      call function 'F4IF_FIELD_VALUE_REQUEST'
           exporting
                tabname           = 'T001'
                fieldname         = 'BUKRS'
                dynpprog          = sy-cprog
                dynpnr            = sy-dynnr
                dynprofield       = 'P_BUKRS'
           tables
                return_tab        = return
           exceptions
                field_not_found   = 1
                no_help_for_field = 2
                inconsistent_help = 3
                no_values_found   = 4
                others            = 5.
      read table return with key fieldname = 'P_BUKRS'.
    Add it back to the dynpro.
      dynfields-fieldname = return-retfield.
      dynfields-fieldvalue =  return-fieldval.
      append dynfields.
    Get the company code from db and add to dynpro
      data: xt001 type t001.
      clear xt001.
      select single * into xt001
             from t001
            where bukrs = return-fieldval.
      dynfields-fieldname = 'BUTXT'.
      dynfields-fieldvalue = xt001-butxt.
      append dynfields.
    Update the dynpro values.
      call function 'DYNP_VALUES_UPDATE'
           exporting
                dyname     = sy-cprog
                dynumb     = sy-dynnr
           tables
                dynpfields = dynfields
           exceptions
                others     = 8.
    start-of-selection.
    rgsds
    anver
    if hlped mark points

  • F4 / Help Functionality for input field in custom java iView

    Hi,
    As we see many F4 help on each input field in a transaction, how can we mimic the same functionality in a Custom Java iView. For example, ME23N, you can search a PO based on some criteria, when i create a new custom java iview using BAPI_PO_DISPLAY, how can provide that F4 or help functionality to the Purchase Order field.
    Your help is really appreciated.
    Thanks,
    Vijay

    Hi Vijay,
    the F4 Help functionality is always of big concern when you're switching from a R/3 or ABAP-SAP GUI environment to a webfront end. First of all: the convinience you're used to of creating a seach help and adding it to your data fields is gone, i.e. the current development status in the portal/java/webdynpro implies that you have to do most of the work on your own. Simple value helps might not be a problem, but complex ones are (as the one you've described). Here is a link to a tutorial in Java-webdynpro, maybe it gives you an idea:
    https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD9_OVS.htm
    Regards,
    Ulli

Maybe you are looking for