Restricting dropdown values corresponding to a search criterion

Hi,
I want to restrict the dropdown values for search criterion 'Status' in the search opportunity view.This has to be restricted to the search popup we get when we select 'Add Opportunity' in the sub-opportunity assignment block.The restricted dropdown values of the popup should not get reflected else where .
I want only 3 values in the dropdown corresponding to the 'Status' search criterion.
How should i go about?
Thanks and Regards
Shilpi

Hi Shilpi,
   On the pop-up view in the method DO_INIT_CONTEXT, you must be populating the values in the context node used for your drop-down list. So while setting the values to the context node used for displaying the values for the drop-down box, you can alter the internal table values.
for example something like this,
MY_DROPDOWN is my context node on the popup view.
LT_VALUES has teh values that i wish to display in the drop-down list
so in the DO_INIT_CONTEXT method of the popup view,
ME->TYPE_CONTEXT->MY_DROPDOWN->SET_VALUE_TABLE( LT_VALUES ).
The SET_VALUE_TABLE method called with reference to the context node will set the values in the internal table passed to the drop-down list.
hope this helps you to resolve your problem
Regards
Ashwinee

Similar Messages

  • How can I restrict the values obtained in a search help?

    Hi guys,
    The thing is that there is a function module that according to the user name, and a material number, it tells wheter the user has permission to see the material or not.
    It is possible to use that function module to restrict the values of the search help?
    Thanks

    Hello Raulie,
    1. If the function module is not much complex then copy the same Functionmodule into your custom name ,...
    Then you would have the control at your end,,,,
    2. If the funciton module is very complex then fetch the data manually and create a custom f4 help ... to fetch the data use the similar logic of the function module so that data does not get deleted.
    Thanks,
    M.Naveen Kumar

  • Default selection of dropdown value help in bp search for custom field

    Hi guys,
    i've problem setting a default selection of the value help. I appended a structure containing a field of type CRMT_BOOLEAN to the crmt_bupa_il_header_search and show it at the bp search page.
    The default order of the value help is
    [ ] false
    [x] true
    which means that the first entry (false) is selected by default. I want the second entry to become the default entry. I tried to sort the ddlb_table of this field in the get_v_xxx but this didn't had any effect to the value help.
    DATA:  lt_ddlb TYPE  bsp_wd_dropdown_table,
    lr_ddlb TYPE REF TO cl_crm_uiu_ddlb.
    lt_ddlb = cl_crm_uiu_bt_tools=>get_strcmp_ddlb(
    iv_structure = [structure]
    iv_component = [my_zfield])
    IF NOT lr_ddlb IS BOUND.
    CREATE OBJECT lr_ddlb
    TYPE
    cl_crm_uiu_ddlb
    EXPORTING
    iv_source_type = 'T'.
    ENDIF.
    SORT lt_ddlb DESCENDING BY key.
    lr_ddlb->set_selection_table( it_selection_table = lt_ddlb ).
    rv_valuehelp_descriptor = lr_ddlb.
    Is this approach not working at all? After sorting lt_bblb contains the values in correct sequence, the webui is showing the value help as before.
    Is it possible to set a selected value in any way?
    Thanks and BR,
    Sven

    Hi Sven Wagener,
    what i understand is you want to set the default entry is second value right?
    if this is your requirement then go for this procedure.
    In redefine do_init_context method and fetch the collection in that collection get your field name and value.
    make a condition like this if the value = 'first value of your drop down' then set to second value.
    this method will execute only in the initial stage means when ever you login into your business role this method will execute.
    example:
    lr_col ?= me->typed_context->yournode->collection_wrapper->get_current( ).
    check lr_col is bound.
    lr_col->get_property_as_string( EXPORTING iv_attr_name = 'DROPDONWFIELD' RECEIVING rv_result = lv_dropdownfield ).
    if lv_dropdownfield EQ 'FIRSTFIELDKEY'.
    lv_dropdownfield = 'SECONDFIELDKEY'.
    lr_col->set_property( EXPORTING iv_attr_name = 'DROPDONWFIELD' iv_value = lv_dropdownfield ).
    IF this is not your requirement then give me some screen shorts.
    Thanks & Regards,
    Srinivas.

  • How to restrict the dropdown values in Att/abs type in Record Working Time

    Hello experts,
    We are implementing ESS business package.  In the Record Working time, within the Weekly View and Daily View tabs, there is a column Att/abs.type which has several drop down values - like:  floating value, Funeral Leave, Military Reserve, Regular Attendance, etc.   Our requirement is to restrict the dropdown values  by means of showing only one of these values (say:  Regular Attendance) and others should not be shown.   How do we achieve this?
    Thanks
    Vicky R.

    Hi Siddarth,
    Thanks for the info.  By the way, this table info is not mentioned in the Business Package documentation.  Which documentation are you referring to?
    Thanks
    Vicky R.

  • Restrict the values on variables screen

    I've a variable on report screen which I want to restrict the values getting from master data. Variable is a authorization variable type. So I can't set default values. I need to restrict the values for example "00D*".
    At result user should see the master data list values which starts with "00D".
    Cheers,
    Yigit

    SELECT_OPTIONS_RESTRICT is not intended for this, only to restrect the kind of sign and options which are allowed in the select-options, you can restrict to single values, range or disable exclusion, this kind of restriction.
    For your requirement, you have to restrict the dropdown values using FM VRM_SET_VALUES. (use the search tools in [forums|http://forums.sdn.sap.com/search.jspa?objID=c42&q=VRM_SET_VALUES] and [wiki|http://wiki.sdn.sap.com/wiki/dosearchsite.action?searchQuery.queryString=VRM_SET_VALUES&searchQuery.spaceKey=conf_global])
    Regards,
    Raymond

  • Restrict Certain Values seen in Portal

    Hi all,
    We have MDM/Portal  integreation where i want to Resrtict certain Values which is seen Portal I-Views
    Suppose I have some values like in my MDM lookup Table
    Name    Number
    a           1
    b           3
    c           4
    I don't want allow b and 3 to seen in Portal.How can I acheive in MDM.
    Thanks,
    Madhu

    Hi,
    As per your requirement, It seems like Masks and Named Searches would not help in this case.
    Since Mask and Named searches work for Table of TYPE MAIN only. You don't have this option when you select any other table rather than Main table in record mode of MDM Data Manager.
    I mean to say, In Data Manager Record mode when you select Main table as your current table, if you not select Name(B) and Number(3) from Drill down search for that look-up tables then correspondingly all main table records associated with this look-up field value too would not display for the user who is assigned to this mask or Named search.
    So, I feel you want to display all the records in Portal ( you have there i-view of Record details and detail view) but for look-up field only (legal value of entries) you want to restrict the values from main table .
    So, only using look-up table constraints option you can achieve when you unload your repository ->go to Roles--> Tables and Fields-> constraints , assign that role to user for who you want to restrict the limited no. of look-up values. Here corresponding to your look-up table under constraint column you need to add only those values for that look-up table using Available to selected values(Don't add here b).
    Note: Constraints enabled when a field from main table is look up to Single-valued look-up sub-table( say Flat table, Hierarchy table, Taxonomy table) but not multivalued look-up table(e.g. Qualified Flat etc). Further if you select Flat table as also Multi-valued then constraint would not work.
    Thanks and Regards,
    Mandeep Saini

  • Store dropdown value in a variable in WAD

    Hi,
    I would like to pass the values from dropdown box to variable in my IP application. These variables are used to restrict the char values in filters of my application. When I change the dropdown box, my variable value should automatically change. My dropdown box uses the Char/struc member (Characteristic_selection) as data binding because I am doing the cascading dropdown boxes for my selection. I can not use variable as data binding for my dropdown box and I know this will work if I use the variable selection as data binding for drop down box.
    Now, the dropdown value is never stored in the variable, I don't know what I'm doing wrong.
    So, I need to know:
    - Variable settings
    - Dropdown settings
    - Dataprovider sttings
    I am using WAD 7.0
    Thanks!

    Hi Sebastian,
    Ok if I understand right, you have 2 DropDown webitems - on selection of one you would want the 2nd to filter which is cascaded action on DropDowns; and on selection of each DropDown you would want to pass the selections to the main query variables. Check if the below settings work;
    DropDown 1 -> DP1 (perhaps on a master IO), Characteristic -> say C1, Affected Data Providers -> DP2 (DP of DropDown 2), Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C1, Binding Type -> Variable, choose corr. query Variable
    DropDown 2 -> DP2 (perhaps on a master IO), Characteristic -> say C2, Affected Data Providers -> None, Action -> Command via Command Wizard -> Execution Point of Time -> After Default Action, Command -> SET_SELECTION_STATE_BY_BINDING (under Data Provider Commands -> Commands for Filter Values), Data Provider Affected -> main query DP assigned to the Analysis webitem, Selection Binding -> Characteristic -> C2, Binding Type -> Variable, choose corr. query Variable
    --Priya

  • How to restrict the values in seach helps

    Dear All,
                   I am new to the BSP concept.I have a requirement
    where in the BSP i need to restrict the values of the search help.i.e. 2 values are coming in the help i need to display only 1 value.
    can anybody please explain how to do it.
    Cheers,
    Deepthee Kasal
    Edited by: Craig Cmehil on Sep 2, 2008 8:21 AM

    Hi,
    I assume that you read values for the search help with function 'F4IF_FIELD_VALUE_REQUEST' and in a later step you display values with <htmlb:tableview>. If that is true and the function is delivering too many records as you mention, you could then restrict the output table of values like this:
    TABLES mara.
    DATA: mytable TYPE TABLE OF ddshretval WITH HEADER LINE.
    DATA l_repid TYPE syrepid.
    PARAMETERS p_mtart LIKE mara-mtart.
    AT SELECTION-SCREEN ON VALUE-REQUEST
    FOR p_mtart.
    l_repid = sy-repid.
    CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
    EXPORTING
    tabname = 'MARA'
    fieldname = 'MTART'
    dynpprog = l_repid
    callback_program = l_repid
    callback_form = 'F4CALLBACK'
    TABLES
    return_tab = mytable
    EXCEPTIONS
    field_not_found = 1
    no_help_for_field = 2
    inconsistent_help = 3
    no_values_found = 4
    OTHERS = 5.
    START-OF-SELECTION.
    blah, blah, blah
    * Form F4_form
    * Exclude all material types that start with F & H
    FORM f4callback
    TABLES record_tab STRUCTURE seahlpres
    CHANGING shlp TYPE shlp_descr
    callcontrol LIKE ddshf4ctrl.
    DATA: aux_struc TYPE ddshselopt.
    MOVE: 'H_T134' to aux_struc-shlpname,
    'MTART' TO aux_struc-shlpfield,
    'E' TO aux_struc-sign,
    'CP' TO aux_struc-option,
    'F*' TO aux_struc-low.
    append aux_struc to SHLP-SELOPT.
    MOVE: 'H_T134' to aux_struc-shlpname,
    'MTART' TO aux_struc-shlpfield,
    'E' TO aux_struc-sign,
    'CP' TO aux_struc-option,
    'H*' TO aux_struc-low.
    append aux_struc to SHLP-SELOPT.
    ENDFORM. "F4_form
    Mark points if helpful

  • How to restrict Option values for a particular metadata in profile checkin

    How to restrict Option values (drop down) for a particular metadata in profile checkin-
    Metadata field Color is having options dropdown values (stored in table/views)-
    Display name - Blue, Value=1
    Display name - Red, Value=2
    Display name - Yellow, Value=3
    Display name - Green, Value=4
    Display name - Black, Value=5
    For a particular profile checkin form, for the metadata field Color I want the dropdown value consist of only top three options
    Display name - Blue, Value=1
    Display name - Red, Value=2
    Display name - Yellow, Value=3
    But this should be done on profile level only, should not impact the standrad checkin form and other profile checkin forms.
    Please help me if any one having any suggestion to implement the above secnario
    Thanks,
    Sumit

    Hi,
    Into the rule containing the Color metadata, you can restrict the values of the list.
    In "Has restricted list and pane", list the values 1, 2 and 3 (new line for each value) :
    1
    2
    3
    Romain.

  • Mapping dropdown values in obj form to a group

    Hi,
    I have a requirement as stated:
    I have a dropdown field in my Resc Form having twenty or more values.Now for each dropdown value selected ,a corresponding subgroup should be selected and it should be reflected in approval workflow.
    For example:
    X application has three dropdown values a,b,c.
    And there is a X group having three subgroups x1,x2,x3.
    Now for dropdown value 'a',it should be mapped to subgroup x1(this subgroup includes ids of people who can approve and to whom mails are sent)
    How this can be achieved?Plz rep in detail as i am a newbie in field of OIM.
    Thanks in advance.
    Regards
    Sitesh

    You can make a Task Assignment Adapter whih will read that data from Object Form and assign it to that group.
    findGroups - Error while getting group list for login user

  • CAML Query to get specific item in folder based on dropdown value using Javascript client object model

    Hi,
    I am using the Javascript Client object model.
    I have a custom list and a custom document library.
    Custom list contains 2 columns - dlName , dlValue
    The document library contains 2 folders - "folder1" ,  "folder2" and contains some images.
    The image name starts with the "dlValue" available in the custom list
    I am using a visual webpart and using javascript client object model.
    I am trying to achieve the below functionality:
    1) Load a dropdown with the custom list.
    2) set the image based on the value in dropdown.
    I have achieved the first option, I have set the dropdown, but not sure how to query the folder and set the image.
    Below is the code i have used so far:
    //In Visual webpart
    <select id="ddlTest" >
    </select>
    <br/>
    <div id="PreviewLayer">
    <img id="imgPlaceHolder" runat="server" alt="Image" title="imgPlaceHolder" src=" " />
    </div>
    // In Javascript file
    function RenderHtmlOnSuccess() {
    var ddlTest = this.document.getElementById("ddlTest");
    ddlTest.options.length = 0;
    var enumerator = this.customListItems.getEnumerator();
    while (enumerator.moveNext()) {
    var currentItem = enumerator.get_current();
    var dropdownValue = currentItem.get_item("dlValue");
    ddlTest.options[ddlTest.options.length] = new Option(currentItem.get_item("dlName"), dropdownValue);
    setImage(dropdownValue); // Not sure how to query the folder and set the image based on value.
    // Also if dropdown value is changed, corresponding image should be shown
    How to query the folder and based on dropdown value, show the image? Also, how to handle the dropdown value change?
    Thanks

    Hi,
    Here are two links for your reference:
    Example of how to Get Files from a Folder using Ecmascript \ Javascript client object model in SharePoint 2010
    http://sharepointmantra.wordpress.com/2013/10/19/example-of-how-to-get-files-from-a-folder-using-ecmascript-javascript-client-object-model-in-sharepoint-2010/
    SP2010 JSOM Client Object Model: How to get all documents in libraries including all folders recursively
    http://sharepoint.stackexchange.com/questions/70185/sp2010-jsom-client-object-model-how-to-get-all-documents-in-libraries-including
    In SharePoint 2013, we can also use REST API to achieve it.
    http://msdn.microsoft.com/en-us/magazine/dn198245.aspx
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Dennis Guo
    TechNet Community Support

  • Duplicate Value Restriction in Value Mapping Replication

    Hello Everyone,
    I was working on Value mapping replication interface which was working fine. But the value mapping replication was allowing duplicate values which are already existing. We are using this value mapping in other interfaces. But because of multiple entries exists for the same values the value mapping was giving blank value as a response. It was not giving any value even though the values are exists in value mapping table. can any one let me know how to restrict duplicate entries in value mapping replication.
    Regards,
    Raju

    Hi Arun,
    could you provide the whole command sentence for the JS to set the filter value? I am not sure what value to specify for 'All'. It is actually 'no filtering', I understand. But what is this value to set for 'no filtering'? Must I use both dropdown.value and dropdown.text or could I just use dropdown.value?
    So, I cannot disable 'All' as I need to use it specifically as 'filter' value.
    Pls advise.
    Message was edited by: alfonso

  • Restricting the values in Drop Down list for ESS application

    Hello Experts,
    We are trying to restrict the values in the drop down list box for payment method field for direct deposit iview.
    Here Payment is the Zlsch field.
    here we are trying to have only 3 vlaues in the drop down. Do I have to do it from java code or can this be restricted on the ECC side?
    Plese let me know.
    Thanks,
    James.

    James,
    What you have to do is create a DropDown ByIndex element instead of by Key and create a context node PaymentMethodNode and a value attribute PaymentAttribute under it ....then write the following code in the wdDoInit() method as :
    //Add whatever values you want in the DropDown
    String[] priority_options= new String[]{"Payroll/Corp/Partner Check","Employee Payroll ACH(PPD)"};
              List ListOfPriorities = new ArrayList();
              for(int i=0;i<priority_options.length;i++)
                   IPrivateDetailView.IPayment_MethodNodeElement pr= wdContext.createPayment_MethodNodeElement();
                   pr.setPaymentAttribute(priority_options<i>);
                   ListOfPriorities.add(pr);
              wdContext.nodePayment_MethodNode().bind(ListOfPriorities);
              for(int e=0;e<wdContext.nodePayment_MethodNode().size();++e)
                   wdContext.nodePayment_MethodNode().setSelected(e,e>=0 && e<=1);
    and then write the following code in wdDoModifyView() method:
    IWDDropDownByIndex di =(IWDDropDownByIndex)view.getElement("DropDownByIndex");
             di.bindTexts("Payment_MethodNode.PaymentAttribute");
    then create an Action and bind it to the onselect property of the DropDown and write the following code in the onAction method :
    if(wdContext.currentPayment_MethodNodeElement().getPaymentAttribute().equalsIgnoreCase("Payroll/Corp/Partner Check"))
        wdContext.currentSelectedInfotypeElement().setZlsch("C");
        else
         wdContext.currentSelectedInfotypeElement().setZlsch("P");
    I am sure it will work..

  • Is it possible to test the dropdown values?

    Here we are trying to test dropdown value using Adobe browser lab for firebug.
    We are testing Registration form which has many dropdown fields.
    But using Adobe browser lab for firebug not able to get the dropdown values.
    Thanks
    Jenny

    hi Mark,
    1.for dropdown fields kindly follow below steps :
        1. open url http://uat.univadis.com/ click on Unites Kingdom (last country)
        2. at the top right corner enter following credentials : username:[email protected] and password : test1234
         3. it will navigate to home page automatically after successfull login.
         4. click on Search Tab on the tab. on Search Page u will find field name "Show results in order of source".
         5 . select any drop down value and try to capture the same drop down value using adobe browser lab.
    I have tried above steps but selected drop down values are NOT shown in adobe browser lab. it is showing default drop down values. please let me know ur findings.
    2. And also i am not able to get a preview of screenshots after testing the screens. Plz let me know, how to get the preview of screenshots.(Where the screenshots will be saved?)
    Thanks,
    Jenny

  • How to Restrict F4 values for Std Field

    Hi ,
    I need to restrict the F4 values of a standard field from a standard t-code.
    Example:
           In standard t-code : XD01 .
           If i press F4 on company code field , i shows all the company codes exists from table , like : 1000 , 2000 , 3000 ...etc..,
          But, My requirement is : I want the restrict the values .     
          Say , I need to show only 1000 & 3000 company codes when he press F4 on company code field on XD01 or XK01 ,
         where  ever the Comapny Code field (BUKRS) is used.
         Answers will be rewarded

    Hi Lakshman,
    Me to aware of search help exit...
    If i do for search help level , it affects only 1 field of 1 transaction.
    Say Example: If i have search help exit for BUKRS field in XD01 t-code , it will not affect in t-code XK01 , since Xk01 BUKRS
    field uses some other Search help...
    I need to know , if we set once for BUKRS field .. will it affect on all T-Codes..
    Is there any way to do it
    Edited by: Surendar on May 6, 2010 2:38 PM

Maybe you are looking for