Toolbar Button to Open Custom URL for a Business Partner

Hi All,
for a CRM 5.2 implementation, I'm trying to open a URL in a new explorer window when on hte BP Account Overview ( Corporate Account ).
I've created and added the Button, I've created an event, but when I launch the code behind the event to open a new explorer window, this does not work.
I've tried several alternatives already ( see below ), but can't seem to find a working one.
Can someone please helpme out ?
Component BP_HEAD, view BPHEADOverview.
    URL     = ''
call method cl_gui_frontend_services=>execute
    application = 'iexplore.exe'
  parameter   = ''
    others = 1.
      URL                          = w_url
    WINDOW_NAME                  = ' '
      NEW_WINDOW                   = 'X'
    BROWSER_TYPE                 =
    CONTEXTSTRING                =
     FRONTEND_ERROR               = 2
     PROG_NOT_FOUND               = 3
     NO_BATCH                     = 4
     UNSPECIFIED_ERROR            = 5
     OTHERS                       = 6.
  IF SY-SUBRC <> 0.

First of all I would advice you to post this question in the new CRM 2007 forum.
We have created our own button that calls an URL in a separate window. Here is some coding from the method CALLBACK~GET_BUTTONS which may inspirere you:
         INTO lv_java.
  ls_button-type     = cl_thtmlb_util=>gc_icon_print.
  ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SALESQUOT_PRINT' ).
  ls_button-on_client_click = lv_java.
  ls_button-page_id  = me->component_id.
  ls_button-enabled  = abap_true.
  APPEND ls_button TO rt_buttons.
  CLEAR ls_button.
  ls_button-text     = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SORDER_CREATEFOLLOW-UP' )."#EC NOTEXT
  ls_button-tooltip  = cl_wd_utilities=>get_otr_text_by_alias( 'CRM_UIU_BT_SALES_QUOT/SORDER_CREATEFOLLOW-UP' )."#EC NOTEXT
  ls_button-on_click = 'FOLLOWUP'.                          "#EC NOTEXT
  ls_button-page_id  = me->component_id.
  ls_button-enabled  = lv_persistent.
  APPEND ls_button TO rt_buttons.
  CLEAR ls_button.

