How to add filter at select options?

Hi friends,
I believe there should be a way to add filter, but I don't know where it is.
The call is like this:
  wd_this->r_selopt->if_wd_select_options~add_selection_field(
    i_id                          = 'ACT_CAT'
    it_result                     = lr_range
    i_description                 = 'Category'
    i_value_help_type             = 'SEARCHHELP'
    i_value_help_id               = 'ZZS_SH_CATEGORY'
    i_value_help_structure        = 'ACT_CATEGOR'
    i_value_help_structure_field  = 'CATEGORY'
When other fileld has changed, I want to use that value as a filter. Unfortunately, I can't find how to set this. Would someone do me a favor? A sample will be better.
Special thank to any reply.

Hi
No other component required. WDR_SELECT_OPTIONS uses OVS component internally, you can see the component usage also in WDR_SELECT_OPTIONS.
Add the seleciton Field
wd_this->lr_helper->add_selection_field(
                i_id = 'ATFLV'
                IT_RESULT = LR_TABLE
                I_DESCRIPTION = 'Msg'
                i_obligatory = abap_true
            I_VALUE_HELP_TYPE =
IF_WD_VALUE_HELP_HANDLER=>CO_PREFIX_OVS
                I_VALUE_HELP_STRUCTURE = 'ZPP_ROUT_PROD'
                I_VALUE_HELP_STRUCTURE_FIELD = 'MS_FLAG'
ZPP_ROUT_PROD is a structure created and MS_FLAG is the field in the structure, for which we are developing Value help
Now,
WDR_SELECT_OPTIONS has an event int he Interface called ON_OVS, subscribe the event in your view,
from here onwards it is like Using normal OVS, you have phases put a case statement and code accordingly
Abhi
Edited by: Abhimanyu Lagishetti on Jul 25, 2008 7:45 AM

Similar Messages

  • How to add OBLIGATORY for SELECT-OPTIONS

    Hi experts,
    I can use OBLIGATORY for PARAMETERS
    PARAMETERS :s_WMno  TYPE LINK-LGNUM DEFAULT 'SCA' OBLIGATORY.
    I want to add OBLIGATORY for SELECT-OPTIONS. How to do this?
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME .
        SELECT-OPTIONS:  s_matnr FOR mara-matnr .
    SELECTION-SCREEN END OF BLOCK b1.
    Many thanks.

    Hi,
    TABLES spfli.
    SELECT-OPTIONS : carrid FOR spfli-carrid OBLIGATORY. " This makes only Low field Obligatory
    AT SELECTION-SCREEN OUTPUT.
      LOOP AT SCREEN.
        IF screen-name = 'CARRID-HIGH'. " To make High field also obligatory
          screen-required = 1.
          MODIFY SCREEN.
        ENDIF.
      ENDLOOP.
    Cheerz
    Ram

  • How to add spaces on select-option field?

    All,
    I want to add few spaces on my select-option field.
    Customer:           ________ to ________
    Can I change the spaces here? I
    I want to put some spaces after 'to'
    It should be displayed like....
    Customer:           _________  to       _________
    Regards,
    RH

    Hi!
    Using the SELECT-OPTIONS it's not possible.
    But you can create your own line, somehow like this:
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT ...   "customer
    PARAMETERS: p_low.
    SELECTION-SCREEN COMMENT ...   "to+spaces  
    PARAMETERS: p_high.
    SELECTION-SCREEN END OF LINE.
    The syntax is not perfect, but you have to do something like that.
    Regards
    Tamá

  • In BI how to filter the selection options based on inputs on top field

    Hi Friends,
    In BI, How to filter the selection options based on inputs on top field.
    The system should automatically filter the lower level drop downs based on the selection of a higher level.
    For e.g. :
    If a user selects a Country then the States drop down should only display the State's belongs to the Country. Similarly when a State is selected, the District drop down should display only those District's belongs to the State.
    Thanks in Advance.
    Regards
    Jayaram M

    Hi Anil,
    Thanks for reply but I couldn't use Compounding Characteristic here. Need some other solution.
    Regards
    Jayaram M

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • Add a new selection option on VL71

    I want to add a new selection option on VL71.
    I know that I can do an implicit enhancement.
    But I am not sure if I can add it in the place as showed.
    If the enhancement cannot solve the problem, do I have to copy out a Z program.

    Dear Experts,
    In HUMO report, after the specail stock, We want add another selection field "Special Stock Number".
    Do we need to go for a development for this?
    Any alternate way available to get this done without much development involved?  Pls suggest.
    Regards,
    Shetty

  • How to do validations for select-options

    Hi gurus,
    can you suggest me
    how to do validations for select-options
    Thanks&ragards,
    Kals.

    HI,
    TABLES: BKPF.
    TYPES: BEGIN OF TY_BKPF,
           BUKRS TYPE BUKRS,   "COMPANY CODE
           GJAHR TYPE GJAHR,   "FISCAL YEAR
           MONAT TYPE MONAT,   "FISCAL PERIOD
    DATA: T_BKPF TYPE TABLE OF TY_BKPF,
          W_BKPF TYPE TY_BKPF.
    SELECTION-SCREEN : BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECT-OPTIONS: S_CODE   FOR BKPF-BUKRS,
                    S_YEAR   FOR BKPF-GJAHR,
                    S_PERIOD FOR BKPF-MONAT.
    SELECTION-SCREEN: END OF BLOCK B1.
                        AT SELECTION-SCREEN                           *
    IF S_CODE IS INITIAL OR S_YEAR IS INITIAL OR S_PERIOD IS INITIAL.
      MESSAGE E000(0) WITH 'ENTER VLAUES'.
    ENDIF.
    SELECT SINGLE * FROM BKPF WHERE BUKRS IN S_CODE.
      IF SY-SUBRC <> 0.
      MESSAGE E000(0) WITH 'ENTER VALID VALUES'.
      ENDIF.
    reward if useful
    thanks and regards

  • How to use offset for select-option parameter ?

    Hi experts
    could anybody please let me know how to use offset for select-option parameter. i can able to use offset for table fields, variabiles and all , but don't know how to use for parameters.
    following is my code
    SELECT-OPTIONS: s_prctr  FOR vbsegs-prctr OBLIGATORY.
    here "prctr"  length is 10.
    i'm using two tables  1. vbsegd-bupla
                                    2. vbsegs-prctr
    here prctr+6(4) = bupla.
    "Bupla" length is 4
    SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
                                                                 WHERE belnr = it_vbkpf-belnr
                                                                   AND gjahr = it_vbkpf-gjahr
                                                                   AND bukrs = it_vbkpf-bukrs
                                                                   AND bupla IN s_prctr.  
    the above statement is not working as prctr and bupla lenths are different. here i want to use offset.
    SELECT belnr gjahr bukrs prctr sgtxt buzei FROM vbsegs INTO CORRESPONDING FIELDS OF TABLE it_vbsegs FOR ALL ENTRIES IN it_vbkpf
                                                                WHERE belnr = it_vbkpf-belnr
                                                                  AND gjahr = it_vbkpf-gjahr
                                                                  AND bukrs = it_vbkpf-bukrs
                                                                  AND prctr IN s_prctr.
    this is working as prctr and s_prctr lengths are equal.
    could anybody please help me out in this.
    Thanks in advance.
    regards
    satish

    Below code will work for you.
    SELECT-OPTIONS: s_prctr  FOR vbsegs-prctr OBLIGATORY.
    RANGES: s_bupla FOR vbsegd-bupla.
    s_bupla[] = s_prctr[].
    DELETE ADJACENT DUPLICATES FROM s_bupla.
    SELECT belnr gjahr bukrs bupla sgtxt buzei FROM vbsegd INTO CORRESPONDING FIELDS OF TABLE it_vbsegd FOR ALL ENTRIES IN it_vbkpf
                                                                  WHERE belnr = it_vbkpf-belnr
                                                                    AND gjahr = it_vbkpf-gjahr
                                                                    AND bukrs = it_vbkpf-bukrs
                                                                    AND bupla IN s_bupla.

  • How to  add filter in Bex report

    hi how to add filter in BEx report and what is the difference between filter and free charcteristics.
    Regards,
    Viren.

    Hi Viren,
    difference between filter and free characteristics is that free characteristics can be added to drilldown at query runtime. Filter values can not be changed at query runtime.
    You can add a filter to a query by placing a characteristic in filter section and restrict the characteristic to certain values. Characteristics in rows / columns / free characteristics section can be restricted to certain values, too.
    Best regards,
    Björn

  • How to add filter in the dist. model

    hi,
    how to add filter in the dist. model
    thanks
    Ruban

    Hi,
    Please try this.
    1. Go to transaction BD64.
    2. Click on Change button.
    3. Expand the corresponding model view.
    4. Expand the corresponding message type (i.e MATMAS).
    5. Place the cursor to 'No filter set' and double click.
    6. Click on Create Filter Group.
    7. Add your filter from here ...
    8. Once done, save the model view.
    For more information, please check this link.
    http://help.sap.com//saphelp_470/helpdata/EN/0b/2a611c507d11d18ee90000e8366fc2/frameset.htm
    Regards,
    Ferry Lianto

  • How to add CC(Closed Captioning) option in OSMF player

    Hi All,
    How to add cc(closed captioning) options in OSMF Player?

    Do you have any updates on the implemetnation of closed captions on the OSFM player?
    Thanks,

  • How to pass values to select options of custom transactions?

    I have to call custom transaction-ZMM_POST  from my custom report.
    I have to pass values to select options(Not to parameters) of ZMM_POST  from my report only.
    Please tell me how to pass values to select options of custom transactions?

    Have you tried this?
    DATA: T_RSPARAMS TYPE STANDARD TABLE OF RSPARAMS WITH HEADER LINE.
    T_RSPARAMS-SELNAME = "S_BUKRS".
    T_RSPARAMS-KIND = "S".
    T_RSPARAMS-SIGN = "I".
    T_RSPARAMS-OPTION = "BT".
    T_RSPARAMS-LOW = "100".
    T_RSPARAMS-HIGH = "300"
    APPEND T_RSPARAMS.
    SUBMIT Z_DUMMY WITH SELECTION-TABLE  T_RSPARAMS.
    Greetings,
    Blag.

  • How to add apps to sharing option in ios7 such as whatsapp ??

    How to add apps to sharing option in ios7 such as whatsapp and Instagram ?? Please help I'm using ios7.0.3

    I want to add apps to sharing option rather than going to the app itself .
    Is there away to do this ??

  • How to add a new selection criteria in a report painter

    Hi
    I would like to know how to add a selection criteria in a report painter. I believe in Gen data we can add our selection criteria but my there is no option to select  company code in that. Can anyone help me in this
    Thanks in advance
    Sankar

    hi sankar,
    When u click on the Gen. Data Selection on the right side of the screen you can see the Available Characteristics.
    On the same side u can see with the 3 colors blue, yellow and white....
    Click on the that , in that screen click on the Administrator option.
    There in that screen UNCHECK the company code.
    Click on the ACTIVATE and CLOSE it.....
    Again SAVE the table settings.... then you can find the Company code..
    Hope this will helps u out...
    Ranjit Kumar 

  • How to set the parameter selection *optional* for each subreport?

    Hi,
    I am using Crystal Reprots 11.
    I create 10 subreports, and each subreport contains a Parameters Field.
    The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
    When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values for all 10 subreports.
    For example, if I only select parameter values for subreport1 and click "OK", 9 error messages on the "Edit Values" window come out above the selection list box of every other subreports (i.e. subreport2 ~ subreport10) showing that: 'The value is not valid'.
    Sometimes, I just want to review some specific subreports but not all.
    How should I do to set the parameter selection optional (not mandatory) for each subreport?
    Thank you in adavance.
    Edited by: Holdup on Feb 17, 2012 3:44 PM

    Hi,
    Here's how you can make the prompts optional (Assuming you're using CR 2008 or higher):
    1) Go into each subreport
    2) You should see the parameter in the Field Explorer. Right-click the name and select Edit > Look for an option called 'Optional Prompt'. Set it to true
    3) If you have a record selection in the subreport, then you need to modify the selection formula to something like this:
    if not(hasvalue({?Parameter_Name})) then True else = {?Parameter_Name}
    Hope this helps!
    -Abhilash

