Requirement to maintain select-options for multiple fileds in webdynpro aba

Hello Gurus,
We have a requirement to maintain select-options for multiple fileds in webdynpro abap.
now we are able to create select-options for a single field using wdr_select_options componet usage.
how can we achive this select-options feature for multiple fields.
Could anyone please suggest solutions?
and if possible send me the sample code for this requirement.
Thanks in Advance for your replies.
Regards,
Shyam

Hi,
Nothing different for more fields, same. some declaration changes.
For example code i am using.. in WDDOINIT method.
TYPES:
    fiscal_year TYPE RANGE OF GJAHR,
    S_KUNNR TYPE RANGE OF J_3RS_KUNNR,
    S_VKORG TYPE RANGE OF VKORG_RAN,
    status type PVWTY-RETPA,
    ty_r_date TYPE RANGE OF s_date,
    ty_s_date TYPE LINE OF ty_r_date.
DATA lo_interfacecontroller TYPE REF TO iwci_wdr_select_options .
  DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
lo_cmp_usage =   wd_this->wd_cpuse_cmp_sel_opt( ).
  IF lo_cmp_usage->has_active_component( ) IS INITIAL.
  lo_cmp_usage->create_component( ).
ENDIF.
* Reference variable used instantiate the select-options component
  DATA
    lr_cmp_usage TYPE REF TO if_wd_component_usage.
* Variables used to create the select-options fields and
* define its initial values
  DATA:
    lr_field TYPE REF TO data,
    ls_date  TYPE ty_s_date.
  FIELD-SYMBOLS:
    <fs_field> TYPE ANY,
    <fs_range> TYPE INDEX TABLE.
* Instantiate the select-options component
  lr_cmp_usage = wd_this->wd_cpuse_cmp_sel_opt( ).
  IF lr_cmp_usage->has_active_component( ) IS INITIAL.
    lr_cmp_usage->create_component( ).
  ENDIF.
  lo_interfacecontroller =   wd_this->wd_cpifc_cmp_sel_opt( ).
wd_this->m_sel_opt = lo_interfacecontroller->init_selection_screen( ).
data : vhelp type wdy_md_value_help_mode_enum .
* Sets the helper reference
  wd_this->m_sel_opt1 = wd_this->wd_cpifc_cmp_sel_opt( ).
  wd_this->m_helper  = wd_this->m_sel_opt1->init_selection_screen( ).
* Hide the standard select-options components.
  wd_this->m_helper->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
  lr_field = wd_this->m_helper->create_range_table( `KUNNR` ).
  wd_this->m_helper->add_selection_field(
    i_id           = `KUNNR`
    I_DESCRIPTION  = 'Customer Code'
*    i_within_block = `BL01`
    it_result      = lr_field ).
  FREE lr_field.
  lr_field = wd_this->m_helper->create_range_table( `VKORG` ).
  wd_this->m_helper->add_selection_field(
    i_id           = `VKORG`
    I_DESCRIPTION  = 'Sales Organization'
*    i_within_block = `BL01`
    it_result      = lr_field ).
  FREE lr_field.
Go through this..
http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-Complexselect-optionscomponent+usages
Cheers,
Kris.

