How to create a Picklist for a Srch-Field that was added to BP_HEAD_SEARCH?

Hi experts,
I've enhanced the BP_HEAD_SEARCH with the field SALES_OFFICE from BP_SALES. For more information about this, please refer to my previous thread where I asked how to do that:
How to add search field to BP_HEAD_SEARCH from component BP_SALES?
I can search for SALES_OFFICE but the request now is to use a Picklist instead, just like in BP_SALES in View CorpAccountOrgEF.
To add the field SALES_OFFICE to the BP_HEAD_SEARCH I had to add it to the structure CRMT_BUPA_IL_HEADER_SEARCH.
There it is in include CI_EEW_BUT000 as ZZSALES_OFFICE with the same Data Element as its original (CRMT_SALES_OFFICE).
So when I look at BP_HEAD_SEARCH/MainSearch in the Component Workbench - ZZSALES_OFFICE is in the SEARCH Context Node as attribute STRUCT.ZZSALES_OFFICE.
For that attribute I've generated the GET_P and GET_V methods and added below coding.
method get_p_zzsales_office.
  case iv_property.
    when if_bsp_wd_model_setter_getter~fp_fieldtype.
      rv_value = cl_bsp_dlc_view_descriptor=>field_type_picklist.
  endcase.
endmethod.
method get_v_zzsales_office.
  data: lt_ddlb          type bsp_wd_dropdown_table,
        ls_sales_area    type crmt_bus_sales_area,
        lt_partner_crm   type table of crmmspl_bp_l0011,
        ls_partner_crm   type          crmmspl_bp_l0011,
        lr_ddlb_type     type ref to   cl_crm_uiu_ddlb.
* get sales area
  select distinct sales_org channel division from crmmspl_bp_l0011
         into corresponding fields of table lt_partner_crm.
  read table lt_partner_crm into ls_partner_crm index 1.
  move-corresponding ls_partner_crm to ls_sales_area.
  if lr_ddlb_type is not bound.
    create object lr_ddlb_type
      exporting
        iv_source_type = 'T'.
*   Get values for SALES_OFFICE
*   provide sales area
    call method cl_crm_uiu_bp_cust_get=>get_val_for_sales_office
      exporting
        is_sales_area  = ls_sales_area
      receiving
        rt_value       = lt_ddlb
      exceptions
        error_occurred = 1
        others         = 2.
    append initial line to lt_ddlb.
    if sy-subrc = 0.
      lr_ddlb_type->set_selection_table( it_selection_table = lt_ddlb ).
    endif.
  endif.
  rv_valuehelp_descriptor = lr_ddlb_type.
endmethod.
But I still don't get a Picklist for my ZZSALES_OFFICE. None of these methods are even called - which I found out through debugging.
Does anyone have an idea on how to do this?
Thanks in advance!
Best regards,
Melanie
Edited by: Melanie Lauber on Feb 12, 2009 1:33 PM

Hi again Stephen!
Very thanks for your reply. You've solved my problem AGAIN!
I had to redefine the Method GET_DQUERY_DEFINITIONS, copied the original method and in the loop I added my coding as below (maybe this helps someone else too):
* local data:
  data:
    lt_classcat          type crmt_bus_clcatt.
  field-symbols: <rs_result> like line of rt_result.
  call method super->get_dquery_definitions
    receiving
      rt_result = rt_result.
  loop at rt_result assigning <rs_result>.
    case <rs_result>-field.
      when 'OWNERLASTNAME'.
        <rs_result>-server_event = 'VHELP_EMPL'.
      when 'CPLASTNAME'.
        <rs_result>-server_event = 'VHELP_CONT'.
      when 'CREATION_USER'.
        <rs_result>-server_event = 'VHELP_CRUSR'.
      when 'CHANGE_USER'.
        <rs_result>-server_event = 'VHELP_CHUSR'.
      when 'MARKETINGATTR'.
        <rs_result>-server_event = 'VHELP_MARKETINGATTR'.
      when 'POST_CODE1' or 'HOUSE_NUM1'.
*       overrule CL_BSP_WD_CONTEXT_NODE_ASP->ADJUST_DQUERY_VALUEHELPS
        collect gc_operator_bt into <rs_result>-operators.
        collect gc_operator_gt into <rs_result>-operators.
        collect gc_operator_lt into <rs_result>-operators.
*--> begin - 12/02/09 - Melanie L.
      when 'ZZSALES_OFFICE'.
*       get sales area
        select distinct sales_org channel division from crmmspl_bp_l0011
          into corresponding fields of table lt_partner_crm.
        read table lt_partner_crm into ls_partner_crm index 1.
        move-corresponding ls_partner_crm to ls_sales_area.
