Select Options in Web dynpro

Hi,
I have a report, this has select options for users to enter the selection criteria. On the screen users can see 'Cancel', 'Check', 'Reset' and 'Copy' buttons but NO 'SAVE'!!!
Is there a way to save the selection made by the user as a variant? by doing this users can just select their Variant and execute the report.
Thank you,
Renu

>
Renu P wrote:
> So, You mean to say that, If I'm a user and when every I run a WDA report " Do I have to enter the selections each and everytime? "
>
> - Renu
Short answer - yes.  You can of course build something application specific to save the select-option values, but there is nothing like the variant supplied by the framework.
Using personalization you can save single input values as favorites (right mouse click on a field and choose User Settings->Use Current Value as Default.  However this isn't really like the old style variant, no does it capture complex values like those that can be represented within a select-option.

Similar Messages

  • Event should trigger when press enter on select option in web dynpro.

    I want to trigger a event for validation when enter is pressed in select option in web dynpro.
    as the select option is created by the coding and there is no method to trigger the event.
    please advice.

    Pls post it ABAP Forum
    Rgds
    Sumanth.Gururaj
    Consultant/Systems Analyst- SAP SD/MM

  • SELECT OPTIONS IN WEB DYNPRO ABAP

    Hello experts, im working with select options in a WEB Dynpro.
    There are four buttons (cancel,check,reset,copy) that apears above my select option.
    My question is: There is a way to hide that buttons?
    THANKS!

    Sure, you can disable them using the SET_GLOBAL_OPTIONS methdo of the IF_WD_SELECT_OPTIONS class.  Something like this:
    wd_this->m_handler->set_global_options(
        i_display_btn_cancel  = abap_false
        i_display_btn_check   = abap_false
        i_display_btn_reset   = abap_false
        i_display_btn_execute = abap_false ).

  • Select options in web dynpro ABAP  (Event on_check)

    Hi,
    how can I raise a message in the event-handler method on check for a specifc field out of the Select-Option.
    Best regards,
    Marcus

    Hello,
    Create a new method and call it when you want to show the message.
    METHOD message_handling .
      DATA:
        lr_current_controller TYPE REF TO if_wd_controller,
        lr_message_manager    TYPE REF TO if_wd_message_manager.
      lr_current_controller ?= wd_this->wd_get_api( ).
      lr_message_manager = lr_current_controller->get_message_manager( ).
      lr_message_manager->report_t100_message(
        msgid = iv_msgid
        msgno = iv_msgno
        msgty = iv_msgty
        p1    = iv_p1
        p2    = iv_p2
        p3    = iv_p3
        p4    = iv_p4 ).
    ENDMETHOD.
    In this method, the program show a message that is declared in a mesasge class. If you look at IF_WD_MESSAGE_MANAGER there are other methods to show a message.
    And you can find more information at this blog https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/8402. [original link is broken] [original link is broken] [original link is broken]
    Regards,

  • Select options in web dynpro ABAP (search help f4 problem)

    hi...
    from the Tutorial of select options i have created select option for two parameters S_CARR_ID and S_CONN_ID but i get f4 help for only S_CARR_ID, but the parameters passed to both for   m_handler->add_selection_field are the same.
    i also tried to attach my search help by passing one more parameter (I_VALUE_HELP_ID) but it dose not help.
    could any one suggest me how to get f4 help.
    thank you.
    Regards
    kailash.
    code snap ->
    init the select screen
      wd_this->m_handler =
           wd_this->m_wd_select_options->init_selection_screen( ).
    create a range table that consists of this new data element
      lt_range_table =
        wd_this->m_handler->create_range_table(
             i_typename = 'S_CARR_ID' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
                     i_id = 'S_CARR_ID'
                     it_result = lt_range_table
                     i_read_only = read_only
    create a range table that consists of this new data element
      lt_range_table =
        wd_this->m_handler->create_range_table(
             i_typename = 'S_CONN_ID' ).
    add a new field to the selection
      wd_this->m_handler->add_selection_field(
                     i_id = 'S_CONN_ID'
                     it_result = lt_range_table
                     i_read_only = read_only ).

    hi kailash,
      check wheteher  the field u r refering is having search help.
        if it has then set the additional parameters in method add_selection_field
      I_VALUE_HELP_STRUCTURE = 'VBC07'(name of the table)                                                   I_VALUE_HELP_STRUCTURE_FIELD = 'FKART'( field name)
    ex:
    wd_this->go_select_options1->add_selection_field( i_id = 'FKART'
                                                       I_WITHIN_BLOCK = 'BLOCK1'
                                                       I_VALUE_HELP_STRUCTURE = 'VBCO7'
                                                       I_VALUE_HELP_STRUCTURE_FIELD = 'FKART'
                                                       it_result = lo_range_table
                                                       i_read_only = lv_read_only
    regards,
    janakiram.
    Edited by: janakiram raju on Mar 11, 2008 11:40 AM

  • Validation of select-options in WEb DynPro ABAP

    Can anyone please help me on validating select-options. I want to have a functionality like what we use in normal text field while validating the field. We generally use the REPORT_ATTRIBUTE_ERROR_MESSAGE funciton.
    How can we achieve the same thing with select-options, cuz the select-options are not bound with any attribute.
    Edited by: Tirth Pandya on May 7, 2009 2:02 AM

    Hi,
    Refer to this link..Re: validate select option fields

  • Select-Options in web ui component

    Hi All,
               I am new to crm7.I need to create the select-options in web ui component(BSP_WD_CMPWB).Please let me know the how to do this.
    Thanks,
    Santhosh

    Hi Santosh
      do one thing  access the BP_HEAD_SEARCH component, from there access the Main search view  there go to EH_ONSEARCH method . Here in this method it is clearly given how to instantiate and how to use this method, for your reference I'm giving here again
    data: lr_advanced_query TYPE REF TO cl_crm_bol_dquery_service,
             lr_bp_head_coll type ref to if_bol_bo_coll.
    1)   lr_advanced_query = cl_crm_bol_dquery_service=>get_instance( 'BuilHeaderAdvancedSearch' ).
          Get the instance of cl_crm_bol_dquery_service instance .
    2)    lr_advanced_query->add_selection_param( iv_attr_name = 'PARTNER'
                                              iv_sign      = 'I'
                                              iv_option    = 'EQ'
                                              iv_low       = lv_partner
                                              iv_high      = '' ).
      On the returned instance (lr_advanced_query) call the method add_selection_param ( ) method
    3) lr_bp_head_coll = lr_advanced_query->get_query_result( ).
      call the query result
    after doing the above steps , the view coding will support you to build the screen , it will looks like below.
      <thtmlb:advancedSearch id                = "advs0"
                                     fieldMetadata     = "<%= controller->GET_DQUERY_DEFINITIONS( ) %>"
                                     header            = "<%= SEARCH->get_param_struct_name( ) %>"
                                     fieldNames        = "<%= controller->GET_POSSIBLE_FIELDS( ) %>"
                                     values            = "//SEARCH/PARAMETERS"
                                     maxHits           = "//SEARCH/MAX_HITS"
                                     ajaxDeltaHandling = "false"
                                     onEnter           = "search" />
    remember your controller class must inherit from CL_BSP_WD_ADVSEARCH_CONTROLLER , other wise advanced search controller functionality will not work, for this pls check the inheritace of main search view controller class.\
    Thanks & Regards
    Raj
    after doing this

  • Select option in web ui

    Hi all expert,
    May you know within GUi, we can define select option.With the select option, we can do choose EQ BT NE and not between.
    Is there any possibility make the same select option in web UI ?
    Thanks in advance
    best regards

    Hello Edward,
    this will help you to select which select options you want to have per attribute:
    1) Launch transaction 'sm34'
    2) Enter view cluster name as 'CRMVC_DQ' and click on 'Maintain'
    3) Find DQuery Object Name for example 'BTQOpp' under Comp Name 'BT' and click on'exceptions per attribute.'
    4) Find the Attribute Name for example 'PROSPECT_NAME'
    5) Check the boxes you need for example CP for "contain pattern"
    Good luck.
    Kind regards
    Manfred

  • Select option in web dyn pro

    Hi,
    Is there any way to deafult current date to date select-option in web dyn pro?

    hi,
    Check following code:
    DATA:
           lr_componentcontroller TYPE REF TO ig_componentcontroller,
           l_ref_cmp_usage TYPE REF TO if_wd_component_usage.
      DATA:
          lt_range_table       TYPE REF TO data,
          lt_types             TYPE string_table,
          rt_range_table       TYPE REF TO data,
          text                 TYPE string,
          typename             TYPE string.
      DATA: vbeln TYPE lips-vbeln,
            erdat TYPE lips-erdat,
            auart TYPE vbak-auart,
            trnsp TYPE vtadd01t-add_info,
            kunnr TYPE likp-kunnr.
      DATA:
        num_events TYPE i.
      DATA: uname TYPE sy-uname.
      uname = sy-uname.
      wd_context->set_attribute(  name = 'CUSTOMER'
      value = uname  ).
    wd_context->GET_ATTRIBUTE( Name = 'TRANSPORTER_CODE'
    Value = uname ).
    create the used component
      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.
    get a pointer to the interface controller of the select options component
      wd_this->m_wd_select_options = wd_this->wd_cpifc_select_options( ).
    init the select screen
      wd_this->m_handler = wd_this->m_wd_select_options->init_selection_screen( ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBELN_VL' ).
      wd_this->m_handler->add_selection_field(
        i_description                = 'Sales Document'
        i_id                         = 'VBELN'
        i_obligatory                 = 'X'
        it_result                    = lt_range_table
        i_value_help_structure       = 'LIPS'
        i_value_help_structure_field = 'VBELN' ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'ERDAT' ).
      wd_this->m_handler->add_selection_field( i_id = 'ERDAT'  i_obligatory = 'X' it_result = lt_range_table ).
    *lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VTTK_ADD01' ).
    *wd_this->m_handler->add_selection_field( i_id = 'VTTK_ADD01' I_DESCRIPTION  = 'CHAHA' it_result = lt_range_table ).
       wd_this->m_handler->add_selection_field(
         i_description                = 'Transporters Code'
         i_id                         = 'VTTK_ADD01'
         it_result                    = lt_range_table
         i_value_help_structure       = 'VTADD01T'
         i_value_help_structure_field = 'ADD_INFO' ).
    *Supress Global options in Used Component
      wd_this->m_handler->set_global_options(
          i_display_btn_cancel  = ''
          i_display_btn_check   = ''
          i_display_btn_execute = ''
          i_display_btn_reset   = '' ).
      lt_range_table = wd_this->m_handler->create_range_table( i_typename = 'VBAK-AUART' ).
      wd_this->m_handler->add_selection_field(
        i_description                = 'Sales Document Type'
        i_id                         = 'AUART'
         i_obligatory                = 'X'
        it_result                    = lt_range_table
        i_value_help_structure       = 'VBAK'
        i_value_help_structure_field = 'AUART' ).
    ENDMETHOD.
    METHOD onactionexecute .
      DATA: node_saledoc TYPE REF TO if_wd_context_node.
      DATA: node_crdate TYPE REF TO if_wd_context_node.
      DATA: node_transcode TYPE REF TO if_wd_context_node.
      DATA: node_doctype TYPE REF TO if_wd_context_node.
      DATA: node1 TYPE REF TO if_wd_context_node.
      DATA: node2 TYPE REF TO if_wd_context_node.
      DATA: rt_saledoc TYPE REF TO data.
      DATA: rt_crdate TYPE REF TO data.
      DATA: rt_transcode TYPE REF TO data.
      DATA: rt_doctype TYPE REF TO data.
      FIELD-SYMBOLS: <fs_saledoc> TYPE table,
                      <fs_crdate> TYPE table,
                      <fs_transcode> TYPE table,
                      <fs_doctype> TYPE table.
    Retrieve the data from the select option
      rt_saledoc = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'VBELN' ).
    Assign it to a field symbol
      ASSIGN rt_saledoc->* TO <fs_saledoc>.
    Retrieve the data from the select option
      rt_crdate = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'ERDAT' ).
    Assign it to a field symbol
      ASSIGN rt_crdate->* TO <fs_crdate>.
    Retrieve the data from the select option
      rt_doctype = wd_this->m_handler->get_range_table_of_sel_field(
      i_id = 'AUART' ).
    Assign it to a field symbol
      ASSIGN rt_doctype->* TO <fs_doctype>.
    Retrieve the data from the select option
    *rt_transcode = wd_this->m_handler->get_range_table_of_sel_field(
    *i_id = 'VTTK_ADD01' ).
    Assign it to a field symbol
    assign rt_transcode-> to <fs_transcode>.
      node_saledoc = wd_context->get_child_node( name = 'S_VBELN' ).
      node_saledoc->bind_table( <fs_saledoc> ).
      node_crdate = wd_context->get_child_node( name = 'S_ERDAT' ).
      node_crdate->bind_table(  <fs_crdate> ).
      node_doctype = wd_context->get_child_node( name = 'S_AUART' ).
      node_doctype->bind_table( <fs_doctype> ).
      IF <fs_doctype> IS NOT INITIAL
        AND <fs_crdate> IS NOT INITIAL
        AND <fs_saledoc> IS NOT INITIAL
        wd_comp_controller->execute_zotddelvnote_vend_tari( ).
      ENDIF.

  • Fill select opions in Web Dynpro

    Hello SDN Community,
    I'm currently developing a availability check application which should be accessible via BlackBerry mobile devices. To make it easier for the user I want to privide him a Material search by Material Number or Material Short Text. For this functionality I want to use BAPI_MATERIAL_GETLIST. The input for this BAPI is done via select options. What is the best way in Web Dynpro to fill this Input Tables?
    Regards
    Gregor

    Hi Gregor,
    Try to utilize the OVS (Object Value Selector)
    You can find sample on "How to use OVS?", in SDN.
    Hope that will help you in sorting the issue.
    Regards,
    Santhosh.C

  • 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

  • Selection Screen in Web Dynpro Application

    Hi,
    I have to develop one application, in which I need to create first view as Selection Screen and second as result screen,
    Please advise how to create selection screen in ABAP web dynpro?
    Thanks!
    Piyush

    I am not sure whether your requirement is like this or not:
         (1).In 1st screen, there are a few input fields which you can input the value as what you want.
         (2). After you input your data, you press "Enter" or press the Button(if in your view there is one button), then 2nd screen will be displayed to show the result, which is retrieved from DB using the selection/Condition in 1st screen.
    This is just simple in WD4A.
    A little summary:
         (1).In 1st view, you can bind your input fields with the context.
         (2).In the "Enter" event or "Button" action, you can "Fire the outbound plug" which is navigated to the "Inbound plug" of 2nd view
         (3).In the "WDDOINT" of 2nd view, you can use the 1st-view's Context(You can declare the context in component controller, and map it in 1st and 2nd views), then Retrieve data from DB or other places.
    I think, you can take a reference to the Document "Net 310", which is the standard course of WD4A.
    Goodluck.Best wishes!

  • Select-options problem in dynpro

    hi experts,
                         my requirement is to include select-options in module pool programming. So far i have called a subscreen from a zreport to my dynpro screen.
    but how can i fetch the value from that select-options.By what reference,I mean by what name i can refer to select-options.
    ztest.
    report ztest.
    tables: t001.
    selection-screen begin of screen 100 as subscreen.
    select-options: s_bukrs for t001-bukrs.
    selection-screen: end of screen 100.
    Module pool
    process before output.
    MODULE STATUS_0001.
    call subscreen sub including 'ZTEST' '100'.
    process after input.
    MODULE USER_COMMAND_0001.
    call subscreen sub.
    in debugger s_bukrs in unknown. So by what name i should refer to that select-options values??
    Thanks
    Gaurav

    hi,
    cant u do like this?
    TABLES: mara.
    DATA : BEGIN OF itab1 OCCURS 0,
            matnr LIKE mara-matnr,
           END OF itab1.
    SELECT-OPTIONS : s_matnr FOR mara-matnr.
    *&SPWIZARD: DECLARATION OF TABLECONTROL 'TAB1' ITSELF
    CONTROLS: tab1 TYPE TABLEVIEW USING SCREEN 1001.
    START-OF-SELECTION.
      CALL SCREEN 1001.
    *&SPWIZARD: OUTPUT MODULE FOR TC 'TAB1'. DO NOT CHANGE THIS LINE!
    *&SPWIZARD: UPDATE LINES FOR EQUIVALENT SCROLLBAR
    MODULE tab1_change_tc_attr OUTPUT.
      DESCRIBE TABLE itab1 LINES tab1-lines.
    ENDMODULE.                    "TAB1_CHANGE_TC_ATTR OUTPUT
    *&      Module  get_data  OUTPUT
          text
    MODULE get_data OUTPUT.
      SELECT matnr FROM mara INTO CORRESPONDING FIELDS OF TABLE itab1 WHERE matnr IN s_matnr.
    ENDMODULE.                 " get_data  OUTPUT
    *&      Module  STATUS_1001  OUTPUT
          text
    MODULE status_1001 OUTPUT.
      SET PF-STATUS 'ZTEST'.
    SET TITLEBAR 'xxx'.
    ENDMODULE.                 " STATUS_1001  OUTPUT
    *&      Module  USER_COMMAND_1001  INPUT
          text
    MODULE user_command_1001 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK' OR 'UP' OR 'CANC'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_1001  INPUT
    here i have table control on my screen and rather calling selection screen as sub screen i am calling screen for output from z report it self.....

  • Theming Options for Web Dynpro ABAP/Java - Custom CSS

    What options are available for creating a custom CSS for WDA?  My project is going towards SAPUI5, and they want to apply the same look and feeavl to their Web Dynpro applications.
    I know the Theme Designer is an option - but this customer is running on NW 7.3.  Obviously to get the WD CSS to look similar UI5, it will require changing all of the WD selectors.
    Finally, we have a 7.4 Sandbox.  If I build the theme there, is it backwards compatible to their 7.3 landscape?

    UI Theme Designer is the only supported way and it is available for NW 7.3 as well, assuming you are up to date on Support Packages. As long as you create a theme with UI Theme Designer the theme will work in any system that supports the same, there might be small functional and visual differences though depending on the SP levels of the source and target systems. SAP recommendation is to always use the latest version available to create (and consume) themes. You could start by using the Cloud version of UI Theme Designer, export and import into your own system. That said your NW 7.3 system needs to support UI Theme Designer to be able to use custom themes created by it.

  • Action on selected row in Web dynpro ALV grid

    Hello,
    i'm pretty new on web dynpro development, and i need some help.
    I have a working grid alv and i would like to create an event when i select a row (not editable).
    I have looked around and didn't find anything interesting.
    Do you have a solution?
    Thanks a lot.
    Cedric

    Hi.,
    U have to use onLeadSelection  Event Handler.,
    Check this tutorial.,: [ALV onLead Selection another ALV|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/7020c76f-c40e-2e10-a795-d88e67740ee4?quicklink=index&overridelayout=true]
    hope this helps u.,
    Thanks & Regards
    Kiran.

Maybe you are looking for

  • Once and For All, Can I Yank Out that SSD?

    I am looking at getting a new MacBook Pro Retina, and I can't tell if once I order that thing: Can I open it up, take out that SSD and put back in one of those Seagate Hybrid drives?  I am sure the SSD's are nice and all, but they are crazy expensive

  • Quantity shipped on AR Invoice

    I have a client that is wanting to show quantity shipped on the a/r invoice PLD example: Sales UoM -  Qty Ordered - Qty Shipped - Total Units - Pricing Unit Sales UoM = Drum Qty Orderd = 1 Qty Shipped = 1 Total Unts = 55 Pricing Unit = GAL Where 1 dr

  • Forums by Language

    See Wiki: International Communities.

  • {module_categorylist} Categories drop down show sub categories only

    Hi On this page I have a FAQ search at the top of the page. http://www.pantheraaccounting.co.uk/features/faqs In the 'Categories' drop down I have a set of sub Categories called 'FAQ' - is there anyway I can just show the subset of categories instead

  • Row Headings JTable...

    Is there a way to have column headings and row heading in a jtable? I have looked through the api and there does not seem to be a method of doing so.., Can anybody recommend a way or a package to do this sort of thing...?