Hiding the business partner search parameter from search criteria

Hi,
I have business partner search parameter whose value is hardcoded in the lead search..
I would like to hide the business partner search parameter from displaying only..
I need to achieve it programatically and not in configuration and all.
Do I need to write the code in P method or which method?
Thanks
Madhukar

Hi,
The code is as below and I just need to have the functionality of BP search field intact but hide it from display in web UI..if any correction is required let me know..
***current date is populated into LV_DATE
  DATA lv_date TYPE string.
  lv_date = sy-datum.
***current user login name is populated into LV_SUNAME
  DATA lv_suname TYPE string.
  lv_suname = sy-uname.
***Fetching the BP ID of the current user who logged into L_PARTNER
  DATA:l_partner TYPE bu_partner.
  CALL FUNCTION 'CRM_ERMS_FIND_BP_FOR_USER'
    EXPORTING
      iv_user_id = sy-uname
    IMPORTING
      ev_bupa_no = l_partner.
***structure for BUT051
  TYPES : BEGIN OF ty_data,
           relnr    TYPE bu_relnr,
           partner1 TYPE bu_partner,
           partner2 TYPE bu_partner,
           date_to  TYPE bu_datto,
         END OF ty_data.
***work area for BUT051
  DATA wa_but051 TYPE ty_data.
***Fetching Dealer BP ID which is 'PARTNER1' field in BUT051
  SELECT relnr
         partner1
         partner2
         date_to
  FROM but051
  INTO wa_but051
  UP TO 1 ROWS
  WHERE partner2 = l_partner.
  ENDSELECT.
***Geting the dealer BP ID into LV_DEALER
  DATA lv_dealer TYPE string.
  lv_dealer = wa_but051-partner1.
  DATA: lr_qs          TYPE REF TO cl_crm_bol_dquery_service,
        lr_search_node TYPE REF TO cl_bsp_wd_context_node_asp,
        lr_col         TYPE REF TO if_bol_bo_col ,
        lr_iterator    TYPE REF TO if_bol_bo_col_iterator ,
        lr_param       TYPE REF TO if_bol_bo_property_access,
        ls_selection   TYPE genilt_selection_parameter,
        lv_low         TYPE sy-datum,
        lv_attr_name   TYPE name_komp ,
        lv_value_set   TYPE abap_bool .
  IF iv_first_time EQ abap_true.
* to initialize the search view.
    CALL METHOD super->do_prepare_output
      EXPORTING
        iv_first_time = iv_first_time.
* fetch the search node and its content.
    lr_qs = me->get_current_dquery( ).
    lr_col = lr_qs->get_selection_params( ).
* check the currently visible search attributes.
    lr_iterator = lr_col->get_iterator( ).
    lr_param    = lr_iterator->get_first( ).
    WHILE lr_param IS BOUND.
* get the parameters
      lr_param->get_properties( IMPORTING es_attributes = ls_selection ).
      IF ls_selection-attr_name = 'VALID_FROM'.
* SET_PROPERTIES
        ls_selection-low = lv_date.
        CALL METHOD lr_param->set_properties
          EXPORTING
            is_attributes = ls_selection.
        lv_value_set = abap_true .
        EXIT.
      ENDIF.
      IF ls_selection-attr_name = 'BU_PARTNER'.
* SET_PROPERTIES
        ls_selection-low = lv_suname.
        CALL METHOD lr_param->set_properties
          EXPORTING
            is_attributes = ls_selection.
            lv_value_set = abap_true .
        EXIT.
      ENDIF.
      lr_param = lr_iterator->get_next( ).
    ENDWHILE.
    IF lv_value_set EQ abap_false .
* it was not part of the visible attributes, then add it at the end.
      CALL METHOD lr_qs->add_selection_param
        EXPORTING
          iv_attr_name = 'VALID_FROM'
          iv_sign      = 'I'
          iv_option    = 'EQ'
          iv_low       = lv_date.
      CALL METHOD lr_qs->add_selection_param
        EXPORTING
          iv_attr_name = 'BU_PARTNER'
          iv_sign      = 'I'
          iv_option    = 'EQ'
          iv_low       = lv_dealer.
    ENDIF.
* for a proper display of the added / changed attribute.
    lr_search_node = get_dquery_cnode( ).
    lr_search_node->build_parameter_tab( ).
  ELSE.
