How to Change the default Search value for Field Role?

HI,
I went through numerous threads on how to default the search value , but does not help for my issue. Hence im posting this new thread. Please provide your suggestions on how to achieve this.
For the Ship-to party field (in item detail )  on webui when i do a F4 help i get the pop up with various search criteria and  for the field Role the default value is "Ship-to party".  which is visible. we need to change this default value to Prospect which is available in drop down.
The attribute is STRUCT.ROLE  and view BP_HEAD_SEARCH/SearchHelp . The method GET_DQUERY_VALUEHELPS  from the context node class is called to fill the value help for this attribute, but i dont understand how the ship-to party is filled as default. There is no code in this method to default the value.
The generic GET_V_S_STRUCT method also does not default the Ship-to party on this field.
I want to understand how this Ship-to party is filled by default and how can i change this to prospect..
Many Thanks,
Shaik

We had a same requirement of defaulting Sales org and division in search criteria for a specific value.
this can be doen by redefining "DO_PREPARE_OUTPUT" method in IMPL class for the respective view.
See the code:
METHOD do_prepare_output.
*CALL METHOD SUPER->DO_PREPARE_OUTPUT
**  EXPORTING
**    iv_first_time = ABAP_FALSE
  DATA:
    lr_qs TYPE REF TO cl_crm_bol_dquery_service.
* Get current query object
  lr_qs ?= me->typed_context->search->collection_wrapper->get_current( ).
  IF iv_first_time = abap_true.
    lr_qs->clear_selection_param_values( ).
    lr_qs->delete_empty_selection_params( ).
*   if l_sales_orgs is initial.
    CALL METHOD lr_qs->insert_selection_param
      EXPORTING
        iv_index     = '1'
        iv_attr_name = 'SALES_ORG'
        iv_sign      = ' '
        iv_option    = 'EQ'
        iv_low       = 'O 50000514'.
*   endif.
*   if l_dist_chan is initial.
    CALL METHOD lr_qs->insert_selection_param
      EXPORTING
        iv_index     = '2'
        iv_attr_name = 'DISTR_CHAN'
        iv_sign      = ' '
        iv_option    = 'EQ'
        iv_low       = '01'.
* endif.
Hope this will help..
THanks & Regards,
Amit