Similar Messages

  • Can you assign multiple customer masters to one Business Partner in R/3?

    We are trying to configure SAP Business Partners in ECC5.0 but it seems the relationship between a business partner and a customer master is one-to-one so a business partenr cannot have multiple customers (table BD001 only allows for a single entry).  Does anyone know if it's possible to assign multiple customer masters to one business partner?  If so, is there any documentation available?
    Many thanks.

    We are trying to configure SAP Business Partners in ECC5.0 but it seems the relationship between a business partner and a customer master is one-to-one so a business partenr cannot have multiple customers (table BD001 only allows for a single entry).  Does anyone know if it's possible to assign multiple customer masters to one business partner?  If so, is there any documentation available?
    Many thanks.

  • Long time to open tab "change history" of  business partner in Web_ui.

    Dear experts!
    Long time to open tab "change history" of  business partner in Web_ui.
    4 records were opened for 10-20 seconds
    1. In what may be the reason?
    If the records are many, the discovery may be more than a minute.
    2. Is There a report for the purification of the " Сhange history" over a period?

    Hello Dilip,
    One more alternative would be to increase the time out parameter in ABAP environment.
    The steps to change this parameter:                                                                               
    1) txn: RZ11 -> enter the variable name rdisp/max_wprun_time                      
    2) Display -> Change value -> Then input the value you would like        (ideally 3600)                                                                               
    1) Don't set this value too big, otherwise general performance will be       
    influenced, since lots of dialogue process will be occupied for a long       
    2) This parameter can be changed dynamically                                                                               
    Once the parameter is set please test again. You can try incremental         
    values and test which one does not give timeout error.                                                                               
    please refer to the note 25528 for more details about RZ11.   
    Hope this helps!
    Thanks and Best Regards,
    Shanthala Kudva.

  • To Get the list of sales orders for a Business partner in CRM.

    Hi all
    Is there any Function module or BAPI to get the Sales orders for a Business partner in CRM. I know there is a BAPI to get the list of sales orders for a customer in ECC, but I donu2019t know how to get the list of sales orders for a Business Partner in CRM.
    Can anybody tell me if there is an inbuilt function module or BAPI available?
    If not how can I pick the sales orders of a business partner in CRM? Between which tables should I apply a join and write SELECT statement to get list of sales orders for a business partner in CRM.

    Hi Jessica,
    Try CRM function module CRM_BUPA_READ_ORDER_OBJECTS.
    You'll get a table with the documents associated to that partner, where you can work on.
    Kind regards.

  • Count of number of campaigns executed for a business partner?

    Hi all
    I'm hoping someone can advise me on how to fulfil this requirement. Basically I need to find a way of ensuring that customers are only included in a maximum of five campaigns per month.
    My current idea centres around
    1) Creating an interaction object for each business partner every time they are included in an executed campaign
    2) To execute a custom-developed program (or a BW query?) that will count the number of interaction objects created per business partner in the past month and write the count value to a marketing attribute called "campaign count" assigned to each business partner
    3) Exclude any business partners with "campaign count" >=5 from the target group of future campaigns
    I'm sure there's a cleaner and better way of doing this. Can anyone point me in the right direction?

    Greetings from ABAP General.
    Please do not leave meaningless comments when closing age old threads only to make room for new ones.
    The comment box can be left empty. Only fill it when you have something to say about the solution that might help the community.

  • Designate multiple languages for a Business Partner

    In the province of Quebec (Canada), contacts for a Business Partner can either be French or English. When creating a Marketing Document, I would like to be able to use the Language setting found under the Logistics Tab to select either a French or English version of a PLD template that is marked as default for that client.
    This means that a BP can be associated to multiple language versions of the same PLD.

    Thanks for your reply.
    I need the have each LOS ( Location of sale or location of delivery) of Business Partner because we will deliver items for the LOS and not for BP.
    As we also need to control (serial numbers) items & services ( field management) I also need to have the LOS as BP.
    As example:
    BP name AAA have 30 LOS.
    BP AAA bought 2000 items.
    BP AAA ask us to old theses items in warehouse.
    BP AAA request to delivery a x quantity in LOS 1, 2,3,4,...
    The invoice went to BP AAA, but the deliveries will be to each LOS of BP AAA.
    As I said we need to have the field services working side-by-side with serials numbers and services for each LOS of our BP AAA.
    So, we have subcustomers from big customer BP AAA.
    Do we have any way of having all subcustomers(LOS) as BP, along with the real customer AAA?
    Thanks in advance,

  • Adding Custom fields in ECC Business partner BP - (BUT000) using BDT or EEW

    Hello BDT / EWWB Gurus,
    We have a requirement to add custom fields to ECC Business partner, which interns create custom fields in But000 table.
    I would be great if anyone could let us know how to add Custom fields using BDT or EEWB.
    Please also elaborate the step by step process.

    Hi Clemens,
    Thanks for the reply.
    I had read the document and it has given lot of information.
    Actuall my requirement is to add custom fields in But000 table and the data will be controlled through BRFPlus application in TRM. Lot of forum thread suggesting to use EEWB to enhance the Business partner but000 table.
    I would be great if you could let us know which methodalogy should I use to enhance the But000 table and what are all the impacts and also please let us know the process steps to enhance the but000.

  • Error while changing the PO BOX value for a Business partner

    Hi Friends,
    We are getting an error when we try to change the PO Box value for a Business Partner.
    We have the dependency like when we give the value for the PO Box we also need to give the postal code value. And also we have a specific format for the Postal code. We gave both the values (a valid postal code) and try to save the details, then error message "The attribute GUID of Organization (a Contact Person is assigned to) of the Business Object contact person is not valid" is displayed. We have no clue why there is a conflict for the contact person details.
    Can any one suggest the reason for this?
    Thanks & regards,
    Swarna Seeta

    Hi Swarna,
    You are getting this message not because you have entered wrong Post code .It will come even if you try to change some other field and save it. This is because on saving a business object, the framework tries to validate all the associated objects depending on the relation.In this case the data in the mobile client is either not present or is no longer valid.
    Check if the field of the Business object which is being shown as invalid, has some data in the table. Check the combo associated to it and from where the combo is doing the validation. The table from where the combo is doing the validation does not have that data and so the value is invalid.
    Also compare the number of entries in smokna1sht table in ides and in CDB.

  • Set order block for new business partner

    Hi experts,
    I have the requirement to set the order block for a business partner (based on some attributes) at the moment when it will be created or changed.
    I tried to use the BAdI BUPA_GENERAL_UPDATE where I am using the FM CRM_BUPA_FRG0050_READ/ CRM_BUPA_FRG0050_GET_DETAIL to retrieve the already existing status data and the FM CRM_BUPA_FRG0050_CREATE/ CRM_BUPA_FRG0050_CHANGE to add or change this data.
    In the SAPGUI at least the update scenario (CRM_BUPA_FRG0050_CHANGE) is working.
    In the WebUI application none of the both is working: In the create scenario the application is even dumping (SAPSQL_ARRAY_INSERT_DUPREC) but this dump happens in an other implementation of this BAdI!
    In the BP update scenario nothing happens though the UI will be refreshed by some coding like
    lr_bol_core = cl_crm_bol_core=>get_instance( ).
    lr_bol_core->modify( ).
    Is there something wrong or missing or is there a better BAdI to achieve this requirement?
    Thanks for any help!
    PS: I found another post which covers exactly my requirements but unfortunately without a solution...
    [Re: Update of BP General Data during creation of BP]

    Hi Bruce,
    I propose to select the right value programmatically and then hide the original combo box (use the FromPane / ToPane properties - better don't disable it or make it invisble) and display a disabled EditText item which displays the pricelist which should be applied to new customers when the Form is switched to - or launched in "Add" mode.
    When the form is switched to other modes than "Add" reactivate the original ComboBox...

  • CCT_GUID (customer Contact Key) of Business Partner

    Hi everyone,
    Can anyone tell me how to extract CCT_GUID (i.e Customer Contact Key) of business partner using only customer and also its significance.
    Thanks in advance.

    Hi everyone,
    Can anyone tell me how to extract CCT_GUID (i.e Customer Contact Key) of business partner using only customer and also its significance.
    Thanks in advance.

  • Marketing attributes for a business partner

    how can I input marketing attributes for a business partner with a BAPI?
    Or can I use BATCH-INPUT (the transactions is "BP")?
    Thanks and best regards.

    Hi JoJo,
    I don't know about LSMW. But I have done something similar in a program by calling the following function module in a loop for each of the business partner:
            IV_PROFILE_TEMPLATE_ID = lv_attribute
            IV_PARTNER             = lv_partner
            IT_IMP_SELTAB          = lt_attr
            ET_RETURN              = et_return.
    Here you can provide the attribute set in lv_attribute
    and business partner in lv_partner. lt_attr contains all the attributes (name and value).
        ls_attr-atname = 'Z_CUST_TEAM_ASSGN'.
        ls_attr-atwrt = 'Test Team'.
        APPEND ls_attr to lt_attr.
    Hope this helps.

  • Enter at least one number for the business partner

    Hi Experts,
    SRM 5
    Classic scenario
    R/3 4.6c
    I am trying to execute users_gen transaction for integrating the user with the org. structure. However upon doing so I get an error message "Enter at least one number for the business partner"
    Please provide pointers on the cause for this and how it can be rectified.

    Hi Muthu,
    I am integrating a single user at a time - through users_gen.
    Infact I am getting the same error message while moving the users within the org. structure.
    Steps -
    1. Execute users_gen
    2. Select the user to be integrated
    3. Click execute check mark
    Please provide any pointers.

  • How can one see all printdocuments for a business Partner

    How can one see all printdocuments for a business Partner(only transaction, no table please)

    Use T-Code CORRHIST
    Hope this helps

  • Days Sales Outstanding DSO for a Business Partner

    Hi ,
    Any idea how to use the Method of Least Squares (MLS), to compute Days Sales Outstanding DSO for a Business Partner?  suggestions?

    In  the BP go to Sales Area Data and select sales tab. In that select the sales Org,D.Channel,division for which you want to maintain and enter all the detail in all the tabs (shipping,Sales,Billing etc) and save the BP.

  • Are there any bapi for create Business Partner

    Dear Sir,
    Do you know  are there any bapi for create Business Partner in CRM
    Please advise.
    Thank you and best ergards,

    Dear Vimol,
    BAPI_BUPA_CREATE_FROM_DATA     ......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA  .......SAP BP, BAPI: Create Business Partner
    BAPI_BUPA_FS_CREATE_FROM_DATA2 .......SAP BP, BAPI: Create Business Partner
    Hope this will help.

Maybe you are looking for

  • Hiding bloc of Lines in a web template in the last row

    Hello, I want to hide a bloc of lines in a web query. Here I use the table interface with the method characteristic cell according to the "How to" - paper (How to hide a column). Normally , there is no problem to set the tag '<!--' in the first colum

  • Using charateristics in formulas

    Hello everybody, I got following problem: I've got a simpe reports: characteristics: COUNTRY (like US, DE, GB ...) key figures:     AMOUNT. What I need is this: to write an formula in which i make folowing check: if COUTRY = 'US'-> Noth America, if C

  • Can't find a song

    I have downloaded a song form iTunes and transferred it to my phone but it does not show up.  A search of my phone library using my PC show that it is there but it does not show up in any of my libraries on the phone.

  • Display all the incoming emails?

    I would like all my incoming emails to be under one heading. Currently the emails come in and I have to click and unclick " Contact". I don't know how to shout that option off. Thank you.

  • Getting error when attempting to import jpegs into Premiere Elements

    When attempting to import still images (jpegs) into a video project I am able to import some, but on others get the error "importer reported a generic error," and I can't figure out why some photos load and others don't. Can anyone help?