*       Get values for SALES_OFFICE
*       provide sales area
        call method cl_crm_uiu_bp_cust_get=>get_val_for_sales_office
          exporting
            is_sales_area  = ls_sales_area
          receiving
            rt_value       = lt_ddlb
          exceptions
            error_occurred = 1
            others         = 2.
        append initial line to lt_ddlb.
        if sy-subrc = 0.
          loop at lt_ddlb into ls_ddlb.
            move-corresponding ls_ddlb to ls_ddlb_opt.
            append ls_ddlb_opt to lt_ddlb_opt.
          endloop.
          <rs_result>-ddlb_options = lt_ddlb_opt.
        endif.
*--> end   - 12/02/09
Kind regards,
Melanie

Similar Messages

  • How to create a view for all Service Requests that are not approved by reviewer

    Hallo,
    I want to create a view in the Service Requests library that shows all SRs that are not approved. How to configure condition that says: if a SR has related Review Activity which is In Progress, show that SRs?
    I couldn't find this when creating the view. Thank you.

    So here's the first problem with that: Which review activity? a SR can contain multiple RAs, so how do we decide if an arbitrary SR is approved or not? 
    As to the specific language you use (Any child RA is In Progress) you might want to look at the criteria from the default Change approval view, which does something similar: 
    <QueryCriteria Adapter="omsdk://Adapters/Criteria" xmlns="http://tempuri.org/Criteria.xsd">
    <Criteria>
    <FreeformCriteria>
    <Freeform>
    <Criteria xmlns="http://Microsoft.EnterpriseManagement.Core.Criteria/">
    <Expression>
    <And>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity' TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity']/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    <Expression>
    <SimpleExpression>
    <ValueExpressionLeft>
    <Property>$Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$</Property>
    </ValueExpressionLeft>
    <Operator>Equal</Operator>
    <ValueExpressionRight>
    <Value>$MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$</Value>
    </ValueExpressionRight>
    </SimpleExpression>
    </Expression>
    </And>
    </Expression>
    </Criteria>
    </Freeform>
    </FreeformCriteria>
    </Criteria>
    </QueryCriteria>
    This is a simple AND criteria with two componets. one looking for a Review Activity (TypeConstraint='CoreActivity!System.WorkItem.Activity.ReviewActivity') which is related to the targetting CR by Contains Activity ($Context/Path[Relationship='CoreActivity!System.WorkItemContainsActivity';
    Context in this... context means the CR targeted by the view) where it's status (/Property[Type='CoreActivity!System.WorkItem.Activity']/Status$) is In Progress ($MPElement[Name="CoreActivity!ActivityStatusEnum.Active"]$). The other is filtering
    for the target change request's status ( $Context/Property[Type='CoreChange!System.WorkItem.ChangeRequest']/Status$) is In Progress ($MPElement[Name="CoreChange!ChangeStatusEnum.InProgress"]$). 
    You could convert the second criteria to point to SRs and SR status values, and then use the similar text for the first criteria. i'd recommend
    Anton's Advanced View Editor (or
    the free version) to do the criteria adjustment. 

  • How to create a workflow for a date field if the date is approaching?

    Hi Experts,
    I have to create a workflow on the basis of delievery date entered for the Record type opportunity.
    Like, if the user have entered the expected delievery date while Closing the Opportunity a mail should be triggered to concerened persons before 10 days of that "Expected Delievery Date".
    If anybody can help in this regard,Thanking in anticipation.

    Configure wait action field Until When with the expression [<Delivery Date Filed Name>] - Period("10D")

  • How to create logical link for report and make that available in webui

    Hi All,
    Please  mention the steps to creae logical link for standard report(BI) or customized report and assiging it to work center,
    Thanks,
    priya

    There is a good guide available from SAP: service.sap.com/crm-inst
    It goes into most details you would want to know on including BI reports.
    The path is SAP CRM > SAP CRM 2007 > CRM WebClient UI
    cheers Carsten

  • HT3209 How can i be reimbursed for a rented movie that was unplayable?

    I rented an HD movie which was not playable on my MacBook Air
    Processor  1.8 GHz Intel Core i7
    The rental period expired and i am now out my 4.99
    How can i get reimbursed or receive a credit?
    j

    Unplayable in what way ? If the download was corrupt then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that film and use the 'Report a Problem' link.
    Some people have had a problem with the 'report a problem' link (it's been taking people to this site on a browser instead of showing a form in iTunes) - if it does that to you then try contacting iTunes support via this page : http://www.apple.com/support/itunes/contact/- click on Contact iTunes Store Support on the right-hand side of the page.
    If unplayable in terms of your Mac not supporting it then all purchases are considered final, but you can try contacting iTunes support and see if they will refund or credit you : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • How do I get rid of the new toolbar that was added by versions 20 and 21?

    I have tried both versions 20 and 21 and both have the bugs below so I ended up having to re-install version 19:
    1.) Versions 20 and 21 add a new toolbar that has nothing but a "Firefox" button on it - and no way to get rid of this toolbar is provided. It wastes far too much space on my laptop's screen - that button should have been put on one of the other toolbars or simply made part of the icon set that users can use to customize their menubar or other toolbars.
    2.) That new toolbar is not customizable. Hence, I don't have the option of recovering screen space by moving everything from my menubar onto the new toolbar then hiding the menubar.
    3.) The back, forward, and stop|reload buttons on my menubar no longer work. Moving them back to the navigation toolbar and showing that toolbar does not solve the problem. Nor can I right-click on a web page and select those functions from the context menu: they are permanently disabled there too.
    4.) I can no longer right click on the menubar or a toolbar and get a context menu from which you I can pick a "customize" option - I can't get a context menu AT ALL. In order to customize things for versions 20 or 21, I first have to reinstall version 19, do the customizations, then reinstall version 20 or 21.

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    You can also check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • How to create transactoin code for a predefined variant?

    Hi,  I have created one variant for a custom report.How to create transaction code for the report with that variant?

    When you create the transaction in SE93 select the Program and selection screen(Report transaction) type not
    the transaction with variant(Variant transaction)

  • How to create a macro for a planning type in MC8b transaction

    Hi,
    I am presently working for a product allocation demand, which have a information structiure with characteristic and key field.
    the characteristic are production allocation quantity, incoming order quantity, and open order quantity.
    i have created a planning type in which the data updation takes from the excel file to the planning type in mc95.
    but i need to create a macro for this planning type .
    can any body give the details information how to create a Macro for a planning type.
    Thanks and regards
    GopalKrishna

    Dear Gopal
    May be the link would be helpful to you.
    [Planning Types and Macros|http://help.sap.com/saphelp_46c/helpdata/en/a5/631cc443a211d189410000e829fbbd/frameset.htm]
    Drill down the left tab once you opened the link, for more information.
    Thanks
    G. Lakshmipathi

  • How to create custom infotype for training and event management

    hai freinds can any one tell me how to create custom infotype for training and event managment with following fields
    PS No – PA0000-> PERNR
    Name   - PA0001 -> ENAME
    IS PS.No. – PA0001-> PS no. of Immediate Superior
    IS name PA0001 -> ENAME
    thanx in advance
    afzal

    Hi,
    Your question is not clear for me. Since it is a TEM infotype, it could be a PD infotype.
    If you wish to create a PD infotype, use transaction PPCI to create the infotype.
    But before that you need to create a structure HRInnnn (where nnnn is the infotype number) with all the fields relevant for the infotype.
    If you wish to create a PA infotype, use transaction PM01 to create the infotype.
    But before that you may be required to create a strcuture PSnnnn  (where nnnn is the infotype number) with all the fields relevant for the infotype.
    Regards,
    Srini

  • How to create one TO for multiple TRs

    Dear All,
    how to create one TO for multiple TRs, kindly suggest me
    Regards,
    balu

    As for your question: it is discussed in sAP online help:
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/c6/f841f24afa11d182b90000e829fbfe/frameset.htm
    Sorry I misunderstood your question.
    The above mentioned solution won't create one single TO from multiple TR.
    Edited by: Csaba Szommer on Aug 11, 2010 9:46 AM

  • How to create one checksum for 264 vis

    Hi,
    How to create "one Checksum" for 264 Vis.These 264 Vis are Interlinked if i change code for any .vi the checksum Should be update.This checksum is shown on the main window.
    Regards
    Ravindranath
    Solved!
    Go to Solution.

    Here's a slightly simplified version (saved in 8.6).  There's no need for the Get/Set File Position.  The file position is already being incremented with the read.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines
    Attachments:
    Multiple File MD5 Checksum (Version 8.6).vi ‏23 KB

  • How to create new scope for SharePoint calendar?

    How to create new scope for SharePoint calendar?
    I have a calendar list to which I want to create following scopes-
    Annual View
    Half Year 1 (Jan-June)
    Half Year 2 (Jul-Dec)
    Quarter 1 (Jan-Mar)
    Quarter 2 (Apr-Jun)
    Quarter 3 (Jul-Sep)
    Quarter 4 (Oct-Dec)
    How this can be created. Any help appriciated. Thanks.

    Hi Pratima,
    Can you please see below link and code snippet for how to
     format date in gridview.
    http://www.aspdotnet-suresh.com/2011/05/how-to-set-date-format-in-gridview.html
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
    <title>Gridvew Date format</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <asp:GridView runat="server" ID="gvdetails" DataSourceID="dsdetails" AllowPaging="true" AllowSorting="true" AutoGenerateColumns="false">
    <RowStyle BackColor="#EFF3FB" />
    <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
    <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
    <AlternatingRowStyle BackColor="White" />
    <Columns>
    <asp:BoundField DataField="Date1" HeaderText="Date1" HtmlEncode="false" DataFormatString="{0:s}" />
    <asp:BoundField DataField="Date2" HeaderText="Date2" HtmlEncode="false" DataFormatString="{0:D}" />
    <asp:BoundField DataField="Date3" HeaderText="Date3" HtmlEncode="false" DataFormatString="{0:m}" />
    <asp:BoundField DataField="Date4" HeaderText="Date4" HtmlEncode="false" DataFormatString="{0:d}" />
    <asp:BoundField DataField="Total" HeaderText="Total" HtmlEncode="false" DataFormatString="{0:C2}" />
    </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="dsdetails" runat="server" SelectCommand="select * from DateFormat" ConnectionString="<%$ConnectionStrings:dbconnection %>"></asp:SqlDataSource>
    </div>
    </form>
    </body>
    </html>
    Hope this will help you.
    Regards
    Soni K

  • How to create a PR for each Maintenance Order

    Dear All,
    Please guide me how to create a PR for each Maintenance Order.
    I test on Ides, I have some Maintenance Orders, all of them require the same stock material. When I run MRP, system always create one PR for all requirements. I don't know how to change.
    Regards,
    QuangDD

    Hi,
    As you planning for Stock Items, by running MRP, system will create single PR only. If it is non stock items, then it would be possible to create different PR based on Orders.
    Regards,
    Maheswaran.

  • How to create t-code for a table and how to create transaction variant???

    Hi,
    I have created a custom table zsark.
    Now my requirement is : I have to create a transaction variant zsark_var for sm30 and table zsark. I have to disable the output of the first screen. I have to assign the transaction variant to the transaction code of table zsark.
    Now,
    1.     how to create transaction code to a table. Can any one give me the 
                    staps??
    2.     how to create transaction variant for the above requirement???
    Thanks & Regards,
    Sarkar

    Hi
    1 Goto SE93 transaction
    2 Choose 5th option Transaction with parameters
    3 Give transaction : SM30, Check Skip Initial Screen Press Enter
    4 Goto Bottom left corner, click F4 select viewname, on right hand side give table name
    5 Press one more time F4, choose update , mark it X on right side.
    6 save the transaction.
    Thanks
    sandeep
    reward if helpful

  • How to create transaction code for a Z-table

    How to create transaction code for a Z-table?
    Se93 --> then which radio button to be selected? and what is the program nam e to  be given

    Hi Sam,
    <b>Procedure to create a TCODE for ZTABLE:</b>
    Create a table maintainance/View for the Z* Table.
    Once you create the view goto SE93>Select Parameter transaction and give the short desc.>
    Give the transaction as SM30(Skip the first screen-optional)>Check all check boxes under GUI support>In the default values(grid)section first row give the VIEWNAME as you created initially and the second row UPDATE as X.
    <u><i>Se93 --> then which radio button to be selected</i></u>
    Select the parameter transaction as a radio button.
    <u><i>what is the program nam e to be given</i></u>
    no need to give any program name. Instead you have to give the transaction code name as SM30.
    Pls mark the helpful answers.
    Thanks
    Eswar

Maybe you are looking for

  • Application Process Issue

    +(First off, we're using ApEx 4.0 through IE8)+ I have a report that serves as a 'shopping cart' of sorts, with a 'Remove' button to cancel items from it. But the 'Remove' button doesn't go to the page, it just leaves a blank white page. (Thankfully,

  • Can't open my hotmail on the X10 mini pro

    Hello,i have changed my password on my hotmail account on the pc,and now i can't open my account on my X19 mini pro. i check on my account in the X, nothing helps it still giving vertification fold check username-password. Got somebody the answer??

  • Screen Sharing (video resolution?)

    I have tried Screen Sharing both to a bigger monitor and a smaller one. Sharing to a smaller monitor seems problematic because the mouse becomes hyper sensitive. It's near impossible controlling the mouse. Sharing to a bigger monitor the mouse works

  • Session control with multiple web servers in IE

    to understand my problem do the following: make a page with this code: <% out.println("sessionID = "+session.getId()); %> Run two (2) instance of web servers (can be a tomcat) in different ports... open IE and access the URL: http://localhost:8080/te

  • Indian programmer for remote programmin​g

    I am looking for a programmer based in India to develop data acquisition software for my company.   I've done it in the past and it is easy enough to set up.