Select-Option F4 Help Multiple Selection

Hi
I have wriiten the code to provide custom F4 help for a field using F4IF_INT_TABLE_VALUE_REQUEST' and then updating the values back to screen using Function Module DYNP_VALUES_UPDATE.
It is working fine when the F4 is used on the main screen, But when i click on the multiple selection button and press F4, i do get the F4 values list, but selected value is not getting passed back to the field.
I guess the issue is the field name changes in the multiple section option, Please suggest how can i fix it.
*&      Form  update_date_bATCH
      Updating the sel_screen with the retrieved values
FORM update_date_batch USING pt_filename pt_fieldvalue.
Rundate
  st_dyn_fields-fieldname  = pt_filename.
  st_dyn_fields-fieldvalue = pt_fieldvalue.
  APPEND st_dyn_fields TO it_dyn_fields.
Function Module to update the screen with the values retrieved
  CALL FUNCTION 'DYNP_VALUES_UPDATE'
    EXPORTING
      dyname               = sy-repid
      dynumb               = sy-dynnr
    TABLES
      dynpfields           = it_dyn_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 i006(zffi).
  ENDIF.
ENDFORM.                    " update_new_date_time

You have added the F4 to a select-option for areport and would like to get the F4 values back into the select-option, when the user selects multiple values?
If this is the case you have to fill the internal table behind the select-option and this will have to based on waht the user selected.
The first value will go on to the screen the way you have done it.
If this is what you want to do?
Rene

