Howto call/open a Windows program on the SAP client?

Hi all,
in an ABAP report I want to call a program that is installed on the client machine running the SAP GUI, optionally with a parameter. For example, on the client machine a program called "test" is installed, I want to call it from within my ABAP report with a paramter: "C:\program files\test\test.exe -param".
Any ideas how I can do this?
Thanks in advance for your help!
Kind regards, Matthias

you create a OS command using SM69 and you can use the Function module SXPG_COMMAND_EXECUTE  or else
or You can use the method CL_GUI_FRONTEND_SERVICES=>EXECUTE
or else
Function GUI_EXEC.

Similar Messages

  • Window.open() will open separated windows even using the same window name?

    Hi, I have below two test html pages as below(could not find a way to insert a attachment, so paste the content below). The reproduce step is as below: (My environment is Win8.1 with IE11)
    1. Open print_test.html page in IE, here we call page1.
    2. Click "File -> New Session" menu from IE menu bar, which will open another new IE window which display another " print_test.html" page, here we call page 2.
    3. Click "Print" hyper-link in page1, and a popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 3.
    4. Click "Print" hyper-link in page2, and another popup window which display "print_test_open.html" page, counting begins from 1, here we call it page 4.
    However, the behavior above is totally different on my Win7 (64 bit) with IE 10, which is in step 4, when I click "Print" hyper-link in page2, instead of open a new popup window, the window for page 3 will be reused and counting will restart from
    1.
    I googled and know from MDN for window.open() and get below information to indicate that in my test pages, I use the same window name, so that the existed window with the same name will be reused is as expected, but however, why IE behave differently in
    Win8.1 with IE 11? Why the existed window could not be reused anymore?
    If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window.
    The behavior in Win8.1 + IE 11 is similar with what Google Chrome does, and Chrome's explanation is that two separated window using separated processes which do no share information, so that even using the same window name. twp separated windows will
    popup.. So I am confused here, IE 10 and IE 11 are both using multi-process mechanism right? I saw from the Windows Task Manager, when using "File -> New Session" to open another print_test.html page in step 2. both IE 10 and IE 11 are opening
    4 iexplore.exe processes, two of them are 64 bit, and two of them are 32 bit. I can't see any configuration difference between these two envs, but why the behavior is so different? 
    Could anyone give some help and clarify here? Great thanks in advance.
    Oh, btw, another colleague can reproduce the issue (open separated windows even using the same window name) in his Win7 64 bit with IE 10 env, but could not reproduce in his Win 32 bit with IE 10 env... Hope this information could also do help.
    ======================== Test pages ===============================
    (1) print_test.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Print test</title>
    <head>
    <body>
    <h1>Print test</h1>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test");'>Print</a></p>
    <p><a href="javascript:void(0)" onclick='window.open("print_test_open.html", "test"); myWindow.location.reload(true);'>Print (force refresh)</a></p>
    </body>
    </html>
    (2) print_test_open.html
    <!DOCTYPE html>
    <html>
    <head>
    <title>Open</title>
    <head>
    <body>
    <h1>
    <div id="count">Test</div>
    </h1>
    <p>Test</p>
    <script type="text/javascript">
    var e = document.getElementById("count");
    sessionStorage['count'] = 0;
    function timedCount() {
        i = sessionStorage['count'];
        i++;
        sessionStorage['count'] = i;
        e.innerHTML = "Count: " + i;
        setTimeout(function(){timedCount()},100);
    timedCount();
    </script>
    </body>
    </html>

    Hi,
    please try in noAddons mode and with the IE Popup blocker turned off. Also ensure you are using the default IE Security zone settings. Internet Options>Security tab, click "Reset all zones to default"
    To debug your scripts in IE11.
    Tools>Internet Options>Advanced tab, check "Always record developer console messages".
    start your test and display the developer tool console to display suppressed errors and warnings.
    (I don't see where myWindow is assigned).
    "If a window with the name strWindowName already exists, then, instead of opening a new window, strUrl is loaded into the existing window. In this case the return value of the method is the existing window."
    window.open has an optional 'replace' parameter...
    http://msdn.microsoft.com/en-us/library/ie/ms536651(v=vs.85).aspx
    to reuses a tab or window
    window.open({url},[name],[placement],[replace])
    If possible can you please provide a publicly accessible link to your test pages as we need to inspect the response headers to monitor what is cached.
    or
    f12>Networking tab, click 'Start' button, then proceed with your test plan.
    Regards.
    Rob^_^

  • I was login a website ,and i have opened cookies , i want to open another window to login the same website use another account , and in the same windows can use the same account , how can i achieve it ? thinks

    i want to use firefox to login a website ,in the same window and different tags can user the same session
    but when i open other window and login the same website use different account .
    how can i achieve it ? thinks

    Your problem has nothing to do with the faults or limitations of a web browser.
    ''There can be only ONE active user logged in on a specific website during a whole Browsing Session. Even if you try to log-in using a new window it will sign-out the earlier User ID from that website. It will keep the most recent logged-in User ID active.''
    This is the general policy on which all websites are built. Even if you try to login the same website from another web browser, you won't be able to login from the second platform either. I just check it. Tried on Mozilla and Internet Explorer.

  • TS2326 when I import my ppictures to my PC it wont let me rotate and it says THIS FILE MIGHT BE IN USE OR OPEN IN ANOTHER PROGRAM OR THE FILE OR FOLDER MIGHT BE READ ONLY

    can somebody help me cause i cant rotate my pics its a message came out when i try to do that.its says the file might be in use or open in another program or the file or folder might be read only

    Are you saving the files to a server? Did you email a version of the file and then continue to work on it without closing it?

  • Make all open finder windows come to the front?

    Things that used to be so simple on the Mac are now so complicated.
    I have a bunch of finder windows open. Most of them are hidden behind other application windows, like my browser.
    I used to be able to click anywhere on the desktop to make all windows come to the front. No longer. Later, I could do it by mousing all the way over to the Dock and clicking on the Finder icon there. Now even that doesn't work!
    How the heck do you simply make all open finder windows come to the front???

    DrBeckenstein:What to use in its place though?The utilities of choice for Mac OS X are Tech Tool Pro and Disk Warrior. Both of these pick up where Disk Utility leave off. When DU reports errors it cannot repair, you turn to one or the other of these two. Many Mac users like Disk Warrior for it excellent work in repairing and rebuilding directories. I use TTP because it not only does excellent work with directories, but it also does hardware checks, disk optimization, files checks, eDrive (emergency boot drive) etc. In the long run, though, it is largely a matter of personal preference.
    Again, I don't know what maintenance procedures you employ, but our Systems get rather sluggish sometimes as caches fill up, preference files become corrupted, the need for Unix maintenance allow CRONs to build up. Here are a few sites that offer good suggestions and links to resources:
    1. Macintosh OS X Routine Maintenance
    2. Maintaining Mac OS X
    3. Mac OS X: How to force background maintenance tasks (logs and temporary items)
    4. http://discussions.apple.com/thread.jspa?messageID=607640&#607640
    I mentioned in my earlier post that if the problem is essentially with one application you can go into Home Folder > Library > Preferences, find the .plis for that application, drag it to the desktop and restart. Check to see if that makes a difference. If it doesn't you can replace the new .plist created with the one on the desktop, or just drag the desktop copy to the Trash.
    In your situation I would run Repair Disk from the install CD, then implement some of the suggestions on maintenance.
    One other thing to note: a too full HDD can cause problems. If it is over 50% full it could need disk optimization. If have near 85% of available capacity used, you are running a risk not only of compromised performance, but also of directory overlapping and, eventually of a crash.
    Good luck.
    cornelius

  • Bring a windows program to the front

    I searched for this but didn't find anything that answered my question.
    Is it possible to control programatically which windows programs are at the front?
    So if I was running a vi (which is on top) and I needed to automatically bring a running windows program to the front??
    Then when I was done bring the running vi back to the front.
    How can that be done?
    Thanks
    Rick.
    Solved!
    Go to Solution.

    https://decibel.ni.com/content/docs/DOC-4551
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • Safari opens new windows 1/3 the size of the original window.

    Safari opens new windows 1/3 the size of the original window. How do I make it open fullscreen?

    HI,
    Drag the bottom right corner out as far as it will go. Relaunch Safari. It should remember window position.
    Carolyn

  • When I try to open a site I normally access i'm getting a bar that says,Firefox has blocked this site from opening another window then on the right side of the bar gives option to allow or not. Never did that before. Thanks

    When I try to open a site I normally access i'm getting a bar that says,Firefox has blocked this site from opening another window then on the right side of the bar gives option to allow or not. Never did that before. Thanks

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * On Windows you can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * On Mac you can open Firefox 4.0+ in Safe Mode by holding the '''option''' key while starting Firefox.
    * On Linux you can open Firefox 4.0+ in Safe Mode by quitting Firefox and then going to your Terminal and running: firefox -safe-mode (you may need to specify the Firefox installation path e.g. /usr/lib/firefox)
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    [[Image:FirefoxSafeMode|width=520]]
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    [[Image:Safe Mode Fx 15 - Win]]
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Why does selecting a web link open 2 windows, one with the link and the other the home page? This is a single click of the mouse.

    When I single click on a weblink (usually in an email, Firefox starts up and opens two windows; one with the selected web page and one with my home page. If Firefox is running, it opens a new tab which is what normally occurs. It is only when it is not open that I now get the 2 windows. I have an imac running OSX 10.6.3
    == This happened ==
    Every time Firefox opened
    == In the past couple of weeks.

    Hi,
    The rolling over from radius servers only occurs on the same wlan and only when the controller deems the radius server being dead. However, if you get rejected from one WLAN but then you reassociate to another WLAN there is no mechanism in place in rejecting the attempt because they previously failed on a seperate wlan. This happens all the time with users connecting on incorrect wlans.
    The failover feature is for when you have multiple servers (usually for redundancy) on the same WLAN. So when user is rejected but radius server 1 the process stops there and the request isnt sent to radius server 2.
    Hope that helps!
    Tarik Admani
    *Please rate helpful posts*

  • Calling JCO RFC Server program from JCO RFC client

    Hi,
    I have an RFC registered server program which implements JCO.Server.  It seems to be working fine, when called from SAP.
    For testing purposes, I was trying to write a JCO client program which would take the place of the SAP client.
    This program opens a connection to the RFC server and executes a function e.g.
    JCO.Client client = JCO.createClient("xx.yy.com", "sapgw35", "MYPROGID");
    client.connect();
    client.execute(function);
    The RFC server program receives the call fine, when I test with a simple function which has no table parameters.  However when I tried a more complex function with table parameters, I get an serverExceptionOccurred from the RFC server program:
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: connection closed without message (CM_NO_DATA_RECEIVED)
        at com.sap.mw.jco.rfc.MiddlewareRFC$Server.nativeListen(Native Method)
        at com.sap.mw.jco.rfc.MiddlewareRFC$Server.listen(MiddlewareRFC.java:1368)
        at com.sap.mw.jco.JCO$Server.listen(JCO.java:6805)
    I have tried to initialize the repositories in both server and client programs correctly, so that the function is in the cached function list and the table structures in the cached structures list before the function is invoked.  But I am not sure if there is still something I am missing, so any ideas would be welcome.
    Thanks,
    Richard

    JCO example 5 is a very good one for server side programming.
    try the example,somethings you 'd better make clear.
    1) JCO.server
    2) repositories--data mapping
    3) parameters: export import,table...
    further topic:
    1) JCO pool
    2) tRFC,qRFC
    After you have success in Client side programming,try example 5.
    Regards

  • Session method and call transaction methos which one is the sap recomonded

    hi
    PLease give me the answer to these questions.
    session method and call transaction methos which one is the sap recomonded why .
    2) if we want to maintain BDC program in all the systems.wt to d0

    Hi Revethi,
    Here is the difference between the Session and Call Transaction method.
         Session
    Session method supports both small amount of data aswell as large amount of data
    2) data processing is asynchronus and data updation is synchronus.
    3) it process multiple apllication while perfomaning validations.
    4) in session method data will be updated in data base only after processing session only.
    5) system provide by default logfile for handling error records.
    6) it supports both foreground aswell as background process
    in bdc we use FM ... bdc_open_group " for creating Session
    bdc_insert " adding transaction and bdcdata table for updating database
    bdc_close_group " for closing Session
          Call Transaction
    Call transaction exclusively for small amout of data
    2) it supports only one apllication while perfoming validations
    3) there is no default logfile, We can explicitly provide logic for creating logfile for handling error records.
    we can create logfile by using structure....BDCMSGCOLL
    4) it doesn't support background processing.
    5) data processing is synchronous and Data updation is Synchronous( default), in
    this method also supports daya updation in asynchronus process also.
    Syntax:
    Call transaction <transaction-name> using BDCDATA
    mode <A/N/E> update <L/A/S>
    messages into BDCMSGCOLL.

  • Program  to list all include programs  from the  Sap program list

    My requirement is to display all include programs from the Sap program Table ( D010INC table and TADIR table), From
    here i have to get all include programs.Can anyone give the program code for this requirement

    well, it's your requirement and not ours, so why not try yourself first?

  • Uninstall the SAP Client on a PC

    When we try to uninstall the SAP Client on a certain PC, we get the following error message :
    ERROR 1606. Could not Access Network Location
    SQL\DATA\CHANTAL\MIJN AFBEELDINGEN
    The network location doesn't exist anamore

    Dear André,
    There are several approaches to solve that issue, which can happen with each application, but not only SAP Business One.
    1) Re-create the network path and save needed installation files of the current PL there - All in all this might be impossible.
    2) Save the installation files locally. Search in the registry for the given path and change it to the new location. - Might be still difficult.
    3) The easiest way seems to be:
    a) Move the current folder which holds SAP Business One Client to e.g. C:Oldclient.   
    b) Go to http://support.microsoft.com/kb/q290301/.
        Download the Windows Installer CleanUp Utility and install it. Ensure on the same page that
        you understand how it works. Finally delete the SAP Business One Client entry with that tool.
    c) Install the new SAP Business One client as you would do on a brand-new PC.
    Kind regards
    Mario Schoenberg
    Senior Support Consultant
    SAP Business One Forums team

  • Registering a program on the SAP gateway

    Hi All
    I have to setup an interface to an external application from SAP using ALE and IDocs. The external application needs to register an instance on the SAP gateway server. If this is complete then you only need to setup an RFC connection with a programID (The ID that is used in the gateway instance) and it will allow a connection between SAP and the external application.
    The problem I am having is that I don’t know how to register the external application on the SAP gateway. Can anyone help me with this problem?
    Thank you.

    Hi,
    the below blogs may help you
    Program ID in RFC destination-XI
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    - Satish

Maybe you are looking for