* non first time call - just delegate to superclass.
    CALL METHOD super->do_prepare_output
      EXPORTING
        iv_first_time = iv_first_time.
  ENDIF.

Similar Messages

  • Transfering business partner master data from R/3 to Business one

    hi all,
    can anyone have an idea about how to transfer the business partner master data from SP R/3 to SAP Business One.
    Plz tell me in details..
    regards
    nirdesh panwar

    Hi Nirdesh,
    The easiest way is to ask SAP R/3 for an export file of some sorts. This is usually an XML or text type file. You will then pick this file up where they have put it and import it. You can import it into SAP Business One with your own developed (vb, c#, etc.) application that you write using SAP Business One's DI API.
    Hope it helps,
    Adele

  • Business partner change Valid From Date field

    How can I change the Valid From Date field in tables:
    BUT000
    BUT020
    BUT0BK
    BUT100
    Currently the of date of creation of the business partner is in this tables' Valid From field.
    In transaction BP the Address of the Business Partner is  valid from 01.01.1990 but still I get a warning that the business partner is not valid for date 01.11.2011.

    Sounds like the problem is the valid to date.  What is that date set to?

  • Possible to change the business Partner from a created Contract in ICWEB??

    Hello experts,
    I would like to know if it is posible to change the BP from a created contract in ICWEB.
    I check the option "CONTRACT MANAGMENT" and there is an option to change the premise with the button "Move To Other Premise" but I don't find an option to change the Business Partner from a created contract.
    Can you help me, please??
    Thank in advance.
    Edited by: Javier Garcia on Aug 19, 2008 7:01 PM

    Hello S Reddy and a lot of thanks for your help.
    But I don't know where I can select this option, there isn't the  where I can associate the option in customizing or what transaction. Could you explain me with more details, please ??
    Thanks in advance.
    Regards.

  • How to read the business partner activity

    Hi experts,
    How to get the business partner(role:employee) assigned activities  in crm and how to create the activity .my requirment is change the assiged from old employee(bp) to new employee(bp). i have to develop the program. i searched some BAPI's.
    Please help on this.
    thanks,
    venu.

    Pls use the FM CRM_REPORT_CALL_RF. Pass the partner function to the exporting parameter table ir_partner_fct_h and partner number to the partner number to  ir_partner_id_h . You will get all the guid and then use CRM_ORDER_MAINTAIN to change the partner.
    CALL FUNCTION 'CRM_REPORT_CALL_RF'
        EXPORTING
          iv_stat_open            = 'X'
          iv_maximum_hits         = ' '
          ir_object_type_h        = it_act_objtype
          ir_partner_fct_h        = it_partner_fct_h
          ir_partner_id_h         = it_partner_id_h
        IMPORTING
          et_guidlist             = it_guid
        EXCEPTIONS
          parameter_error_partner = 1
          parameter_error_items   = 2
          parameter_error_ref_obj = 3
          OTHERS                  = 4.

  • Trying to update the business partner using BAPI_BUPA_CENTRAL_CHANGE

    Hi all ,
    i am tryibg to create a function module which updates the first name, last name, email id of the business partner that i already created. the return table shows zero entries and i dont find any udate being done for the business partner if i go and check in the respective table. can some one tell me what is the problem.
    Import paramters for my function module are business partner number, first name, last name, email -d.
    FUNCTION Z_CHANGE_BP2.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(CUST_NO) TYPE  BU_PARTNER
    *"     VALUE(FIRST_NAME) TYPE  BU_NAMEP_F
    *"     VALUE(LAST_NAME) TYPE  BU_NAMEP_L
    *"     VALUE(EMAIL_ID) TYPE  AD_SMTPADR
    *"  TABLES
    *"      IT_RETURN2 STRUCTURE  ZRETURN1 OPTIONAL
    *"      IT_RETURN4 STRUCTURE  ZRETURN1 OPTIONAL
    Defining the internal tables used in BAPI BAPI_BUPA_CENTRAL_CHANGE.
    DATA: it_CENTRALDATA TYPE STANDARD TABLE OF  BAPIBUS1006_CENTRAL  WITH HEADER LINE.
    DATA: it_CENTRALDATAPERSON TYPE STANDARD TABLE OF BAPIBUS1006_CENTRAL_PERSON  WITH HEADER LINE.
    DATA: it_E_MAILDATANONADDRESS TYPE STANDARD TABLE OF  BAPIADSMTP WITH HEADER LINE.
    DATA: it_RETURN1  TYPE STANDARD TABLE OF  BAPIRET2 WITH HEADER LINE.
    DATA: it_RETURN3  TYPE STANDARD TABLE OF  BAPIRET2 WITH HEADER LINE.
    ****Values for seacrh term1, search term2 of it_CENTRALDATA
    it_CENTRALDATA-SEARCHTERM1 = FIRST_NAME.
    it_CENTRALDATA-SEARCHTERM2 = LAST_NAME.
    APPEND it_CENTRALDATA TO it_CENTRALDATA.
    first name, last name of it_CENTRALDATAPERSON
    it_CENTRALDATAPERSON-FIRSTNAME = FIRST_NAME.
    it_CENTRALDATAPERSON-LASTNAME  = LAST_NAME.
    APPEND it_CENTRALDATAPERSON TO it_CENTRALDATAPERSON.
    Value for E_MAIL of it_TELEFONDATANONADDRES-
    it_E_MAILDATANONADDRESS-E_MAIL = EMAIL_ID.
    APPEND it_E_MAILDATANONADDRESS  TO it_E_MAILDATANONADDRESS.
    Call the BAPI BAPI_BUPA_CENTRAL_CHANGE
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
      EXPORTING
        BUSINESSPARTNER      = CUST_NO
        CENTRALDATA               =  it_CENTRALDATA
        CENTRALDATAPERSON  = it_CENTRALDATAPERSON
      TABLES
    E_MAILDATANONADDRESS  = it_E_MAILDATANONADDRESS
        RETURN                             = it_RETURN1.
    Call Commit work
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    EXPORTING
      WAIT          = 'X'
    IMPORTING
      RETURN        = it_RETURN3.
    ENDFUNCTION.

    Hi,
    Pass values to the Parameter CENTRALDATA_X   in your FM 'BAPI_BUPA_CENTRAL_CHANGE'
    Something Like:
    CALL FUNCTION 'BAPI_BUPA_CENTRAL_CHANGE'
    EXPORTING
    businesspartner = bpartner
    centraldata = centraldatadetail
    centraldataperson = centraldataperson
    CENTRALDATAORGANIZATION =
    CENTRALDATAGROUP =
    centraldata_x = centraldata_x
    centraldataperson_x = centraldataperson_x
    CENTRALDATAORGANIZATION_X =
    CENTRALDATAGROUP_X =
    TABLES
    return = return.
    Refer to:
    problem with 'BAPI_BUPA_CENTRAL_CHANGE'
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/bapi-bupa_central_change-need-help-549117

  • How to get Activities  connected to the Business partner .

    Hi Gurus ,
    How can be get all the activities attached to the Business partner .
    Regards,
    Naval Bhatt .

    Hi,
    in tx genil_bol_browser please search for an existing activity with searchobject BTQAct.
    click thru the child relationships (BTOrderHeader / BTOrderPartnerset).
    Here in BTOrder Partnerset you will find all the partners, for example the contact partner in relationship:
    BTPartner_00000009
    Is this what you are looking for? Otherwise please detail your question.
    Best regards
    Manfred

  • How to update the business partner title using the function module

    Hi ,
    I have to update the business partner title to Mr or Ms based on the gender.
    If BP is male title should be updated as Mr else Ms.
    Please provide some inputs on which function module to use to do it in mass update.I have to search the BP's whose title is not created and i have to change those titles to Mr or Ms.

    Hello,
    Try with BBP_USER_CHANGE_FIELDS :
    - set CHANGE_FORM_OF_ADDRESS,
    - put corresponding key you want (see TSAD3 table) in FORM_OF_ADDRESS_KEY.
    Regards.
    Laurent.

  • How to switch off automatic creation of the business partner?

    Hello!
    Advise please why in erp after creation of the customer automatically form business partner? How to switch off automatic creation of the business partner? It very much disturbs, because business partner are created from crm. Because of automatic creation business partners are duplicated.

    Hi,
    I have made the following customizing settings to activate customer integration with business partner, but the problem is when I create a BP with a role (FI-Customer) the customer is not created automatically.
    1. Set BP Role Category for Direction BP to Customer
    Roles: FLCU00 - Business Partner FI Customer (FS: BP)
    FLCU01 - Business Partner Customer (FS: BP)
    2. Defined the Number assignment for Direction BP to customer
    4. Customer account group and numbering is also defined.
    3. Created a BP with BP Role FLCU00, I can see the Customer - General Data tab, but no customer was automatically generated by the system.
    Kindly let me know if any customizing I have missed.
    Regards
    Ameya

  • Creating a business partner using data from a remote legacy system

    Hi Experts,
    I am trying to make an interface for creating a business partner in SAP CRM from customer data created in a remote legacy system. I want to map the fields in XI.
    But to create a customer I need a RFC or a BAPI or maybe an IDoc, that includes all fields for business partner creation and can create a new business partner from the data.
    I have identified an RFC that have the structure of the BDoc BUPA_MAIN. This RFC is called: CRM_BUPA_MAIN_CRM_IN
    But I am not sure if that RFC can be used for Business Partner creation.
    Can anyone tell me if that RFC can be used, or if there are other RFC's, BAPI's or IDoc's that can be used for remote creation of business partners (they have to include all fields of the Business Partner)??
    There are a few BAPI's that include some of the fields for BP creation, but making several calls to different BAPIs from XI to CRM is not an option (I thought the BAPI: BAPI_BUPA_FS_CREATE_FROM_DATA could have been used, but it lacks some of the data fields needed for creating BPs).
    Thanks in advance,
    Torsten
    Edited by: Torsten Sander on Apr 22, 2008 2:48 PM

    Hi Experts,
    I am trying to make an interface for creating a business partner in SAP CRM from customer data created in a remote legacy system. I want to map the fields in XI.
    But to create a customer I need a RFC or a BAPI or maybe an IDoc, that includes all fields for business partner creation and can create a new business partner from the data.
    I have identified an RFC that have the structure of the BDoc BUPA_MAIN. This RFC is called: CRM_BUPA_MAIN_CRM_IN
    But I am not sure if that RFC can be used for Business Partner creation.
    Can anyone tell me if that RFC can be used, or if there are other RFC's, BAPI's or IDoc's that can be used for remote creation of business partners (they have to include all fields of the Business Partner)??
    There are a few BAPI's that include some of the fields for BP creation, but making several calls to different BAPIs from XI to CRM is not an option (I thought the BAPI: BAPI_BUPA_FS_CREATE_FROM_DATA could have been used, but it lacks some of the data fields needed for creating BPs).
    Thanks in advance,
    Torsten
    Edited by: Torsten Sander on Apr 22, 2008 2:48 PM

  • Transfer of Business Partner Master data from CRM to TIBCO.

    Hi All,
    We intend to integrate CRM4.0 with TIBCO for transfer of Business Partner Master data from CRM to TIBCO.
    Can anyone provide solution for the same. One of the think is through XI.Please correct if it is the right way to do it?.
    Also, would appreciate if someone can provide documentation or links for integration.
    Regards,
    Mehul Shah.

    Hi Rahul,
    Yes you can integrate CRM and TIBCO using XI.
    Check the below links
    transfer the Business Partners from the CRM system to XI and to MDM.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/406efa7e-388a-2910-f9b8-81913b0ca57f
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/50260ae5-5589-2910-4791-fc091d9bf797
    any XI content delivered by SAP can be found in the SAP service marketplace which you can enter http://www.sap.com/services/bysubject/servsuptech/index.epx.
    a) After you entered the service marketplace go to Software Download under the header SAP Support Portal.
    b) Next navigate to Download -> Support Packages and Patches -> Entry by Application Group
    c) In the main window select SAP Content and then Process Integration Content (XI Content).
    d) Now you should see a list of XI content packages.
    The package containing XI content for CRM is
    XI CONTENT BBPCRM
    In addition you find some packages that offer mappings from CRM interfaces to industry standards like RosettaNet or STAR standard, like
    XI CONTENT ROSETTANET CRM
    XI CONTENT STAR CRM
    Some of these packages may require a license, therefore I am not sure if they are visible to you.
    As per my knowledge, XI has CRM pre-delivered content and usually it communicates thru Proxies,Http, RFCs..
    And in your scenario , you can always go for Proxy communication
    Have a look into these threads
    CRM and SAP XI
    SAP CRM integration with XI
    How to access the pre-delivered XI Integration Content for APO ,SCM or CRM
    Dont forget to Reward points if this helps
    Regards
    Pragathi.

  • How to merge two search button from different criteria

    How to merge two search button from different criteria
    this image show the question
    http://s24.postimg.org/4algthuj9/1111.jpg
    two different criteria for the same view and I need to merge it in one button as when I click
    on the button search result give from two criteria parameters

    You can!t using af:query. the af:query component comes as is. If you can't do it through the properties, you probably can't do it at all.
    As in your other thread, the way to go is to program your own search form. This way you can use a layout and functionality you like.
    For this you create a form with input fields for the values you are searching for, put them on hte page in a way you like and in the end by hitting on a button (e.g. called Search) map all inputfields to parameters of a service method you defined in your application module or VO. This service method then executes a view criteria returning all matches in the default iterator (just as if you had used af:query.
    Timo 

  • Read CRM Business Partner Classification data from buffer/memory

    Hi,
    Can anybody help me to read CRM Business Partner Classification data from buffer/memory ? I have a Z- function module in BDT but inside that, I am not able to read the classification data(4th tab). I have the Partner nu,mber and GUID.
    Thanks and regards
    Arijit Ghose

    Hi JE,
    Please let me know if you find the solution to this problem.
    Regards,
    Himanshu Sharma

  • Photograph of the Business Partner

    Hi ,
    We want to exhibit the photo of the Business Partner at the UI view and at the pdf of the fact sheet.Though its possible to attach the photograph which will be available as link but requirement is show everytime when the detailed screen of that Business Partner opens.
    Regards,
    Chaturvedi

    Hi,
    You can have the required changes like Photograph of the BP on SAP WEB UI instance by making changes at Runtime Repository Editor Tool TCODE: BSP_WD_CMPWB. And also new fields may have to be added to the Web UI to meet business requirements. This should be done always using SAP delivered tools like Easy Enhancement Workbench EEWB,Application Enhancement Tool AET(available from CRM 7.0). Append Structures should be used only in a case above options are not available for a Business Object.

  • Urgently, how to use the EEWB to ad new field in the business partner page

    Hello All
    I am working on CRM 5.0 EEWB
    I am trying to add new field in the business partner page I followed the steps for creating the project and the extension but I faced some problems
    1-I chose the package BBP_BUPA_MAIN    BBP Business Partner General
    I created two transport requests for the workbench and the customizing
    2- I created an extension with EEW Bus. Object: BUPA and extension type: ADD_NEW_FIELDS
    3- I got an error that <b>"Object DOMA ZBU_009XN27S is in the name range reserved for customers. The object cannot be assigned to package BBP_BUPA_MAIN, since it belongs to a different name range or namespace"</b>
    I tried to change the package but the same problem occurs and if I choose a custom made business package I get a similar error but, before the wizard starts
    I want to know the exact steps to create new field using the EEWB
    Regards
    Jacopo Francois

    Hi,
    Error info: "Object DOMA ZBU_009XN27S is in the name range reserved for customers. The object cannot be assigned to package BBP_BUPA_MAIN, since it belongs to a different name range or namespace"
    Clearly states that you need to assign some different name to the package which is not reserved by SAP as Z### is already reserved by SAP and thus you will not be able to create the enhancement in the same.
    Best Regards,
    Pratik Patel
    <b>Reward with Points</b>!

Maybe you are looking for

  • My HP photosmart 2610 all in one will print by not allow me to save or send a scan

    My HP Photosmart 2610 all in one will scan but will not allow me to save the scan or email the scan.  i assume it is a bug with maverick.....which i recently downloaded

  • Icloud calendar recently stopped syncing with my iphone and ipad

    Hi.. My iphone 4 and ipad 2 are no longer syncing with Icloud..out of the blue There were no recent changes It happened once before and straightened itself out in 3 weeks.. I cannot afford the three weeks again Help

  • SAP E- Recruitment and Manager BSP

    Hi, When i try loging to Manager BSP encountring an error message "you dont have required authorization to use this start page". btw we are on E- Recruitment Enhancement pack 1. I have maintained the required settings. ie. reference user and a dialog

  • JMF on Linux 64 bit os

    Hi, I am trying to install JMF on my dedicated Linux 64 bit server. When i tried to install *"jmf-2_1_1e-linux-i586.bin"* I got the following error. Any one help me for this problem. Can any one tell me how to install JMF on Linux 64 bit system.....

  • Downloading files?

    We use RoboHelp to help our users program their own experiments. When did first did this 4 years ago we included the script needed to program an action. We gave them the script and told them to copy and paste into a sample program that we included wi