Restrict No: of input Search Criteria to 1 dropdown field

Dear Experts,
We have a custom BP_Search AB where we have 4 fields. We added these 4 fields in the UI Configuration.
Now on the search screen, these appear as 4 lines. However, our requirement is:
We just need to show 1 search criteria as dropdown box with the 4 available fields i.e we do not want the "Copy Line" and "Remove Line" functionality as in Standard Account Search.
Similar requirement was posted in thread :Removing + and - icons from AdvancedSearchHelp pages but the solution suggested does not serve our purpose and modification of suggested standard classes would affect searches everywhere but we want the + and - to be removed only for our custom AB.
How do we go about achieving this?
Regards
Nisha

Hi Hariharan,
Please use the Mark_tab parameter of the FM F4IF_INT_TABLE_VALUE_REQUEST as below.
data: MARK_TAB TYPE DDSHMARKS.
data: mark like line of mark_tab.
mark = '2'.
append mark to MARK_TAB.
*-- Call fucntion for search help
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = l_retfld
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = l_dynfld
MULTIPLE_CHOICE = 'X'
callback_program = sy-repid
MARK_TAB = mark_tab
TABLES
value_tab = l_i_value
field_tab = l_i_fields
return_tab = l_i_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc 0.
MESSAGE i000
WITH 'No search help found'(090) .
ENDIF.
Regards,
Amit.

