List box in search help

is it possible to attach a listdown box for a search help field..
when F4 is given for a field the search help is displayed, can a drop down be attached to the search field in this.

Hi
See the sample programs and do accordingly to get the F4 values
See the following ex:
TYPES: BEGIN OF TY_MBLNR,
MBLNR LIKE MKPF-MBLNR,
END OF TY_MBLNR.
DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
data: it_ret like ddshretval occurs 0 with header line.
At selection-screen on value-request for s_mat-low.
Select MBLNR from mkpf into table it_mblnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'MBLNR'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_MBLNR
FIELD_TAB =
RETURN_TAB = IT_RET
DYNPFLD_MAPPING =
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.
ENDIF.
IF SY-SUBRC = 0.
read table it_ret index 1.
move it_ret-fieldval to S_mat-low.
ENDIF.
Go through the test program.
REPORT Ztest_HELP .
TABLES : MARA.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_MATNR(10) TYPE C.
SELECTION-SCREEN END OF BLOCK B1.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
SELECT MATNR
FROM MARA
INTO TABLE ITAB
UP TO 10 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MATERIAL NUMBER'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MATNR'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3. 
Reward points for useful Answers
Regards
Anji

Similar Messages

  • Check box in search help

    Hi Experts,
    I have created one custom table. there is one field called zflag ( TYPE C - length 1). This field will contains values either 'R' or ' '.
    I have one module pool program. In that I have field called doc number. As soon ad user press F4 on doc number field, search help will displayed.
    field zflag is added to that serach help and it is working fine.
    But user wants show this field as check box in search help.
    Could you pls help me how to place check box in place of text field.
    Thanks in advance
    Regards
    Raghu
    Edited by: r badveli on Feb 17, 2009 10:38 PM

    Anyone has any idea about this?
    As soon as I press F4 on document no field, It will display one pop-up window with search help restrictions.
    In the search help restrictions ... I have added one flag field . But we nedd that text field as check box.
    How can we acheive this?
    Thanks.

  • How to change the list box to F4 Help for Billing type in VF01

    Hi All,
    In VF01 for Billing type i am getting List box. Now  I have to add one more field to that list box.
    like  F1 invoice
           F2 Invoice returns.
    or
    Is there any possiblity of making it as F4 Help instead of List Box.
    Please throw some lite on this issue.
    Regards,
    Rohit.

    Hi ,
    The list box is getting the value from the table TVFK .
    You can get the table name from the VALUE  TABLE of  FKART which is the domain
    for the field Billing Type .
    You need to Update the table TVFk programatically. Like  - -
    TABLES : tvfk.
    tvfk-FKART = 'F1'.  " Billing type
    tvfk-KOPGR =
    tvfk-VTEXT = 'Invoice '.  " Billing type description
    UPDATE TVKF FROM TVKF.  " Update the table
    Similarly you have to update the table by the F2 and and description.
    tvfk-FKART = 'F2'.
    tvfk-KOPGR =
    tvfk-VTEXT = 'Invoice returns'.
    UPDATE TVKF FROM TVKF.
    Regards
    Pinaki

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

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

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

  • CheckBox in search help restriction dialog.

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

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

  • Use of search help exit

    use of search help exit with an example

    Hi,
    A search help describes the standard input help process. In exceptions it could be necessary to deviate in some points from this standard. Such a deviation from the standard can also be implemented with a search help exit.
    The input help process should look as much the same as possible throughout the entire system. Search help exits should therefore only be used for exceptions.
    A search help exit is a function module that has a predefined interface. A search help exit is called at certain times by the help processor. The administrative data of the help processor are passed to the search help exit using the interface.
    You can store your own program logic that manipulates this administrative data in the search help exit. Individual steps of the input help process can be skipped with a search help exit.
    for example
    Search help exit F4UT_OPTIMIZE_COLWIDTH adjusts the column width in the hit list to the contents of the column. It makes sense to use this search help exit when the columns of the hit list have to be made very wide for extreme cases (e.g. for name fields), but normally they will contain much smaller values.
    Each search help exit must have the same interface as function module F4IF_SHLP_EXIT_EXAMPLE (is used as pattern for all the search help exits to be created). You can find more information about the interface in the documentation for this function module.
    Calling the Search Help Exit
    If a search help exit is assigned to a search help, the help processor calls it at the following times:
    Before Displaying the Dialog Box for Selecting the Required Search Path.
    It is only called for collective search helps. Using the search help exit, the set of elementary search helps available can for example be restricted depending on the context.
    Before Starting the F4 Process for the Elementary Search Help
    The call is triggered independent of whether the dialog window for entering the search conditions appears or whether the selection is executed immediately (for example, because in the Hot key of the elementary search help Immediate value display is set).
    Before Displaying the Dialog Box for Entering Search Conditions.
    You can either influence the dialog for entering search conditions or skip it altogether here. You can also influence how the selection screen looks. The call is triggered only if there is no direct selection (that is, if in the Hot key of the elementary search help Immediate value display is not set).
    Before Selecting Data.
    The data selection can be partly or completely copied from the search help exit. This can become necessary if the data selection cannot be implemented with a SELECT statement for a table or a view.
    Before Displaying the Hit List.
    You can influence the display of the hit list in this step with the search help exit. You can reduce the number of values displayed here. For example, you can display only values for which the person calling the input help has authorization. You can also copy the complete hit list from the search help exit.
    Before Returning the Values Selected by the User to the Input Template.
    It could be advisable to intervene at this time if control of the further transaction flow should depend on the value selected. A typical example is setting set/get parameters.

  • 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

  • Inconsistancy between CRMD_ORDER and ICWebClient in search help

    In this ICWCShowF4Help - Doco I asked about calling a search help from the ICWebClient. I now have that working but there is an inconsistancy about how it is working in from CRMD_ORDER and from the Web Client.
    The search help is the one associated with field CRMT_PRIL_QUERY_ICWEB_MAIN-CATEGORY_ID ie search help CRM_PROD_CATEGORY
    This produces a list of product categories with texts from CRMD_ORDER. Inside the Web Client the same search help is omitting the texts and they cannot be searched.
    Does anyone have any clues, notes or ideas about this behaviour?
    Any ideas or pointers will be gratefully received and rewarded.
    Kind regards,
    Nigel James

    Step:1
    In the View  just add the code for a search help,for example
    <!-- Code for input box with search help,just replace structure name and -->
    <!fieldname by the actual structure and field name created in se11.>
                                 <crmic:inputField id = "ID"
                              maxlength = "40"
                              width     = "100%"
                              value     = "<%= Variablename %>"
                              showHelp  = "FALSE"
                              onValueHelp =
    "ICWCShowF4Help(<%= mpage_context->m_page_id %>_FieldName,<%= mpage_context->m_page_id %>_MaterialText,'StructureName-FieldName','','<%= mpage_context->m_page_id %>')"
                              disabled  = "TRUE"
                              />
    Step:2
    Go to se11 create a structure with the respective field and attach the search help to that field and appropriately check exp imp in the field.The important thing here is that the secondary search help should not be used here.I suggest rather define a view and use it in  the structure.
    thanks,
    ashish.

  • Search Help Entries

    Hi, 
      When i try to manipulate the entries in a search help created in a customized field on MM01 screen, the search box is not showing the values.
      well, i have created a search help exit by F4IF_SHLP_EXIT_EXAMPLE function, but when a try to manipulate the record_tab on step 'DISP'  and input or delete new entries after runs the functions the search help is claering itself ..!!!
    i took a look in this forum, but i didn´t find a cleary answer.  Has someone faced this issue ?
    i will apreciated a help..!
    thanks a lot.

    Hi there,
    Thanks for some input. But as already mentioned above, I have tried using all possible types of dialog box (hit list), but the search help on the portal remains the same. I was wondering if there are any settings in the system level or portal content management which would restrict the entries to 150.
    Any clue????
    -M

  • How to limit the search help in the selection screen?

    Hi All,
    I got a selection option in a selection screen,
    say SELECT-OPTIONS KSCHL FOR VAKE-KSCHL.
    I want to limit the output list of the search help of this field, e.g. 33 entries for a specific application and usage.
    What should I do ?
    Thz.

    Hi,
    U can check with these two
    <b>... NO-EXTENSION</b>
    Effect
    The user can only make an entry on one line. Calling the additional "Multiple Selection" screen is not supported and no pushbutton for this appears on the selection screen.
    Addition 12
    <b>... NO INTERVALS</b>
    Effect
    The selection option is displayed on the selection screen without a 'to' field. The pushbutton for calling the "Multiple Selection" screen appears immediately after the 'from' field.
    This addition thus allows you to generate a simplified display on the selection screen. This is particularly useful if you are not making any range selections for this selection option.
    Notes
    On the "Multiple Selection" screen, you can also enter ranges for selection options with "NO INTERVALS".
    By combining this addition with "NO-EXTENSION", you can restrict the user to entry of a single value for the selection option, but with the possibility of also choosing single value options like 'Greater than' or 'Less than or equal'.
    By using the addition " NO INTERVALS" with SELECTION-SCREEN BEGIN OF BLOCK, you can activate the simplified display for all selection options in a block.
    The function module SELECT_OPTIONS_RESTRICT allows you to restrict the set of selection options available for a SELECT-OPTION (for example, only single values and patterns, i.e. 'EQ' and 'CP' are allowed). You can also forbid the leading sign 'E' (= 'Exclude from selection'). This means that you can considerably restrict the selections which can be entered on the selection screen.
    Just now tried it out to limit the search help u have to use NO-EXTENSION.
    <b>Try this simple code.
    Tables: mara.
    SELECT-OPTIONS: s_matnr FOR MARA-matnr NO-EXTENSION.</b>
    Hope this helps.
    Kindly reward points and close the thraed if ur problem got solved.
    U havent rewarded any points?
    Message was edited by: Judith Jessie Selvi

  • How to copy the corresponding values other fields in  Search help

    Hi All,
    My selection screen contains 5 fields. three are obligatory parameters, one date field and one select option.
    All are from the same table . I had created search help for one field .
    when I'll click the hit list of the search help I want the corresponding values to get copied to other fields in the selection screen, as my hit list contain values for all those fields.
    How Can I copy those values.
    Please help me on this.

    Hi,
    Please try this.
    In the search help set the export parameter for the other fields also.
    Thanks
    Naren

  • List box problem in table control

    Hi,
    I have 3 list box coloum in my table control.Based on the 1st list box selection i wanna fill the 2nd list box.
    I used function code 'CUS' and made the Fct type <BLANK> but my problem is fuction code triggers PAI but i am not getting the values what i slected in the 1st list box.
    Please help me.
    Regards,
    Karthik.

    Actually i resolved the problem the problem was with the function module...instead of VRM_SET_VALUES i tried F4_help...

  • Authorization check on standaerd sap search help

    Hi friends,
    Can we have authorization check on standaerd sap search help?
    For example, if I want a perticular user to see the data only for the company code he belongs to...
    Can we do it
    Regards,
    Ankit

    Hi
    In generally the search help don't check any authorization objects.
    If you need to do it you need to develop a your own function module exit where you can filter the data can be listed in the search help.
    Max

  • Standard Elementary Search help number of hits

    Dear All,
    I am having simple problem with the Standard Search Help "RSFISCPER".
    When i display with out restrictions it shows only around 219 hits , even with restrictions it shows the same number .
    How can i see all entries in the search help.
    If i give selection like FisVarient K4 and period from 001/2007 to 012/2007 then it shows correctly. but if i give only K4 then all entries will not show related to K4.
    I appreciate you help.
    Thanks
    Manju

    Dear Manjunatha,
    You can copy the complete hit list from the search help exit,
    Check out the link below:
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21ee52446011d189700000e8322d00/content.htm">Search Help Exit</a>
    Best Regards,
    Raj
    <b>Please reward points if helpful.</b>

  • Adding list box

    I have not done dailog programing much. Can some one tell me how to get values in the list box. I need to add some 10 values in my list box. Please help.

    Hi Arshad,
    1. For Dialog programming
    2.
    MODULE pai_1000.
    PROCESS ON VALUE-REQUEST.
    field mylistab module abc.
    Where
    field = fieldname on screen
    abc = module name (see code below)
    3.
    *&  Include           ZAMMOD03_F01                                     *
    *&      Module  abc  INPUT
          text
    MODULE abc INPUT.
      DATA : BEGIN OF itab OCCURS 0,
             bukrs LIKE t001-bukrs,
             butxt LIKE t001-butxt,
             END OF itab.
      SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE itab.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'BUKRS'
          value_org       = 'S'
          dynprofield     = 'MYLISTTAB'
          dynpprog        = sy-repid
          dynpnr          = sy-dynnr
        TABLES
          value_tab       = itab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
    ENDMODULE.                 " abc  INPUT
    regards,
    amit m.

