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)

Similar Messages

  • 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

  • Setting Default Values in Search Criteria for COSTCENTER

    Hi ALL,
    I need Help for setting default values in search criteria for COST CENTER.
    Basically the issue is when creating a Shopping Cart, i need to assign a COST CENTER at Item level under COST ASSIGNMENT Tab.
    While searching the cost center i need to default the following fields in my search criteria based on the Login User :
    1. Controlling Area,
    2. Language Key.
    Please suggest some solution.
    Thanks & Best Regards,
    Surya

    Hi Vani,
    Sorry for the delay reply and Thanks a Lot for your timely support......I would like confirm once again is the name of the BADI is <b>bbp_f4_read_on_exit</b> or <b>bbp_f4_read_on_entry</b>. In this BADI i've not found a method to default Controlling Area. Can you please suggest me which method i can use.
    Thanks & Regards,
    Surya

  • 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

  • Search help default value in SE11

    Hello!
    I would like to set a default value to a self-made search help.
    I referred the following link in this theme:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/73/5414f0adbd11d194f200a0c929b3c3/frameset.htm
    This docu tells me, how can I enter default value to a field. But life is not so easy, because I have to EXCLUDE a constant.
    I mean default value can be a constant like this: 'A'.
    But I would like to set one like this: <>'C' to exclude all documents with the status C.
    If I test the help search in runtime it is accepting values to exclude but I would like to pre-set the value.
    Thank you for any answers
    Tamá

    Hi,
    There is no simple solution for this. If you have a view in your selection method instead of the table then you can define your requirement in the selection TAB to restrict based on your conditions.
    Without using a view the other option is to use a search help exit.
    Think view is a better and safe bet.
    Cheers
    VJ

  • Search Help default value

    Hi experts,
    I want to create a search help for the Material. In the search help I should set some default value like the language and the company. I know how can I set the default language, but how can I say that the default language could not be 'EN'.
    I need to set this one: SPRAS NE 'EN', but I don't know how.

    Hi,
    Create a help view first and include the tables ,in the selection conditions tab page restrict the data entry by adding all the condition such as EQ,NE.GT,LT AND ,OR operator as per your requirement.
    Then add this help view to the selection method in the search help created.
    eg:SPRAS NE 'EN'
    Hope this will help you!!!
    Try this It works!!
    Regards,
    Nishi.M

  • 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

  • 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.

  • Exit to fill default value in f4 help screen

    hi all,
    i have created one custom report having partner function and partner no on selection screen.
    When the F4 help is used on the Partner Number field in the selection screen, the match-code should show the page with Account Group as shown in va01 ( sales order creation) in partners tab , when we enter 1D in partner function field and press f4 for partner number field.
    The Account Group of the Partner Function should be defaulted in the Account Group field. For example, if the Partner Function is selected as 1D(Holding), the Account Group should be defaulted as Z011.
    if any one can please help.
    regards
    vijay.

    Hi
    Try setting the Parameter ID's of the fields with the default value you want. It might work.
    Cheers
    Ravish

  • SAP - Release strategy Characteristics Default Value Usage

    Hi,
    I am currently working on Release strategy where in I wanted to set the Default Values for the Characteristics. However, Even though I have flagged the Default values, system it is not defaulting the same.
    Secondly, I tried to use Option CL20N Where the value are apper, but when I Save, It is not stored.
    I wanted to know, Is there any setup need to be done for default value or is some thing I am Missing out.
    Please Let me know ASAP
    regards
    Arvind

    Maintain the default values in char itself.
    Goto CT04 enter your char and in Value tab enter all your default values which will be defaulted while char selection in release startegy.
    Note untill the char values are  not checked  during assigning class and release startegy in CL24N they will not be saved.

  • JDBC returning default values !! Help Required

    There are certain fields in a particular table which are of type integer and these fields in teh database have a value of null ( database null)
    Even, When I try to retreive the value of the field using getString method of the ResultSet, the value returned is the default value (0) , is there any way to get the
    actual value ( null) ? . Is there any way to avoid getting the default values ?
    Regards,
    Harsha

    You meant getInt(), not getString(), right?
    The getInt() method has to return an int, and since that isn't an object, Java doesn't have the concept of "null" for it. So what you do is, after you call getInt() on the ResultSet, you call wasNull() and that returns true if the zero was really a null.

  • Default Values in IW73 Selection screen

    Hello Experts,
    SAP transaction IW73 has a default entry 100004731 for functional location.
    Please guide me how to remove this entry and defaulted to blank?
    Thanks!!!
    Br,
    Arun

    Hi,
    Generally default values can be assigned to transaction by BADI implementation. So, search for the BADI of IW73 transaction and deactivate the implementation.
    Hope this will be helpful for you.
    Regards,
    Supriya.

  • Default value on the selection screen.

    Hi All,
    We have a field on the selection that is Sales Organisation.
    Now for this field we want the default value coming from the User Parameters.
    i.e On SAP menu under SYSTEM there is User profile, In that user profile if you go to OWN DATA, There is tab called parameters.
    Here VKO Parameter ID the sales Organisation is defined. They want this value to come as default on the screen.
    Please help out how can this be done.

    In the INITIALIZATION write the code as below.
    get paramater id 'VKO' into field p_sfiled.
    here p_field is your selection screen field.
    Reward points if useful
    Regards,
    Nageswar

  • Setting default values for field on screen.

    Hello,
    I am trying to set default value for one of the fields I have on screen when I execute the custom transaction.
    I am doing that in PBO as follows. But the default value is not set for Date field.
    PROCESS BEFORE OUTPUT.
    MODULE PBO_OUT.
    MODULE STATUS_5000.
    *&      Module  STATUS_5000  OUTPUT
          text
    MODULE STATUS_5000 OUTPUT.
      SET PF-STATUS 'NON_SAP_DOCUMENT'.
      SET TITLEBAR '001'.
    ENDMODULE.                 " STATUS_5000  OUTPUT
    *&      Module  PBO_OUT  OUTPUT
          text
    MODULE PBO_OUT OUTPUT.
      ERDAT = SY-DATUM.
    ENDMODULE.                 " PBO_OUT  OUTPUT
    Please help.
    Thanks.
    Regards,
    Rajesh.

    Works Now...

  • Getting default values in module pool screen

    Hi frenz,
    I have a requirement like in module pool i am supposed to bring 4 fields from ddic,in which the first two fields should have a default value i.e when the pbo is processed itself the input values should be displayed in first two fields.....can some one help me out to solve the issue.
    thanks
    prem
    Edited by: prem kumar on Jun 19, 2008 1:30 PM

    suppose u are using field1 field2 on screen...
    then in PBO create a module
    module def_val.
    inside it write.
    field1 =  '100'.
    field2 = '101'.
    here 100 and 101 are the default values that u r going to assign....
    that will solve ur issue..
    rewrd points if the ans is helpful...

Maybe you are looking for

  • MBP Won't load - stuck at grey apple logo

    Ok here's my dilema ... I've read posts about this same problem but I can't get this mbp to do any of the suggested fixes!! Here's where I screwed up.... I was playing around with iWeb 09' trying to make a better website for my company... when all of

  • Fbl3n_line item disply

    I am using ecc 6.00 when i am using fbl3n for a GL line item disply in vendor column is not showing anything. it is not getting updated. Please tell me how to do it

  • Error building PKG grub-reiser4

    helo,    I have this error building makepkg in grub-reiser4 aur package makepkg ./PKGBUILD: line 12: syntax error near unexpected token `)' ./PKGBUILD: line 12: `           '4876f193005df5fca8ca9647729d1e23')' ==> Making package: grub 0.97-2 (Sun Dec

  • Connecting Pumps to PC and Using LabView to collect the data

    Hi There, I am a beginner with LabView and I want to use LabView to collect data from a Pump using RS-232. Could anybody help me where I need to start from? I highly appreciate your help. Regards Mo

  • Save a waveform chart

    Hello! I am trying to save a Waveform chart into a file usin the Save waveform to a file. I have been doing test with ramdom numbers in little programs and I was able to save then in waveforms, but I can not do the same in the program that recieves t