Maybe you are looking for

  • Populating HTML Page with fields from a Report

    Greetings all, I think I have finally figured out how to format my question about customizing reports I am using the Sample Applicaiton and I created a simple report (PAGE 20) using the DEMO_CUSTOMER table. The simple report shows the CUSTOMER_ID, CU

  • Syncing question

    I have some songs on my ipod that I would like to keep on my iPod.  I'd like to add some songs to my iPod by syncing it with iTunes on my computer.  My question is, will I lose the songs that are on my iPod, if I sync it with my computer. Also, vice/

  • New FM for Old FM "Upload" . Only "Upload".

    Hi All, I am working on Upgrade Project (From 4.6B to ECC6.0). I have come across a Function Module "UPLOAD" in Old Version.Can anybody give me the name of the function module which replaces the above function Module in ECC6.0. Thanks in Advance. Wit

  • Registering Ipod With Apple

    Hi Folks, Hopefully someone can help - have just been on the support pages trying to register my Ipod (with colour display) but the form won't accept the serial number which I am definitely typing in correctly, does anyone have a contact number or em

  • Java JDK Installation Problem - Need Help!

    Below is my program Access.java which resides in c:\java. It generates a "NoSuchMethodError" when I run it on my Windows 2000 computer at work. When my friend here at work runs the SAME program on his Windows 2000 computer, it runs fine. I have No id