Default in search help

Hallo Developer,
I have a problem with a search help even built.
It should be present a default value in the search help, for who however can be changed.
A customer should be valid.
The customer can have different Stati.
Some Stati mean, which is valid the customer, some stati mean, which are not valid the customer.
The field ' default ' in the search help cannot be used therefore.
Questions:
1. Do I have to write a search help exit?
2. Do I have to copy the data selectio in the search help exit and indicate the default values here?
Can these be changed then in the surface?
3. Can I indicate default values in the range ' PRESEL '?
I hope someone have a solution for my problem.

I have found an answer myself.
In a Serchhelp- Exit :
data: ls_SHLP type SHLP_DESCR.
data: lt_SELOPT type DDSHSELOPS.
data: ls_SELOPT like line of lt_SELOPT.
STEP PRESEL  (Enter selection conditions)
  IF callcontrol-step = 'PRESEL'.
  PERFORM PRESEL ..........
ls_SHLP = SHLP.
ls_selopt-SHLPNAME = '/DKVES/KP_BP_CIC_ALL'.
ls_selopt-SHLPFIELD = 'ATTRIB_2'.
ls_selopt-SIGN = 'I'.
ls_selopt-option = 'EQ'.
ls_selopt-low = 'BK'.
ls_selopt-high = 'NK'.
append ls_selopt to shlp-selopt.
ls_selopt-low = 'RE'.
ls_selopt-high = ''.
append ls_selopt to shlp-selopt.

