Default value in advanced  search

Hi All,
          I want to give default values in "open advanced search" in opportunities.
I need to give default as sy-datum in Validto field and start date of each quater as default for Validfrom field.
                 I have written  the code to generate Start date of each month.But i dont no where to incorporate this code.For validto field ,in field group structure ,I tried giving sy-datum ,but nothing is displayed.It is not accepting default value as sy-datum.
          Can any one tell me which method is called when we click on "open advanced search" ?
Regards,
Ruby.

Hi,
If you are not able to perform this thru personalization, then write the logic in controller class.
Get the handle of LOV field using its Id in PR method of your controller. After this, set the default value you want to the LOV in the same PR method.
--Sushant                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Similar Messages

  • Change default value "Number of Search Results" - Component PPM_DYNSEARCH

    Hi Gurus,
    I am new to SAP CRM WebUI development and hope you can help me on following problem.
    In Pipeline & Performance Management we want to change the default value for the search results from 100 to 1000.
    SAP CRM 7.0
    Component: PPM_DYNSEARCH
    View: PPM_DYNSEARCH/Filter
    I have already tried to solve this via following solution:
    1) Assign parameter SEARCH_MAX_HITS to a parameter profile in the following IMG and set his value to 1000:
    CRM >> UI Framework >> Technical role definition >> Define parameters.
    2) Then, assign your parameter profile to your business role:
    CRM >> UI Framework >> Business role >> Define business role.
    However this works for all initial search screens but not for Pipeline and Performance Management.
    Can anyone give me a short hint how I can set the max number of search results from 100 to 1000 in the PPM Screen.
    Many Thanks
    Michael

    Hi Michael,
    Seems like this is a normal edit page, not a search page.
    Keep a break point at this code in the HTML page.
    <thtmlb:inputField id        = "maxHitsInput"
                               width     = "80%"
                               value     = "<%= lv_display_max_hits %>"
                               maxlength = "8"
                               design    = "DEFAULT"
                               type      = "INTEGER" />\
    Change lv_display_max_hits in debugging and see if that brings in the value on the UI.
    Normally for a search page there will be a THTMLB attribute maxHits where we pass the value. But in your case it is a normal view.
    Regards,
    Masood Imrani S.

  • How to set a default folder in Advance Search

    We have enabled the Search Scope Selection option for the default search iView in the Tool Area.  Therefore, when a user clicks the Advance Search link in the Tool Area, they can choose the index they wish to search or they can select a folder by browsing the KM folder structure.  When they click on the browse button, their initial folder is /root.  We would like to set the default browse folder to a lower-level folder, like /documents.
    Does anyone know the best way to set the initial search folder for the default search iView?

    Hi Andrew
    The short answer is that I dont think you can change the default "browse folder". It will let the end users browse whatever folders they have the permission to view. But you can solve your problem in some other ways, like:
    1) Remove any permissions regarding the root folder for the end users. In this way they will not be able to browse it through the search component. Configure permissions for all other folders you dont want end users to access.
    2) Create a range of meaningful indexes and only let the user search the indexes (with a meaningful name), not the folders. If you like, you can hide the folder search option by adding &EnableSearchFromFolder=False to the KM search parameters (search the forum for more info).
    3) Give the users access to a simple KM navigation iview with a customized layoutset that only lets the end user browse the documents repository and contains a link to the UI command "search_from_here" which will "Opens a dialog box for searching within the current folder or subfolders" (taken from the description of the ui command).
    Best regards,
    Martin Søgaard

  • Need to set default value on Account Search

    HI All,
    In BSP BP_HEADSEARCH view MainSearch I need to default the value of the attribute 'RESP_AREA' to '01'. I can see the attribute on the value node SEARCH but when get the current context of SEARCH the entity is of a type CL_CRM_BOL_DQUERY_SERVICE and I am not sure how to set the default value.
    Any help will be appreciated,
    Regards,
    Tom

    Hi Tom,
    When it comes to setting values in a search entity you can not use the normal getter/setter methods because the context node class will be inherited from CL_BSP_WD_CONTEXT_NODE_ASP. In the context node class there will be few attributes (FIELD,MAX_HITS,OPERATOR,VALUE1,VALUE2) that corresponds to the fields diosplayed in the search criteria. The fields VALUE1 and VALUE2 represents the LOW and HIGH values.
    To set default value for RESP_AREA you must redefine SET_VALUE1 method and read the ATTR_NAME. If ATTR_NAME is RESP_AREA then you can set the value.
    Method SET_VALUE1.
    * Get current criterion
      data: criterion type ref to if_bol_bo_property_access.
      if iterator is bound.
        criterion = iterator->get_current( ).
      else.
        criterion = me->parameter_collection->get_current( ).
      endif.
    * Set its low value from user input
      try.
          data: lv_value type string.
          lv_value =
             me->convert_value_from_string( iv_string = value
                                            iv_criterion = criterion ).
          criterion->set_property( iv_attr_name = 'LOW'
                                   iv_value = lv_value ).       "#EC NOTEXT
        cleanup.
    *     Keep buggy user input for correction
          criterion->set_property( iv_attr_name = 'LOW'
                                   iv_value = value ).          "#EC NOTEXT
      endtry.
    * Set the default value for RESP_AREA
    lv_attr_name =  criterion->get_property_as_string( 'ATTR_NAME' ).
    if lv_attr_name eq 'RESP_AREA'.
        criterion->set_property( iv_attr_name = 'LOW' iv_value = ---- ).
    Endif.
    Regards,
    Arun

  • Search help for default value

    Hi all..
    I doing a dialog program. I need to have a search help in my input field. How can i do it?
    I want to have 3 default value in the search help.
    example: apple, orange, pear.
    How to retrieve it?

    hi,
    u can make drop down list
    declare that field as list box... ( in attribute )
    then write this after PAI in screen flow logic...
    PROCESS ON VALUE-REQUEST.
      FIELD ifmtp-form_type MODULE fm_drop.
    MODULE fm_drop INPUT.
      CLEAR ifmtp.
      REFRESH ifmtp.
      ifmtp-form_type = 'C'.
      APPEND ifmtp.
      ifmtp-form_type = 'F'.
      APPEND ifmtp.
      ifmtp-form_type = 'H'.
      APPEND ifmtp.
      CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield  = 'FORM_TYPE'
          value_org = 'S'
        TABLES
          value_tab = ifmtp.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDMODULE.                 " fm_drop  INPUT
    here ifmtp-form_type is my field of screen which i have declared as list box...
    and u have to declare one internal table with this field in TOP Module...
    DATA : BEGIN OF ifmtp OCCURS 0,
              form_type LIKE zform_track_mast-form_type,
           END OF ifmtp.
    reward if usefull....
    Edited by: Dhwani shah on Jan 22, 2008 11:58 AM

  • How to put a default value in Search Pages

    Hi Guru's,
    I've been trying to look for a way to default the Parameters of a search page (i.e. in Opportunity search, component BT111S_OPPT i want the search parameter PROSPECT_NAME defaulted to a certain value). I've tried using both INSERT_SELECTION_PARAM and ADD_SELECTION_PARAM but they only append the existing parameters and don't change the already existing parameters.
    Any suggestion would be much appreciated.
    Regards,
    Marc

    Hi Jon,
    Thanks for your suggestions. I've tried using the Getter and setter methods in Attribute PROSPECT_NAME in the opportunity advanced search (component BT111S_OPPT) , but the program never passes thru them. The query that I'm working on by the way is a dynamic query.
    As for the article, it is indeed helpful but in context it suggests that you manually build up the search parameters from scratch. Although I'm only working on 4 initial search parameters, I'm still open for more elegant solutions.
    Thanks,
    Marc

  • Portal Advanced Search – default business object

    Within the Shopping Area for Employee Self Services, apart from changing the Application Parameter in the  Advanced Search iView, does anyone know if there is a way of configuring the Advanced Search in the backend of SRM to default to u2018Shopping Cartu2019 instead of u2018Conformationu2019?
    Thanks
    Claire

    Hi,
    if you are using portal-independant navigation you can do the following.
    Go to the corresponding PFCG role and open it in edit mode. On the tab "Menu" click on "Advanced Search" (normally found directly below "Home"). Call the context menu using the right mouse button and click on "Details". For the parameter SAPSRM_BOTYPE change the default value BUS2203 (Confirmation) to the business object you want to use as a default, e.g. BUS2121 for Shopping Cart. Then save the role.
    If this doesn't work make sure that the user in question doesn't have other roles overriding this setting.
    Best regards,
    Marcus

  • ADVANCED SEARCH - dropdown values deletion

    Hi all,
    We are on SRM 7.1.
    query:
    For the employee self service role,for teh link ADVANCED SEARCH,in the dropdown,I want to display only 1 values i.e. PO and Shopping cart.Can someone direct me how can  configure that?
    I klnow the default value in dropdown can be changed but I want to remove some of the entries first in teh dropdown for the field.
    Pls advise.

    Hi,
    You dont need to remove the authorization object from the User profile.
    You jst need to modify data in Authorization profile.
    I tried in my system and I was able to remove it.
    Please follow below step:
    1) T.code PFCG
    2) Give role /SAPSRM/EMPLOYEE (It can be any required role- If you are using customized role you have to pick up role accordingly) and click on change button
    3) Goto Authorizations tab
    4) Click on 'Change authorization data' at lower part of Authorizations tab,which will lead you to another screen
    5) Now expand the BBP component and SRM: Advanced search.Here you can see all the business object for Advance search.
    6) Now double click on object type BUS2203(Basically White color area)
    7) One pop up screen will come, there you can remove the required Business object.
    8)Once it is removed,save and Click on Generate(Shift + F5)
    9) Go n check the advance search option.
    Let me know if you will stuck somewhere.
    Thanks,
    Ankur

  • How to assign the default value to search parameter

    Hi Experts,
    I am using search view , In this I have 5 parameter lets say Transaction Type, Partner No. etc... Now I want to assign a default value to transaction type ( lets say TA) . User should be able to see this default value in the transaction type field before pressing search button.
    How can I do it?
    My second problem is: I have configured this search view using configuration tool but I want to assign only one value to transaction type (i.e. user should not be able to add new row in the search criteria for the transaction type by using + sign)  but in rest 4 fields he can add new row and search based on that.
    Note: I am using only "Is" criteria .
    Any pointer will be helpful for me
    Thanks and regards,
    Sandeep

    Hi Sandeep,
    For the default search values, here is a solution. You have to redefine the method GET_VALUE1 of the context node
    For example if it is the BP search (component BP_HEAD_SEARCH) context node is your enhanced class: ZL_BP_HEAD__MAINSEARCH_CN00
    METHOD get_value1.
      CALL METHOD super->get_value1
        EXPORTING
          attribute_path = attribute_path
          iterator       = iterator
        RECEIVING
          value          = value.
      TRY.
    *     Delegate operation to selection parameter
          DATA: current TYPE REF TO if_bol_bo_property_access.
          IF iterator IS BOUND.
            current = iterator->get_current( ).
          ELSE.
            current = me->parameter_collection->get_current( ).
          ENDIF.
          IF current->get_property_as_string( iv_attr_name = 'ATTR_NAME' ) EQ 'XXX'.
            IF value IS INITIAL.
              value = 'Your default value'.
            ENDIF.
          ENDIF.
        CATCH cx_root.
      ENDTRY.
    ENDMETHOD.
    where XXX is the name of the field.
    Default value will then appear in your search field, but you are still able to modify it if you want...
    Regards,
    Fabian

  • Default multiple values in custom search help

    Hi All,
    I created a custom search help for the vendor. The fields in the search help are LIFNR (Vendor) and KTOKK (Account Group).
    I would like to be able to set three default values for the account group. That is, when the user clicks on the dropdown to display the search help, I would like to have three values populated in the KTOKK field. Is this possible?
    Any help would be appreciated.
    Thanks!

    Hi,
    I am not sure abt default values, but if you are using this search help in any report than you can set hot keys in your search help and using hot keys, you can set some default filter values in you report's parameter.
    you can set variant in your report where parameter is having values like :: =,<hotkey>,<sel1>,<sel2>
    here <hotkey> : wht you have assingned in search help.
           <sel1>    : one of those default values you want to display.
           <sel2>    : one of those default values you want to display for the second field.
    hope it helps,
    Regards,
    Sagar

  • How to pass the default value to search help selection screen

    Hi
    I need to push a certain value as a default value based on a condition to the slection screen of search help in web UI.
    Could you please let me know how can we do this?
    When we try to open the 'F4' help in web ui then it should populate a certain value as a default value to the selection screen of this 'F4' help. We will get this  default value based on condition.
    Regards
    Anil

    Hi Arun
    I'm using SE11 search help.I'm giving you my code for your reference here.
    DATA:
        ls_map    TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping,
        lt_inmap  TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lt_outmap TYPE if_bsp_wd_valuehelp_f4descr=>gtype_param_mapping_tab,
        lr_qs           TYPE REF TO cl_crm_bol_dquery_service,
        lr_current     TYPE REF TO if_bol_bo_property_access,
        lv_category    TYPE STRING.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'ATTRIBUTE'.
      APPEND ls_map TO: lt_inmap,lt_outmap.
      CLEAR ls_map.
      ls_map-context_attr = 'struct.zzattr_i_1'.
      ls_map-f4_attr      = 'SERVICE_LINE'.
      APPEND ls_map TO: lt_inmap.
      CREATE OBJECT rv_valuehelp_descriptor
        TYPE
          cl_bsp_wd_valuehelp_f4descr
        EXPORTING
          iv_help_id                  = 'ZATTR1'
          iv_help_id_kind             = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name
          iv_trigger_submit           = abap_true
          iv_input_mapping            = lt_inmap
          iv_output_mapping           = lt_outmap.
    Here 'ZATTR1' is my search help name in SE11 and the field which is having 'F4' help is 'ATTRIBUTE'.
    Now when I press 'F4' on 'ATTRIBUTE' then it will give a popup and this popup is having 3 fields..
    1.'ATTRIBUTE'
    2.'SERVICE_LINE'
    3.Description of 'SERVICE_LINE'  and hence by pressing 'F4' i should get a value in the field 'SERVICE_LINE' based on
       a condition.
    However, if there is a value for ATTRIBUTE on the screen and when we press 'F4' on this then in the popup the value of
    ATTRIBUTE which is there on the screen is appearing in the 'ATTRIBUTE' field  and the same value is being copied to
    'SERVICE_LINE' field in the popup.
    Please guide me how do we populate the value to 'SERVICE_LINE' field inside the search help popup of 'ATTRIBUTE'.
    Best Regards
    Anil

  • SAP CRM Search Help - defaulting values in search help screen

    Hi All,
    I am working on search help object in service order(Amount allocation )  BTAMNTALL component view name vIEW:BTAMNTALL/HdrBillplanDet and field name STRUCT.AC_ASSIGNMENT. in that block if we select account assignment type as ERP cost center it will give standard search help in Select account assignment field.
    Its basically calling the standard search help CRMT_AC_ASSIGN_KOSTL_E. After pressing F4 it will display the popup Controlling area cost center and description. Basically I need to default the Controlling area in F4 help based on some logic.I am not sure where to write code for this one.
    Please find the attachment where I need to default the value. any help is appreciated.
    Thanks,
    Sapsar.

    At least can you read the document I provided carefully? the point 2.3.1.2 give you the answer.
    Anyway if the document doesn't specify "defining a default value" but give you some ideas/hints, you only need to use a little your imagination. Like:
    1- Use a custom search help with a constant (static)
    2- Use a custom search help with a search exit to determine the data that you need from the sales org of course you need to add the orgunit as an input parameter for the search help and supress the input parameter which will be determined in the search help exit (dynamic)
    3- Create a value node for the context (hidden) and put the info you need once you select the sales org in the hidden attribute/s, this hidden attributes should be mapped in the get_v method (dynamic, not sure if this will work, I never tried, but will be nice if you try and give us some feedback)

  • In advanced search page for the first time choices value disapper

    Hi,
    I have a problem with advanced search page, in the advanced page for the first time choices field values are disapper when refresh page then all of the choice fileds value ara appear
    Thanks;

    You can create a test case based on the JHS Demo (shipped with JHeadstart 10.1.2.2) or the HR Schema (see http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html#setuphrschemaanddata). Please e-mail it to [email protected],
    * removing the cabo folder from the web root (public_html) before zipping it, it makes the zip much smaller
    * renaming the .zip file to something like .zipped, otherwise our mail server will not process it
    * including detailed steps to reproduce the problem.
    Thanks,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Search help: default value for 'Maximum no of hits'

    Hello,
    I have a request from a user to change the default value for maximum number of hits in the search help.
    Any quick hint?
    Regards,
    Michal

    Not sure if this is possible and don't have a SAP system available at the moment ...
    But check this out...
    Is there anything in user profile ..
    or check if the number of hits field has a PARAMETER ID associated with it...
    Then in that case you might default a value other than 500 in your user profile.
    Cheers,
    Ram

  • ADF 11g - Query Component - How to set default values for search criteria

    I have defined a VO with named query (with 2 search criteria). I created a page and drop a query with table. It works just fine until this point. My requirement is to set a default values for the two search criteria. For example, I have release and category criteria where they are set to use a drop down. I would like to default the values for the drop down when the page is shown up the first time and query the result right away. Is there a way declaratively or I have to create a custom query?
    Thanks.

    I figured this out. Thanks.

Maybe you are looking for

  • Is there a maximum viewport size for an EPUB file in iBooks?

    I have noticed that very large viewports sometimes cause iBooks to crash. Is there a maximum size allowed? thanks, Liz

  • IPad only shows a grey screen.

    Yesterday evening my iPad turned off by itself. Now when it start it only shows a grey screen. A reset causes the Apple logo to appear momentarily I cannot get the iPad into recovery mode. The battery is fully charded, was plugged in over night. Orig

  • Satellite T110-10x gave me the error right at the first power on

    Hello! My new Satellite T110-10x gave me the error right at the first power on. http://i25.tinypic.com/33bhiqq.jpg I try to start in Safe Mode , same problem: http://i25.tinypic.com/2hdvfis.jpg I start HDD recovery procedure using F8 And Repair my co

  • Why is the Restore function in disk utility so slow?

    I am using the Restore functionality in Disk Utility to copy my old 250GB Time Machine disk (which is now full) to a new 1.1TB disk. 250GB is calculating to take 11 hours to copy. Both disks are connected via FireWire (old one is FireWire 400, new on

  • I need help to Jimi or does anybody now another good forum?

    Hi people. I don't mangage to use Jimi I only want to read an image with.. image txtimg = Jimi.getImage(getDocumentBase(),source); the includes: import com.sun.jimi.core.*; import com.sun.jimi.core.filters.*; import com.sun.jimi.core.component.*; imp