Created By F4 issue in opportunity search

Hi,
In opportunuty search we have search attribute as 'CREATED_BY'. This gives the user name who has created the opportunity.
For this field we have F4 help window and the logic is as follows in GET_DQUERY_VALUEHELPS:
when 'CREATED_BY'.
        <rs_result>-output_mapping-context_attr = 'CREATED_BY'.
        <rs_result>-output_mapping-f4_attr      = 'BNAME'.
        <rs_result>-help_id-help_id             = 'USER_ADDR'.
        <rs_result>-help_id-help_id_kind        = if_bsp_wd_valuehelp_f4descr=>help_id_kind_name.
Above ''USER_ADDR' is an elementary search help which is assigned for this field.
Now When we press F4 on the CREATED_BY field, we have First name and Last name fields on it. And user is able to search the user ids when he/she knows the exact first/last name.
We can use wildcard operator * on it, but our users are not used to using it as for other applications they have operators.
Now the requirement is to make the First name and last name by "Start With" as default parameter in BACK GROUND.
As I have mentioned above, our search help for CREATED_BY uses the ''USER_ADDR' search help and the search help has the first name and last name field.
Is there any way to make the 'STARTS WITH' parametr as default for FIRST NAME and LAST NAME field in BACK GROUND or if there is any other solution, please guide me.
Thanks.

You can use the suggest feature which is available in any airline website. You can type in 3 characters and you can get suggestions for the name based on first name or last name in your case.
This is easy to implement where you have fetch either all the data from the search help and filter based on your key word entered or  fetch data from the search help based on filter parameters entered by the user. Basically you have to use 'CP' keyword in ABAP to filter out desired criteria.
Starts_with is just an extension of what I have mentioned.
It would be a customer delight if you can implement it like this.
Regards
Kavindra

