Scripting from VBA when scripting is disabled on the server?

Hello All,
I am wondering if it is possible to perform GUI scripting from Excel or MS Access when the scripting functionality has been disabled on the server?  I know it is not possible using the Script Recording and Playback, but not sure within VBA?
If possible, can anyone please provide examples?  That would be a great help.
Thanks!
Emil Jakupovic

HI
I have been able to use Visual basic scripting  (*.VBS)  to automate sapgui to a certain extent . see the code below this allows u to logon to sap and use certain transactions using the "sendkeys" function even if scripting is diabled on the sap server. but the functionality is limited like you cant use it in background mode etc so see if this helps
set objShell = CreateObject("WScript.Shell")
'===Activate SAP logon pad engine
set application = CreateObject("Sapgui.ScriptingCtrl.1")
'===Initiate one of the predefined SAPlogon pad connection
set SapGui = GetObject ("SAPGUI")
set application = SapGui.GetScriptingEngine
set connection = application.OpenConnection("<SERVER DESRIPTION AS IN SAP LOGON PAD>", True)
WScript.Sleep(10000)
objShell.SendKeys "<USERNAME>"
objShell.SendKeys "{TAB}"
objShell.SendKeys "PASSWORD"
objShell.SendKeys "{ENTER}"
WScript.Sleep(10000)
objShell.SendKeys "/nSP01"
objShell.SendKeys "{ENTER}"

