Dynamically assign Search Help to the field

Hi All,
I have creates one search help from se11 like zshlp. i m not assign this search help to the database field. bocz i used this search help at runtime. so how can i assign this search help during execution time of my program. 
Reward for helpful answer.
THANKS & REGARDS,
SAHIR

Hi Sahir,
   Creating dynamic search help means the f4 help will come on the context bases.
that will achieved with function module
1. F4IF_INT_TABLE_VALUE_REQUEST  : Display internal table as search help (documented in SAP)
*---Report with selection screen and to display the list of
possible entries for field 'B' as per the value in field 'A'.
REPORT ZTEST_F4HELP .
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.
Hope this is helpful to you. If you need further information, revert back.
Reward all the helpful answers.
Regards
Nagaraj T

Similar Messages

  • Custom Search Help for the field Equipment number

    Hi,
    I have enchanced sales order transaction and included a field Equipment number(EQUI-EQUNR).
    Here after pressing F4(Search help) standard search help is display.
    I have a requirement wherein, the standard search help should not appear and a customised search where a specific Equipment category type values should appear in the search help.
    Ex. Field equipment  category (EQTYP).EQUNR(Equipment Number).
    Please let me know how to work for the customised search help.

    Hi,
    You need to create a customized search help.
    [Elementary Search Help - Structure|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee38446011d189700000e8322d00/content.htm]
    [Creating Elementary Search Helps|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee5f446011d189700000e8322d00/content.htm]
    Then you need to attach the search help to the screen field..
    [Assigning Search Helps to Screen Fields|http://help.sap.com/saphelp_nw04/helpdata/EN/cf/21ee93446011d189700000e8322d00/content.htm]
    [Hierarchy of Search Help Call|http://help.sap.com/saphelp_nw04/helpdata/EN/0b/32e9b798da11d295b800a0c929b3c3/content.htm]
    regards
    Nitesh

  • How to create Search help for the field /SAPSLL/PRGEN-ATTR20V

    Hi ,
    I need to add a search help for the field /SAPSLL/PRGEN-ATTR20V and their is a chk table used for this field is /SAPSLL/TCOATV20.
    In this table /SAPSLL/TCOATV20-ATTRV20V is a Primary key field.
    How can I add search help for this field?
    Any suggestions will be appreciated!
    Regards,
    Kittu

    HI,
    Fixed on my own..
    I am closing this thread!
    Thank you!
    Kittu

  • Assign search help to a field in PCUI

    Hi Friends,
    Here is my requirement. I have designed a PCUI application which searches the address based on the post code entered. Now the standard method to assign this application as search help is to specify the name of the application in the "input help" property of a field in the field group.
    I have implemented the same for the field POST_CODE1 of the field group ADR_DETAIL_POSTAL which is a part of service order application in PCUI. Now when i try to use the same thing in street field, it does not work. the F4 help just does not come. It works fine for STR_SUPPL2 field, House_num1 field and all other fields in the field group except for the Street field. ANd the client wants in only on the street field.
    I am not able to understand that what might be the possible mistake. Any help in this matter will be highly appreciated.
    Thanks in advance,
    Karan

    Check the FM: HELP_VALUES_GET_WITH_TABLE_EXT
    Check the documentation for example code.
    regards,
    Ravi

  • Assign Printer Search Help to XREF1 field in FB70/75.

    Hi All
    I have a requirement where for a particular company code only I need to assign the printer search help to the field Reference Key 1 (XREF1) on the 'Detail' tab of FB70 & FB75.
    Is this feasible? If yes, can anyone please guide me.
    Regards,
    Harsh

    Hi,
    Try :
    PARAMETERS lv_vers TYPE /sapapo/vrsioid MATCHCODE OBJECT /SAPAPO/VRSIOID.
    Regards

  • 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.

  • Assign search help for a screen field in standard program?

    Hi All,
    Is there any other way to assign search help to a standard SAP screen field? (to be precise i want to assign search help to Recipient field in table control of components tab in transaction IW32/IW31)
    I know we can do this by assigning search help through screen painter (by changing standard program, which is my last option).
    Any advice/help will be greatly appreciated.

    Hi,
    I think you will find solution in below <b>threads</b>:
    Re: Search Help for standard field
    How to assign a search help
    Search help for Standard SAP field
    <b>Reward if helpful</b>
    Rgds,

  • Assigning search help to fields created by T-code OXK3

    Hi All,
    I have created two new fields using t-code OXK3. These two fields have come in the table control of t-code fb60 at the line item level in place of fields
    1.acgl_item_gen-gen_char1
    2.acgl_item_gen-gen_char2.
    These two above fields were place holders which were replaced by the two newly created fields.
    Now my requirment is that i need to provide F4 help for these two fields.
    Best Regards,
    Kalyan

    Hi,
    1. You can add new fields in the complex search help of the field
    by editing the search help exit. please check search help have any search help exit attached to it.
    Frank Zhang wrote:
    > And also if I input value "1000" in the company code field, the search help value of field bank code will automatically relate to "1000".
    I not sure how a F-02 screen value of company code in the entry screen can be relate with bank code in the search help

  • Assign Search Help to Table

    Hi All,
      I have created a custom check table which also has a text tables assigned to it. I have created a Elementary Search help for the check table and the selection method for the search help is the check table itself.
      The issue is when I goto the check table using SE11, I click on Extras --> Search Help for Table, it does not display the search help that I had created however the search help is displayed for a similar customizing table created by SAP, TVK8.
      I think I need to assign the search help to the custom table that I have created. I would greatly appreciate if anyone can tell me as to how I can assign the search help to the check table.
    Thanks,
    Vamseedhar K

    Check this link..Attaching to Check Tables
    http://help.sap.com/saphelp_nw04s/helpdata/en/63/1b70bfc32111d1950600a0c929b3c3/frameset.htm
    Also check this link.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70260b78-ff89-2a10-5eb0-d2f51467560b
    Also check the steps to create search help.
    This is how u can create "Search Help" for the fields of the ztables that u have created.
    SE11- Create Search Help for 1 field, "Selection Method" box put the Table name to which the field belongs to. "Dialog Type" box write: "Display Value Immediately".
    Search Help Parameter is the Field name for which u want the Help. Tick Imp & Exp options and assign LPOS = 1 and Enter. , save and Activate.
    SE11- Go to the table , Click on the Field that needs to be assigned a search Help....Click at the left side of the Field so that all the corresponding data Elements, Key field etc also gets selected.
    Click on the "Search Help tab" just above the "Data Type " column.
    Put the "Search Help" name that u just created. Mention the Field and Enter. it takes up the required values. Now Copy.
    U can repeat the process for whatever fields u want to assign a Search Help.
    se51- Go to Screen Painter, Select Fields from Dictionary table to which u want search help to be assigned.
    Double click on the Text box of the corresponding field,......> Screen Painter Attributes.......> Search help Text box.........> Enter the name of the Search help that u created for a field.
    Ok....>Save.........> Activate
    Now u should be able to get the Search help for the fields that u wanted to.

  • Search Help for a Field of a Table Control

    I have designed a screen using 'Table Control' with fields like Date, BoxNo,Quantity etc. Kindly tell me how to go about providing a search help for the field 'BoxNo' of this table control so that the user is not required to scroll down the entire table/list for selecting a particular box no.
    Thanx in advance,
    Alok.

    When you go to screen painer, in screen painter attributes window, there is an atribute called search help, fill it.
    Another way is, after PAI put:
    PROCESS ON VALUE-REQUEST.
      FIELD box_no MODULE f1_help_box_no.
    And gives logic in that module using FM F4IF_INT_TABLE_VALUE_REQUEST.
    Regards.

  • Search help ehancement of field in t-code F-02.

    Hi all,
    I want to ehance a filed's search help in t-code f-02.
    requirement is as below.
    when you click one field's sech help in t-code f-02. A search help pop-up window will display. In this pop-up window, there are several tabs.  I want to add a new tab in this pop-up window.
    In this new tab, I want to add 2 new fields (for example, company code & bank code) in this tab. each tab also has search help.
    And also if I input value "1000" in the company code field, the search help value of field bank code will automatically relate to "1000".
    could anyone give me a solution or suggestion?
    Thanks in advance!

    Hi,
    1. You can add new fields in the complex search help of the field
    by editing the search help exit. please check search help have any search help exit attached to it.
    Frank Zhang wrote:
    > And also if I input value "1000" in the company code field, the search help value of field bank code will automatically relate to "1000".
    I not sure how a F-02 screen value of company code in the entry screen can be relate with bank code in the search help

  • No search help for Custom field ZZKUKLA in vk11

    Hi,
    I have added the field KUKLA - Customer classification as a pricing field in KOMP. Created an access sequence as follows: Sales Org.-> Customer Classification - material group.
    In the creation of the record in VK11 I'm not getting the search help for the ZZKUKLA field. The thing is that if I'm in change or display, the search help for the field appears and lists the possible values.
    Anyone have a clue?
    Thanks!
    /Patrik

    Dear Pratik,
    Request you to first add Customer classification field (ZZKUKLA) in KOMK structure insted of structure KOMP. Becasue it is header structure filed. After add this new filed in KOMK structure, Add this new filed in your field catelog and than create table and new access sequence. Also request you to select KOMK structure in your access sequence against this new field Customer classification ZZKUKLA.
    Regards,
    Haresh Panara

  • Adding a search help to standard field

    hi
    My requiremnt is to add a search help to the field Corporate Group(KONZS)  in XD01(customer Master data) table KNA1
    Can anyone suggest how to go about
    Thanks in Advance.

    Hi
    Sorry, but I think that you must see the SAP Note 512840 - Search customer master record with search term 1/2
    Regards
    Eduardo

  • Adding search help to existing fields

    hi
    i have created a ZTABLE(structure), i need to add search help to one of the field name1 which is the standard sap field from table lfb1. can i add it into the table which i have created, if yes how can i add a search help to the field.

    Hi,
    TYPES: BEGIN OF t_reques,
           lgnum TYPE lgnum,
           END   OF t_reques.
    DATA:i_reques TYPE STANDARD TABLE OF t_reques.
    SELECTION-SCREEN: BEGIN OF BLOCK b1.
      PARAMETER:        p_ware  TYPE lgnum    OBLIGATORY.
    SELECTION-SCREEN: END   OF BLOCK b1.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_ware.
      SELECT lgnum
             FROM T301
             INTO TABLE i_reques.
      PERFORM f4_help USING i_reques CHANGING p_ware.    "SUBROUTINE FOR F4 HELP.
          SUBROUTINE FOR F4 HELP.                                        *
         -->P_I_REQUES  text
         <--P_P_WARE  text
    FORM f4_help  USING    p_i_reques
                  CHANGING p_p_ware.
               CALLING FM F4IF_INT_TABLE_VALUE_REQUEST FOR F4 HELP.      *
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          ddic_structure   = 'LINK'
          retfield         = 'LGNUM'
          dynpprog         = sy-repid
          dynpnr           = sy-dynnr
          dynprofield      = 'P_P_WARE'
          callback_program = 'ZAR_F4HELP'   "Your Program Name
        TABLES
          value_tab        = i_reques
        EXCEPTIONS
          parameter_error  = 1
          no_values_found  = 2
          OTHERS           = 3.
      IF sy-subrc <> 0.
        MESSAGE i006(zmm_ab).
      ENDIF.
    ENDFORM.
    Thanks,
    Arunprasad.P
    Reward if useful.

  • 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

Maybe you are looking for

  • Why does Illustrator crash when opening a file on Windows 8.1

    This morning I opened Illustrator and opened the file I was working on and the app crashed. It happened even when I tried to make a new document. I have CC, CC 2014 and CC (64-bit) and they all do the same thing. I'm running a Surface Pro 2 on Window

  • New ios8 prevents me from deleting emails. Help

    WWhen I delete emails they keep reappearing and error message says I cannot move to trash in new iOS downlad.

  • Symbian Belle's features and changes.

    I was trolling through this discussion when someone posted this link. I think you all should see it. I've fallen in love with Belle already. http://projects.developer.nokia.com/Symbian_redesign Enjoy.

  • Adhoc Query for Qualifications.

    Hi Guys. Can some body help me creating an Adhoc Query for the active employees whose Qualifications along with there Name reflects, can somebody guide me in this regard. Regards, Venkat.

  • Source table name on ? ? level

    hi I would like to store in Java Variable source table name on <? ?> level. <? String table_name = Source_Table_Name; ?> When I use: <? String p = "<%=odiRef.getSrcTablesList("", "[TABLE_NAME]", ", ", "")%>"; ?> then this code is translated to: <? St