How to add F4 help to a custom field in WEB UI

Hi All
I'm able to see my custom fields in the drop down of 'Search Criteria' in Web UI and on the right side If i give any value to filter the records it is successfully filtering but there is one problem i'm facing over here.
There are few fields which are having 'Fixed value/ F4 help' now user is asking me to display the corresponding F4 help in right most end so that he will select one value using F4 help and he'll press the 'Search' button to filter the records.
So how and where do we implement the code to get the 'F4 help' for the fields which we have added ?
For Example:
I have a custom field called 'Margin %' now in the Search Criteria screen in web ui we can see like below
Profit Center                                       is                 '1000'
Here it will filter the records which are having value '1000' for Profit Center so here client is requiring F4 help so that he will
select the Profit Center and Press the Search button.
Hope the requirement is clear!! 
Please guide me.
Regards
Anil

HI All
While I was trying to build 'F4' for one of the custom fields(Profit center) for opportunites, I couldn't able to figure out which values we need to pass in the below code.
Below is the standard code for 'CAMPAIGN_ID' and im refering this to build 'F4' help for my Z* field.
lv_title = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_IC_APPL/SEARCH').
gr_pcsearchpopup = comp_controller->window_manager->create_popup( iv_interface_view_name ='BT111S_OPPT/Search'
                                                                                iv_usage_name = 'BT111H_OPPT'  "'PCSearch'
                                                                                iv_title = lv_title ).
Now the question is what to give for 'iv_interface_view_name ' and from where do we get this view name ?
                                 what to give for 'iv_usage_name ' and from where do we get this usage name ?
Also, I'm able to give the 'F4' help using the below code however this code is initially showing all the records but the
client requirement is it should show the popup without any records and then user will enter a value in the 'Profit Center' field
then it should display the records based on the value entered.
Could you please help me out how can I acheive this.
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,
      lr_entity TYPE REF TO cl_crm_bol_entity.
  ls_map-context_attr = 'STRUCT.ZZPRCTR'.
  ls_map-f4_attr      = 'PRCTR'.
  cs_result-output_mapping = ls_map.
  ls_map-context_attr = 'STRUCT.ZZPRCTR'.
  ls_map-f4_attr      = 'KTEXT_U'.
  cs_result-output_mapping = ls_map.
  cs_result-help_id-help_id = 'ZPRCTR_SCH'.
  cs_result-help_id-help_id_kind =  if_bsp_wd_valuehelp_f4descr=>help_id_kind_comp.
Could you please help me out on this.
Regards
Anil

