Open URL from SAP GUI

Hi,
I create Business Contacts with BAPI_BCONTACT_CREATEFROMDATA from an external application.
Is it possible to add a URL to this contact, that can be opened from the SAP GUI?
Our customer uses the native windows sap gui. The browser should open and load the
URL if you click on the it.
Any hints how this could be done?
   Thomas

Hi,
Here is a demo.
   CALL METHOD cl_gui_frontend_services=>execute
  EXPORTING
    document               = 'http://www.sap.com'
    operation              = 'OPEN'
  EXCEPTIONS
    cntl_error             = 1
    error_no_gui           = 2
    bad_parameter          = 3
    file_not_found         = 4
    path_not_found         = 5
    file_extension_unknown = 6
    error_execute_failed   = 7
    synchronous_failed     = 8
    not_supported_by_gui   = 9
    others                 = 10
IF sy-subrc <> 0.
* Implement suitable error handling here
ENDIF.
hope this helps u.,
Thanks & Regards,
Sukai

Similar Messages

  • Open Dashboards from SAP

    Hi together,
    I've a new SAP BO Dashboards 4.1 installation on my laptop.
    Now I can't open dashboards from SAP:
    MENU -> SAP -> OPEN
    At this point I get the message: "Open from SAP not possible" (Sorry, this is my translation...)
    I don't get the SAPlogon-Pad, but the Logon-Pad is installed and placed in the right folder..., I can open any other SAP-system connection without problems....
    Any ideas ?

    Hi Holger,
    Do you have any dashboards published to SAP portal.
    Try to create a sample dashboard on SAP Netweaver connection and publish it to SAP Portal.
    Later try to open.
    If nothing works under SAP menu, reinstall the SAP GUI.

  • Is this possible: SNC connection from SAP GUI to SAP Router, and ...

    Hi,
    I have (stupid perhaps) question.
    Is this scenario possible:
    SNC connection from SAP GUI to SAP Router, and non-SNC connection from SAP Router to SAP System.
    I know how to set up scenario like this:
    SAP System --- (non-SNC conn) --- saprouter1 --- (SNC conn) --- saprouter2 --- (non-SNC conn) --- SAP GUI.
    Best regards,
    Marek Majchrowski

    Wolfgang,
    To be sure myself and Marek understand, can you confirm the different scenarios supported:
    Scenario 1:
    SAP GUI --- (non SNC conn) --- saprouter1 --- (SNC conn) --- saprouter2 --- (non-SNC conn) --- SAP System
    With this scenario, it would be possible for a user to logon using SAP GUI onto the SAP System, but without SAP GUI SNC.
    Scenario 2:
    SAP GUI --- (SNC conn) --- saprouter1 --- (non SNC conn) --- saprouter2 --- (SNC conn) --- SAP System
    With this scenario it would be possible to logon to the SAP System using SAP GUI, and using SNC authentication.
    Also, with this scenario the SAP GUI software and SAP System software would consider this to be similar to:
    SAP GUI -- (SNC conn) -- SAP System
    Scenario 3:
    This is the scenario mentioned by Marek in his initial question:
    SAP GUI -- (SNC conn) -- saprouter1 -- (non SNC conn) -- SAP System
    With this scenario it will not be possible to logon to SAP System using SNC, and only possible if the SAP GUI is configured to not use SNC. In other words the SNC connection between SAP GUI and saprouter1 is available, but cannot be used.
    Thanks,
    Tim
    Edited by: Tim Alsop on Feb 25, 2008 5:24 PM

  • Open url from xchat in opera

    I'd like to open urls from xchat in opera.
    Under settings>advanced>url handler:
    !opera -remote 'openURL(%s)'
    xchat has tcl as an optional dep, so I installed that.
    This is in xfce4 and I have set opera as the preferred browser.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Open URL from Java in a new browser tab

    Hi OTN,
    Surprisingly can't find the implimintation.
    In an ADF managed bean I retrieve String url. I need to open a new browser tab with this url.
    Found this thread Open a url in a new window in the backing bean which shows using javascript "service.addScript(facesContext, "window.open(http://www.google.coml)");".
    But in my case in doesn't work. The code is executed, but nothing happens. Maybe because the bean is called from a taskflow inline popup.
    ADF 11.1.1.4
    Thanks.

    Well, I'm afraid that is not an option.
    The goButton is in a table row. There are lots of rows so if I use EL for Destination attribute the URL would be retrieved for each of rows.
    The method of URL retreiving is heavyweight operation which includes calling plsql functions, working with strings and others. So if I do it for each table row my application hungs and then I receive an exception of CPU usage.
    That's why I switched to normal commandButton witch actionListener which retrieves url on click - only once. So I need to open URL from Java.

  • Delete the variants of a query from SAP GUI

    Hi all,
    We have migrated queries from 3.5 to 7.0, and now we are migrating their variants also.
    But while migrating variants we got a situation where some variants got copied but not activated in 7.0.
    so now we want to delete those variants and migrate it again as they are not being over written.
    so, my question is how can we delete variants for a query in one shot from SAP GUI.
    plzz....help asap.

    Hi,
    note : 1003481... makes the point that...
    But the variant cannot be migrated when a variant with same technical name already exists in 'new' variant storage
    would it be possible that the variant that you are trying to migrate shares a tech name with one already on the system?
    to check variant tables for tech names used twice....
    tx: se16
    a)rsrvariant, (3x variants)
    c)rsrparametrizat(bi 7 made variants)
    variants that appear in rsrvariant (3x) will not migrate if the same
    tech name appears already in rsrparametrizat (new storage area for bi7).
    Delete the variant please refer the thread:
    How to delete the Variants?.
    Delete multiple variant
    Thanks,
    Venkat

  • Problem opening Crystal Report from SAP GUI through VPN

    Hi Everyone,
      I am facing an issue with opening the crystal report from SAP BW Role menu(SAP GUI). The issue is only with the BW Users who are connecting to the Client systems through VPN. All the settings are done perfectly in the Transaction /CRYSTAL/RPTADMIN and SICF for the CE_URL.
    For those who are in the client network it works fine. Please see the URLs generated in both the cases,below.
    From Client N/W
    [http://sapbobj:8080/SAP/jsp/Action_Dispatch/dispatch.jsp?sap_client=100&cmsname=sapbobj:6400&language=EN&sap_sysid=D40&bw_id=4HUFYJ3XBZ7QLP5HIDYPR7PR6&sap-client=100&actionName=SAP_CrystalReport_View&appKind=InfoView&service=%2FInfoViewApp%2Fcommon%2FappService.do&loc=&initialFolderId=null]
    Through VPN
    [http://sapbwd.abc.com:8100/sap/bw/ce_url?(ce_protcl):(DS)(ce_server)/(ce_path_pr)/viewreport.csp(Q)bw_id=4HUPI3I78CG4S4EDH7XSDP736&sap_sysid=(sysid)&sap_client=100&language=EN&sap-client=100]
    where "sapbobj" is the BOBJ system and "sapbwd" is the SAP BW Dev box.
    For me it seems to be something related to the N/W. Please provide me your valuable inputs to solve this issue.
    Thanks in Advance,
    Koka M
    Edited by: Madan Koka on May 19, 2010 5:18 PM

    Hi,
    I'm also facing the same issue. when try to open my report the URL doesn;t taking "bw_id".
    It is blank for all transported reports.
    Any advice..
    Thanks,
    Jothi

  • Open URL from a report

    Hi, I need to make a connection to URL from a report. Is it posible? thanks.

    hi jose,
    please try the following.
    CALL FUNCTION 'GUI_RUN'
      EXPORTING
      command ='IEXPLORE.EXE'
      PARAMETER ='WWW.YAHOOMAIL.COM'.
    CD =
    IMPORTING
    RETURNCODE =
    and if u want hyperlink then,
    *REPORT ZURL NO STANDARD PAGE HEADING.
    DATA: BEGIN OF URL_TABLE OCCURS 10,
    L(25),
    END OF URL_TABLE.
    URL_TABLE-L = 'http://www.lycos.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.hotbot.com'.APPEND URL_TABLE.
    URL_TABLE-L = 'http://www.sap.com'.APPEND URL_TABLE.
    LOOP AT URL_TABLE.
      SKIP. FORMAT INTENSIFIED OFF.
      WRITE: / 'Single click on '.
      FORMAT HOTSPOT ON.FORMAT INTENSIFIED ON.
      WRITE: URL_TABLE. HIDE URL_TABLE.
      FORMAT HOTSPOT OFF.FORMAT INTENSIFIED OFF.
      WRITE: 'to go to', URL_TABLE.
    ENDLOOP.
    CLEAR URL_TABLE.
    AT LINE-SELECTION.
    IF NOT URL_TABLE IS INITIAL.
      CALL FUNCTION 'WS_EXECUTE'
           EXPORTING
                program = 'C:\Program Files\Internet Explorer\IEXPLORE.EXE'
                commandline     = URL_TABLE
                INFORM         = ''
              EXCEPTIONS
                PROG_NOT_FOUND = 1.
      IF SY-SUBRC <> 0.
         WRITE:/ 'Cannot find program to open Internet'.
      ENDIF.
    ENDIF.

  • Error while displaying PCUI page from SAP GUI

    Hi,
    I did a new development in a SAP GUI report program such that when the report program is called in Portal, on clicking a button, PCUI application for service order will appear. This I did by calling the function module CALL_BROWSER and passing the URL
    (for eg:- http://...../irj/servlet/prt/portal/prtroot/com.sap.portal.navigation.portallauncher.default?NavigationTarget=/roles/com.sap.pct.crm.ServiceManager/ServiceCycle/nf/ServiceOrders/BSPOrdersManager&DynamicParameter=CRM_OBJECT_TYPE%3DSERVICEPROCESSCRM%26CRM_BOR_TYPE%3DBUS2000116%26CRM_OBJECT_ID%3DFD3A2213D9F449CE83D7AF4EDCF642BA%26CRM_LOGSYS%3DCRD100%26sap-syscmd%3Dnocookie%26CRM_LOGSYS%3DCRD100%26CRM_BOR_TYPE%3DBUS2000116)
    This is working fine when the connection is HTTP but when the connection is HTTPS, a new window is opening with Portal header details but the PCUI application is not opening.
    Do I have perform any additional steps to get the application opened up in HTTPS connection?
    Thanks & Regards
    G.Raja

    Hi Matthew,
    Thanks for your reply. The CRM version is CRM 4.0 SP6. Unfortunately the notes could not be used in our scenario.
    The URL is created by us and the function module CALL_BROWSER is called to display the PCUI application. The PCUI application is not getting displayed if the connection is secured (HTTPS) connection.
    Thanks & Regards
    G.Raja

  • Problem while printing from SAP GUI for HTML

    Hello,
    We are trying to print a delivery confirmation from the portal using SAP GUI for HTML. We have followed note 771683 to do this. However we are facing the following problems:
    1) The print action(PDF creation) is not triggered until the user performs some action
    2) the PDF that is created is corrupted(does not open)
    In order to correct this we tried to implement note 957292. However, the changes to the object FRONTEND_PRINTPOLL_FRONT_REQUEST.HTM mentioned in this note created problems. So we decided to do the changes to this object manually. But we see that the SAP note doesn't contain any information on changes that should be implemented for this object.
    Question:
    Is the note 957292 only way to solve the printing(PDF) problem? If not, how can we trigger the automatic creation of the PDF and remove the error from the PDF file?
    If yes, any idea what is causing the problem during the note implementation?
    We are on NW2004s - EP7.0 SP10
    ITS 7.0
    Thanks in advance.
    Regards,
    Reena

    Hi,
    configure printer in SPAD  , no setting for JAVA GUI
    check note
    605467:SAPscript/Smart Forms: Print preview in SAP GUI for Java
    634158      SAPscript/Smart Forms: Print preview in SAP GUI for Java (2)
    1024624 SAPscript/Smart Forms: Print preview in SAP GUI for Java (3)       
    regards,
    kaushal
    regards,
    kaushal

  • How to extract Cleared and Open Items from SAP R/3?

    Hi experts,
    I have a requirement from user to extract cleared and open invoice items from SAP R/3.
    Can someone tell me how to do that?
    Thanks!

    Hi,
    Use the Data source 0FI_AR_4 to Know the status (0FI_DOCSTAT) of payment to be done by customer.
    OR
    Enhance the 2LIS_13_VDITM with VBUP fields which will give the status of Billing.
    With rgds,
    Anil Kumar Sharma .P

  • How to do Handshake with tired party(bank) HTTPS URL from SAP PI server

    Dear Expert,
    I have developed bunch of scenarios, all are synchronous ABAP proxy to HTTP_AAE with bank on PI 7.4(dual stack). Bank web server is HTTPS enabled server. Our ABAP developments are still in progress also we have few issue in connection from ECC to PI.but that is not the focus of discussion here.
    we want to do the handshake to check the connectivity with bank on their HTTPS URL from PI. Bank has provided the privet key for SSL from their server and corresponding public key they have maintained on their server. I have imported the private key under NWA -> Certificates -> Key Storage -> TrustedCA->Import Entry->Entry Type->PKCS#12->select the SSL.p12 file->import , also I have selected the option to "Use SSL" in HTTP_AAE receiver communication channel and selected the corresponding entryin  "keystore view" and "keystore entry". All these I have done in our DEV system, and we are trying to connect our PI dev to bank Dev server.
    Questions
    Is there any specific steps to do the handshake with third party HTTPS(bank in my case) server? if not, how can we just test the HTTPS connectivity by using the SSL private installed on our PI server, without running the complete scenarios. Our PI has been installed on UNIX, and "telnet https url 443" is working, as network team has opened the HTTPS port.
    We have not enabled the SSL technically on our PI server, and we have not installed any generated certificate from our PI server. Moreover, we have not made our PI url as "https:hostname:port" as we just need to communicate with bank by using their private key. Do you guys think we should enable the SSL? if yes, please explain why.
    What is the best practice to test the connection with third party having HTTPS URL? how can I just assure HTTPS communication is working fine, before testing my actual scenarios.
    Thanks for helping always.
    Regards,
    Farhan

    Hi Farhan,
    Some part of the blog is applicable for sending HTTPS request to partners/third party (Receiver SOAP Adapter).
    If banks certificates are already in trustedCA, then,  can you check if it also imported under user PIISuser under Identity management in NWA. If above 2 steps are done then i think your are good to go. But be careful when you install certificate, it should be in proper order.
    As you already mentioned, connectivity is already established and you are able to PIng/telnet from pi server, connectivity looks ok.
    While sending request, if you are getting 401 unauthorized, below might be the reason -
    1. Certificate not installed correctly or some missing steps
    2. Partner or TP is not ready to receive it, some certificate issue in there side.
    other than 401 means you are ok (As per certificate and Connectivity) - 403 and 500 errors are next stops.
    403 - error because of encoding method.
    500 - data issue.
    Regards
    Aashish Sinha

  • Open URL from Excel or Word in individual tabs - Automator??

    Okay so here is what I am trying to achieve -
    I have to open a series of URLs which have 2 values that change within the URL daily. I am looking for a way to automate the process of opening. these URLs
    I already have an excel format with the updating URLs so they automatically will generate the correct URL for that day, but when I click the hyperlink it will take at least 5 seconds to load them, and it will only open the last once click. So if I click 5 in a row, the 5th will be the only one to open.
    I've searched for ways to have Safari open each in a serate tab and Safari and Excel just don't seem to play well in that manner. I have also looked into ways to have automator take the cells and open them, but I am unable to find a way to get the URLs from the clipboard into Safari.
    Any help would be greatly appreciated as this task takes me nearly 30 minutes daily due to the amount of URLs when it should be something that is easily automated.

    You didn't mention which version(s) of Word and Excel were used to create the documents, or which version(s) you're using/trying to use on your Mac.
    If it's (Windows) Office 2003 or earlier, Microsoft released a metadata management tool that might help you understand, and perhaps edit some of the metadata there now. The tool is available for (free in the US, at least) download here --> http://office.microsoft.com/en-us/help/HA011400341033.aspx
    It is possible that 'read-only' status was set in some version of the file (perhaps copied to a CD at some point?), and remains set to 'read-only'. One fix is to open it (in Windows) and clear the read-only status. Windows discussion here --> http://ask-leo.com/whycant_i_open_thisfile.html
    Another possibility is to try opening the documents with a different program (OpenOffice, iWorks Pages, iWorks Numbers) that can open and read many versions of Word and Excel files.
    In my experience with earlier versions of OpenOffice, I've had problems with formatting changing (e.g. text document fonts and formats) when I've opened documents with OpenOffice and then attempted to re-save them in Word (doc or docx) format. I don't recall using OpenOffice with Excel files. I'm not currently using OpenOffice, so I can't say whether the problem was fixed or not.

  • Captivate 4 Open url from a button not working?

    Hi All,
    I have published a scorm course from captivate 4 and have installed to our servers. I would like to have a link to a document that is online (.doc) but whenever I click the transparent button it starts to load, opens a window (which has the correct title name) but then disappears with no warning or error message.
    The link resides behind a transparent button, and has the settings On Success open url or file in a new window.  I know the problem is not specific to this document because I have had the same problem with a completly different online file location in the past.
    Please Help!!
    Many thanks in advance.
    Chris Maile

    Hi there
    Please send me a private E-Mail message to rstone75 (at) kc (dot) rr (dot) com and advise of the exact file name of the file you are linking to.
    I'll send you back a file that you can use to test and see if the link works.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Problem with starting Crystal Report document from SAP Gui

    Dear all,
    in Crystal Reports I created my first report (based on a BW query), which is executed successfully, when I run it directly from CR or from Infoview. The report is stored directly in BW and has been published successfulyl to BOE.
    If I try to run it native from the SAP Gui, the following steps happen:
    Internet Explorer is started with the following link:
    http://dtcmbbwp01.ctc.ch.rcc:1080/sap/bw/ce_url?(ce_protcl):(DS)(ce_server)/(ce_path_pr)/viewreport.csp(Q)bw_id=4I4B2HQG8KK2ICFPONVIG5D9Q&sap_sysid=(sysid)&sap_client=010&language=EN&sap-client=010
    this link is transcoded to the following:
    http://dtcmbbwp01.ctc.ch.rcc:1080/sap/bw/=ce_protcl)%3a//MONHAMBO020.world.mon:8080%2fSAP%2fviewreport.csp(Q&sap_sysid=BWP&sap_client=010&language=EN&sap-client=010&sap-language=EN&cmsname=MONHAMBO020.world.mon
    (I already entered /CRYSTAL/CL_BW_HTTP_HANDLER handler in the ce_url service)
    and afterwards I get an error 404 -> corresponding service not available
    which is obvious, as a service =ce_protcl is not existing at alkl.
    If I then execute my CR document again from SAPGui (without closing the IE), the standard BOE login page for the infoview is displayed, but I get an error:
    Account information not recognized: The credentials passed to secSAPR3 [] are invalid. Use the following format: sid~clnt/user
    I can logon with my BW credentials, and afterwards I can see my CR document.
    Any idea, what went wrong?
    Thanks,
    Andreas

    Dear Ingo,
    the basic installation of all BOE components was done by the SAP installation service and I checked several times your blog(s) and the corresponding parts on the BOE server and in BW. From my point of view we did all necessary configuration steps on BOE and BW (/CRYSTAL/RPTADMIN) which are necessary to setup the BOE software and the connections.
    I checked again the HTTP handler and it still says:  /CRYSTAL/CL_BW_HTTP_HANDLER
    I stopped and restarted the service, but with no effect at all -> I do not think that I need a restart of the server, right?
    My user is as well existing on the BOE server and I can logon to the BOE with my SAP credentials.
    I guess as well that the key to the success is the HTTP handler. The first link I provided is the link that is shown in IE, before I logged on to the BW server and I think this is correct, as the transcodification is done after(!) I logged on to the BW server.
    A part of the transcodification is as well working, as I can see the replacement of my ce_server, sysid, etc. But it seems to me that the first part of the string is crap:
    http://dtcmbbwp01.ctc.ch.rcc:1080/sap/bw/=ce_protcl)%3a
    Any further ideas?
    Thanks and best regards,
    Andreas

Maybe you are looking for