"Select Options" in WD view

Hi to all,
I have a WD View with some fields that I use as parameters in a BAPI and it works fine. Now I prefer to use thouse fields like "ABAP select options" and so "more than", "less than", "not equal to" and so on. How is it possible in a WD application?
Thank you very much,
Antonio

Hi Antonio,
please have a look at this Select Options. The example given is from flight list tutorial but should work in similar kind for your scenario.
Hope that helps.
Regards
Stefan

Similar Messages

  • How to read data from select Options in another view without using context

    I have 2 views, one for selection screen and another for displaying result.
    In selection screen view I have define a select options with the help of webdynpro component.
    Now my object is display result in result view based on entry of selection screen.
    I don't want to do binding in context node, without that how I can read data of select option
    in result view?
    Regards,
    Rasmi Ranjan Mishra

    Solve by own.
    If I define the Select options in component controller, then it will be global in nature. so i can get the value of select options
    in another view also.
    Regards,
    Rasmi Ranjan Mishra

  • Select Options in multiple views

    I am running into a problem.  I have an application with 2 views.  I use select-options in both views, but with different fields.  When I move from view 1 to view 2, it works correctly, displaying the select-options for view 2.  When I return to view 1 however, the container still shows the select-options for view 2.  Any help would be greatly appreciated.

    Alex, please explain what you mean by 'clear the nodes'.  All the setup for the select-options is currently done in the WDDOINIT in both views.
    Sarath, could you please explain what you mean by 'changing the lifetime'.  I've never heard this term.  Where would this be done.
    I copied the select-options code I had in my WDDOINIT into my HANDLEIN screen, and it dumps on the first 'ADD_SELECTION_FIELD' method call.  If I add a
       l_ref_comp_usage_so->delete_component( ).
    before my
        l_ref_comp_usage_so->create_component( ).
    the selection screen comes up blank.

  • Attributes select-options in form view.

    How to make UI form view context attributes multiple selection ?
    Ex: Employee Id attributes. I need provide this employee id like select-options in form view.
    Thanks,
    kaaviya

    Hi,
    this is an interesting requirement.
    please correct me if my understanding is wrong, do you mean that you want to enable a function like:
    employee ID = 3271 or 3270
    if we take this field in employee IC employee identification for example, you'd like to enable customer to enter more than one ID to start the search without using wildcard (as sometimes wildcard does not help)
    if this is your requirement, maybe try to check the following?
    here is an example for account ID search
    I enter Account ID = 3271;3270 and start search
    in
    CL_ICCMP_BP_BUPASEARCHB2B_IMPL
    FIRE_QUERY
    it will
    er_bo_col  ?= iv_query_service->get_query_result( ).
    how about use a loop to make two query?
    In the above example,
    IV_QUERY_SERVICE->PARAM_STRUCT_REF->PARTNER = 3271;3270
    maybe try to split the string with ; and start the query until the end of this string.
    and then combine the two collection?
    Hongyan

  • Get Selection options from one view to another view

    Hi Experts,
    I am using two views, first view  it shows basic list of records based on selection options criteria , here I used component WDR_SELECT_OPTIONS . Then if we click on any record in first view then it opens popup window with record relevant information. Here I want to get selection option values while editing record values.
    Initially I used context node for one value, for that just I created node and attribute then bind to table then I used with method get_static_attributes_table(  ) in second view.
    But I need all values to be used in second view.
    Please could you suggest, is there another way to get values into second view?
    Regards,
    BBC

    Hello BBC,
    you can access the SELECT_OPTION component usage in second view and then you retrieve the selection fields and its corresponding range table. In this case the component usage instance will be shared across the application unless you explictly delete the component usage.
    BR, Saravanan

  • Single select option in table view as radio button without design

    Hi,
    When I use the Content design = "Design2002" or design = "Design2003" then I get a checkbox in table view by giving the single select option. But when I do not use any design for the Content then I get a radio button in the table view.
    How do I get a radio button in the table view with Content Design = "Design2002" or design = "Design2003"?
    Message was edited by: Brian McKellar
    Assume you are asking about design=2002 versus 2003? Updated question.

    Hallo Sachin,
    Later this afternoon I will check your question with a colleague for an answer. We are all offsite today.
    Until then, it would be good if you review your questions Tableview radio button event..
    ++bcm

  • Seprating select options in two view containers.

    Hi Gurus,
    I have 4 fields which are select option based.
    I want 2 fields in one view_container_ui element.
    Other 2 fields in other view_container_ui element.
    Presenlty  when i am creating 4 select option fields by coding it is appearing in one view_container_uielement.
    Does neone have any idea about this..?
    Best Regards,
    Navin Fernandes.

    Hi lekha,
    My lead selection issue is solved... I changed the cardinality and selection.
    Also the singleton property had to be unchecked as i came to know from SAP document.
    Checkbox issue is also solved since the default value was not set to the right variable.
    Thanks very much..
    Hi Anurag..
    Thanks for the help.
    Best Regards,
    navin fernandes.

  • Select option "Show this View : in Folder of Content type : {Custom Content Type Name}" while creating view using CSOM

    Hi,
    I am trying to create "View" in a Document Library and need to enable following:
    1. Mark as default View
    2. Folders -> Show this view : in Folders of Content Type : {Custom Content Type name}
    I am using following code which sets "in Folders of Content Type : " to "Folder" rather than selecting custom content type despite passing Content Type ID of custom content type.
    code:
    var itemContentTypes = clientContext.LoadQuery(web.AvailableContentTypes.Where(ct => ct.Name == viewContentType));
    clientContext.ExecuteQuery();
    var itemContentType = itemContentTypes.FirstOrDefault();
    view.ContentTypeId = itemContentType.Id;
    view.DefaultViewForContentType = true;
    view.Update();
    clientContext.ExecuteQuery();
    Please highlight what seems to be missing?
    Thanks
    Sonal

    Hi,
    Before you set the content type ID for the view, you need to add the custom content type to the library firstly.
    You can add the content type to library using OOTB feature “Add from existing site content types” in library settings or using Client Object Model.
    Here is a code snippet for your reference:
    var list = context.Web.Lists.GetByTitle(listTitle);
    list.ContentTypesEnabled = true;
    var contentType = context.Site.RootWeb.ContentTypes.GetById("0x0120");
    list.ContentTypes.AddExistingContentType(contentType);
    context.ExecuteQuery();
    More information about add exist content type using Client Object Model:<o:p></o:p>
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.contenttypecollection.addexistingcontenttype%28v=office.15%29.aspx
    Best regards,
    ZhengyuGuo
    Zhengyu Guo
    TechNet Community Support

  • Table View MULTI SELECT option and Event handling problems

    Hello All,
    I am facing problem while giving miltselect option in a table view. When i mention multiselect attribute in Select option in table view, i am unable to select all the rows which i want to select,because i have an event onRowSelection event activated so when i select a row then it will automatically go to the event and i am unable to do multiple select.
    Can you guys pl tell me is there any way thtat i can put check boxes in a table column and by that i can get values of row seelct and can perform my subsequent SQL operation.
    Also i am not able to navigate in table view through BYPAGE or BYLINE option. When I click on navigate button then page got refreshed and i lost data.
    One more query guys , can you pl tell me how can i store my internal table values from one event for the another event. I have used EXport/Import but internal table values get refreshed as page got refreshed on event switching/selection.
    Please respond.

    hye rahul.
      as i told you my second solution, will help you . the values remain in the corresponding UI elements.
    For example , you have a drop down and table view. both will trigger events. bind the data of the table at drop down event and bind the dat of the drop down at table event.
    event = cl_htmlb_manager=>get_event( runtime->server->request ).
    CASE event->id.
    when 'dd1'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    when 'tbv_id'.                   drop down event is fired.
    bind data for drop down
    dd ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'dropdown'
                                          id      = dd_id'           " name of the drop down id
    along with drop down bind data for table view
        tbv ?= cl_htmlb_manager=>get_data(
                                          request = runtime->server->request
                                          name    = 'tableView'
                                          id      = 'tbv_id'           " name of the table view
    This is how data should be binded in case of Stateless application. All the UI elemets must b binded again.. as the global data is refresed again.
    Hope this helps.
    Regards,
    Imran.

  • How to select option to the particular view container

    Hi All,
    I am working on ALV , i have view container for search parameters, here i want to add select option in to the same view container.. anyone help me to achive the same.
    Thanks
    Ram

    As Tamil said above, you have to put the select options in the view that you are embedding in the view container. For help on how to use select options in webdynpro, you can have a look at the tutorial in the following link...
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e

  • Select Option's Context Element for the REPORT_ATTRIBUTE_ERROR_MESSAGE

    Hi,
    We're on 7.0 ehp1.
    I found a thread on same subject u201Cwdr:select_options and highlight Error Message with a Link to Inputfield u201C, Jul-23-2008, in which Thomas Jung gave an explanation of how to get the context element of the Select Options on a view.
    I tried to follow it, but Iu2019m still not getting it.  Please show how to get the context element of a Select Option for the u201CREPORT_ATTRIBUTE_ERROR_MESSAGEu201D .
       wd_comp_controller->go_message_manager->report_attribute_error_message(
             exporting
              message_text   = ls_messaga_text
                  element        = ?????
               attribute_name = ls_option_id
    Thomas' explanation:
    I gave you the code that gets you to the interface controller. From there you call the GET_API to get the component controller. After you have the component controller it is normal context coding to read the context of the Select-Options context. Run the debugger and use the Web Dynpro view to see what your context looks like at runtime. When I test this with one of my applications, the names of the context nodes that were dynamically generated was really straight forward - as it uses the names of the select-option itself. Nothing special once you reach this point - just normal context coding...."
    Kind regards,
    Huntr

    Hi ,
    Use the below approach to achieve this,
    data:
        lr_context_node       type ref to if_wd_context_node,
        lr_element            type ref to if_wd_context_element,
        message_text          type string.
      get the node and leadSelection of that field
        lr_context_node = get_node_of_sel_field( <field>-m_id ).
        lr_element = lr_context_node->get_lead_selection( ).
    case <field>-m_type.
    For Select option field
                when if_wd_select_options=>mc_sscreen_item_type_field.
                  m_message_manager->report_attribute_error_message(
                    element        = lr_element
                    attribute_name = 'LOW'
                    message_text   = message_text ).
    "For Parameter field
                when if_wd_select_options=>mc_sscreen_item_type_parameter.
                  m_message_manager->report_attribute_error_message(
                    element        = lr_element
                    attribute_name = 'VALUE'
                    message_text   = message_text ).
                when others.
              endcase.

  • Select-options ALV problem

    Hello @all,
    I want to make reporting in webdynpro ABAP. I have one Webdynpro component for this. For this I have see many tutorials. But in all the select-options and alv are on one view. i want to make it on two views. Has anybody an tutorial for this or an idea how i can do this easily.
    On one view i have my select options implemented with one container. Now I want to make the ALV table, but i want display the alv on a other site, not under the select options.
    Anybody an idea how i can do this.
    Thanks and regards
    Chrisp

    Hi,
    You can proceed as follows:
    1.Create select options in one view and ALV table in other view.
    2.since its reporting you might be having some button like SEARCH  ,once the user
       enters the  data in the selection screen he clicks on  the SEARCH  button .
    3.In the action handler of the SEARCH button ,get the data from based on the selection criteria 
        and  store that value   in component controller attribute.(create an attribute in comp controller level)
    4.Create an outbound plug for  selection screen view and inbound plug for the ALV table View .
    once you get the data ,based on selection criteria, fire the outbound plug in action handler of the button.
    5.now in the second view bind the ALV table with  data which was stored in the component controller level.
    Priya

  • Select-options are not destroyed while calling view of used component popup

    Hi Friends ,
    I'm facing a unique problem. I'm calling a view of a component within another component. the view that I'm calling has some select-options. When I close the popup window ( using close 'X' of popup ) and then try to reopen the popup system give me a dump. I debugged and found that select-options are not destroyed by system and once it tries to create the select-options again it dumps because they are already there.  
    This is the source code extract of that dump for your reference .
    1 method if_wd_select_options~add_selection_field.
    2
    3   data:
    4     lr_table_descr       type ref to cl_abap_tabledescr,
    5     lr_struct_descr      type ref to cl_abap_structdescr,
    6     lr_value_field_descr type ref to cl_abap_elemdescr,
    7     added_field          like line of mt_added_fields,
    8     dfies                type dfies,
    9     description          type string,
    10     complex_restrictions type if_wd_select_options=>t_complex_restrictions.
    11
    12   field-symbols:
    13     <it_result> type index table.
    14
    15 * check of someone wants to add a field that already exists
    16   read table mt_fields
    17        with key m_id = i_id
    18        transporting no fields.
    19   if sy-subrc = 0.
    20 *   might be deleted - recreating a field with different setting is of course allowed
    21     read table mt_all_removed_fields
    22          with key table_line = i_id
    23          transporting no fields.
    24     if sy-subrc <> 0.
    >>>       message x000(00).
    26     endif.
    27
    28 *   remove the existing field in order to avoid duplicates
    29     delete table mt_fields with table key m_id = i_id.
    30   endif.
    I've already tried using REMOVE_ALL_SEL_SCREEN_ITEMS( ) method of interface IF_WD_SELECT_OPTIONS before creating new elements ( select-options ). If any one can help me in this It would really help and I'll appreciate it.
    Thanks in advance,
    Laeeq

    I've sloved the problem

  • Select-options in WEB UI View on SAP CRM7

    Hello,
    I wanted to know how to make a u2018select-optionu2019  on a view in Web UI on CRM7.
    Is there a standard BSP application that I can use in component usage for this?
    I need to have show only one value but for one field I may have several values filled like a multivalues in select-options as in Transaction SE16.
    I can't use an advanced search page because for some criteria I can have more 100 different values.
    Tank you for your response.

    Thank you Kiran for your response, but you misunderstand my question.
    In my process I can't use a ADVANCED SEARCH PAGE for these reason :
    - the display of fields depends on a value selected from a dropdown list on a first view
    - Some fields can contain multiple values ​​(value list) not a range value like Between, but i can't show all theses values in a view like in an ADVANCED SEARCH PAGE
    I need to know if exist a standard BSP application that can used in USAGE COMPONENT for my specific BSP application like a Popup to put several values and associate this value list to a field of my specific view.
    Regards.
    David Méloux

  • Unable to see select options in view

    HI ,
    I have the following code in the WdDOINIT method of my view for viewing a field as a select option...
    DATA: l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
    l_ref_cmp_usage =   wd_this->wd_cpuse_select_options( ).
    IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.
      l_ref_cmp_usage->create_component( ).
    ENDIF.
    DATA: l_ref_interfacecontroller1 TYPE REF TO iwci_wdr_select_options .
    l_ref_interfacecontroller1 =   wd_this->wd_cpifc_select_options( ).
      DATA:
        l_r_helper_class TYPE REF TO if_wd_select_options.
      l_r_helper_class = l_ref_interfacecontroller1->init_selection_screen(
    data lt_range_table type ref to data.
    CALL METHOD l_r_helper_class->create_range_table
      EXPORTING
        i_typename     = 'BUKRS'
       i_length       =
       i_decimals     =
      receiving
        rt_range_table = lt_range_table
    CALL METHOD l_r_helper_class->add_selection_field
      EXPORTING
        i_id                         = 'BUKRS'
       i_within_block               = mc_id_main_block
        i_description                = 'Empresa'
       i_is_auto_description        = abap_true
        it_result                    = lt_range_table
       i_obligatory                 = abap_false
       i_complex_restrictions       =
       i_use_complex_restriction    = abap_false
       i_value_help_type            = if_wd_value_help_handler=>co_prefix_none
       i_value_help_id              =
       i_value_help_mode            =
       i_value_help_structure       =
       i_value_help_structure_field =
       i_help_request_handler       =
       i_lower_case                 =
       i_memory_id                  =
       i_no_extension               = abap_false
       i_no_intervals               = abap_false
       i_as_checkbox                = abap_false
       i_as_dropdown                = abap_false
       it_value_set                 =
       i_read_only                  = abap_false
       i_dont_care_value            =
    Besides this, the WND_SELECTION_SCREEN view is embedded in the respective container as follows...
    Tray - >Container - this container has the WND_SELECTION_SCREEN.
    I can see the tray in the view cannot see any field (expectation was to see a select-option for BUKRS.
    Any hints? Am i missing something. I have followed the tutorial for select options in webdynpro abap.
    regards,
    Priyank

    Hi Sascha,
    No i cannot see the buttons either.
    Following is how the view is embedded.
    View - > Tray - >viewcontaineruielement-> wnd_selection_screen.
    Am i missing something?
    regards,
    Priyank

Maybe you are looking for

  • QM - INCOMING CERTIFICATE CONFIRMATION

    Dear all             I have created a Inspection lot for a incoming raw material and the same is displayed in the Quality stock of MMBE. But in the results recording , pop appears that characteristic results cannot be recorded for the inspn lot becau

  • JSP Question..Very Very Urgent....Please help....

    Hi... I am working on customizing existing JSP Page. The idea is to retrieve the customer name as show in 1 and send is as run time parameter to SQL query and use the result of select statement to pass it to 2. <INPUT TYPE="HIDDEN" NAME="soldtoCustPa

  • Load from MQ Queue

    Hi, We have got a requirement where we need to load the data from MQ Message queue. What is the approach we have to take in terms km,odi model,topolgy etc and how to read and load into oracle tables. Cheers

  • Restart OI without unload

    I am creating a custom Operator Interface (OI) for a customer.  I am using the Full-Featured VB.NET example as the basis for my OI,  My customer is in a repair environment and not a production environment.  They wish: 1. To use the "Single Pass" entr

  • Error message - ICERegions.html invalid???

    I am currently working my way through the Adobe Dreamweaver CS4 "Classroom in a book" - I am in the middle of Chapter 7, I've saved my document and then opened it up again and suddenly i have an error message that says: "The following translators wer