Similar Messages

  • Opportunity search "Status"

    Hi,
    I have 2 problems with the search u201CStatusu201D in the Opportunity.
    1.  In the opportunity search, when  selected User Status and System Status u201CNot completedu201D, besides "In progress", "Open" Opportunities, the result is WON and LOST Opportunities too u2013 Why? What I have to do to appear only the Opportunities really completed?
    2.  Why System Status: u201CContains Errorsu201D and u201CNot Completedu201D appears in the user status search? Is It right?
    Please help me in solving these issues.
    best regards

    Hi Louise
    Actually I had to open an issue to SAP and the reply is basically below (copy/paste).
    Hope it helps you  - Please, let me know if you need more details.
    Thank you
    Best Regards 
    Luciana
    31.01.2012 - 14:29:26 CET - Reply by SAP                                   
    Hi
    Firstly, I must inform you that it is the correct and standard behavior that the drop down list of 
    STATUS_COMMON search field contains both system and user status, so there is no problem there.
    Secondly, regarding the issue of search by system status 'Not Completed' returning opportunities that have user status Won or Lost, please be advised that search by system status 'Not
    Completed' returns all documents that do not have system status I1005 active in table  CRM_JEST. I checked example opportunity 23042, and although the user status is set to Won
    E003, the system status I1005 is inactive, as can be seen in
    CRM_JEST: OBJNR STAT INACT  CHGNR
    DDFE637DD864D6F1A084001F2908FC32 E0001 X 002
    DDFE637DD864D6F1A084001F2908FC32 E0003 001
    DDFE637DD864D6F1A084001F2908FC32 I1002 X 002
    DDFE637DD864D6F1A084001F2908FC32 I1003 001
    DDFE637DD864D6F1A084001F2908FC32 I1005 X 002 << Completed  inactive
    DDFE637DD864D6F1A084001F2908FC32 I1027 X 002
    I hope this explains the issue.                  
    So please align your status profile ZCRMOPPT with that of the standard profile CRMOPPOR.
    If the system status is still not set to completed when you set user status to Won, then please provide me the steps to create such an opportunity in your T40 system.

  • Issue in elementary search help.

    Hi,
    Facing some issue on Attaching search help directly to the screen Fields.
    I have a requirement that
    1> Based on a screen field, I have to filter F4 for the other fields.
    2> I have to populate 2 screen elements at the same time.
    Like:
    In my transaction i have 3 fields :
    1> PA0001-WERKS : Personnel area.
    2> PA0001-PERNR : Personnel number
    3> PA0001-ENAME : Employee name.
    All 3 have been defined as Dictionary fields on the screen.
    Now PA0001-WERKS has its on search help and i use that to select the WERKS.
    Then i have to create a search help that takes this as the input and gives me a hit list showing all the personnel number ( and there name) in PA0001 table based on the screen field PA0001-werks.
    When i do F4 on say Pa0001-pernr field: a hit list showing all the personnel number ( and there name) in PA0001 table.
    When i select a row both PA0001-pernr and PA0001-ENAME should be filled in the screen.
    Solution that i tried:
    I created a elementary seach help ZSEL_PER and had the PA0001 as the selection table and had the 3 fields as the parameters:
    1> WERKS as input
    2> PERNR and ENAME as output.
    Then i attached the search help to the srceen fields :
    1> PA0001-PERNR : Personnel number
    2> PA0001-ENAME : Employee name.
    Now ,
    a> When i do F4 my data does not get restricted as per the WERKS on the screen.
    b> When i select a row both the fields on the screen dont get populated, only the field on which i did F4 ( that too always with the colomn 1 only of the hit list )..
    Is this possible with elementary search help and if yes then how ? what am i doing wrong...
    Thanks, Ad.

    Hi anuj,
    This is the Search Help Process(F4) for a Particular Field.
    Go to SE11.
    Select Search Help Radio button : Any name with Z or Y.
    Create.
    Short Description : Any.
    Selection Method : Table Name.
    Dialog Type : Display Values immediately.
    Search Help Parameter : Field Name (for which field ur doing in the table).
    Exp : Tick it.
    Lpos : 1 Just giving the position.
    SAVE CHECK ACTIVATE.
    Next Assign the Search Help to the table or field.
    SE11.
    Your Table Name : Change.
    Search Help Button above the fields.
    Search Help name : Your search help name.
    Copy.
    SAVE CHECK ACTIVATE.
    Now go and check to the field by F4.
    Thats it.
    hope this helps you.
    reward points for helpfull answers.
    regards,
    venu.

  • Opportunity Search for Status NE (is not) is not supported by SAP Standard

    Hi experts,
    due to wiki entry
    Searching for business transactions in the web ui using the Status criteria - CRM - SCN Wiki
    the opportunity search for a status with operator NE is not supported.
    Is there any SAP proposal for an appropriate workaround?
    Thank you and best regards
    Vanessa

    Hello Vanessa,
    This is a fresh development for my current customer which is not yet completely tested. The last customer had the same requirement, created an OSS-message for it, SAP told him in standard it is not possible and gave up. I think I already heard that too many selection parameters are not supported but I haven't seen it yet in our project. But I have seen that with mabye 100000 excluded transactions there is a time out.
    The alternative would be to create a sub-class of the GENIL-class (I think this is CL_CRM_QOPP_RUN_BTIL in your case - search for CL*OPP*IL* ) where the SQL-statement is triggered and redefine the relevant method (which is normally GET_DYNAMIC_QUERY_RESULT) and enhance the SQL-statement. Somewhere is customizing you have to replace the original class with the new class afterwards but right now I don't know where. I have not yet done this from scratch and I need to investigate this a little bit further.
    The second alternative would be to modify the select statements in a BADI. I guess it is CRM_BADI_RF_Q1O_READ. But there I only the the possibility to change the STATUS_COMMON-criteria to OBJECT_ID criterias as still STATUS_COMMON NE is not supported in the SQL-statement of the GENIL-class.
    Best regards,
    Thomas

  • Authorizations for Opportunity searches in CRM/EP?

    Need help restricting user results in Opportunity searches.
    Our authorizations scheme defines users by their sales group, but when doing searches in CRM/EP User 1 can see results for users 2 and 3 when doing an opportunity search which are defined outside of user 1's sales group.  Does this require any additional config enhancements such as Account or Territory management?
    Does this need to be solved by authorizations at field level, or is there a table where these restrictions can be maintained? So far I have been trying to restrict values via CRM_ORD_LP and B_BUPA_BZT.
    Not sure if this is the correct forum to post in, if not, is there a forum on here specifically for CRM Authorizations or configuration?
    <removed_by_moderator>
    Edited by: Julius Bussche on Aug 7, 2008 3:10 PM

    Hi Ram,
    The way we ended up resolving this was by adding the authorization object B_BUPA_ATT to each sales user role.  Each user had a secondary role which defined their particular sales group in the org model.
    It involved some programming (which required an outside resource) on our development side, but it worked.
    We basically had the consultant write code to perform a check against custom Z values in the AUTHTYPE field, and then the variables were the data placed in
    the AUTHVAL1 and AUTHVAL2 fields.  And obviously ACTIVITY was whatever the specific user was allowed to do with items in that sales area (postal code, country, etc)
    SAP's preferred solution is something called ACE which creates an extra layer of authorizations, however we didn't have the time and resources to properly implement that.  You may want to look into that if you have the time.
    Hope this information helps!

  • API to create control item (issue)

    Hi,.
    I am trying to create a "project issue" programatically.
    I found a PL/SQL API package PA_CONTROL_ITEMS_PUB
    I searched for documentation about this API on metalink (ETRM + IREP) as well as the "Projects APIs, Client Extensions, and Open Interfaces" manual - without any luck.
    I'd like documentation examples on how to call it. Anybody used it?
    Best regards,
    Søren Moss

    That is the correct API, but I have never seen any documentation. I would avoid it for R12 based on Metalink Doc 7018312. Maybe OK in R12.1?
    I'm often amazed at how much work goes into the Projects API's, yet so much goes undocumented!
    Also see: PA_CONTROL_API_PUB

  • Search Enahcement of Opportunity Search

    Hi Experts,
    Can anyone plz provide me a step wise guide as to how do I go about enhancing the Opportunity Search.
    For ex. the standard search does not allow me to search opportunty based on sales org. I would like to enhahnce the search so that search by sales org is available.
    Thanks.

    SJ,
    You will need to create a Role Config Key variant of the component that holds your search.  The following instructions assume you have the role Config Key ID already created.
    Open the Web UI and navigate to the required search screen. 
    Click on one of the search fields and press F2 to bring up technical details
    In the GUI, open transaction BSP_WD_CMPWB
    Enter the component (from technical details) that you wish to change
    Navigate to the view (from technical details) that you wish to change
    Select the appropriate configuration (from technical details) for your object type
    Copy the configuration using your Role config Key
    Amend the view as necessary using the UI Config tool shown
    Save changes and add to transport etc.
    Test in Web UI using a Business Role with your Role config Key assigned to it.
    I hope this helps?  Please award points if useful.
    Thanks,
    Andrew G.
    Edited by: Andrew Griffin on Dec 15, 2008 6:10 PM

  • Need to add more Fields to "List" Tile of MSA Opportunity Search Tileset.

    Hi Experts !
    We are trying to add more fields to the "List" Tile on the Opportunity Search Tileset to view additional information on the search result screen.Ex: Company Name, Product Description, Person Responsible & Channel Partner on Opportunity transaction should be displayed on the Search result screen.
    So far, with the help of Anchor modeling we tried adding the Opportunity BP (BOOPPBusinessPartner) Segment and (BOOPPProduct) Segment to the BOOpportunity Parent segment in the Opportunity_Write Bdoc.And, we added fields from BP & Product segment to the List tile by drag & drop.
    Upon Generating the changes, the system did NOT populate the data for the new fields.
    Please advise us where we are going wrong.
    Thanks & Regards,
    Jagan.

    Hi,
    the way you tried to add some more fields in a list tile is not working.
    In lists the data is not retrieved from Business objects/collections but from record sets which are fetched from the main segment of the underlying query BDoc (I guess sth like OPP_blabla_QUERY).
    Therefore what you could do is to enhance this query BDoc and add these tables by joining them to the opportunity header table. In this case you also need to specify exactly these segment field names in the property of the new list column fields.
    Much faster (but a little bit dirty) would be to use the row loaded2 event where you can calculate the values you want to display. In this case the controls would have to be unbound.
    The second version would cost a little bit more performance, but this depends from the data volume.
    Regards,
    Wolfhard

  • How do I create an update form, in a search.asp page.

    I have a search.asp page which when submitted transfers to
    the results.asp page. In the search I would like to also create an
    insert statement. The search.asp page has the following.
    Form: searchForm (Post)
    Text Field: KeywordSearch
    List Menu: CategoryTable
    List Menu: Location
    Button: Search
    When a client enters data in the search.asp page, I would
    like for the data, to be submitted to a database at the same time
    it searches the database. This using an insert statement. The
    reason for this is so that we can see what everyone is searching
    for.
    The database/table we created has the following.
    Table: tblSearches
    Field: idSearch (Auto Number)
    Field: location (Text)
    Field: category (Text)
    Field: user (Text)
    Field: keyWord (Text)
    At the moment I cant create an insert form because of the
    form that already exists in the search.asp page.
    Can anyone suggest how to do this.
    Ideally it would be good to be able to combine two forms into
    one, but I am told that this is not possible.
    TA
    Mally.

    Oh, I see. So is it Dreamweaver that wont let you create the
    insert statement using a form that is already submitting to a
    results.asp page? So if I create the insert statement by had it
    should work?

  • Enhancing Opportunity Search BADI

    Hi all,
    Can anyone tell me the name of the BADI that the Opportunity Search is using? Thanks!
    Regard,
    Patrick

    Look at OSS note 654730 - OIC: Search for partner with * in the fast search area
    Thanks,
    Thirumala.

  • Create new survey data for opportunity using abap code

    Hello to all,
    I have one requirement.
    create survey data for given opportunity ID using abap code. or copy survey data from one opportunity to another opportunity using abap.
    any ideas..
    many thanks
    Babu

    Hello Babu,
    You can do this through the CRM_ORDER_MAINTAIN FM, this is the generic FM to edit any transaction in CRM.
    The FM contains an internal table IT_SURVEY that must be filled. Actually, this table will only contain a reference to the (completed) survey, it doesn't store the data of the survey itself.
    For some example coding, take a look at the SrvTSurvey.do controller. If you want to see what data is stored in the IT_SURVEY table, create a transaction and attach a completed survey to it (you can easily do it in the standard views of the webclient) and take a look at the survey structure in the CRM_ORDER_READ FM/Report.
    Let me know if you need more guidance,
    Reward points if useful,
    Regards,
    Joost

  • Issue With Similar Search Strings in EBS

    Hi Everybody, I'm experiencing some issue regarding a Search String that I have, the config is very similar, the only difference between one and the other is that there's a specific posting rule for one particular account.
    EG: Search String 1: (^)ACCOUNT TRANSFER TRSF TO( |$)
          Search String 2:(^)ACCOUNT TRANSFER TRSF TO 1111111111( |$)
    (Where 1111111111 is the bank account)
    Same Extenral transaction, NTRF, Same house bank and account id. Same Comapny also
    But when executing a Statement with the 1st one it works fine, but when runing the 2nd one it does not use any of them(it takes the Posting rule set for NTRF in the EBS configuration).
    I've tested it in the SS test and it takes the right posting rule.
    If you have any clue on this I'll really appreciate it.
    Regards
    Luciano

    I apologize for the above and the thread has been posted here as I was unable to access the correct category due to some technical issues with Oracle forums. Also, the mentioned issue is in critical state and has a deadline so thought of posting to get it resolved as soon as possible. Specific categorization will be surely taken care in future.
    Moving the thread to below location:
    http://myforums.oracle.com/jive3/thread.jspa?threadID=1023776
    Edited by: 931435 on Jun 6, 2012 12:25 AM

  • How to create ECC Quotation from CRM Opportunity?

    Hi Experts,
    Here I am getting an error like "S::000" while creating ECC Quotation from CRM Opportunity. Here I am enclosing the screen shot, please give me the solution.
    Regards
    Kishor Kumar.

    Hi Kishore,
    Please check the below links, there are certain per-requisite steps which are needed  for this to work.
    https://help.sap.com/saphelp_crm60/helpdata/en/47/45839696581a41e10000000a1553f7/frameset.htm
    https://help.sap.com/saphelp_crm60/helpdata/en/47/463fc2b61c1a41e10000000a1553f7/frameset.htm
    You can also check the SAP Note : 1078575 - ERP sales transactions in SAP CRM for more details.
    Hope this helps.
    Regards,
    Siraj

  • Opportunity search field 'Changed at'

    I have the requirement to enhance the search for opportunities with a date field where you can enter the date when it was changed and a field by whom it was changed the last time
    I checked in GENIL_BOL_BROWSER the component BT and there the search query object BTQOpp - i could not find fields like that there
    Does that mean i will have to do GenIL-Programming or is there a better/simpler way to meet the requirement?
    Thank you

    Hi Marco,
    Check if the below links are useful.
    How to enahance Opportunity search for a custom date type
    Add field to Opportunity Search Criteria
    Regards,
    Karthi M R.

  • Adding Z field in Opportunity search and result view BT111S_OPPT/Search

    Hi,
    I have been searching this forum on adding Z fields in search and result view but couldnt find the precise information.
    We have Z field in ultimately residing in BUT000.
    Now when this field is used in BP_HEAD_SEARCH for search and result, it could be easily done via configuration. (since the field was added to CRMT_BUPA_IL_HEADER_SEARCH during EEWB extension.
    Now, the requirement is to add the fields in Opportunity BT111S_OPPT/Search & BT111S_OPPT/Result.
    I am confused with regard to the approach we need to use to get this field in search and result.
    I thought the easiest option is to add the Model node and and give the BOL attribute. This works fine but I can't see this field (with dynamic getter/setter) in the UI configuration.
    During the attribute creation wizard, I gave BOL entity as BTQROpp (system defaulted) and the relation was
    BTADVSOpp/BTOrderHeader/BTHeaderPartnerSet/BTPartnerAll/BTBusinessPartner/ZZZGEOG_REGI
    is this correct? or am I doing something wrong?
    Why can't I see the fields in configuration?
    So alternatively I created a field through AET and i could see this field is in the structure and in UI config, but what logic I need to put to retrieve the value?
    Any advice?
    Many thanks in advance for your help
    Rakesh

    Hi Rakesh,
    Please follow below steps:
    1. Append your custom field to structure associated with your search/result structure.
    2. After you append this field to structure, this field would be available in context node.
    3.  Check if the field is reflected in available fields in configuration.
    4. If field is not present in configuration then please follow steps stated by me in:
    Re: New Column can not be added in chtmlb:configTable
    5. Once you add this field to design layer, you would be able to configure it to your search query. Check if your query works with this field.
    If not then please go through below forum :
    Re: BADI for Claims search in trade promotion management
    Let me know if this helps.
    Regards,
    Bhushan

Maybe you are looking for