Search help multiple values selection problem

Hello Friends,
I am using FM f4_if_int_table_value_request FM to display multiple values on selection screen
in AT-selection-screen on value request event.
Multiple values are getting displayed perfectly .
Then after that I am using DYNP_VALUES_UPDATE FM to return the values back to screen.
But the problem is in the select-option field . It only picks the last value selected.
I have a row:
I EQ 'last value selected from F4 help screen''.
Is there a way to update multiple rows in the select option selection screen field.
Thanks.

Hi Suhas,
you may try the following:
TABLES spfli.
SELECT-OPTIONS: s_carrid FOR spfli-carrid.
SELECTION-SCREEN: PUSHBUTTON /1(20) but1 USER-COMMAND carr.
INITIALIZATION.
  but1 = 'Choose CARRID(s)'.
AT SELECTION-SCREEN.
  CASE sy-ucomm.
    WHEN 'CARR'.
      TYPES: t_return_tab  TYPE ddshretval.
      TYPES: BEGIN OF ty_line,
        carrid   TYPE spfli-carrid,
        carrname TYPE scarr-carrname,
      END OF ty_line.
      DATA: it_list TYPE STANDARD TABLE OF ty_line,
            wa_return_tab TYPE t_return_tab,
            i_return_tab TYPE STANDARD TABLE OF t_return_tab,
            v_repid TYPE sy-repid,
            v_dynnr TYPE sy-dynnr.
      v_repid = sy-repid.
      v_dynnr = sy-dynnr.
      SELECT carrid carrname
      FROM scarr
      INTO TABLE it_list.
      IF sy-subrc = 0.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
            retfield        = 'CARRID'
            dynpprog        = v_repid
            dynpnr          = v_dynnr
*        dynprofield     = 'S_CARRID-LOW'
            value_org       = 'S'
            multiple_choice = 'X'
          TABLES
            value_tab       = it_list
            return_tab      = i_return_tab
          EXCEPTIONS
            parameter_error = 1
            no_values_found = 2
            OTHERS          = 3.
        IF sy-subrc = 0.
          s_carrid-sign = 'I'.
          s_carrid-option = 'EQ'.
          LOOP AT i_return_tab INTO wa_return_tab.
            s_carrid-low = wa_return_tab-fieldval.
            APPEND s_carrid.
          ENDLOOP.
          READ TABLE s_carrid INDEX 1.
        ENDIF.
      ENDIF.
  ENDCASE.
What I have done is:
- not linking the result of the F4 search to field S_CARRID-LOW
- inserting this F4 search into event AT SELECTION SCREEN. This allows to see the select-options filled when its contents are actually populated.
I hope this helps. Kind regards,
Alvaro