Similar Messages

  • Calling a remote SSH script from a local script

    When I paste this in Terminal I get the expected output:
    ssh -2 root@$SERVER /Library/WebServer/Sectrum.com/Sectrum/RSS/Update.py
    However when I invoke the same command scriptomatically I get error:
    : No such file or directoryctrum.com/Sectrum/RSS/Update.py
    It looks like the command line is truncated by a control character? What's going on?
    Are there special rules when calling an SSH remote script from inside a script on the local machine?

    Just tried a test with
    #!/bin/sh
    ssh [email protected] command
    with a remote (non-Mac OS X) box, and it worked as expected. Can you post more of an example, or can you try (for instance) invoking a bash script on the remote box with, say, an echo command or two? Try to break down the problem space here.
    And in no particular order...
    The root user wouldn't be my choice for this sort of thing, given the sensitivity of that username.
    Try (for testing) using localhost as the host name, or the full host name.
    Confirm $SERVER (and I'd probably use the ${SERVER} notation for that) is working with an echo.
    And as a completely different approach, it might work to add and use a CGI path into the web server for this operation, too; to use a path other than ssh for the operation. Or (depending on what you're really doing here) maybe a periodic script. (Or Xgrid, maybe ARD or such, or any of various available distributed command environments.)

  • How to call a perl script from an apple script

    Hi All,
    How to Call a perl Script from an apple script.
    Pls Give Your comments.
    Thanx & Regards,
    Esther

    Applescript to call a perl script named "/tmp/x.pl" passing an argument "world"
    do shell script "/usr/bin/perl /tmp/x.pl world"
    or if the script is given the executable atttribute (chmod +x /tmp/x.pl),
    do shell script "/tmp/x.pl world"
    Perl script "/tmp/x.pl" that prints a string using a passed argument
    #!/usr/bin/perl
    print "Hello $ARGV[$1]\n";

  • SAP GUI Scripting API is Disabled in the Server

    Hi,
    I used VB script to upload data into SAP, but in few SAP server scripting is disabled in the server so my codes are not working to upload data.
    Is there any alternative for this other than TX shuttle.
    Is there any HP software to load data to SAP, since i work in hp it will nice to get hp software.
    Thank you so much for your help!
    Reagrds
    Victor

    Hi,
    Follow this linke.
    http://www.synactive.de/download/sap%20gui%20scripting/sap%20gui%20scripting%20security%20settings.pdf
    Thanks
    Yusuf Hamdy

  • Are there any events to script a component when dragged and dropped into the parsys area?

    are there any events to script a component when dragged and dropped into the parsys area?

    The cq:listeners node of a component's cq:EditConfig has a number of events that fire with relation to the edit mode drag'n'drop stuff. You would probably want to hook one or more of the insert ones (beforeinsert, beforechildinsert, afterinsert, afterchildinsert).

  • I have a macbook pro with OSX 10.9.3 and Safari 7.0.4. How do I remove BING FROM SEARCHING when i type something into the search bar

    I have a macbook pro with OSX 10.9.3 and Safari 7.0.4. How do I remove BING FROM SEARCHING when i type something into the search bar

    See below if the search engine setting was changed without your knowledge and you can't change it back.
    You installed the "Genieo/InstallMac" rootkit. The product is a fraud, and the developer knowingly distributes an uninstaller that doesn't work. I suggest the tedious procedure below to disable Genieo. This procedure may leave a few small files behind, but it will permanently deactivate the rootkit (as long as you never reinstall it.)
    Malware is constantly changing to get around the defenses against it. The instructions in this comment are valid as of now, as far as I know. They won't necessarily be valid in the future. Anyone finding this comment a few days or more after it was posted should look for more recent discussions or start a new one.
    Back up all data. You must know how to restore from a backup even if the system becomes unbootable. If you don't know how to do that, or if you don't have any backups, stop here and ask for guidance.
    Step 1
    In the Applications folder, there may (or may not) be an application named "Genieo". Genieo may be partially installed even if this item is absent. If it's present, select it and open the Finder Info window. If it shows that theVersion is less than 2.0, download and install the current version from the genieo.com website. This may seem paradoxical, since the goal is to remove it, but you'll be saving yourself some trouble as well as the risk of putting the system in an unusable state.
    There should be another application in the same folder named "Uninstall Genieo". After updating Genieo, if necessary, launch "Uninstall Genieo" and follow the prompts to remove the "newspaper-style home page." Restart the computer.
    This step does not completely inactivate Genieo.
    Step 2
    Don't take this step unless you completed Step 1, including the restart, without any error messages. If you didn't find the Genieo application, or if you couldn't complete Step 1 for any reason, stop here and ask for instructions.
    Triple-click anywhere in the line below on this page to select it:
    /Library/Frameworks/GenieoExtra.framework
    Right-click or control-click the line and select
    Services ▹ Reveal in Finder (or just Reveal)
    from the contextual menu.
    If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar and paste into the box that opens by pressing command-V. You won't see what you pasted because a line break is included. Press return.
    A folder should open with an item named "GenieoExtra.framework" selected. Move that item to the Trash. You'll be prompted for your administrator password.
    Move each of these items to the Trash in the same way:
    /Library/LaunchAgents/com.genieo.completer.update.plist
    /Library/LaunchAgents/com.genieo.engine.plist
    /Library/LaunchAgents/com.genieoinnovation.macextension.plist
    /Library/LaunchDaemons/com.genieoinnovation.macextension.client.plist
    /Library/PrivilegedHelperTools/com.genieoinnovation.macextension.client
    /usr/lib/libgenkit.dylib/usr/lib/libgenkitsa.dylib
    /usr/lib/libimckit.dylib
    /usr/lib/libimckitsa.dylib~/Library/Application Support/com.genieoinnovation.Installer~/Library/LaunchAgents/com.genieo.completer.download.plist
    ~/Library/LaunchAgents/com.genieo.completer.update.plist
    If there are other items with a name that includes "Genieo" or "genieo" alongside any of those listed above, move them as well. There's no need to restart after each one. Some of these items will be absent, in which case you'll get a message that the file can't be found. Skip that item and go on to the next one.
    Restart and empty the Trash. Don't try to empty the Trash until you have restarted.
    Step 3
    From the Safari menu bar, select
    Safari ▹ Preferences... ▹ Extensions
    Uninstall any extensions you don't know you need, including ones called "Genieo" or "Omnibar," and any that have the word "Spigot" or "InstallMac" in the description. If in doubt, uninstall all extensions. Do the equivalent for the Firefox and Chrome browsers, if you use either of those.
    Your web browser(s) should now be working, and you should be able to reset the home page and search engine. If not, stop here and post your results.
    Make sure you don't repeat the mistake that led you to install this software. Chances are you got it from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad has a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If youever download a file that isn't obviously what you expected, delete it immediately.
    You may be wondering why you didn't get a warning from Gatekeeper about installing software from an unknown developer, as you should have. The reason is that the Genieo developer has a codesigning certificate issued by Apple, which causes Gatekeeper to give the installer a pass. Apple could revoke the certificate, but as of this writing, has not done so, even though it's aware of the problem. This failure of oversight is inexcusable and has compromised both Gatekeeper and the Developer ID program. You can't rely on Gatekeeper alone to protect you from harmful software.
    Finally, be forewarned that when Genieo is mentioned on this site, the perpetrator of the scam sometimes shows up under the name "Genieo support." He will tell you to run the provided uninstaller. As he knows and intends, the uninstaller does not completely remove the malware.

  • How to rotate pictures from iphone  when you put them on the computer

    how to rotate pictures from iphone  when you put them on the computer

    The program you use on your computer to view the picture might have a feature to allow you to rotate the photo

  • How can i stop my picture from flipping when I take it on the front camera?

    How can i stop my picture from flipping when I take it on the front camera? Need help as it's frustrating me:(

    Hmm...Double click on the Home button and try to delete the camera app then launch it again that should fix it. You can also turn off your phone and turn it back on again.

  • How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?

    How to exclude STOs from GATP, when we need to ship the "Customer return" products from branch to Central DC?
    We have to set up a scenario for sending "Customer returned" products from branches to Central DC through STO. But we do not want GATP check for these STOs, as they are Customer Returns, which need to analyze at CDC for further actions. We are using SCM 7.0 and ECC 6.0
    Thanks in advance,
    Ravi

    Hi,
    You can exclude the "customer returned" category from the scope of check from that particular Check control

  • Posting to a servlet from a class in a jar on the server

    I'm trying to modify a 3rd party applet that displays documents pulled from a database to post back to the server whenever the user pages up/down into a new document. The primary functionality of the applet is in place and working, the only change I am trying to make is to get the applet to post back to the server when the document being viewed changes so that we can keep track of documents open on the server side.
    The document viewer in the applet does have documented, though limited, ways to modify its functionality through properties files. I've added page up/down buttons to the correct properties file and specified button implementation classes as is dictated by their documentation. However, the problem I've run into is that since these page up/down classes are supposed to be placed in a jar file on the server and sent to the applet via the ARCHIVE parameter of the APPLET tag; these classes can not actually submit a post request back to the servlet.
    Since these classes exist outside of the world of the web app and applet, they don't have access to any of the connection, session, or cookie info in order to have an address to post back to, much less hold the correct session during the post. I tried hard-coding a URL to send the post request to for the sake of testing, but I'm still not seeing the post request being sent to the servlet. Here is the code I used to post the request, just in case it's a stupid mistake on my part.
    URL localURL = new URL("http://localhost:8080/appDir/ServletName");
                    localURLConnection = localURL.openConnection();
                    localURLConnection.setRequestProperty("method", "POST");
                    localURLConnection.setDoOutput(true);
                    Properties paramProperties = new Properties();
                    paramProperties.put("command", "nextDocument");
                    OutputStream localOutputStream = paramURLConnection.getOutputStream();
                    ObjectOutputStream localObjectOutputStream = new ObjectOutputStream(localOutputStream);
                    localObjectOutputStream.writeObject(paramProperties);
                    localObjectOutputStream.flush();
                    localObjectOutputStream.close();While searching to find out why this code isn't posting to my servlet, I've been wondering about the viability of this approach as a whole as well. Ideally if I wanted to add a post request to an event generated by the applet, then I would want to modify the applet. But since the applet is in a 3rd party jar file, I've been trying to do things their way. However, assuming I could get the page up/down action classes to post correctly, wouldn't I need some way of preserving the session that this action came from so that the right user's applet would be updated with the right document? The first thought that comes to mind on this involves writing out session/cookie data to temporary files on the server, but this sounds very ugly and insecure; plus I'd have to worry about making sure the files were uniquely named and that this unique name could be used in the page up/down classes. Is there a better way that I could be doing it?
    I apologize for the long winded explanation, but if anyone has any thoughts on either why my post request isn't going through or on the absurdity of my solution (and hopefully an alternate idea I could try), I'd be very appreciative.
    Thanks in advance.

    Well, when I've done URL connections from an applet session and cookies seem to have sorted themselves out. I'm not sure how, but there seems to be some functionality for it in the URLConnection class.
    I haven't tried setting the method like this, I always cast to HttpURLConnection and call setMethod to select POST. Your way might be right as well though.
    Have you checked the server access logs?
    It may be that your URL is rejected by the security manager for not having the same form of the hostname as the original applet retrieval.
    You should be able to get a domain name and port from the "code source" of your code, which will reference the online jar it comes from. You can generally get at this as getClass().getProtectionDomain().getCodeSource().getLocation(), or less elegantly by requesting the current class file as a resource.

  • URL file-access is disabled in the server configuration

    My hosting company has made a server config change and my xslt pages have stopped working with the following error.
    It says url file access is disabled but my phpinfo() still shows allow_url_fopen = on
    What else might be the problem?
    Warning: require_once() [
    function.require-once]: URL file-access is disabled in the server configuration in
    /homepages/0/xxx/htdocs/xxxx/inc/horoscope_xml.php on line
    3
    Warning: require_once(
    http://www.xxxx.co.uk/includes/MM_XSLTransform/MM_XSLTransform.class.php) [
    function.require-once]: failed to open stream: no suitable wrapper could be found in
    /homepages/0/xxxx/htdocs/xxxxx/inc/horoscope_xml.php on line
    3
    Fatal error: require_once() [
    function.require]: Failed opening required 'http://www.xxxxx.co.uk/includes/MM_XSLTransform/MM_XSLTransform.class.php' (include_path='.:/usr/lib/php5') in
    /homepages/0/xxxx/htdocs/xxxxx/inc/horoscope_xml.php on line
    3

    bikeman01 wrote:
    I don't understand your use of the word 'class' in your reply - I am using php not asp.net.
    The name of the file that you are trying to access is MM_XSLTransform.class.php. It is a PHP class created by Dreamweaver for the XSL Transformation server behavior.
    The servers php is 5.2.11, as it has been for sometime, so I know that it previously worked with allow_url_fopen = on and allow_url_include = off
    Judging from the error message, you are trying to include the file using a URL, rather than a file path:
    Fatal error: require_once() [
    function.require]: Failed opening required 'http://www.xxxxx.co.uk/includes/MM_XSLTransform/MM_XSLTransform.class.php' (include_path='.:/usr/lib/php5') in
    /homepages/0/xxxx/htdocs/xxxxx/inc/horoscope_xml.php on line
    3
    Change the URL to a file path:
    require_once('/homepages/0/xxxx/htdocs/includes/MM_XSLTransform/MM_XSLTransform.class.php');
    Is it possible for phpinfo() to show allow_url_fopen = on yet be actually off on the server?
    No.
    [Edited to correct name of server behavior]

  • IPlanet 6.0 SP2 restart on Windows NT when a user logs off the server.

    UPDATE: We have found that the iWS 6.0 only restart with JDK 1.3.1 installed for JSP pages. What is the best JDK to use?
    iPlanet 6.0 SP2 restart on Windows NT when a user logs off the server. If a admin or joe developer logs into the server (C+A+D) and does what ever... When the
    person logs off the NT 4.0 box ... ALL the httpd process restart. We have 80 & 443 & Admin. The processes are running under a user account. Any one have an idea why the process are restarting?"

    Hi,
    You can use following JDK version for Windows NT.
    And please check it out whether WinNT-SP6 as been installed in winNT box.
    Window NT:
    SDK and JRE 1.4 http://java.sun.com/j2se/1.4/
    SDK and JRE 1.3.1_02 http://java.sun.com/j2se/1.3/
    SDK and JRE 1.2.2_011 http://java.sun.com/products/jdk/1.2/
    JDK and JRE 1.1.8_009
    http://java.sun.com/products/jdk/1.1/download-jdk-windows.html
    I hope this helps.
    Regards,
    Dakshin.
    Developer Technical Support
    Sun Microsystems
    http://www.sun.com/developers/support.

  • For the ipad 2, what do you do when it says connection to the server failed?

    For the ipad 2, what do you do when it says connection to the server failed ?  This has happened for the past two days.  I have changed nothing.  It happens at home and at work.  What do you do?  What has happened?  Thank you.

    What are you trying to do when you get this error message? Is it related to mail, connecting to the iTunes store, Facebook/iMessage, your internet ISP? All of these are different servers.
     Cheers, Tom

  • Passing Multiple Parameters to SQL Script from a Shell Script

    Hi Friends,
    I have SQL script which accepts 6 parameters.
    I am calling this from a shell script as shown below:
    sqlplus -s  ${ORACLE_ID} @${SQLPATH}KORONT_041.sql ${USER_ID} ${PDC} ${item_number} ${KORDC} ${PDCSET} ${last_Updated_in_hours} Out of the six parameters, item_number is not a mandatory parameter.
    When i pass all six parameters, there is no issue.
    But when i leave item_number blank, i am getting the below error
    Enter value for 6:
    User requested Interrupt or EOF detected.Based on the error, it seems that the NULL values for item_number is ignored and SQL*PLUS is waiting for one more input from user.
    How can i overcome this issue?
    Regards,
    Sreekanth

    Hi,
    I am calling the shell script from concurrent program and below is the log file of the concurrent program.
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    KORONT_041_SH module: KORONT - Daily Item Master Update
    +---------------------------------------------------------------------------+
    Current system time is 29-JUN-2011 10:09:35
    +---------------------------------------------------------------------------+
    REQUEST_ID: 68510795
    USER_ID: 4219
    PDC:    85
    Item Number:
    KORDC:    124
    PDCSET:   1100000003
    last_updated_in_hours: 24
    EMAIL_ID: [email protected],[email protected]
    SQLPATH: /e381/oracle/asodev01appl/custom/motont/1.0.0/sql/
    RPTDIR:  /e381/oracle/asodev01comn/admin/out/ASODEV01_asoprdb2
    RPTFILE: o68510795.out
    Table truncated.
    *Enter value for 6: User requested Interrupt or EOF detected.*
    Table truncated.
    old  15:       AND ic.organization_id   = &&4
    new  15:       AND ic.organization_id   = 1100000003
    0 rows created.
    Input truncated to 9 characters
    old   8:                AND organization_id   = &&4
    new   8:                AND organization_id   = 1100000003
    0 rows created.
    End of SQL
    No record.
    +---------------------------------------------------------------------------+
    Executing request completion options...
    +------------- 1) PRINT   -------------+
    Printing output file.
                   Request ID : 68510795      
             Number of copies : 0      
                      Printer : noprint
    +--------------------------------------+
    Finished executing request completion options.
    +---------------------------------------------------------------------------+
    Concurrent request completed successfully
    Current system time is 29-JUN-2011 10:09:38
    +---------------------------------------------------------------------------+Regards,
    Sreekanth

  • I don't want to have to click the allow button every 3 seconds uploading video, how do I disable the "firefox prevented the page from reloading" when I've already put the site on my exceptions list?

    I begin uploading video to Facebook and a small window opens to show the progress bar but, the video stops uploading about every 5% when a notification comes from the top bar stating: "Firefox prevented the page from reloading" with an Allow button on the right. Regardless of clicking the allow button and putting Facebook in every exception list Firefox options seems to have or even turning pop up blockers off, that dam button keeps coming! How do I prevent or disable this?
    I am running windows XP media center edition SP2, and have Firefox v3.6.11

    You're welcome

Maybe you are looking for