Similar Messages

  • Input Search criteria gets cleared on searching in Search Region

    In a pageA I have a search region, this search region has
    2 date fields.
    I have a return link on pageA that directs to pageB. Another button on pageB directs to pageA. For every page redirection, we have retainAM='Y', due to this the search criterial in pageA still remains if we do a navigation like pageA->pageB->pageA
    to clear the search criteria for every page reload of pageA, I am setting the value of
    datefield to null in the processrequest() of pageA.
    Now the wierd thing that is happening is though the search results are appearing fine,
    the data entered in date fields is getting disappeared on doing a search.
    in processformrequest, when I do a pagecontext.getparameter(datefieldID) this returns a value but
    doing a webBean.findindexchildrecursive(dateBean).getValue returns null.
    any idea what the issue could be.
    Thanks,
    Kalyan.
    Message was edited by:
    Naga Kalyan

    Is it a query region or a custom search region? What is the code written to null the date fields?
    Is there any flow where the values are retained?
    --Shiv                                                                                                                                                                                                                                                                                                                           

  • How to display the data according to the search criteria

    Hi ,
    I want to display the order data in my application.
    I have certain search criteria in my application like
    ordernumber , date etc.
    If I click the submit button without giving any criteria , all the data is getting displayed properly in the table.
    But,If I want to display the data according to the order number, all the orders present are getting displayed , but actually it should display the order only for that particular order number.
    The code is  like : onActionSearch()
    wdThis.wdComponentController().executeGetlist_Input();
    Can any one tell me how to display the orders depending upon the search criteria.
    Ideas & suggestions are truely welcome.
    Thanks & Regards
    Neha Mahanty

    Hi Neha,
    Design ur RFC in such a way that it should display the result according to your search criteria.
    If you are making a search on "Order Number" pass some input(search criteria along with some parameter, if order number is not null then pass "X" as parameter) to RFC so that it will return the result accordingly. And same with date also.
    Thanks n Regards,
    Jhansi Miryala

  • New search criteria for old (standard) node?

    Is it possible to create script, which adds new search criteria for old (standard) node?
    CustomSearchExtensionHandler.jsx gives example of custom search criteria for custom node. But it is not clear for me, how to add new search criteria over standard XMP fields.

    Hi,
    First you create your own table (with fields like Vendor No and Name), in which you wants to store your Value range for that Vendor and fill this table with all the values for that vendor(your own set of values).
    Using this table create an Elementary search Help from SE11 and you can use that search help for the Vendor field where ever you use.
    This works fine.
    Regards,
    Anji

  • DDLB for search criteria

    Hi,
    I have added a search criterion 'IBU' for searching oppurtunities.Now when i select the search criterion IBU i want a dropdown for it to select the value of IBU.The value for search criteria appears in the field VALUE1 of context node search  which is in the component BT111S_OPPT/Search .How do i code for getting a dropdown for this?
    Thanks in advance:)
    Regards
    Shilpi

    Hi Shilpi,
    This is done in the method GET_DQUERY_VALUEHELPS (redefine) of the context node (in your case: ZL_BT111S_OPPT_SEARCH_CN00)
    METHOD get_dquery_valuehelps.
      DATA: lt_ddlb         TYPE bsp_wd_dropdown_table.
      DATA: ls_ddlb         LIKE LINE OF lt_ddlb.
      DATA: ls_string_ddlb  TYPE crms_thtmlb_search_ddlb_nvp.
      FIELD-SYMBOLS: <rs_result> LIKE LINE OF rt_result.
      CONSTANTS lc_string_empty TYPE crms_thtmlb_search_ddlb_nvp VALUE IS INITIAL.
      CALL METHOD super->get_dquery_valuehelps
        RECEIVING
          rt_result = rt_result.
      LOOP AT rt_result ASSIGNING <rs_result>.
        CASE <rs_result>-field.
          WHEN 'XXX'.
            CALL METHOD cl_crm_uiu_bp_cust_get=>get_val_for_xxx
              EXPORTING
                iv_nofilter = abap_true
              RECEIVING
                rt_value    = lt_ddlb.
            CLEAR <rs_result>-ddlb_options.
            SORT lt_ddlb BY value ASCENDING.
            APPEND lc_string_empty TO <rs_result>-ddlb_options.
            LOOP AT lt_ddlb INTO ls_ddlb.
              ls_string_ddlb-key   = ls_ddlb-key.
              ls_string_ddlb-value = ls_ddlb-value.
              APPEND ls_string_ddlb TO <rs_result>-ddlb_options .
            ENDLOOP.
        ENDCASE.
      ENDLOOP.
    ENDMETHOD.
    Important lines:
    - WHEN 'XXX'.
    => XXX is the your IBU field name
    - cl_crm_uiu_bp_cust_get=>get_val_for_xxx
    => to retrieve possible values
    Regards,
    Fabian

  • Search criteria, showing data with some restriction criteria

    Hi. How can I create restriction in browsing some page using ADF BC, for example if I create Search page I will browse some data which satisfy WHERE condition where something = search parameter.
    I tried with ...Action.java and method prepareModel(DataActionContext) to catch search criteria. My code looks like:
    public void onSearch(DataActionContext ctx) {
    HttpServletRequest request = ctx.getHttpServletRequest();
    DCBindingContainer bc = ctx.getBindingContainer();
    DCIteratorBinding deptIter = bc.findIteratorBinding("browsePersonsView1Iterator");
    String cName = request.getParameter("company_name");
    String countryName = request.getParameter("country");
    String lName = request.getParameter("lname");
    String stamp = request.getParameter("stamp");
    String orderBy = request.getParameter("orderby");
    if(cName.equals("")) cName="%";
    if(lName.equals("")) lName="%";
    if(stamp.equals("")) stamp="%";
    if(countryName.equals("Any")) countryName="%";
    deptIter.getViewObject().setWhereClause("Compname like '"+cName+"'" + " and Pp_Cname_Gbr like '"+countryName+"'" + " and lname like '" + lName + "' and id like '" + stamp +"'");
    if(!orderBy.equals("-1"))
    if(orderBy.equals("lname") || orderBy.equals("id") || orderBy.equals("compname") || orderBy.equals("compid"))
    deptIter.getViewObject().setOrderByClause(orderBy);
    deptIter.executeQuery();
    Is there a smarter way for doing this? Second thing, when I change Sync to Immediate this code gave me an error.

    You really need to read the OTN Howto/tip by Steve Muench on how to create a search page with fixed and dynamic criteria here:
    http://www.oracle.com/technology/products/jdev/howtos/10g/dynamiccrit/index.html

  • How to restrict the Search Criteria in Search Screen

    Hi Frds,
    I need to restrict the user to search with the set of value for a particular group.
    Example: group G1 link to 5 users which will be '10'  '30'   '60'   '80'  '110'.
    I am able to detect the G1 group at run time and also get all users link into it. but i dont know how can i make a setup so that resultant show only those order created by these user only.
    Thanks
    Imran .  

    Thanks Smod,
    I think u dont understand my ques.
    Anyways some how i achieve my req.
    Below are the steps i used.
    Loop at lt_name. 
    lv_index = 8.
    lr_query_service->insert_selection_param( iv_index = lv_index
    iv_attr_name = 'CREATED_BY'
    iv_sign = 'I'
    iv_option = 'EQ'
    iv_low = Lt_UNAME
    iv_high = Lt_UNAME ).
    lv_index = lv_index + 1.
    endloop.

  • Filter results for New Search Criteria of Advanced Search

    Hi,
    I'm new to oaf.
    I have added extended VO item to seeded advanced search region as new search criteria by personalization.
    When i try to search for new criteria the results are not filtering and my extended CO logic as follows:
    IN PFR:
    if(oapagecontext.getParameter(oaquerybean.getGoButtonName()) != null || oapagecontext.getParameter(oaquerybean.getPersonalizeGoButtonName()) != null)
    OAAdvancedSearchBean oaadvancedsearchbean = (OAAdvancedSearchBean)oawebbean.findChildRecursive("assetAdvSearch");
    boolean flag = true;
    if(oaadvancedsearchbean != null)
    int i = oaadvancedsearchbean.getDisplayedCriteriaCount();
    String s4 = oapagecontext.getParameter("advancedSearchRadioGroup");
    for(int j = 0; j < i; j++)
    String s6 = (new StringBuilder()).append("Value_").append(Integer.toString(j)).toString();
    String s7 = (new StringBuilder()).append("Condition_").append(Integer.toString(j)).toString();
    String s8 = oaadvancedsearchbean.getOriginalUINodeName(s6);
    if(s8.equals("XXAssocMsgInput"))
    String xx=oapagecontext.getParameter(s6);
    oapagecontext.writeDiagnostics(this, "criteria value: "+xx, 105);
    if (xx !=null) {                                 
    StringBuffer stringbuffer = new StringBuffer(100);
    // Setting whereClause at Runtime to restrict the query
    OAApplicationModule rootam = oapagecontext.getApplicationModule(oawebbean);
    OAApplicationModule childAM = (OAApplicationModule)rootam.findApplicationModule("XXAdvSearchAM");
    OAViewObject vvo1 = (OAViewObject)childAM.findViewObject("XXAdvSearchVO1");
    Serializable[] parameters = {xx};
    childAM.invokeMethod("getAssociateWith", parameters);
    In AMImpl:
    public void getAssociateWith(String xx)
    OAViewObject vo = (OAViewObject)getXXAdvSearchVO1();
    Vector parameters = new Vector(2);
    StringBuffer whereClause = new StringBuffer(100);
    int clauseCount = 0;
    int bindCount = 0;
    vo.setWhereClauseParams(null); // Always reset
    if ((xx!=null) && (!("".equals(xx.trim()))))
    whereClause.append(" ASSOCIATE_WITH LIKE :");
    whereClause.append(++bindCount);
    parameters.addElement(xx);
    clauseCount++;
    vo.setWhereClause(whereClause.toString());
    writeDiagnostics(this,"In AMIMPL whereclause:"+whereClause.toString(),119);
    if (bindCount >0)
    Object[] params=new Object[bindCount];
    parameters.copyInto(params);
    vo.setWhereClauseParams(params);
    writeDiagnostics(this,"In AMIMPL XXAdvSearchVO:"+vo.getQuery(),120);
    writeDiagnostics(this,"In AMIMPL VO Cnt:"+vo.getRowCount(),121);
    vo.executeQuery();
    writeDiagnostics(this,"After query = " + vo.getQuery(),123);
    In diagnostics, parameter is not getting assigned with the value ..
    Can you anyone suggest the inputs?
    Thanks,
    mallik
    Edited by: 758972 on Jul 29, 2012 1:09 PM

    Mallik,
    Is it the same requirement which we were discussing in another thread, to add search criteria in advance serch bean through personalization.
    If yes, let me try at my end and will let you know..
    --Parag Narkhede                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • New custom field in the POWL search criteria

    Hi experts,
    My requirement is to add a new custom field in the search criteria (Parameters)
    In my Easy shopping card POWL. I need to add custom fields in search criteria.
    I tried appending my custom fields in structure /SAPSRM/S_SEARCHFIELDS
    And customized the POWL type DB criteria SAPSRM_FEEDER_SC by adding the custom field
    But still the newly added search criteria is not displaying in the
    Query   SAPSRM_E_CHECKSTATUS_01 in powl_query transaction.
    Kindly help me to solve this issue
    Regards
    Chinnaiya P

    Hello Konstantin,
    thanks for the reply...
    I tried to add an extra Field(Company code) in POWL Search. the problem is the Field Company code doesnt get updated in BBP_PDHSC and BBP_PDISC with the value used in while creating SC.
    I only get the Company code value in table BBP_PDBEI for SC.
    So when i give any value in POWL search for company code no data is shown even though the SC was created in the inputted Company code.
    so how to go about adding CC as search criteria in POWL so that the resultant output is filtered on the basis of CC value.
    Thanks
    Rajat

  • Search Criteria: how to filter dropdown lists?

    Hello Experts!
    In my 'Search Criteria' page of Complaints I have some fields such as Transaction ID, Transaction Type, Created By, Partner Function, etc. 'Partner Function' is bringing ALL partner functions of the system in the dropdown list. I need to restrict/filter this dropdown list in order to bring ONLY the values that I need.
    The same thing happens, for example, the field 'Status'. It brings all statuses of the system, but I just need it to bring the statuses of my Status Profile.
    This happens for all dropdown lists in all search pages.
    How can I filter these dropdown lists?
    Thanks a lot,
    Luis.

    Hi Luis,
    Redefine method GET_DEQUERY_DEFINITIONS and use the following piece of code:
    FIELD-SYMBOLS: <rt_result> TYPE crms_thtmlb_search_field_info.
    CALL METHOD super->get_dquery_definitions
        RECEIVING
          rt_result = rt_result.
    READ TABLE rt_result WITH KEY field = 'STATUS' ASSIGNING <rt_result>.
    <rt_result>-ddlb_options will contain all the values for status you see in the dropdown list. Modify this list as per your requirement and hence modify the main Internal table - RT_RESULT from <rt_result> for field status.
    I hope this helps.
    Thanks
    Vishal
    Edited by: Vishal Kesar on Nov 24, 2010 12:35 AM

  • Regarding date ranges in search criteria in oracle forms

    I am using employee number,name, person type, and date ranges as search criteria in custom form.
    when I enter employee number, hit the find button, I am getting the exact info in the result block.
    Result block contains
    employee name,personid,emp numb,org,start_date.
    Similarly when I enter employee number,dept, I am getting correct values.
    My question here is, when I enter date range. Iam unable to filter data.
    When i enter START_DATE between nvl(:BLOCKNAME.START_DATE,'01-JAN-1901') and nvl(:BLOCKNAME.END_DATE,'31-DEC-4712') at where clause in the result block. I got data for the date range also.
    if I give condition in the where clause, results are taking so much time when i search with employee name,number,dept,person type.
    If i query with date, persormance is good.
    Do u any know,how to prevent START_DATE between nvl(:BLOCKNAME.START_DATE,'01-JAN-1901') and nvl(:BLOCKNAME.END_DATE,'31-DEC-4712') when we search with employee name,number,dept,person type.

    Initailly Ididnt given any code in the where clause of the result block. I got data in the result block when i search with employee name,number,person type,dept etc except date range.
    If i give date range, irrespective of the date, getting all the data.
    after that i added code to the where clause of the result block. Now i am getting data for everything.
    like, when i query with employee name,number,even date range also.
    My question here, performance.
    when I query with date range, data is coming in expected time in the result block.
    when i query with dept, taking much time since date range logic exist in the where clause of the result block.
    I need to restrict the where clause only to the data ranges. Where clause should not necessary for employee number,name,person type dept search criteria
    Tahnks for your reply

  • Search Criteria not working in POWL

    Hello Experts,
    I have added the new fields in POWL Search Criteria using the Add custom field to SC and POWL.
    but after adding the fields when i try to search using the input made by the user the resultant output is always blank and also there is no data being displayed in the newly added columns.
    Please help me so that the correct output gets generated after the user input and the newly added columns are not empty.
    thanks.

    Hello Konstantin,
    thanks for the reply...
    I tried to add an extra Field(Company code) in POWL Search. the problem is the Field Company code doesnt get updated in BBP_PDHSC and BBP_PDISC with the value used in while creating SC.
    I only get the Company code value in table BBP_PDBEI for SC.
    So when i give any value in POWL search for company code no data is shown even though the SC was created in the inputted Company code.
    so how to go about adding CC as search criteria in POWL so that the resultant output is filtered on the basis of CC value.
    Thanks
    Rajat

  • BSP with F4 for employee search criteria ?.

    Dear All,
    I am new to BSP need your feedback for below requirments.
    (1). I need to create a BSP page with input button to fill employee number - already done.
    (2). Employee input button needs a F4 help that will pop-up new page to search employee ?.
    (3). The pop-up page should be able to search using "search criteria for employee" ex: lastname, firstname, username. The result list that is shown, when double clicked should select the employee name into the input field in (1) ?.
    Could you please give steps,samples  for 2 and 3 ?.
    Regards,
    Neeth

    HI,
    I implemented this same same code,but in popup i am displaying the data in table view.Everythign is working fine,but in table view I made VISIBLE ROWCOUNT = 25, When I click on next page I am not able to see the next rows.
    Is there anything i need to implement.I am using the tabel view for first time.
    thank you
    ven

  • Adding a new search criteria in Web UI for Sales Order

    Hi,
    We have a requirement for Web UI as follows :
    We want to add the ID number (identification number in BP ) as search criteria for Sales Order simialr to search criteria available in Accounts with ID number .
    Can any one please give some inputs on this ?
    Regards
    Vinayak

    Hi Vinayak,
    I will try to give you some technical advise.
    What you would need to do is:
    In transaction SM30 open up view: CRMV_OBJ_BTIL
    There is an entry for External Object Name "BTQAct"
    The currently used DDIC structure is CRMST_QUERY_ACT_BTIL
    You will need to adjust this structure to bring completely new parameters to the UI. This means put in your own.
    As you can see in detail for this entry there are three fields with name "Structure" the last one is for the GenIL handler class. Currently it should be empty (there is some fancy SAP logic to determine it automatically). You can override it with your own handler class implementing the logic. As a hint: The implementation class currently used is: CL_CRM_QACT_RUN_BTIL
    Anyhow most 1Order searches are handled by the class CL_CRM_Q1O_SEARCH perhaps you can use it as well. Additionally it would be a good idea to provide your users with a value help.
    Oh and there is a customizing that lets you define which options (IS, BETWEEN, IS NOT, ...) should be available for the user. Please do not try to do this hardcoded
    cheers Carsten

  • Spotlight Search Criteria not displaying

    The usual Search Criteria options (the drop-down selection boxes for 'kind' and 'date) that usually appear below the search target bar when you click the plus-sign have disappeared. The space for the options drops down but inputs don't appear.
    I have repaired the permissions and re index the hard-disk within spotlight, but no change. Any ideas?

    This might help: Move this file to the Desktop and restart or log out and back in again. It's in your Home Folder Library. The system will create a new one automatically. The old one may be corrupt.
    /Users/yourusername/Library/Preferences/com.apple.spotlight.plist
    It may be necessary to restore your Spotlight settings in Sys Prefs after. Also, this might be a symptom of not enough free space on the drive. Do a getinfo (CMD-I) on the Macintosh HD folder. You should keep around 15%-20% free.

Maybe you are looking for

  • How to connect Macbook Air to OLD tv (w/o HDMI)?

    Hi, I have a macbook air 11"  LATE 2010. I want to connect my Macbook Air to OLD TV, via VGA cable. It's its old tv, but it has a big screen, anyways, it does NOT have HDMI. I can't find the right cables I need. I tried amazon, but it gave me the wro

  • This is in the category of "dumb" questions. I am adding a new iMac running

         This is in the category of "dumb" questions. To my home office that includes a 2003 power pc G5 running system 10.4.11, I am adding a new iMac running Lion. Question - can you share files back and forth (e.g., a Word file, camera images) by simp

  • Distribution Point migration status in CM12 console

    Hi, We are using sccm 2012 r2 cu2. we are in middle of migration. We have in sccm 2007 under secondary site server name assd1 it contain MP and DP role. Under ASSd1 server i was created one of the distribution point server and copied all the package

  • SQL*PLUS and PL/SQL

    HI ! There is any way to run a command SQL*PLUS through a block pl/sql. For example to run the "copy from" command in a block pl/sql. Thanks for you time.

  • Lost incoming emails?

    I have recently added a second email account (gmail) to my mail box as I have been having major problems with orange ( who have admitted that they have a problem currently sending emails) ; since then, "mail activity" shows incoming email which does