Similar Messages

  • Multiple value selection lists - Problem filtering

    I'm builing a news application with publisher, and one of the fields is a multiple value selection list. We're filtering news stories to different pages based on the values. Problem is, I can't get the right content items to display. I did it no problem with a single selection box. The code I'm using is:
    <pcs:foreach expr="folderByPath(folder, '../../Articles')" var="articles">
         <pcs:foreach expr="articles" var="art">
              <pcs:if expr="art.testkeyword == 'choice2'">
                   </pcs:value>"><pcs:value expr="art.headline"></pcs:value></a><br />
              </pcs:if>
         </pcs:foreach>
    </pcs:foreach>
    So if 'choice2' is in a single select list, no problem. If it's part of a multiple select, I get nothing. I'm thinking I'm missing something really easy, like logic operators. But I couldn't find anything of help in the documentation

    Hi,
    Make use of contains function.
    Syntax : contains(string1,string2) this returns true if string 1 has string 2
    Usage
    <pcs:if expr="contains(test,'A')">
    </pcs:if>
    ** 'test' is the name of the multi select box
    Edited by bharatkarthik at 06/22/2007 4:10 PM

  • Generic problem for search help without values

    Hi,
    Always I open a search help without values I get the warning popup "No values found" but after this no link let me come back to the previous screen.
    Does anybody know how I can solve this (in a standard way)
    thanks
    regards

    Hi
    It seems to be a bug in the system.
    <b>Please have a look at the following SAP OSS Notes -></b>
    <u>Note 574604 - Various correction reports for EBP business partner
    Note 1028643 - Input help for contact persons in purchase order
    Note 843008 - EBP4.0 and higher: Terms of Payment, Texts and codes
    526416 Structural enhancements LFA1
    698246 EBP 4.0 address maintenance: Default address for address use
    701321 EBP 3.5 address maintenance: Default address for address use
    701323 EBP 3.0 address maintenance: Default address for address use
    701384 BBP 2.0C address maintenance:Default address for address use
    690619 Plants are not transferred during location replication
    641960 New processing of terms of payment in EBP 3.5
    628386 Incorrect link for EBP for 'External business partners'
    Note 544392 Error in search helps EBP 2.0
    Note 544816 Error in search helps EBP 3.5
    Note 544713 Error in search helps EBP 3.0</u>
    Please raise a customer OSS message with SAP as well.
    Regards
    - Atul

  • Creation of search help manually fro select-options

    hi friends i got a requirement for creating the search helps manually for select-options.
    but i am facing a progbalem.
    i am attaching a sample code for what i have written for select-opions low of which when i am pressing f4 button i am getting list of data but when i am selecting that particular it is not withstading on the screen...kindly help in this regard very urguent..plz...all answers are rewarded..
    tableS: kna1.
    datA: BEGIN OF ITAB OCCURS 1,
        KUNNR TYPE KNA1-KUNNR,
        END OF ITAB.
    data: kunnr type kunnr.
    select-options: cust for kunnr .
    at selection-screen on value-request for cust-low.
    select kunnr from kna1 into table itab .
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
    *   DDIC_STRUCTURE      = ''
        RETFIELD               = 'CUST-LOW'
    *   PVALKEY                = ' '
    *   DYNPPROG               = ' '
    *   DYNPNR                 = ' '
    *   DYNPROFIELD            = ''
    *   STEPL                  = 0
    *   WINDOW_TITLE           =
       VALUE                  = 'CUST-LOW'
       VALUE_ORG              = 'S'
    *   MULTIPLE_CHOICE        = ' '
    *   DISPLAY                = 'X'
       CALLBACK_PROGRAM       = SY-CPROG
    *   CALLBACK_FORM          = ' '
    *   MARK_TAB               =
    * IMPORTING
    *   USER_RESET             =
      TABLES
        VALUE_TAB              = ITAB
    *   FIELD_TAB              =
    *   RETURN_TAB             =
    *   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.

    Hai  Saslove,
    I think Problem Lies In this Area When U r Creating   Search Helps.
    Import and Export Parameters
    When an input help is called, the entries that the user already made in the input template are taken into consideration. For example, if a user calls the input help for the flight number and already specified the carrier, of course only the numbers of flights of this carrier should be offered.
    On the other hand, if the user selects one row of the hit list, more than one field of the input template might have to be filled with data from the selected row of the hit list. For example, if the flight number is obtained from the hit list, the city of departure and the destination should also be returned in the screen template.
    The interface of a search help defines the context data that can be used in the input help and the data that can be returned in the input template.
    A parameter of a search help can be classified as:
    Import parameters: Parameters with which context information from the processed input template (screen) may be copied to the help process.
    Export parameters: Parameters with which values from the hit list may be returned to the input template.
    A parameter can simultaneously be an input and an export parameter. A search help can also contain parameters that are neither import nor export parameters. Such parameters could be required for the internal input help process, for example.
    When you attach a search help, you must define where the import parameters of the search help get their values from and the fields in which the contents of the export parameters are returned. See also Value Transport for Input Helps.
    Regards.
    Eshwar.

  • Crystal Token (Multiple Values Selection)

    Hello Experts,
    I am using a view for a custom report and have a problem with token i have defined. I would like to Token to display multiple value selection list so user can check the style he need.
    Ex: When i use select * from OITW the token displays item code selection list but when i am using view crystal does not display selection list. Does the tokens respect Views? Please advise.

    Hi Praneeth
    Try this
    code@select T1.V1_code, T1.V1_name FROM OADM T0 CROSS JOIN View1 T1
    It seems that putting a B1 table in there makes it work.  The same applies to selection from UDT's
    Hope this helps
    Rob

  • Search help for PERNR select options in Webdynpro

    Hi,
    I am using the method: lv_r_helper_class->add_selection_field
    and passing the value:
    i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    to get search help for pernr select option in the webdynpro application.
    But can anyone please tell me what value i have to pass to
    i_value_help_id              =  ??

    hi,
    pass your search help name there so that your desired search help ll come there..
    use this,
    i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_SEARCHHELP
    i_value_help_id              =  'SEARCHHELPNAME'
    if you want standard SH means comment this stmt,
    if you dont want SH means,
    use tis,
    i_value_help_type            = if_wd_value_help_handler=>CO_PREFIX_NONE
    hope this helps,
    Mathan R.

  • How to link a search help to a selection screen field

    Hi All,
    I am using field PKWRG from PA0017 table in selection screen. I need F4 help there as in Tcode PA30 . But this field does not have value table or check table. However, it has a search help attached 'TRV_PKWRG' .
    But, I donot know how to assign a search help to a selection screen field. Please help.
    Regards,
    Nibha

    Hello,
    Fetch all the data which from the table which you want to show in the search help and pass the value to the FM
    F4IF_INT_TABLE_VALUE_REQUEST and the selection-screen event must be
    at selection-screen on value request parameter or selection option variable.
    BCALV_TEST_FULLSCREEN
    BCALV_TEST_FULLSCREEN_CALLS
    BCALV_TEST_FULLSCREEN_PRINT
    BCALV_TEST_FULLSCREEN_STATUS
    BCALV_TEST_GRID
    BCALV_TEST_GRID_DRAG_DROP
    BCALV_TEST_GRID_EDITABLE
    BCALV_TEST_GRID_EVENTS
    BCALV_TEST_GRID_INDEX
    BCALV_TEST_GRID_TOOLBAR
    BCALV_TEST_HIERSEQ_LIST
    BCALV_TEST_LIST
    BCALV_TEST_LIST_PRINT
    BCALV_TEST_LIST_STATUS
    BCALV_VERIFY_DTYPES_D0100_F01
    BCSMENUF01
    BDLCOF10
    BDLDVI10
    BDLTREDF

  • Multiple values selection implementation in VC

    Hi
    I am working with VC. We are trying to implement an multiple input selection.
    Our first option was to use the Help value wizard but i saw in this forums that is just possible with BI systems (we are using BAPI thus R/3 system).
    Now, we are trying to change de BAPI and put the input in tables. This goes well in R/3.
    Howeaver when we implement in VC this BAPI and fill the input table in the screen and send a submit message those table values are not sent.
    Any idea what is going on ? Is there a way to implement our requirement the multiple value selection using BAPI ?
    Best regards
    Carlos

    Carlos,
    As Marcel said it can be a lot of things. It is hard say. But I can tell from my experience that when you charge a BAPI in your source system you don’t grab this change in VC. You should try to save your BAPI under other name and re-import it to VC.
    Do you how to debug using SE73? This should help you also to follow your BAPI behaviour and also see if VC is really executing your BAPI.
    Regards,
    Gilson

  • Restrict dictionnary Search help displayed values.

    Hi,
    my problem is that I have to display a search help. The search help already exists in the dictionnary and is defined using a Dictionnary Table.
    I need to display the same serach help but I have to filter the results using a range of values for one of the fields and I would like to know how to proceed.
    I know that user-exit exists in some search help, it's not the case here.
    The kind of solutions I'm looking for is :
    -  directly restrict the existing search hellp values
    -  found a way to display a search help from abap using an internal table ( cause it's easy in this case to do fill a internal table doing the sql request myself)
    - if the solutions above can't apply, doing my own search help in the dictionnary but in this case, I don't know to make this search help for values restriction.
    I specify that the screen use the screen painter, it may be important ?
    Thanks for your help
    best Regards,
    Morgan

    Hi,
    Search Hels exits is only for exceptions, so in our case, we won't use the search help exits, it is better create/change the Custome one and attach the same to the fiels, there you can give the Default value for the fileds, so there you can restrict the values
    or else, we have an option like, APPEND SEARCH HELPS, so by using this, we can restrict some field values, this Append Search helps, can be append to Standard Search helps also, so do Append the Standard Search help and add your field and give the Default values to restrict the user
    hope you get the answer
    Regards
    Sudheer

  • Form disappears when clicking search help multiple times

    Hi All,
    I have created an interactive adobe form with Web dynpro application.
    We have multiple multiple search helps (custom and standard) on the form.
    when the user clicks on any search helps multiple times (4-5 times), the whole form disappears.
    Please provide some solution / hints.
    Best regards,
    Meep.

    We are not facing this problem on Adobe 9.4. The newest v10.1 has this problem.
    Also, this issue is only on 1 server and on other, it works fine.
    We are using Native control with ZCI layout.

  • Multiple values selection in Selector Component of Xcelsius

    I wanted to select Mutiple values in Selector Component?I dont want List Builder..I wanted to Select multiple values in Combo box or List box..
    Is there any way?
    Thanks in Advance..
    Mini

    Hi Mini,
    First of all check your version of Xcelsius ( open Xcelsius -> got to Help tab ->About Xcelsius check the version) if it is 5.3.3.0 then its ok...otherwise open the below link to download the HotFix-
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    the functionality is offered in latest Fix Pack only. After you install the fix, you will get an additional functionality of multiple series selection in Combo Box as well as in List Box.
    Add as many series as you want for  multiple value selection.
    Good Luck.

  • How to search for multiple values with Bex Prompts

    Hi,
    I would like to know  if it is possible to search for multiple values at the same time with Bex Prompts instead of searching one value at a time (please see the screen shot below). I searched the forum couldn't find any relevant answers. please let me know  how  to achieve?
    Thanks,
    Charvi.

    Hi Charvi,
    You can use wild card search to ensure you get multiple similar values listed as search output.use * for multiple characters and ? for single character.
    For Example, Ravi * would result you all employees with first name as Ravi
    You can use various search formats such as * Ravi * and * Ravi and Ra?? etc.
    Thanks
    Mallik

  • Search help for a  select options

    Hi ,
    I need to place a search help for a select-options field on my report selection screen. It should work for a z-table field . I can create a search help for the Z-table field , but I do not know how to make it available for the select-options.
    Thank you .

    hi Krish,
    SELECT OPTIONS ... MATCHCODE OBJECT name_of_search_help.
    hope this helps
    ec

  • BSP: multiple values selection in select-option

    Hi,
    Our customer requires multiple values selection in BSP pages as he is used to in standard SAP GUI.
    I found it's impossible in standard.
    Could it be possible to used javascript for this ... each select-option would have its own script that would pass table with selected values as parameter to HTTP request?
    thanks
    Juraj

    Of course this is possible, you have HTML in the frontend, so you can do as much as HTML allows you. If you know DHTML you can play with it and create almost every layout you want, but then you have to keep in mind that you will have to take care about everything behind, starting from conversions (input/output), formatting, validation and so on.

  • Enhancing standard (single select)search help for Multiple value selection

    Hi,
    Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
    Is there a way to do it.
    I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
    It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
    Appreciate your help,
    Thanks,
    Sri
    Edited by: Sri on Sep 9, 2010 8:50 PM
    Edited by: Sri on Sep 9, 2010 8:52 PM

    As far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
    Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
    I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me.

Maybe you are looking for