Similar Messages

  • Select options for multiple entries

    hi,
    in selection screen i have 2 select-options as below
    SELECT-OPTIONS: s_belnr  FOR bkpf-belnr ,
                                  s_bukrs  FOR bkpf-bukrs.
    the problem is if BELNR or BUKRS are not given the error message should be displayed as enter the required fields.
    if i keep the OBLIGATORY i will get the message but if i keep OBLIGATORY first they need to enter one belnr  or bukrs  in selection screen then it allows for multiple option but the bussiness want to directly goto multiple option and upload data.
    please help

    Note Replace P with % Sign in IF Condition it not allow me to Put % there
    TABLES: bkpf.
    SELECT-OPTIONS: s_belnr FOR bkpf-belnr,
                    s_bukrs FOR bkpf-bukrs.
    AT SELECTION-SCREEN.
      IF s_belnr[] IS INITIAL AND s_bukrs[] IS INITIAL AND sy-ucomm NE 'P000' AND sy-ucomm NE 'P001'.
        IF s_belnr[] IS INITIAL OR s_bukrs IS INITIAL.
          MESSAGE: 'Please Enter Value in Bothe Fields' TYPE 'E'.
        ENDIF.
      ENDIF.

  • Multiple select options for an input field

    Hi All,
    We have a requirement where in we need to provide multiple select options for an input field in a BSP application and get output relevant to all the given inputs(do not require range).
    Please do let me know how to solve this.
    Thanks & Regards,
    Lavanya .

    Hi,
    The requirement is : Suppose there is a input field PLANT.
    If we give input for plant it gives related output.
    Now if it is required to give 5 or 6 inputs..like plant1,plant2...plant6 and get the output related to all 6 inputs.
    (Like we implement in ABAP)
    Please do let me know how can this be implemented in BSP.
    Thanks & Regards,
    Lavanya.

  • MSS Time Approval - multiple (different) selection options for manager?

    Hi all
    I am setting up MSS Time Approval delegation in ERP2005 without workflow, leave request, nor portal development environment set up.
    In this case, the customer needs to have multiple selection options for who to approve:
    1. The manager's direct reports (standard functionality)
    2. All subordinates, all levels down
    3. Delegate's (manager or non-manager) view of a particular (other) manager's direct reports
    3b. This might extend to a set of different delegation selections
    4. Add or remove certain individuals
    Now, getting 3. and 4. to work was simple using the BAdI (I think the enhancement spot is named APPR_CUST), method ...-edit_selection, but I am having difficulties with 2. and 3b. Now I am thinking along these lines, and I would greatly appreciate your input:
    A. It seems that the MSS "Approve working time" app only loads the data selection at the entry into this screen (INIT command from portal), using the start perspective determined for example by the IMG for defining the approval profile <-> view. My debugging suggests that the view change from the drop down menu (CHANGE_PERSPECTIVE command) only picks a different way to present the same data set.
    Could anybody please confirm or contradict this conclusion?
    B. Is it possible to present the entire "Approve working time" section in MSS in multiple different copies so that they would all generate an INIT command? Or is it possible to copy and modify the entire MSS tab, resulting in an ESS tab, one MSS, one "D"SS, one "A"SS (well, not suggesting that the top manager is one, but you get the drift...) and so on?
    If either of this were possible, it would be simple to make two modifications, one at the beginning of the FM called by the portal and one at the FM that returns the start perspective.
    So far I have been trying to catch and alter the CHANGE_PERSPECTIVE command into an INIT in the back end, but the Time Approval functionality is a bit too complex for me to feel entirely comfortable with this approach.
    Your input is much appreciated!
    Kind regards
    Niclas Arndt

    We too are using MSS for time approval of time entered via ESS.  We are on ECC 6.0 for the backend (no enhancement packs, at least not yet), currently sp stack 10 with hrsp 24, and EP 7.0 with stack 10 for the ESS/MSS business packages.  We are using the standard MSS UWL functionality for the approval, so it is workflow-based in my understanding.
    In other parts of MSS, the managers can see a few levels deep in the organization structure, based upon the definition we gave for their structural profiles.  For instance, in the team calendar/overview, or other team information, they have a choice for multiple levels or only direct reports.  However, in the time approval application, only direct reports are shown, so if a manager goes on vacation, at present the only way to cover time approvals for that manager's employees appears to be to temporarily assign a new 'chief' to that org unit, so HR involvement becomes necessary.  The manager doesn't have any method for delegating the approval or other MSS authorities.  We were hoping that by allowing multiple levels in the structural profile, such approvals would "roll up" to the next level, i.e. the manager's supervisor, so the next level manager could act as a backup to his/her managers on vacation.  That doesn't work, however.
    We have heard that a delegation feature for MSS will be available in an upcoming release, but I haven't found any information regarding whether that requires an upgrade, an enhancement pack, a later service pack level, or what or when that functionality will be available.  Does anyone know anything about that?
    Regards,
    Matt

  • Changing the material options for multiple selections doesn't seem to work

    Hi!
    Is it just me or is it not possible to select multiple layers and change their material options like specularity and shininess all at once? Selecting the layers and clicking on cast shadows certainly does work like this, but for some reason when I do the same and change the specularity, it changes only for that layer, regardless of the selection for the other layers.
    Are you able to change material options for multiple layers in one click?

    Works for me... Not sure what else to say. The only thing to consider would be that you need to expose the same properties on all layers or else AE can't match the property streams, so it may be advisable to hit AA to expose all material options instead of just U or UU to reveal changed/ animated properties.
    Mylenium

  • Restricting Select Options to Multiple Single Entries

    Hi All,
           I have a requirement where we have two select options. I need to restrict only One of the select options to only accept multiple single entries. I have tried using the  'SELECT_OPTIONS_RESTRICT'  Function module. But it provided little help to me.
    Please check the below code.
    gv_w_opt_list-name = 'A'.
      gv_w_opt_list-options-eq = 'X'.
      APPEND gv_w_opt_list TO gv_w_res-opt_list_tab.
      gv_w_***-kind = 'A'. 
      gv_w_***-name = 'YTRADE_DESC'.
      gv_w_***-sg_main = '*'.
      gv_w_***-sg_addy = 'N'.
      gv_w_***-op_main = 'A'. 
      APPEND gv_w_*** TO gv_w_res-***_tab.
    It allows to restrict intervals for select-options in selection screen
        CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
          EXPORTING
            program                = sy-repid
            restriction            = gv_w_res
          EXCEPTIONS
            too_late               = 1
            repeated               = 2
            selopt_without_options = 3
            selopt_without_signs   = 4
            invalid_sign           = 5
            empty_option_list      = 6
            invalid_kind           = 7
            repeated_kind_a        = 8
            OTHERS                 = 9.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                 WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    Please help me if you have any information related to this requirement. Relevant anwers will be surely rewarded.
    Regards
    Nagaraj

    I have a code sample I use in a report. Result is only EQ and no intervals and no excludes
    LOAD-OF-PROGRAM.
        Subscreen: Select Options for delivery                                    *
      SELECTION-SCREEN BEGIN OF SCREEN 1100 AS SUBSCREEN
                                          NO INTERVALS.
      SELECT-OPTIONS:
      so_dlvno FOR /scwm/s_aspq_tu-docno
                                     MODIF ID dlv .
      SELECTION-SCREEN END OF SCREEN 1100.
        Subscreen: Select Options Restrictions                                  *
    Include type pool SSCR
      TYPE-POOLS sscr.
    Define the object to be passed to the RESTRICTION parameter
      DATA restrict TYPE sscr_restrict.
    Auxiliary objects for filling RESTRICT
      DATA t_opt_list TYPE sscr_opt_list.
      DATA ***      TYPE sscr_***.
      CLEAR ***.
      ***-kind    = 'S'.        "Apply only to the named SELECT-OPTION
      ***-name    = 'SO_DLVNO'.  "This is name of the SELECT-OPTION
      ***-sg_main = 'I'.        "I = ONLY Inclusions; * = Both
      ***-op_main = 'NOINTERVALS'. "This must match opt_list-name
      APPEND *** TO restrict-***_tab.
    Create t_opt_list entry to specify capabilities of S_BUKRS.
      CLEAR t_opt_list.
      t_opt_list-name       = 'NOINTERVALS'."This must match ***_tab-op_main
      t_opt_list-options-bt = space.     "Do not permit BETWEEN
      t_opt_list-options-cp = space.     "Do not permit MATCHES-PATTERN
      t_opt_list-options-eq = 'X'.       "       Permit EQUALS
      t_opt_list-options-ge = space.     "Do not permit GREATER-OR-EQUAL
      t_opt_list-options-gt = space.     "Do not permit GREATER-THAN
      t_opt_list-options-le = space.     "Do not permit LESS-OR-EQUAL
      t_opt_list-options-lt = space.     "Do not permit LESS-THAN
      t_opt_list-options-nb = space.     "Do not permit NOT-BETWEEN
      t_opt_list-options-ne = space.     "Do not permit NOT-EQUAL
      t_opt_list-options-np = space.     "Do not permit NO-PATTERN-MATCH
      APPEND t_opt_list TO restrict-opt_list_tab.
    Call function module
      CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
        EXPORTING
          restriction                = restrict
        EXCEPTIONS
          too_late                   = 1
          repeated                   = 2
          not_during_submit          = 3
          db_call_after_report_call  = 4
          selopt_without_options     = 5
          selopt_without_signs       = 6
          invalid_sign               = 7
          report_call_after_db_error = 8
          empty_option_list          = 9
          invalid_kind               = 10
          repeated_kind_a            = 11
          OTHERS                     = 12.
    Exception handling
      IF sy-subrc NE 0.
      ENDIF.
    Edited by: Suhel Awad on Feb 1, 2011 3:06 PM

  • Search option for multiple lines in iPad for fixed layout ePub is not working. Is there any alternate way to search multiple lines in ePub?

    Search option for multiple lines in iPad for fixed layout ePub is not working. Is there any alternate way to search multiple lines in ePub?

    Hi SAP Gurus
    I need a big favour, I am trying to map serach string with internal order, my search string is MV-38610573 which I have mapped with posting rule 'GENT' which  debits bank account and credit revanue accounts but this revanue account requires assignment with internal order, so I have created another 3 search string with same search string 'MV-38610573' and mapped with BSEG-ASUFNR,60000LC ( internal order),3 (bdc account type) respectively, also maintained three entries in search string use which is for BDC FIELD NAME1, BDC FIELD VALUE 1 & BDC ACCOUNT TYPE 1,
    But this is not working it gives me following error,                                                                 
    > Error: (KI 235) Account 4421 requires an assignment to a CO object
    Your help will be highly appreciated,

  • Selection options for field display text instead of key

    Hi All,
    In the selection screen in my reports, when the user clicks on the selection options for one the fields to display the possible values they can use. Instead of the key the pop up box only displays the text for that field. This is an issue because one of the fields is equipment number and the user needs to be able to see the key not the descriptions. This is occurring in multiple reports and for multiple fields. I haven't been able to find anything in the infoobject properties or the query properties to change this.
    Please help!
    Edited by: Anthony Loh on Sep 29, 2010 10:57 PM

    Hi Anthony,
    Cud u pls check in backend how it is created ...
    RSA1>Mdeling>IO Properties>Second tab BEx properties>Display-->it shud be Key and not text...
    Check this and come back ..
    Rgds
    SVU123

  • Validation of Select Options for a field

    Hi All,
    I need to write a validation logic for a select option for VTWEG (Distribution Channel).
    select-options:  s_vtweg for komg-vtweg.
    I need to check whether the user has entered the correct value based on the search help. The check table of this particular field is TVTW. 
    Following is the code i wrote under the AT SELECTION-SCREEN block:
    IF NOT S_VTWEG-LOW IS INITIAL.
    SELECT SINGLE VTWEG INTO KOMG-VTWEG FROM TVTW
                                     WHERE VTWEG IN S_VTWEG.
    IF SY-SUBRC NE 0.
    CONCATENATE ' Please enter the correct
                                    Distribution Channel '
    Z_MSG INTO Z_MSG.
    SET CURSOR FIELD 'S_VTWEG-LOW'.
    MESSAGE E000 WITH Z_MSG.
    ENDIF.
    ENDIF.
    It works fine when the user enters a wrong value in the S_VTWEG-LOW field, where as if i gives more than one wrong value in the range or giving individual values its not working. Let me know how to do the validation check for multiple values entered individually or in ranges.
    Could you please suggest how to resolve this problem.
    Thank You,
    Suresh

    You could do something like this.....here looping at the select-option table and check the values for low and high.
    report zrich_0003.
    tables: komg.
    data: z_msg(100) type c.
    select-options: s_vtweg for komg-vtweg.
    at selection-screen.
      loop at s_vtweg.
        if not s_vtweg-low is initial.
          select single vtweg into komg-vtweg from tvtw
                 where vtweg = s_vtweg-low.
          if sy-subrc ne 0.
            concatenate ' Please enter the correct
            distribution channel '
                      z_msg into z_msg.
            set cursor field 'S_VTWEG-LOW'.
            message e001(00) with z_msg.
          endif.
        endif.
        if not s_vtweg-high is initial.
          select single vtweg into komg-vtweg from tvtw
                 where vtweg = s_vtweg-high.
          if sy-subrc ne 0.
            concatenate ' Please enter the correct
            distribution channel '
                      z_msg into z_msg.
            set cursor field 'S_VTWEG-HIGH'.
            message e001(00) with z_msg.
          endif.
        endif.
      endloop.
    Regards,
    Rich Heilman

  • How to disable maintaining select option

    Hello All,
    I have select option in my selection screen. When i put some value in my select option and double click on it,one small window gets opened for maintaining select option.
    I want to disable this window . Can any one help me out on this.
    Thanks in advance.
    Suman

    Hi !
    Options screen modifications can be done through the below mentioned path
    IMG>Personnel Management>Personnel Administration>Customizing User Interfaces>Change Screen Modifications
    Enter Module pool name( To know module name select the targeted screen > menu>go to > system >status
    Screen Number (To know module name select the targeted screen > menu>go to > system >status )
    after updating module pool & screen number , press enter and you will find all the fields that is available and select radio button hide to hide particular field .
    Regards
    Sheetal

  • How to create the select option for the Plant in screen (Module pool)

    HI,
    I am developing one module pool program and I have below requirement,
    currently plant is acting like PARAMETER and the now it should be changed to select option.
    how to create the select option in the screen
    Thanks and regarding,
    Malla
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Dec 16, 2009 1:41 PM

    Steps to get SELECT-OPTIONS in module pool programs.
    1.Start one dialog program with SAPMZ_001.
    Place the below code in the TOP include of the dialog program.
    TABLES marc.
    SELECTION-SCREEN BEGIN OF SCREEN 3200 AS SUBSCREEN.
    SELECT-OPTIONS: werks FOR marc-werks.
    SELECTION-SCREEN END OF SCREEN 3200. 
    2 .Create one screen 3000.
    Go to Layout of the screen and Define subscreen area on the screen and Name it as l_subscreen.
    Place the below code in the Flow logic of the screen.
    PROCESS BEFORE OUTPUT.
      CALL SUBSCREEN l_subscreen INCLUDING 'SAPMZ_001' '3200'.
    PROCESS AFTER INPUT.
      CALL SUBSCREEN l_subscreen.
    Activate all.
    Create Transaction code for the dialog program .
    Execute the transaction code. You will see the select-option for werks how we see on Selection-screen.

  • Select-options for time stamp

    Any ideas on which data element to be used for select-options for timestamp on the screen so that a user is able to f4 help too.
    i am using data element 'tzntstmps' but i am not getting f4 help for it.

    Hello Trivenn
    I do not think it makes sense to search for any other timestamp data element which might be part of a search help.
    TZNTSTMPS = UTC Time Stamp in Short Form (YYYYMMDDhhmmss)
    How could such a search help look like? A calendar control combined with some kind of "time control"?
    You may facilitate the entry of time stamps in such a way that if the user enters only a date in the LOW field (e.g. 20080422 without time) you change it AT SELECTION-SCREEN (PBO of your selection screen to 20080422000000).
    Correspondingly, you change a date value (e.g. 20080422) at the HIGH field into 20080422235959).
    If, however, the user enters already a complete timestamp you do not change anything.
    Regards
      Uwe

  • Select-options for OO Methods

    Hi all,
    How can I define select-options for a method in a global class.
    And how can I pass these select-options from a report.
    Thanks & Regards
    Eshwar

    Hi all,
    How can I define select-options for a method in a global class.
    And how can I pass these select-options from a report.
    Thanks & Regards
    Eshwar

  • Select-options for date field.

    Hi all,
    i need to give select options for Date field.How can i give that.
    Thanks & Regards
    Ravi.

    Hi Ravi,
    Use the Component WDR_SELECT_OPTIONS to include select options in Web Dynpro ABAP. Follow these steps:
    1. In your Component , "Used Componet" tab add Component WDR_SELECT_OPTIONS . Component Use can be any name that you want to give, eg SELECT_OPTIONS
    2. Go to the View where you want to include the Date Select Options. I am assuming that you already have an Attribute of Type DATS in your context.
    3. View: Properties Tab:Create Controller Usage and select
    SELECT_OPTIONS     WDR_SELECT_OPTIONS                   
    SELECT_OPTIONS     WDR_SELECT_OPTIONS     INTERFACECONTROLLER
    4. View Layout Tab:Include a View Container. In this view container we will show the Date Select Options.
    5. View Attributes Tab: Create Following two attributes:
    M_HANDLER type IF_WD_SELECT_OPTIONS
    M_WD_SELECT_OPTIONS type IWCI_WDR_SELECT_OPTIONS
    6: View Methods Tab: Create a method eg CREATE_SELECTION_SCREEN. Call this method in the WDDOINIT of the view.
    7:CREATE_SELECTION_SCREEN: Write following Code:
    * Data Declaration
      data:
            lt_range_table TYPE REF TO DATA.
      data:
            lr_componentcontroller TYPE REF TO IG_COMPONENTCONTROLLER,
            lr_componentusage TYPE REF TO IF_WD_COMPONENT_USAGE.
    * Execution
    *  Create Used Component
      lr_componentusage = wd_this->wd_cpuse_select_options( ).
      if LR_COMPONENTUSAGE->HAS_ACTIVE_COMPONENT( ) is initial.
        lr_componentusage->create_component( ).
      endif.
    *  Get pointer to interface controller of select options
      wd_this->M_WD_SELECT_OPTIONS = wd_this->wd_cpifc_select_options( ).
    * initialize selction screen
      wd_this->M_HANDLER = wd_this->M_WD_SELECT_OPTIONS->init_selection_screen( ).
    *  Create Range Table for: Date
      CALL METHOD WD_THIS->M_HANDLER->CREATE_RANGE_TABLE
        EXPORTING
          I_TYPENAME     = 'DATS'
        RECEIVING
          RT_RANGE_TABLE = lt_range_table.
    * Add Selection Field for: Date
      CALL METHOD WD_THIS->M_HANDLER->ADD_SELECTION_FIELD
        EXPORTING
          I_ID                         = '<name of date attribute in the context>'
    *      I_WITHIN_BLOCK               = MC_ID_MAIN_BLOCK
    *      I_DESCRIPTION                =
    *      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_NO_COMPLEX_RESTRICTIONS    = 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            =
    *      I_EXPLANATION                =
          I_TOOLTIP                    = 'Select Date'.
    8: To Fetch Data entered in the selection field, write following code on action of button click:
      data:
            lt_date type REF TO DATA.
    FIELD-SYMBOLS:
                     <fs_date> TYPE table.
      *  retrieve Date from Select Options
      CALL METHOD WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD
        EXPORTING
          I_ID           = '<attrib_name>'
        RECEIVING
          RT_RANGE_TABLE = lt_date.
    *  assign Date Field Symbol
      ASSIGN lt_date->* to <fs_date>.
    9: Windows Window Tab: In the View Conatiner, embed the WND_SELECTION_SCREEN view from SELECT_OPTIONS component Usage of  WDR_SELECT_OPTIONS component.
    Regards,
    Reema.

  • 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.

Maybe you are looking for