Similar Messages

  • How to add F4 help for the custom field of a custom table

    Hi All,
    How to add F4 help to the custom table field? in the table maintainance when user clicks on F4 i want to provide possible values for this field I am trying to write the code in the screen of table maintainace like the following
    PROCESS ON VALUE-REQUEST.
      FIELD ZTEST_MAH_F4-KUNNR MODULE zVALUE_kunnr .
    But when i am double clicking on module it's giving options to create include program but after that it's giving user is currently editing the table i am not getting this can some body clarify my doubt it's gr8 if some body give some examp code
    Thanks&Regards
    mahesh

    Hi,
    Create a subroutine under the event and call the following FM
    1. Select all the related data into an itab, for ex i_kunnr
    2.    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
        DDIC_STRUCTURE         = ' '
           retfield               = 'KUNNR'
        PVALKEY                = ' '
           dynpprog               = sy-repid
           dynpnr                 = '1000'
           dynprofield            = <selection screen field>
        STEPL                  = 0
        WINDOW_TITLE           =
        VALUE                  = ' '
           value_org              = 'S'
        MULTIPLE_CHOICE        = ' '
        DISPLAY                = ' '
        CALLBACK_PROGRAM       = ' '
        CALLBACK_FORM          = ' '
        MARK_TAB               =
      IMPORTING
        USER_RESET             =
          TABLES
           value_tab              = <b>i_kunnr</b>
        FIELD_TAB              =
           return_tab             = < return table >
        DYNPFLD_MAPPING        =
         EXCEPTIONS
           parameter_error        = 1
           no_values_found        = 2
           OTHERS                 = 3

  • How to Add F4 Help To a Screen Field In a Module Pool Program

    Hi Friends,
    1. How to Add F4 Help To a Screen Field In a Module Pool Program?
    2. How to select a single cell in ALV report output for interactive reporting ?
    Kindly give code example.
    regards,
    Pradeep

    Hi,
    Try using the fm 'F4IF_INT_TABLE_VALUE_REQUEST'.
    Refer the link below for selecting  single cell.
    alv
    Reward points if useful.
    Regards
    Rose

  • How to add a help line below a field

    Can anybody give some hints about how to add a help note below a field formatted to its size.
    A single line to be added for user to know how to input a employeeId in which format.
    I know we can add a help to the field.

    <Property name='inlineHelp' value='YYYY-MM-DD'/>

  • How to add F4 help to standard infotype field

    Hi,
    I need to add a F4 help to a standard field in a PA infotype (0021- Personal data). Is this possible?
    Is it correct that, in a custom field a F4 help can be added using a foreign key relationship? Or what is the correct method?
    Also, I think I can do the validation of the field, on saving the infotype, in the include ZXPAUD02. Is this correct?
    I have tried looking this up in the various threads in SDN, but I haven't found what I needed yet. Thanks for your help..

    Hello friends,
    I would like to request you that if you people posted a query for solution. once you got the answerers by yours  self or some were else kindly post that solution in return so that other people will utilize it,
    thanks
    YSR.

  • IW31- How to add Search help for User specific fields in IW31 transaction.

    Hi Experts,
    I have to add Search help for standard fields USR00 to USR10 fields in IW31 transaction.
    Is there any user exit for this requirement.
    Please reply, it will be very helpful for me.
    Regards,
    B. V. Rao

    Bala,
    See the following user-exits:
    IWO10015: F4 Help for user fields on operation
    IWO10016: Customer enhancement to check operation user fields
    PeteA
    [www.pjas.com]

  • How to add history for changes on custom fields in PO

    Hi all,
      I have added custom fields to purchase orders via ME21N, ME22N, ME23N.  When i update the changes on the custom fields, there is no history kept in ME22N or ME23N  screen.  Is there a way I can add my custom changes to the po history ?
    Any suggestions are welcome.
    thanks
    Joyce

    Hello!
    What kind of "history" do you mean? If you would like to store entries in transparent table EKBE, the M.Seema's suggestion may be reasonable. But if you mean that changes need to be logged by means of Document Changes Service, you should get hold of information here http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm

  • F4 Help Assignment For Custom Field

    Hi All...
    I'm trying to add F4 help to a custom field.  I have created a field of type CRMT_PERSON_RESP_LIST and I want to assign a partner to the field.
    I have assigned the F4 application 'CRMM_BUPA_SEARCH' to the field and I have setup the field in the 'Field assigment for transfering values' as follows:
    view - field name - result field - F4 application - field in Hitlist
    - ASSIGNED_TO - ASSIGNED_TO - CRMM_BUPA_SEARCH -
    Where do I go to determine the 'hitlist' fields that I can choose from? Since the name of my field is different from the name of the field in the F4 application how do I determine the fields the F4 application will be returning so that I can choose the one I want?
    Your help in this endeavor would be greatly appreciated...

    Hi Trevor,
    Since the name of your field is different from the name of the field in the F4 application , you will have to do additional mapping . The mapping rules can be defined in
    blueprint customizing in table CRMC_F4MAPREC.To map the fields go to transaction crmc_blueprint_c. Go to following path and map the fields --- Layout of user interface(PCUI)-Input Help - Field Assignment for Transferring Values.
    You can also find the solution in cookbook in topic  5.1.3.3
    Thanks,
    Hetal

  • How to add search help to custom infotype listbox??

    Hi All,
    How to add search help to custom infotype listbox??
    Thanks in advance

    Hi Vinay,
    We have search help and list box as 2 different options.
    At a time we can make a field a list box or a search help.List box is restricted and we can pick values from the defined list whereas in search help we can allow more entries and then validate the value entered later.
    Implementing a listbox or search help in infotype is same as that of implementing it in a modulepool .
    for search help..we can create a custom search help or check for existing search help in se11
    then in the screen on infotype field..assign the search help direcly at the screen painter level..
    double click on the field in screen painter -> change mode and then in the space for "search help" enter the search helps name
    for list box..in the screen painter ,make sure the field is selected as list box..then in PAI of screen we do a
    (Process on value-request..field fieldname module module name)..check syntax and other details...
    Using function module vrm_set_value fill the field and populate it as required
    Pls check and revert
    Regards
    Byju

  • How to add f4 help to customized SO

    Hi Experts,
    Could u please help; how to add f4 help to my SO.
    my req.  is ,I have created my SO in my report, i want have f4 help on below filed in my report.
    select-options: s_ihrez for vbak-ihrez.
    Could please help indetails(step by step).
    Thnx.
    POINTS REWARDED immediately.
    Regards. Vishnu.

    hi,
    check the example
    TABLES: mara, makt.
    DATA mat LIKE mara-matnr.
    DATA: BEGIN OF itab OCCURS 0,
    matnr LIKE mara-matnr,
    END OF itab.
    DATA : BEGIN OF btab OCCURS 0,
    maktx LIKE makt-maktx,
    END OF btab.
    DATA : return LIKE ddshretval OCCURS 0 WITH HEADER LINE.
    SELECT-OPTIONS: so_matnr FOR mara-matnr,
    so_maktx FOR makt-maktx.
    INITIALIZATION.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-low.
    PERFORM matnr.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_matnr-high.
    PERFORM matnr.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-low.
    PERFORM maktx.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR so_maktx-high.
    PERFORM maktx.
    *& Form matnr
    text
    FORM matnr.
    REFRESH itab.
    SELECT matnr FROM mara INTO TABLE itab.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'MATNR '
    dynprofield = 'P_MATNR '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    value_org = 'S'
    TABLES
    value_tab = itab
    return_tab = return.
    mat = return-fieldval.
    UNPACK mat TO mat.
    so_matnr = return-fieldval.
    REFRESH return.
    CLEAR return.
    ENDFORM. "matnr
    *& Form maktx
    FORM maktx.
    REFRESH btab.
    SELECT maktx FROM makt INTO TABLE btab WHERE matnr = mat AND spras =
    sy-langu.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    retfield = 'MAKTX'
    dynprofield = 'SO_MAKTX '
    dynpprog = sy-repid
    dynpnr = sy-dynnr
    value_org = 'S'
    TABLES
    value_tab = btab
    return_tab = return.
    so_maktx = return-fieldval.
    REFRESH return.
    CLEAR return.
    ENDFORM. "maktx
    if helpful reward points

  • How to add a validator to a custom tag

    Hello,
    I would like to know how to add a validator to my custom tag as an attribute.
    <mytags:custom validator=???/>
    Thanks.
    Sebastien

    Are you wanting to use one of the JSF validators or a home brewed one?

  • How to add an embedded report to custom UI?

    Dear colleagues:
    Since now I am doing investigation on this:How to add an embedded report to custom UI , so do you have some guideline doc for this?
    Requirement is:
    Customer want to add a custom report to a custom FS page. And it has some standard fields from contract. So do you have any ideas about this?
    Thanks & Best Regards,
    Qiang

    Hi Jens,
    Attachment is the guideline for how to add an embedded report to custom UI. However, so far as i know, there still a limitation that is about inport parameter.
    For example, now can show all data of accounts. but i just only want show one account data when click account. so you can share to us if you have any idea about it.
    Thanks &Best Regards,
    Qiang

  • CLM How to add search-help for extension field(New Company Field) in MA.

    Hi all,
         Based on demand,I need to extend a new field(Company) in Master Agreement.
    But I do not know how to add search-help for this field,just like User Accont page.
    Anyone can help me ?thank you very muck.
    Regards,
    JackyCheng

    Hello Jacky,
    To combine all the answers above and have a topic-based reply please go through the below steps:
    #1. Inactivate the current extension field Company (I see it is actually a String value and this is not what you want to have)
    #2. Go to Setup -> System Setup -> Extension Reference Types
    Check if you already have a Company reference type
    If not, create a new Extension Reference Type for Class Company. Fill in all required information.
    #3. Create a new Extension Attribute
    Select Data Type: Object Reference
    Now you can add the Company type as reference
    Regards,
    Bogdan Toma

  • How to add F1 help for a field on ALV grid

    Hi All,
    When we execute a program, the output is displayed using ALV grid.
    on the ALV grid, if we press F1 on a field, it should popup the help document.
    How to add F1 help for a field on ALV grid.
    Thank you all in advance.

    fill field LVC_S_FCAT-ROLLNAME of your fieldcatalog in method SET_TABLE_FOR_FIRST_DISPLAY
    A.

  • How to add search help for standard field LIKP-TRAID

    Hi friends,
    How to add search help for standard field LIKP-TRAID ,
    refer screen
    Program Name       SAPMV50A  
    Screen Number      2108      
    TrnsIDCode ( LIKP-TRAID ) ..
    I need to add a search help, so that i can retrieve data from Ztable.
    Thanks.
    Abhi

    Hi Abhi,
    Try using any one option:
    Create a Search Help in SE11.
    Now Goto SE11 -> Enter Ztable -> Select that field -> Click Search Help and try to assign the created Search help to that field in your Ztable explicitly
    OR
    Create a Zdata element in SE11.
    In Data Element, under Further Characteristics tab, enter Name  Parameters of Search Help.
    Assign this data element to that field in ur Ztable.
    OR
    Create a Zdomain and maintain a Value Table or Fixed Values for it.
    Assign this domain to that field in ur Ztable.

