QUERY ON PRODUCT SEARCH

Hi All,
   i  implemented the Product search based on the Plant by modifying the std search help attached to the std shlp BBPH_PRODUCT_GENERAL.
  Now my prob is that in one of the selection parameter field "PRODUCT_TYPE",whatever  value i enter at runtime,the std  structure for seloptions (SELOPT) doesnt take the value or this field.For all other fields ,the values are being taken.I tried changing the propertieds for this field acc to other fields but that doesnt help.
  Can anyone throw  some light on this???
regards,
Disha.

Ram,
DATA : Begin of i_VBPA occurs 0,
             VBELN like VBPA-VBELN,
              PARVW like VBPA-PARVW,
           END OF i_VBPA.
This is for single search parameter...
Select  vbeln parvw into table i_vbpa from VBPA  Where PARVW eq  = 'Z8'.
This is for all search parameters
Select  vbeln parvw into table i_vbpa from VBPA
  Where PARVW  in ('ER','ZL','ER').
SORT i_VBPA by VBELN PARVW.
Pls. reward if useful

Similar Messages

  • "MAXIMUM NO OF HITS" field in selection screen for Product Search

    Hi all,
       We are  running on SRM 4.0.I have a query regarding the Selection screen which appears for the Product Search when we click on the "inetrnal Goods/Servcies" link...
        I have developed a Z-serch help for the Product search wherein i have control of  all the other fields lik "Product ID"," Product description " etc..But not "Maximum no of hits" (since it is  a part of the std functionality)...In the selection sceen field " Maximum  no of hits" ,whatever value i enter  that value is not considered...So is there any way that this field is not diplayed on screen/can be disabled(made an O/p field)...
      All suggestions are  welcome....Please  help...
    Thanks & Regards,
    Disha.

    Well,
    You're talking about COLLECTIVE search help. You won't definie Max No of hit at this level.
    Define an elementary search help and assign to this one a dialog mode (retriction or set of values).
    Regards,
    Bertrand
    PS : Don't forget reward points

  • Product Search Using Oracle Text or By Any Other Methods using PL/SQL

    Hi All,
    I have requirement for product search using the product table which has around 5 million products. I Need to show top 100 disitnct products searched  in the following order
    1. = ProductDescription
    2. ProductDescription_%
    3. %_ProductDescription_%
    4. %_ProductDescription
    5. ProductDescription%
    6. %ProductDescription
    Where '_' is space.  If first two/three/or any criteria itslef gives me 100 records then i need not search for another patterns
    Table Structure Is as follows
    Create Table Tbl_Product_Lookup
        Barcode_number                Varchar2(9),
        Product_Description Varchar2(200),
        Product_Start_Date Date,
        Product_End_Date Date,
        Product_Price Number(12,4)
    Could you please help me implementing this one ? SLA for the search result is 2 seconds
    Thanks,
    Varun

    You could use an Oracle Text context index with a wordlist to speed up substring searches and return all rows that match any of your criteria, combined with a case statement to provide a ranking that can be ordered by within an inner query, then use rownum to limit the rows in an outer query.  You could also use the first_rows(n) hint to speed up the return of limited rows.  Please see the demonstration below.  If you decide to use Oracle Text, you may want to ask further questions in the Oracle Text sub-forum on this forum or space or whatever they call it now.
    SCOTT@orcl_11gR2> -- table:
    SCOTT@orcl_11gR2> Create Table Tbl_Product_Lookup
      2    (
      3       Barcode_number       Varchar2(9),
      4       Product_Description  Varchar2(200),
      5       Product_Start_Date   Date,
      6       Product_End_Date     Date,
      7       Product_Price          Number(12,4)
      8    )
      9  /
    Table created.
    SCOTT@orcl_11gR2> -- sample data:
    SCOTT@orcl_11gR2> insert all
      2  into tbl_product_lookup (product_description) values ('test product')
      3  into tbl_product_lookup (product_description) values ('test product and more')
      4  into tbl_product_lookup (product_description) values ('another test product and more')
      5  into tbl_product_lookup (product_description) values ('another test product')
      6  into tbl_product_lookup (product_description) values ('test products')
      7  into tbl_product_lookup (product_description) values ('selftest product')
      8  select * from dual
      9  /
    6 rows created.
    SCOTT@orcl_11gR2> insert into tbl_product_lookup (product_description) select object_name from all_objects
      2  /
    75046 rows created.
    SCOTT@orcl_11gR2> -- wordlist:
    SCOTT@orcl_11gR2> begin
      2    ctx_ddl.create_preference('mywordlist', 'BASIC_WORDLIST');
      3    ctx_ddl.set_attribute('mywordlist','PREFIX_INDEX','TRUE');
      4    ctx_ddl.set_attribute('mywordlist','PREFIX_MIN_LENGTH', '3');
      5    ctx_ddl.set_attribute('mywordlist','PREFIX_MAX_LENGTH', '4');
      6    ctx_ddl.set_attribute('mywordlist','SUBSTRING_INDEX', 'YES');
      7    ctx_ddl.set_attribute('mywordlist', 'wildcard_maxterms', 0) ;
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> -- context index that uses wordlist:
    SCOTT@orcl_11gR2> create index prod_desc_text_idx
      2  on tbl_product_lookup (product_description)
      3  indextype is ctxsys.context
      4  parameters ('wordlist mywordlist')
      5  /
    Index created.
    SCOTT@orcl_11gR2> -- gather statistics:
    SCOTT@orcl_11gR2> exec dbms_stats.gather_table_stats (user, 'TBL_PRODUCT_LOOKUP')
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> -- query:
    SCOTT@orcl_11gR2> variable productdescription varchar2(100)
    SCOTT@orcl_11gR2> exec :productdescription := 'test product'
    PL/SQL procedure successfully completed.
    SCOTT@orcl_11gR2> column product_description format a45
    SCOTT@orcl_11gR2> set autotrace on explain
    SCOTT@orcl_11gR2> set timing on
    SCOTT@orcl_11gR2> select /*+ FIRST_ROWS(100) */ *
      2  from   (select /*+ FIRST_ROWS(100) */ distinct
      3              case when product_description = :productdescription            then 1
      4               when product_description like :productdescription || ' %'       then 2
      5               when product_description like '% ' || :productdescription || ' %' then 3
      6               when product_description like '% ' || :productdescription       then 4
      7               when product_description like :productdescription || '%'       then 5
      8               when product_description like '%' || :productdescription       then 6
      9              end as ranking,
    10              product_description
    11           from   tbl_product_lookup
    12           where  contains (product_description, '%' || :productdescription || '%') > 0
    13           order  by ranking)
    14  where  rownum <= 100
    15  /
       RANKING PRODUCT_DESCRIPTION
             1 test product
             2 test product and more
             3 another test product and more
             4 another test product
             5 test products
             6 selftest product
    6 rows selected.
    Elapsed: 00:00:00.10
    Execution Plan
    Plan hash value: 459057338
    | Id  | Operation                      | Name               | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT               |                    |    38 |  3990 |    13  (16)| 00:00:01 |
    |*  1 |  COUNT STOPKEY                 |                    |       |       |            |          |
    |   2 |   VIEW                         |                    |    38 |  3990 |    13  (16)| 00:00:01 |
    |*  3 |    SORT UNIQUE STOPKEY         |                    |    38 |   988 |    12   (9)| 00:00:01 |
    |   4 |     TABLE ACCESS BY INDEX ROWID| TBL_PRODUCT_LOOKUP |    38 |   988 |    11   (0)| 00:00:01 |
    |*  5 |      DOMAIN INDEX              | PROD_DESC_TEXT_IDX |       |       |     4   (0)| 00:00:01 |
    Predicate Information (identified by operation id):
       1 - filter(ROWNUM<=100)
       3 - filter(ROWNUM<=100)
       5 - access("CTXSYS"."CONTAINS"("PRODUCT_DESCRIPTION",'%'||:PRODUCTDESCRIPTION||'%')>0)
    SCOTT@orcl_11gR2>

  • How to find who has deleted the query in Production system

    I Experts,
    I have an issue. Someone has deleted one query in Production system.
    How can i find who has deleted the query??
    I searched the ans for the same i the below threads :-
    Query deleted in production
    How to find out who has deleted the production Query
    But it didn't help me as i couldn't understand how to use the transaction SLG1.. Can Someone please explain me how can i find out who has deleted the Query..
    Regards,
    Pavan Raj

    Hello,
    Please, remember the date on which date the query has seen last time  in the production server. You can use the last date in the From date and To date would be current  date and execute the SLG1 tcode. It would list you all the logs in the Object text you can search for BEX Query designer and sub object text column you can check for delete logs options.
    Double click on the object will list you the query and name. From the user column you can find who has deleted the query.
    Might be this can help you for analysis.
    Thanks
    Geeta Sharma

  • Urgent:Issue of Product Search

    Hi All,
    In customer Product Search , it return only 100 items.
    but in profile option value set IBE: No of Results in Search -->200(default)
    but I am able to view only 100 records in customer UI.
    please advise me how can i fix it ASAP
    Thanks

    Hi All,
    If I set profile : IBE: No of Results in Search vlaue to 500 then it return 250 results.
    Exactly half of Profile Value..
    Even I check the jsp code and query. it looks fine to me..
    please any body share your valuable points with me to fix ASAP.
    Thanks & Regards

  • Product Search Modification Options

    Hi All,
       I have created my on Z-search for Products based on the Plant to which the requisitioner belongs to.Now in EBP,I have  downloaded all the products(Materials and Services) from Backend.
       Also, when I  go through the "Internal Goods/servcies " link for creating the SC,I  need to  see in the  Product search, all the Non-catalogue Products(i.e. excluding the materials and services which  come under the category for  Catalogue Products).
       Now  my query is that I can filter out the products(belonging to te CATALOGUE product category)  before displaying the Product List in the Z-search,but is it advisable to delete these Catalogue Products from EBP itself once they  are transferred from EBP to CCM.(In CCM only ,I will  be  accessing these Catalogue Products to create a  SC through the CATALOGUE link).
    Thanks & Regards,
    Disha.

    Not on products but you can on catalogs. Click the tick box in the shipping option and you will see filters and options such as countries and catalogs.

  • How can I customize the sort options in the product search?

    Is there a way to customize the sort options availabe when you search for a product?

    That is covered here: http://helpx.adobe.com/business-catalyst/kb/modules-quick-reference.html#News
    {module_productresults, rowLength, targetFrame, resultsPerPage, sortType, hideEmptyMessage, useLi}
    This module can only be used in conjuction with a product search form. Whenever you insert a product search form into a page the system also adds the {module_productresults} module right after the form. When viewed in the front end this module does not render anything until the form's "Search" button is presed and a search is triggered. This module and the product search form can also be placed on different pages, take a look at this article for more details on this particular setup.
    Parameters
    rowLength - will limit the number of items per row when items are displayed as a list. Default is 1 item per row.
    targetFrame - possible values are _blank, _self and _top. This parameter is used to specify the frame you want the item to open in.
    resultsPerPage - specifies the number of results the search will display per page.
    sortType - sortType can be alphabetical, price, date, or weight. Do note the sortType is ignored if the "Sort By" field is present in the product search form.
    hideEmptyMessage - specify True if you don't want the No Items Found message to be displayed
    UseLi - specify True to render the output in Li's instead of tables
    This module is rendered with these layouts
    Online Shop Layouts > Individual Product - Small
    This module also supports custom templates
    Examples
    {module_productresults,4,_blank,10,,true} - displays the products that match the search criteria 4 per rotw, 10 per page and hides the "No products found matching your query." if no products are found. The structure rendered is a table. When clicking the product name the detail view (rendered using theIndividual Product - Large layout) opens up in a new tab.
    {module_productresults,,_self,2,,,true} - displays the products that match the search criteria 2 per page and renders "No products found matching your query." if no products are found. The structure rendered is an unordered list. When clicking the product name the detail view (rendered using the Individual Product - Largelayout) opens up in the same tab.
    {module_productresults,2,_self,2,,,true template="/layouts/custom/moduleproductresults.tpl"} - displays the products that match the search criteria 2 per page and renders "No products found matching your query." if no products are found. The structure is no longer an unordered list as it is in the example above, thecustom template is used instead.

  • SAP CRM Standard Product Search Not working for ATTR STR_SUPPL2

    Hello Colleagues ,
    Background :-
    Each Product in SAP CRM has a location address .
    Address has an attribute STR_SUPPL2 . This standard field is also a Query Parameter in Product Search Query.
    When we use this Query Parameter STR_SUPPL2 , Search result in an Error Message with no result .
    Technical Analysis :-
    There is a Query Parameter named ST_SUPPL2 in the CRM Product Search ::ProdAdvancedSearchIndObjects .
    When we use this Query Parameter an Error message Appears .
    Search criteria LOCATION_ADDRESS.STR_SUPPL2 in scenario CL_COM_PRSEARCHSCENARIO_LOCAT not included in tool/filter    LOCATION_ADDRESS    STR_SUPPL2    CL_COM_PRSEARCHSCENARIO_LOCAT
    X
    I tried to find out the cause .Its mainly because SAP has coded in such a way to allow only few Location Address parameters in production search .
    This can be viewed in the class :: CL_COM_PRSEARCHTOOL_LOCAT~DO_SEARCH .
    There is a related OSS Note (1018099)  as well ,but its valid for few Fields only .
    We are already on CRM latest SP .
    Client Requirement :-
    Since STR_SUPPL2 is part of standard search criteria and my Client requires to consume this field in Product Search and Result .
    Please if some one can help here .
    MY DOUBTS :-
    Query 1 :-
    Should this be resolved by SAP and Shall i open an Incident ?
    Query 2 :-
    What BADI should i use if i need to write my own custom logic to implement search based on this field STR_SUPPL2 ?
    OR
    if there is an easier way to achieve this ?
    Refer to the attached snapshots.
    Regards
    Nitin

    Hello Samantak ,
    Thanks for your Sol Proposal .
    I checked Implementing COM_PRODUCT_SE .
    But looks like after Implementing the Enhancement Spot , I have to Take care of the Complete Product Search myself  .This is not the intension here .
    Reason : CL_CRM_PRIL_ADVSEARCH_BASE~GET_RANGESEARCH_RESULT
    CALL METHOD me->do_searchengine_search (Ignores all other Location Query Paramaters)
    CALL METHOD me->do_database_range_search
    I just need to enable 1 standard Field :: STR_SUPPL2 Seachable .
    Any comments are welcome

  • "Product Search" capability in "Sample Application"

    i have just started reviewing the HTML DB product and its rad capabilities.
    the "Customer Search" capability is were my interest lies at this time and i am really confused...
    as to how it works and how i could go into the "Sample Application" and modify it for a similar...
    "Product Search" capability.
    can you provide any assistance to me on this matter ?
    i had thought that it could be in the user guide somewhere...
    but i am only up to page 75 or so and getting impatient/excited.
    Thanks in advance.

    Note: raj gave me the following info:
    hey robert--
    if you look at the definition for the two pages you've asked about, 1 and 400, you'll see that page 1 just branches to page 400 after the user submits the page. while the page is being submitted, though, page 1 sets the value of G_CUSTOMER_NAME to whatever was entered for P1_SEARCH. the query region on page 400 simply includes that G_CUSTOMER_NAME predicated in its where clause. there's a simpler but similar example of this in our how-to docs...
    http://www.oracle.com/technology/products/database/htmldb/howtos/index.html
    ...specifically at...
    http://www.oracle.com/technology/products/database/htmldb/howtos/dynamic_report.html
    ...and, you can even simplify that example a little more by using sql instead of a pl/sql function returning that sql. so the sql version could look like...
    select p.category,
    p.product_name,
    i.quantity,
    i.unit_price
    from demo_product_info p,
    demo_order_items i
    where p.product_id = i.product_id
    and p.category = :p600_show or :p600_show = 'ALL'
    ...hope this helps,
    raj

  • Enhance Product Search PRD01QR by Division

    Hi,
    I need to enhance the product search ( Component PRD01QR) with a new search criteria Division. Could you please advise me on how to achieve the functionality.
    Regards,
    Kamesh Bathla

    Hi Kamesh,
    For achieving the above functionality, there are two steps:
    1. Enhance the search structure which you have already completed successfully. Add the additional attributes in BOL structue and make them available in UI.
    2. Enhance the standard search.
    For this, there is a standard BADI definition in CRM: CRM_BADI_RF_Q1O_SEARCH. You need to create a filter dependent implementation for this. In the filter value, specify the name of your search object. In your case, its 'ProdAdvSearchRgProducts'. In the search method of this implemented class, you'll receive your search attributes value in the importing parameters. Write your own dynamic query here based upon your selection criteria and send result list in ET_GUIDLIST structure as returning parameter.
    The same result list will be populated in the result list of UI.
    The same concept can be adopted for enhancing any search in UI.
    I hope my answer helps.
    Thanks
    Vishal

  • Product search is not working in other JSP inj b2c application

    hi,
    I had one requirement that we have to bring product search from header jsp(b2c/navigationbar.inc.jsp) to CategoriesB2C.inc.jsp.
    i had copied all related code from last jsp.but search is not working.
    i had modified only jsp.just guide me do we have to modify any other file or .do class file.
    Thanks in advance.
    Jayesh Talreja

    Hi Jayesh,
    When you copy <td> element of product search from "navigationbar.inc.jsp" to "categoriesB2C.inc.jsp" you also have to copy
    <form> tag and necessary java script function from "navigationbar.inc.jsp" file.
    Read carefully "navigationbar.jsp.inc" file and understand how it is working in it and then copy necessary code from this file to "categoriesB2C.inc.jsp" file
    I tried to post code here but some how it is throwing an error while replying you. Sorry.
    I hope this will help you to resolve your issue.
    Regards.
    eCommerce Developer

  • How to implement Quick Query and Saved Searches in ADF?

    We are using 11gR2 ADF.
    The requirement is to enable Quick Search and save the Searches.
    In the Oracle ADF documentation, it is mentioned that
    - Create a view with view criteria named.
    - In the .jspx drag and drop the view criteria and Select Quick Query
    Upon doing the above, we see that a Search panel is getting created, but with a message 'No Search Fields Added'.
    In the named view criteria, Under 'UI Hints' we have set
    -- execution mode as Both
    -- Search region mode is Basic
    -- Show Operators in Basic
    Under 'Criteria Definition'
    the attributes are added in a group with OR condition.
    Thanks for your reply. Oracle ADF developer guide does not help!!
    If you have any other documentation that helps in implementing this Quick Query and Saved Search, your help is greatly appreciated.

    Set the following on your af:query component
    SaveQueryMode = hidden
    ModeChangeVisible = false
    This should work for you ..
    Regards,

  • How can I get a query in the search field to open in a new tab or new window from the current window?

    How can I get a query in the search field to open in a new tab or new window from the current window?

    If you are searching via the Search Bar on the Navigation Toolbar, this preference can be changed to have searches there open in a Tab.
    Type '''about:config''' in the Address Bar and hit Enter. Then answer "I'll be careful". Type this pref in the Search at the top.
    '''browser.search.openintab''' = double-click to toggle to '''true'''

  • ADHOC Query in Production System

    Can I create a ADHOC query in Production system?Coz I can able to do that.
    Thanks
    Sriram

    This is the practice:
    1. The project team will build all the reports defined in the project plan, test and transport to production. These queries usually will be set not to be changed.
    2. SUper users will be granted authorization to create their own queries, modify their own queries and delete their own queries. For this the auth object S_RS_COMP1 is used.
    3. All the other users will be granted to access reports.
    Ravi Thothadri

  • Product Search in IC WebClient

    Hi,
    I am new to WebClient and now my client has an enhancement for Product Search in WebClient. Any help in this is greatly appreciated.
    Backend system: SAP ECC
    CRM System: SAP CRM 4.0
    Sales Order Creation: in SAP CRM Web Client
    1). Client products come in many different versions (ECC has products globally).
    2). Client need a functionality in such a way that, during sales order entry the interaction center agent should search the product based on the country and product description(sometimes customer group).
    Example: A typical distinction between the different products is the language on the packaging. Products sold to customers in Canada can have multiple language versions: an English only variant, and an English/French variant. Some of the client products can have up to 8, 9 different language versions.
    Therefore an enhancement is needed to select the appropriate version of a product depending on the county of the ordering customer (in some situations also the customer group of the customer is taken into account).
    How we handle this enhancement in Web Client?? Please reply to this as quickly as possible.
    Thanks a bunch!
    -Supraja

    Hi,
    A better solution is to edit your own copy of the navigational XML as per the <a href="http://service.sap.com/~form/sapnet?_SHORTKEY=01100035870000647973&_SCENARIO=01100035870000000112&_OBJECT=011000358700003057372006E">Web IC Cookbook.</a> The section you want is around page 60.
    Regards,
    Patrick.

Maybe you are looking for