Maybe you are looking for

  • RECEIVER FILE ADAPTER FCC ERROR

    Hi team My scenario is a text file has to be picked up by PI, has to processe it and the receiver is Proxy and it has to get updated and sent back to FTP location. i am using Sender File Adapter with FCC and Also receiver File Adapter with FCC. Both

  • Report without the first record using JasperReports

    Hi everyone, I�m using JasperReports127 but the first record is not being showed... I really don�t know why... Does someone had the same problem?! I follow this tutorial: http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/rep

  • Unable to connect N97 mini to PC via USB

    Hi I have not been able to connect my phone to my office today. I used it yesterday on the same PC. I tried connecting my colleague's E63 with the same cable and port and it works just fine. I don't even get the USB mode selection window when I conne

  • UPLOADING COST CENTER GROUPS

    Hi All., In my project, where my client have lots of cost center groups. To assign them to the standard hierarchy it is taking too much time through Manual Uploading/assignment So,  is there any other option for it. (Automatic Procedure) Please, guid

  • Password keeper deleted by mistake

    Hi, My 5 year old sone deleted password keep app and i had very imp passwords on it. Is there anyway i can retree info ? i hadnt backed up on desktop for a long while now. is there any other alternative? i am using blackberry 9550 V5.0.0.1015 platfor