Similar Messages

  • How to change the default search engine? I accidentaly change it from google to yahoo, and I can't get it back. I changed my homepage too, but it isn't solved. Thanks

    dear, there.
    how to change the default search engine? I accidentaly change it from google to yahoo, and I can't get it back. I changed my homepage to google too, but it isn't solved. Thanks

    Clarification:
    I believe now you potentially lose all extensions, plug-ins when you use the new reset function, but you will let me know.
    If that is the case, your find corrupt file method maybe better. However, I reviewed the two help articles and there appear to be more files than just the delete search.json file and a possible search.sqlite file in the Firefox Profile Folder. I am confused. Then I have to find the folders. I think help articles mentioned how to find the profile containing the files, but not sure.

  • How to change the default admin password for IAS/UDDI

    Using "OracleAS UDDI Registry" 10g Release 2 (10.1.2)
    http://docs.oracle.com/cd/B15904_01/web.1012/b14027/regwsuddi.htm
    How to change the default password
    ias_admin/ias_admin123
    http://xxx.xx.xxx.xx/uddi/publishing

    Hello NJ,
    I tried your solution and its a very good workaround for the workbooks stored in the Database, but when i open workbooks from file system then Discoverer defaults the export path to the Directory from where we have opened the workbook.
    My clients are having most of their workbooks stored in File system & stored at different locations. So i wonder if there is just one common solution if possible?
    Thanks

  • How to set the default context value for flexfield in OAFramework pages

    Hi,
    I have a page which contains a contexxt value field i.e Flexfields
    To select the context value we have to select the value from drop down
    So Here we want to display the context value immediately when the page is called
    How to set the default valu in this case
    Regards,
    Krishna

    You can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
    Regards
    Sumit

  • How to check the default checked  value for radio button on jsp for struts

    Hello , I just want to check the default checked value in JSP for a radio button, how can i do that?
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>

    you can set the default value for property ( which you want to default selected when the form is first loaded) in reset method of the form.
    <html:radio property="sale" value="permanent" style="vertical-align: middle;">Permanent</html:radio>
    <html:radio property="sale" value="temporary" style="vertical-align: middle;">Temporary</html:radio>
    In the above case you can write the code as follows in the perticular form of this jsp.
    public void reset(ActionMapping mapping, HttpServletRequest request) {
    super.reset(mapping, request);
         sale = "permanent";
    This will show the first check box default selected when the first time the page is loaded.

  • Change the default local value for the JVM

    Hello,
    Some applications check the JVM default language and set it.
    my computer setting is German, i want to keep this.
    And i want the java appliacations to start in english.
    any idea how can i change the JVM default lacal value?
    Thanks.

    I'm not sure if there's some global setting, take a look in the options that can be passed to "java" (executable).
    Anyway, you could just use a
    Locale germanLocale = Locale.GERMAN;
    JavaDocs are your friend ;)

  • How to change the default print template for broadcast PDF Export

    Hi,
    I have currently designed a print template for printing purposes and use this as the template for the print button(Export to PDF),if i were to click on this button the output pdf is the desired PDF. But if i were to broadcast the template with output format as PDF it picks the layout of the current template, how do i set broadcast to pick up the print template also???
    Further how to insert a page break in a PDF print template.

    Hi Nagesh,
    These setting are for
    1.Adhoc Template for Queries
    2. Adhoc Template for reports designed through report designer
    3. Template for query precalculation
    4. Template for displaying broadcasting wizard.
    When we use broadcasting from query designer  to email PDF's the system uses 0QUERY_TEMPLATE_BROADCAST_PDF.
    From WAD the system uses the current template layout as PDF Layout.
    P.S: OSS note 1054460 -<b>Depending on the BI object type and possibly other criteria, different Web templates are used in BI broadcasting to generate PDF (and PS or PCL) formats:</b>
    <i>For Web templates: the Web template itself is used</i>

  • How to change the default element tag using dbms_xmlgen

    here is my code that generate output for purchase order data. I followed the syntax shown in xml db developer guide.
    I am getting the results but element tags are CAPS letters( As the coloumn names in the type defenitions are stored in CAPS in Oracle). but I need to show in small letters as per my requirement.
    can anyone help me how to change the default tag names for elements.
    ==================================HERE IS THE CODE==================
    DECLARE
    qryCtx DBMS_XMLGEN.ctxHandle;
    result CLOB;
    BEGIN
    qryCtx := DBMS_XMLGEN.newContext
    ('SELECT PODL_H_T
    ( CLOSEDDATETIME ,
    COMPANY ,
    CAST(MULTISET
    (SELECT LINENUMBER ,
    COMPANY ,
    PURCHASEORDERID ,
    ITEM ,
    QUANTITYUM ,
    TOTALQUANTITY
    FROM cpo_wms_podl_LINES
    WHERE PURCHASEORDERID = PH.PURCHASEORDERID) as PurchaseOrderDetailList
    FROM cpo_wms_podl_HEADERS PH ');
    -- now get the result
    DBMS_XMLGEN.setRowSetTag(qryCtx, 'Receipts' );
    DBMS_XMLGEN.setRowTag(qryCtx, 'PurchaseOrder' );
    result := DBMS_XMLGEN.getXML(qryCtx);
    INSERT INTO temp_clob_tab VALUES (result);
    DBMS_XMLGEN.closeContext(qryCtx);
    END;
    -- select * from temp_clob_tab
    ===========create type script=====================
    cpo_wms_podl_HEADERS
    CREATE or replace TYPE PurchaseOrderDetail AS OBJECT(
    LINENUMBER VARCHAR2(400 BYTE),
    COMPANY VARCHAR2(400 BYTE),
    PURCHASEORDERID VARCHAR2(400 BYTE),
    ITEM VARCHAR2(400 BYTE),
    QUANTITYUM VARCHAR2(400 BYTE),
    TOTALQUANTITY NUMBER
    create type PurchaseOrderDetailList as table of PurchaseOrderDetail
    create table temp_clob_tab(result CLOB)
    create type podl_HEADERS_list_t as table of podl_HEADERS_t
    CREATE or replace TYPE PODL_H_T AS OBJECT
    CLOSEDDATETIME DATE,
    COMPANY VARCHAR2(400 BYTE),
    CREATEDDATETIME DATE,
    PURCHASEORDERID VARCHAR2(400 BYTE),
    SHIP_TO VARCHAR2(400 BYTE),
    linelist PurchaseOrderDetailList
    )

    but I need to show in small letters as per my requirement.add alias column names in double quotes as in
    SQL> select dbms_xmlgen.getxmltype('select dname "DeptName", loc "Location" from dept') dept_xml from dual
    DEPT_XML                                                                       
    <ROWSET>                                                                       
      <ROW>                                                                        
        <DeptName>ACCOUNTING</DeptName>                                            
        <Location>NEW YORK</Location>                                              
      </ROW>                                                                       
      <ROW>                                                                        
        <DeptName>RESEARCH</DeptName>                                              
        <Location>DALLAS</Location>                                                
      </ROW>                                                                       
      <ROW>                                                                        
        <DeptName>SALES</DeptName>                                                 
        <Location>CHICAGO</Location>                                               
      </ROW>                                                                       
      <ROW>                                                                        
        <DeptName>OPERATIONS</DeptName>                                            
        <Location>BOSTON</Location>                                                
      </ROW>                                                                       
      <ROW>                                                                        
        <DeptName>SALES</DeptName>                                                 
        <Location>MUNICH</Location>                                                
      </ROW>                                                                       
    </ROWSET>                                                                      
    1 row selected.

  • How to change the default sorting in iTunes

    Hi,
    Does anyone know how to change the default sorting method for all items in iTunes?  I use the third option for organizing the library as a whole (the one that has a list of icons for bands that you double click to show only that band's songs).  The only sorting method I use is to sort by Album by Year (ascending), this makes the most sense to me.  I can tell that iTunes is attempting to remember when I do this for certain artists, but it epically fails at maintaining this sorting pattern.
    To be clear, say I open Radiohead and click through to have it sort with the above method.  Everything works great, but when I return a few days later to play Radiohead again, the sorting is not maintained.  It could be as simple as sorting in a descending direction, or could even be trying to sort by the number it was added in my library.
    I'd really appreciate it if someone knew of a way (maybe even through scripts if possible / the only solution) to eliminate this problem and have every (NOT just the artists who I've told iTunes to sort a specific way) artist sort that way.
    I don't know if my copy is just corrupt?  It may be, since for some artists it's started playing them in the above mentioned order they were added to my library even if I force a sort by album by year (i.e. it will go from playing a 2007 album to a 2002 album and not the 2008 album).
    Thanks!

    Andrew, I know I am extremely late to the party but I too use Grid View.  I had the same problem that you had but have found this to work for me.  I used it and it is still holding as my default sorting even after switching between the Artist page and Grid View.
    Once you are inside of the Artist page continue to click on the Album column until it shows Album by Artist/Year.
    That will give you each album sorted by the year instead of it randomly sorting it for you each time you leave an Artist's page and then back again.
    Hope this helps.

  • Anyone know how to change the default font for the new pages? Apparently it does not even come up when I search the 'Help' section of Pages. The level of incompetence in this new version seems breathtaking

    I cannot find how to change the default font in the new Pages. It does not appear in the Help area when I search for it. I am never sing Helvetica for my standard documents and cannot seem to change it. What am I missing? And why does Pages help not have an easy answer?
    dan

    You open a blank template and change the font to you liking. Remember to also get all the styles changed with new font. Then Save As Template. Now you have a template with the font you like.

  • How to change the default operators in sap web ui Search screen?

    How to change the default operators in sap web ui Search screen?
    For eg. Using advance search option , I have some fields with default operators like equals, contains,is between, is less than and is greater than. I don't need all these operators for this field.
    I need only "equals" operator. How do i remove the rest of the operators?

    There is a view cluster crmvc_dq where all the standard setting is present related to you r issue. Please try if you can modify that, that way you will avoid the code.
    Incase you are not able to make any changes there then in that case you have to redefine the method GET_DQUERY_DEFINITION () of the IMPL class to delete the operators for a particular serach field.
    Regards,
    Harshit

  • How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    How can I change the default apple ID for app store. I bought the macbook from my school when I left and I'm the ID in place of mine is the computer departments one. How can i change it to mine?? Thanks

    http://support.apple.com/kb/ht5621

  • How do I change the default search engine in the address bar?

    I am trying to change the default search engine in the address bar to Scroogle SSL, I have tried editing about.config but it either goes to Google or on rare occasions it has opened to Scroogle SSL and the address bar shows https://ssl.scroogle.org/(+whatever was entered), while the main window shows a proxy error .
    I have an idea that something needs to be added at the end of the URL in about.config to actually make it search.
    Can anybody tell me what the specific settings would be to get this working?
    I have Scroogle SSL in the search engine list but I want to remove the search box to save space.
    Also I cannot get the search to open in a new tab even though browser.search.openintab is set to True.
    Thanks in advance.
    == Operating system ==
    XP-SP3

    Hi, having tried both ways myself what you say is true but that is not the source of my confusion.
    (In fact I discovered that when I set the same thing up in Opera10.53 everything up to the ? appears on one line in the setup and the Gw=%s on another.)
    What I cannot understand is why, if I am using Scroogle SSl search it is opening the OpenDNS guide.
    If I use my Scroogle SSL home page it opens a minimal Google search page, the same thing happens if I use the search box. I expected this would be the same as well or am I missing something?
    OpenDNS is preferable to Google but not what I was looking for.
    Since I started writing this I have just discovered that changing the keyword.URL does not affect this.
    Earlier I recovered my system from an image which undid the changes that I had made to about.config, I have run searches both before and after I edited it again. Both times I finished up on OpenDNS?

  • How can I change the default "search criteria" in Finder?

    I can't seem to find any way to change the default search criteria when I search for a file in Finder. I have to select "show search criteria" and deselect the criteria every time I search for a file.. annoying!

    When I do that it just makes a Smart Folder search, which I can save and put on the side bar, then click on and use, but does not allow me to open Finder, type in the search field, and go. Any other ideas?

  • :-)  How can we change the default file path for Bank file ( dmee ) ?

    Hi All,
    We encounter a problem.
    Electronic bank file ( created after a F110 run ) are created, in an automatic way to the DIR_TEMP directory. ( On the SAP server )
    How can we change the default file path for Bank files ( dmee ) ?
    We'd like to specify another path.
    Thx for your help.
    Erwan

    Hello,
    Make sure that you have created the directory in transaction code AL11 with the help of basis consultants.
    You can link your PC directory to the application server.
    You can maintain the path whether your file needs to get saved in OBPM4 against your DMEE structure example GB_BACS etc.
    If you do not maintain any path in OBPM4, then the file gets saved to temporary directory. If you give the directory path name in OBPM4, then the file gets saved to that directory with numbers 0001, 0002, 0003 etc till it reaches 9999 and reset from the beginning.
    If you give the path as well as file name as ABCD, then the file gets generated to that directory folder with ABCD0001, ABCD0002, ABCD0003 etc. till it reaches ABCD9999 and reset from the beginning.
    Hope this solves your problem.
    Regards,
    Ravi

Maybe you are looking for

  • Export database in quiet mode

    I'm trying to export database (or part of it) via exp utility. Exp utility should be called from command file or from another process (on windows). If something goes wrong (for example user name or password is not correct) exp pauses it's execution a

  • How do I open a form specific to particular user?

    Hi All, Please answer below questions: 1) How do I open a form specific to particular user?i.e I want to open a form as enterable mode for one user and non-enterable mode for another user. 2) How do I run a report specific to the particular user? i.e

  • Send Program Change bug in Logic 7.2.2

    I recently got a Mac Pro 3.0, and installed Logic 7.2.2. In general things are going okay, but I recently found a bug and I wonder if anyone else has run into it. I have a fairly extensive studio setup (6 Gigasamplers, some hardware samplers, quite a

  • What is multimapping in xi

    hi gurus, what is multimapping in xi . please guide with one scenerio of taking a blog. or provide me some pdf with screenshot wise . pls provide me some blogs of multimapping in xi without usig bpm. thanks and regards. Edited by: Pawan Kumar on Feb

  • How to enforce generating process of HL7

    Hi, HL7 messages sent by SAP are obviously generated from some kind of table which contain the neccessary data. Generating theses messages is done immediately, but after a certain time. Is there a way to force IS-H to generate the messages and to wai