Similar Messages

  • Search help multiple selection of search results

    Hi,
    I have a search help (SE11) and it is correctly integrated in my WDP4A application using 'automatic' search help integration. Unfortunately multiple selection of search results does not seem to be supported (the ok button greys out when >1 result is selected). Is there a standard way to link a search help to an attribute in a 0..n value node, so that at runtime a new context element is created for each selected search result? Or do I have to recreate the search help from scratch to get this behaviour (OVS)?
    If the latter is true, then why is it even possible to select multiple search results?
    Kind regards,
    Jeroen

    Hallo Jeroen,
    OVS standard configuration does not allow you to select more than one configuration, You need to specify that explicitely on Phase-0 of OVS using the set_configuration method.
    see
    [Multiple Selection in F4 help|Multiple Selection in F4 help]
    [http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP|http://wiki.sdn.sap.com/wiki/display/WDABAP/InputhelpofObjectValueSelectioninWDABAP]
    [http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac?quicklink=index&overridelayout=true|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70cee684-ccbb-2c10-3c94-91e806e5f7ac?quicklink=index&overridelayout=true]

  • Can i have html code for date select options (SEARCH HELP)

    Hi frinds,
    I have a BSP Page with input as date.
    Can i have html code for date select options (SEARCH HELP)
    Moosa

    Hi
    Please find the sample code below.
    FROM DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X" <- Search help
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"
                            value     = "<%= w_FROMDATE %>" />
    TO DATE
          <htmlb:inputField id        = "dd"
                            width     = "45%"
                            type      = "DATE"
                            showHelp  = "X"
                            alignment = "CENTER"
                            maxlength = "10"
                            disabled  = "TRUE"                      
    value     = "<%= w_TODATE %>" />
    Thanks
    kalyan

  • Get Selections From ALV on Multiple Selection Mode

    Hi,
    How can i get values of selected rows from ALV that has selection '0..n' (multiple selection) ?
    Can somebody help me pls?
    Thanks.

    Hi Nurullah,
    Steps to make multiple rows selectable in ALV:
    1) Create the selection property of the node that you are binding to the DATA node as o..n
    2) Un-check the, "Initialization Lead Selection" checkbox for the node which you are using to bind to the DATA node
    3) In the WDDOINIT method specify the ALV's selection mode as MULTI_NO_LEAD. It is important that you set the selection mode to MULTI_NO_LEAD or else in the end you would be capturing 1 row lesser than the total number of rows the user has selected. This is because 1 of the rows would have the LeadSelection property & our logic wouldnt be reading the data for that row. Check the example code fragment as shown below:
    DATA lo_value TYPE REF TO cl_salv_wd_config_table.
      lo_value = lo_interfacecontroller->get_model( ).
      CALL METHOD lo_value->if_salv_wd_table_settings~set_selection_mode
        EXPORTING
          value = cl_wd_table=>e_selection_mode-MULTI_NO_LEAD.
    Steps to get the multiple rows selected by the user
    In order to get the multiple rows which were selected by the user you will just have to call the get_selected_elements method of if_wd_context_node. So as you can see its no different from how you would get the multiple rows selected by the user in a table ui element. First get the reference of the node which you have used to bind to the ALV & then call this method on it. Check the example code fragment below:
    METHOD get_selected_rows .
      DATA: temp TYPE string.
      DATA: lr_node TYPE REF TO if_wd_context_node,
                wa_temp  TYPE REF TO if_wd_context_element,
                ls_node1 TYPE wd_this->element_node_flighttab,
                lt_node1 TYPE wd_this->elements_node_flighttab.
      lr_node = wd_context->get_child_node( name = 'NODE_FLIGHTTAB' ).
    " This would now contain the references of all the selected rows
      lt_temp = lr_node->get_selected_elements( ).
        LOOP AT lt_temp INTO wa_temp.
    " Use the references to get the exact row data
          CALL METHOD wa_temp->get_static_attributes
            IMPORTING
              static_attributes = ls_node1.
          APPEND ls_node1 TO lt_node1.
          CLEAR ls_node1.
        ENDLOOP.
    ENDMETHOD.
    Hope this helps resolve your problem.
    Regards,
    Uday

  • Error On Selection Cardinality doesnot allow multiple selection

    Hi All,
    Every one... Am new to SAP am learning WebDynpro Java..
    Now am working on Multiple selection on a table But it is giving Error
    Like:
    Failed to Process reques. Please Contact Your System Administrator.
    Root Case is :
    com.sap.tc.webdynpro.progmodel.ContextException Node (....) Selection Cardinality doesnot allow multiple selection ....
    Please Help Me..

    Hi Ramesh,
    please check the property of the node which you are using.
    check the Cardinality  property, for multi select it must be 0.n or 1 . n.
    Hope thiw will help
    Regards
    Narendra

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • Subscreen with Select-Options called from At Selection Screen event

    Dear friends,
    I'm trying to call a subscreen that contains a select-options, from an 'at selection screen' event, in a report program, but without sucess.
    Here's go what I'm doing:
    I declared a selection-screen as subscreen in my main program, and I'm calling it from a module-pool subscreen area, to make the module-pool select-options magic.
    In my main report program, I have a customized status GUI with a new toolbar button and I'm handling it at the 'at selection screen' event.
    What I need to do is to call the subscreen that contains the select-options when this new customized button get pressed, but when It happens, the select-option selections pop-up doesn't appear.
    If I call the subscreen from the 'start-of-selection' event, it goes fine, just don't work from the 'at selection screen'.
    Any ideas on how can I do it?
    Thank you,
    Heber

    i think you should try something like this:
    at selection screen.
    if condition handled ....
      show_popup = 'X'.
    endif.
    at selection screen output.
    if show_popup EQ 'X.
    call subscreen
    endif.

  • How to validate a select-option field on the selection- screen

    Hi,
       I need to validate a selection-option field in the selection-screen.
    Requirement is : i need to read each of customer number one by one and validateCan you please me in achieving this.
    Best Regards
    Mamatha.B

    hi,
    chk this sample code.
    SELECT-OPTIONS : s_kunnr for kna1-kunnr.
    AT SELECTION-SCREEN.
         if 'S_KUNNR-HIGH' = "condition
        "put your required validation here
         endif.
    rgds
    Anver
    Message was edited by:
            Anversha s

  • Multiple records in select options-Urgent help

    Hi all,
       Iam using the following function module to get the set values. I need to pass multiple values in select options(ie) select options with no intervals. to the function module parameter Shortname. I have declared the variable which has to be passed as
         S_SETID   FOR  SETHEADER-SETNAME NO INTERVALS.
      The problem is when i use S_SETID-LOW the value is passed to the function module , but if multiple data is entered in the input then how to pass all the data to the function module. Please Help.

    Hi,
    Declare the Range in the Function module , then you can pass that Select-option fields to that ranges and use that in the Function module.
    Or you can use the RANGE_C8 for the Select-optios in the Function module, you can declare the Internal table with the type of RANGE_C8 in the tables parameter, then pass the Select-option to this Internal table
    If you want more length field then search based on RANGE_* then you will get all the Range Structure.
    Regards
    Sudheer

  • [Help] Multiple Selection at Select Options.

    People, I've coded following Select Options:
    DATA: g_created TYPE zapomatxref-erdat,
                g_modif   TYPE zapomatxref-aedat,
                g_matnr   TYPE zapomatxref-pr1_material.
    SELECT-OPTIONS: s_creat FOR g_created,
                                   s_modif FOR g_modif,
                                   s_matnr FOR g_matnr OBLIGATORY.
    Thing is, when I execute the program and hit the Multiple Selection, an error pops up saying "Fill in all required fields".
    I know it goes through PBO validating that OBLIGATORY so I can't enter the multiple selection screen.. But is there a way to enter the multiple selection screen without changing the OBLIGATORY adition ?
    Thanks in advance.
    PS: This is an executable program, not module pool. Also I want to enter Mutliple Selection screen without filling s_matnr.

    Guys, solved the problem. You have to remove the OBLIGATORY addition and set the following code.
    ("Percentage symbol" below is the traditional percentage centessimal symbol we know, the mozilla wont let me insert it...)
    TOP Include:
    CONSTANTS: c_per002     TYPE c    VALUE '(percentage symbol)002'.
    MAIN PROGRAM:
    AT SELECTION-SCREEN ON s_matnr.
      IF sy-ucomm NE c_per002.
        IF s_matnr[] IS INITIAL.
          MESSAGE e025(ycapo).
        ENDIF.
      ENDIF.
    START-OF-SELECTION.
    PS: c_per002 comes to be the sy-ucomm value when hitting Multiple Selection Button at Selection Screen.. As any action validates the whole screen, you just set a clause when you don't want to validate if sy-ucomm not equals (different from) c_per002.

  • Custom F4 help multiple selection

    Hi folks,
    I have created a custom F4 help for select-options. it is working fine for low and high value selections. the moment i click onthe arrow multiple selections and enter multiple values and click on copy button it is giving short dump. how to handle this scenario.i tried to google but couldnt get for multiple selections. any thoughts on this?

    Hi,
    Please paste your code, for review.
    regards,

  • Select-Option F4 Help in POV event Module pool?

    Hai Experts,
                           I have select options in one of my module pool screen for that i want F4 Help for that select option in
    POV event . i already the write the F4 help for input field . in same way im createing the F4 help for select option it gives the
    error like ' S_kunnr is not maintain in Screen' please help on this.
    Thanks,
    Adv.

    in same way im createing the F4 help for select option it gives the
    > error like ' S_kunnr is not maintain in Screen' please help on this.
    Hi.,
    I think You used Function Module for Manual Input Help., From Your It is clear that You used S_kunnr in Return Field,
    You have to use S_kunnr-LOW  for Input in Low field and S_kunnr-HIGH for Input in High Field
    hope this helps u.,
    Thanks & Regards,
    Kiran

  • Select-Options search help with where

    Hi Experts,
    I need to have a search help in my selection screen with a Where clause.
    I've tried to search it but I cant find answers.
    The logic is like this, wherein the search help for my selection screen should just have the value PM001 and ZMIS.
    SELECT-OPTIONS stsma estat tj30 FOR  s_eqpstt FOR tj30t-estat WHERE stsma = 'PM001' and stsma = ZMIS.
    Thanks

    Sorry, a little more detail... create a view, of search help type, with the columns you present and restrict those two values. Then create the search help with that view. Then add the search help to the select-option.
    Regards,
    Edgar

  • WDA select-options value help configuration

    Hello,
    I would like to configure the value help in the select-options component in WebDynpro ABAP. I used the parameter I_VALUE_HELP_TYPE of the method ADD_SELECTION_FIELD, but I didn't know how to pass a correct value for this parameter. Could someone give me an example with coding? That would be great! Thanks in advance.
    Regards,
    Georg

    For those of you who, like me, get a screen full of OTR keys on the buttons and tabs, the answer is on the first tab, 6th button.  Note that it is based on SPFLI, so the expected linkage between CARRID and CONNID does not happen.
    The code is in MAIN_VIEW method ONACTIONON_CRS_FLD_F4_CASES.
    The essence of it is:
        wd_this->m_handler->add_selection_field(
            i_id                         = CARRID
            it_result                    = lt_range_table
            i_value_help_structure       = 'SFLIGHT'
            i_value_help_structure_field = "CARRID  ).
        wd_this->m_handler->add_selection_field(
            i_id                         = CONNID
            it_result                    = lt_range_table
            i_value_help_structure       = 'SFLIGHT'
            i_value_help_structure_field = "CONNID  ).
    The result is that you select the CARRID, and that restricts the CONNIDs.
    I have used SFLIGHT because it will give linked search helps for CARRID and CONNID.  It works with parameters too, but remember GET_PARAMETER_FIELD is not currently implemented (it exists, but contains no code, so your program will seem to work, but it won't) , so use GET_PARAMETER_FIELDS which does work.

  • WDA Search Help Multiple Selection

    Hello everyone,
    I've managed to integrate a standard search help into my WD ABAP application.
    The thing is that from the search help pop-up I can select multiple rows but when I select more than 1 row in the help value list the OK button is greyed out.
    I would like to select more than 1 entry and transfer it back to the associated input field, like a list of values separated by a comma.
    How can I implement this?
    Thanks!

    To be honest I didn't mean that.
    I've integrated a standard search help in my WDA, just defining a context attribute bound to a dictionary field having a search help. Now I'd like to have a multiple selection enabled for it.
    What I am getting is a General Value List from which I cannot transfer multiple values back to the caller.
    Is there a way to do it?

Maybe you are looking for