Maybe you are looking for

  • Native notes sync (via gmail) on multiple devices

    I sync my notes (from the native notes app) via gmail over both my iPad and my android phone. I noticed today that if I edit a note (that is already synced with both devices) with my iPad while it has no Internet connection, the changes are not retai

  • How share directory between two Linux nodes?

    Dears,, I am trying to install Oracle RAC on two Linux nodes . . . But i need to make directory shared between the both nodes directory is /ocfs/clusterware I need to make this directory shared between them I mean , if create file in this directory i

  • How to create margin in Main Content section?

    Howdy folks, I have created several pargraphs in the main content section.  At the left of the page is a sidebar.  The text in the main content section touches the left side of that section, and I want to create a margin to keep the text from touchin

  • Some images not displayed on localhost

    I just recently installed CF on my own computer as localhost with Apache.  When I call a Coldfusion page in http://localhost/main.cfm it will show the text and some images.  However, it will not show all the images.  All the images are stored under t

  • Firefox 3.6 freezing / hanging most of the time. All add-ons disabled. Cache and cookies cleared. Help!

    Firefox 3.6 freezing / hanging most of the time. All add-ons disabled. Cache and cookies cleared. Help! Examples: Freezes for about 20 seconds every launch. Freezes quiting. Freezes switching tabs. Freezes clicking links.