Similar Messages

  • Choose default Search Help in a collective Search Help

    Hello,
    In a collective search help, when it was launched, I want to open the same search help by default. In fact, the SAP standard keep in memory the last search help opened and when we re-opened it, the last search help in open.
    Thanks in advance.
    Best regards,
    Xavier.

    In found a solution.
    There are no standard solution BUT, in the Collective Search Help Exit, you can do a DELETE or a MODIFY on the DDSHDEFSH table (Default value - search help per user and collective s.h.).
    Xavier.

  • How to build search help for company code (BUK) in SRM

    Hello,
    I am new to SRM and was wondering if any have come across similar requirement. I am a workflow developer and we are building a custom table to derive deadline escalation timelines. We are also adding a field in our custom table for company code so that we can have company specific deadlines. table T001 is empty in SRM and hence we are unable to use F4 (search help). Is there existing functionality in SRM that gets this search from the backend ECC system and displays when F4 is pressed. How can I use that functinoality?
    Appreciate any info folks.
    Thanks again.
    Samir

    Hi
    Which SRM version are you using ?
    <b>Related links -></b>
    Re: Search Help on SRM front end screen
    F4 Help for WBS Element
    Re: Company Code defaults
    Re: Search help for Custom Item level field
    Custom field in SRM as a dropdown field with values stored in R/3
    Calendar help for Date i/p field in SRM 5.0 shopping cart
    Company code
    Problems assigning values via F4 or search help
    Also There is a standard table in SRM which contains Plant data ->
    <b>BBP_LOCMAP</b> (Mapping Table Business Partner --> System --> Location)
    Try creating a  custom search help based on this Table, defined as selection method and assign the same to the related field.
    Do let me know.
    Regards
    - Atul

  • Search Help Parameter Default - Problems with VKO and VTW in Sales Order

    Hello,
    we've implementend an own serchhelp for the material-search.
    The fields VKORG and VTWEG have the default VKO and VTW.
    If I open this searchhelp in VA03 those values are not filled, if I open it in MM03 or ME23N those values are filled.
    My user has the VKO and VTW-parameters set.
    We have no custom "preselect-code" implemented.
    If I change the values to VKU and VTW the output is the same (works in MM03 / ME23N but not in VA03) (copied default values from MAT1S search help, didn't change my user parameters!)
    What could be the problem?

    Our searchelp was in our own append ZA_SD_MAT1.
    Solution:
    We deleted this append and added our search-helps to SD_MAT1 and now everythings works in mm03, me23n and va03.

  • 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

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

  • 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

  • How to make custom append search help tab default for all users?

    I've implemented my own search help append and I need to make the F4 search help to display my tab as default for all users. I know that search help stores the last tab used by the user in memory and when user uses the search help next time the last used tab is displayed but I have to make the system display the tab od my search help append always as default tab. Any idea how to do it?
    Message was edited by:
            Marcin Milczynski

    hi
    <b>Enhancement using Append structures</b>
        Append structures allow you to attach fields to a table without actually having to modify the table itself. You can use the fields in append structures in ABAP programs just as you would any other field in the table.
    Click on the append structure tab and opt to create new
    structure.
    Append structures allow you to enhance tables by adding fields to them that are not part of the standard. With append structures; customers can add their own fields to any table or structure they want.
    Append structures are created for use with a specific table. However, a table can have multiple append structures assigned to it
        Customers can add their own fields to any table or structure they want.
    The customer creates append structures in the customer namespace. The append structure is thus protected against overwriting during an upgrade. The fields in the append structure should also reside in the customer namespace, that is the field names should begin with ZZ or YY. This prevents name conflicts with fields inserted in the table by SAP

  • Search help - Make a field default without grey-out

    Hi,
    I have a custom-search help, where in the dialog-popup I'd like to default a value without grey-out.
    If I import from memory via parameter ID, then the default value is ok, but it's greyed out.
    If I don't import it, then it's initial, but not greyed out.
    Is it possible?
    Thanks,
    Peter

    Hi Sri & Sanjay,
    Thanks a lot for your help.
    Unfortunately I cannot use the default value, as this should be dynamic based on another field on the screen. I tried if I use default, and it's not greyed-out.
    If I use IMP flagged, or import this value in the user exit from memory, then it's always greyed-out.
    It seems it's not possible unless I create my screen in the pop-up.
    Thanks,
    Peter

  • 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

  • Stanard search help -default values change

    I have assigned a search help to sales order like this
    SELECT-OPTIONS   :s_vbeln     FOR  gv_vbeln MATCHCODE OBJECT  VMVA.
    When i press F4 i get select options correctly.But in select options there is a field Called Transaction group which will be defaulted to '0' i.e Sales Order.
    I wanna change this default valur to '4'(Contract). Any Techniques.

    i think u can set value to the params VTV t0 '4' .
    select-options : trvog for vbak-trvog memory id vtv default '4' no-display,
                     vbeln for vbak-vbeln matchcode object vmva.
    regards
    Prabhu
    Edited by: Prabhu Peram on May 21, 2010 3:42 PM

  • Change Default choice of Elimentary search help in Collective Search Help

    Hi All,
    This might be very odd one but i am faced with such a requirement.
    In collective search help for eg in MM02 for material we click on a F4 for material master and it gives the list of various search help.   By default the last selected elimentary search help will be selected.
    My requirement is that by default only the first search help has to be displayed. 
    Any idea on how this can be achieved.
    Regards,
    G

    Hi NabheetMadan,
    I am aware of the concept of search help exit.  What i am looking for is how to influence the choice of default search help in the exit.
    Regards,
    Shankar

Maybe you are looking for

  • MBP is not picking up my Camcorder

    Alright so let me first say I have a Canon ZR200 which I got about a year and 3 days ago from Best Buy. Long story it crapped out and just died one day so got it fixed picked it up and realized the firewire was broken in teh camera, like one of the p

  • T7900 remote screwed...

    Hey. I bought a Creative Inspire T7900 with my dell computer, and now i have a problem with the sound system(which is covered by dell), but i hoped for a quicker answer here before i asked them. The bass in my sound dissapears sometimes when i use th

  • Status profile

    dear all, hi all, i have this problem. i made Sales Order with Milestone Billing (Billing Plan). it's order related. then, i made status profile (BS02). there's 2 statues : 1. ADM -- user cannot create billing doc (Object type : VBP) 2. BOH -- user a

  • SJSWS7.0u8 use local hostname in logs

    I am trying to add the local host name into my access and error log files, in Sun Web Server 7.0u8, in two ways: 1. Add the local host name as part of the log file name on disk 2. Add the local host name into the custom log format of the access log.

  • MacBook Pro Full Restore

    I have an "Early 2011" MacBook Pro that I bought in August 2011. This meant I received a free upgrade to Lion from Snow Leopard that came pre-installed. I'm finding now that the computer has become quite slow and laggy. This may be due to some virus