SAPGUI login scripting program doesn't work.

I used a program which is called for sap login through local SAPGUI.
I call this program, then sapgui is called and then ID and PW is filled with existing value.
It worked well. however, we upgrade SAP frrom R/3 4.7 to ECC 6.0 and SAPGUI version is also changed.
after uprading, my program doesn't work.
although sapgui version is changed, my program can login R/3 4.7 server. but my program can't login ECC 6.0 server.
In case of ECC 6.0 server, my program can call SAPGUI. however, it can't fill the ID and PW. so it cant login.
I can't get the source of my program because I received only execution file.
Can you suggest any solution? such as, change the dll file.
Plz give me the solution!!!.

Dear J-Philippe,
I'm just getting started with SAP GUI Scripting through the COM interface and I seem to be running into the same issue.
You seem to be referring to a work-around mentioned in the README (#4). I don't know where the README is located, could you (or somebody else) please post the work-around or the README or location thereof?
By the way, here's the code I'm running (it's Python):
import win32com.client
wrapper = win32com.client.Dispatch("SapROTWr.SapROTWrapper")
sap_gui = wrapper.GetROTEntry("SAPGUI")
application = sap_gui.GetScriptingEngine
connection = application.FindById("con[0]") # returns /app/con[0]
session = connection.FindById("ses[0]") # throws exception
The last statement fails with an exception "The control could not be found by id".
When I use connection.Children(0) instead I get the exception "The enumerator of the collection cannot find an element with the specified index"
Same results when using SapGui.ScriptingCtrl.1.
Thanks!
Edited by: brucevdk on Jan 31, 2011 7:51 PM
I found the mentioned SAP note 1526624 somewhere (I don't yet have access to the official resource) and it made me think that perhaps I'm not dealing with the same issue. I'm also not sure what CreateObject is and if it's similar to the Dispatch functionality above (I'm just getting started with COM Programming). I'll play around with the recorder at work tomorrow to see if scripting works at all.

Similar Messages

  • Cannot install CS6. I deleted CC tryout version files by dragging them to trash bin. After that, installation program doesn't work (do nothing). How can I fix it?

    I deleted application folder of Illustrator CC tryout by mistake.  I should have run adobe installer but I didn't.
    After that, I could not uninstall Illustrator CC and also I could not install CS6.
    When I tried to install CS6, installer does nothing after entering serial number.
    OS: Mac OS Maverick on Macbook Pro

    I did run Adobe cleanup and confirmed that Illustrator CC has been removed but installation doesn't work.
    When I click on install button after putting in serial number and login with Adobe ID, nothing happens.
    It is frustrating.  I couldn't even install the program yet.

  • What to do when your program doesn't work.

    A huge number of posts here seem to relate to code that has been written (one presumes by the poster), but which doesn't work.
    I get the impression that people don't know what to do next.
    It's really not that difficult. When you're writing your program you constantly have in mind what you expect will happen as a result of each bit of code that you put.
    If at the end of the day, the program as a whole doesn't behave as you expected, then somewhere in there there must be a point at which the program starts doing something that doesn't correspond to what you anticipated. So, you add some System.err.println statements to test your beliefs.
    Consider this program that tests whether a number is prime.
    public class Test
        public static void main(String args[])
            // Get the number to test.
            int number = Integer.parseInt(args[0]);
            // Try each possible factor.
            int factor;
            for(factor = 2; factor < number; factor++)
                // See whether it is really a factor.
                if(number / factor == 0)
                    break;
            if(factor == number)
                System.out.println("Number is not prime.");
            else
                System.out.println("Number is prime.");
    }Straight forward enough, but it doesn't actually work :( It seems to say that every number is not prime. (Actually, not quite true, but I didn't test it that carefully, since it didn't work).
    Now, I could scrutinise it for errors, and then, having failed to find the problem, I could post it here. But let's suppose I'm too proud for that.
    What might be going wrong. Well, how sure am I that I'm even managing to capture the number of interest, number. Let's put in a System.err.println() to test that.
    Is the program in fact trying the factors I expect? Put in System.err.println() for that.
    Is the program correctly determining whether a number is a factor? Need another System.err.prinln (or two) for that.
    public class Test
        public static void main(String args[])
            // Get the number to test.
            int number = Integer.parseInt(args[0]);
            System.err.println("Number to check is " + number);
            // Try each possible factor.
            int factor;
            for(factor = 2; factor < number; factor++)
                System.err.println("Trying factor " + factor);
                // See whether it is really a factor.
                if(number / factor == 0)
                    System.err.println(factor + " is a factor.");
                    break;
                System.err.println(factor + " is not a factor.");
            if(factor == number)
                System.out.println("Number is not prime.");
            else
                System.out.println("Number is prime.");
    }Let's try with on the number 6.
    The output is:
    Number to check is 6
    Trying factor 2
    2 is not a factor.
    Trying factor 3
    3 is not a factor.
    Trying factor 4
    4 is not a factor.
    Trying factor 5
    5 is not a factor.
    Number is not prime.
    Whoah! That's not right. Clearly, the problem is that it's not correctly deciding whether a number is a factor. Well, we know exactly where that test is done. It's this statement:
                if(number / factor == 0)Hmm.... let's try 6 / 3, 'cos 3 is a factor.
    6 / 3 = 2.
    But that's not zero. What the.... Oh - I see, it should have been number % factor.
    Ok - let's fix that, and run it again.
    Now the output is:
    Number to check is 6
    Trying factor 2
    2 is a factor.
    Number is prime.
    Not the right answer, but at least it's now figured out that 2 is a factor of 6. Let's try a different number.
    Number to check is 9
    Trying factor 2
    2 is not a factor.
    Trying factor 3
    3 is a factor.
    Number is prime.
    Again, got the right factor, but still the wrong answer. Let's try a prime:
    Number to check is 7
    Trying factor 2
    2 is not a factor.
    Trying factor 3
    3 is not a factor.
    Trying factor 4
    4 is not a factor.
    Trying factor 5
    5 is not a factor.
    Trying factor 6
    6 is not a factor.
    Number is not prime.
    Aagh! Obvious - the final test is the wrong way round. Just fix that, remove that System.err.println()s and we're done.
    Sylvia.

    Consider this program that tests whether a number is
    prime.
    [attempt to divide by each integer from 2 to n-1]At risk of lowering the signal to noise ratio, I
    should point out that the algorithm given is just
    about the worst possible.
    I know that the point was to illustrate debugging
    and not good prime test algorithms, and I disagree
    with the correspondent who thought the post was
    condescending.
    Anyway, the java libraries have good prime testing
    methods based on advanced number theory research that the
    non-specialist is unlikely to know. Looking at the java
    libraries first is always a good idea.
    Even with the naive approach, dramatic improvements
    are possible.
    First, only try putative divisors up to the square root
    of the number. For 999997 this is about 1000 times faster.
    Next only try dividing by prime numbers. This is about
    7 times faster again. The snag, of course, is to find the
    prime numbers up to 1000, so there might not be much
    advantage unless you already have such a list. The sieve
    of Erastosthenes could be used. This involves 31 passes
    through an array of 1000 booleans and might allow an
    improvement in speed at the expense of space.
    Sorry if I've added too much noise :-)

  • Program doesn't work correctly after a copypaste from a working program

    Hi everybody!
    i made a really easy program, that doesn't work for some mysterious reasons...
    This first one is the prototype of the program: http://pastebin.com/fpFy3uLn
    in this version all is working correctly!
    So, where is the problem?
    The problem is that, once i copy-pasted the functions in the main program, it stopped to work!
    I have no compilation error or similar...
    This is the final program, the one that doesn't work: http://pastebin.com/7EWn1VSF
    thx a lot for your attention

    I commented the whole
    #Section "InputDevice"
    #       Identifier  "Synaptics Touchpad"
    #EndSection
    part
    and the appropiate line
            #InputDevice "Synaptics Touchpad" "SendCoreEvents"
    on Sever Layout.
    It stopped the EE error, touchpad works here
    but it's reverted to old "typing=accidentally doing clicks" since it got way too sensitive
    I can't run gsynaptics , synclient or syndaemon to fix it (as I used to)
    since I get
    drini ~ $ synclient
    Couldn't find synaptics properties. No synaptics driver loaded?

  • Is it a bug - SSIS 2012 ReadOnlyVariables in Script Task doesn't work

    It's very weird when I use the ReadOnlyVariables in SSIS 2012 Script Task, it doesn't work at all!!! And I never notice this change before, but everything in 2008 R2 is fine! Is it a bug in SSIS 2012 ?
    All the variables I set them to "ReadOnlyVariables"
    In scripts - I assigned some values from system variables.
    String PackageName = Dts.Variables["System::PackageName"].Value.ToString();
    DateTime CurrentDate = (DateTime)Dts.Variables["System::StartTime"].Value;
    // User Defined Variables
    Dts.Variables["User::PV_CURRENT_DATE"].Value = CurrentDate;
    Dts.Variables["User::PV_YEAR"].Value = CurrentDate.Year;
    Dts.Variables["User::PV_MONTH"].Value = CurrentDate.Month;
    Dts.Variables["User::PV_DAY"].Value = CurrentDate.Day;
    Dts.Variables["User::PV_PACKAGE_NAME"].Value = PackageName;
    Execute the package, it works !
    The only thing I can make it as SSIS 2008 R2 does is to change the ReadOnly for each variables.
    Then you will get the error.
    Why do we need this feature here but not to use the ReadOnlyVariables in script task ?
    Please vote if it's helpful and mark it as an answer!

    I can reproduce it as well. Feels like a bug...
    Locking the variable for read in code has the same effect:
    public void Main()
    // Lock variable for read
    Dts.VariableDispenser.LockForRead("User::myStringVariable");
    // Create a variables 'container' to store variables
    Variables vars = null;
    // Add variable from the VariableDispenser to the variables 'container'
    Dts.VariableDispenser.GetVariables(ref vars);
    // Now try giving it a new name
    vars["User::myStringVariable"].Value = "new value";
    // Release the locks
    vars.Unlock();
    Dts.TaskResult = (int)ScriptResults.Success;
    For reference:
    https://connect.microsoft.com/SQLServer/Feedback/Details/991697
    Please mark the post as answered if it answers your question | My SSIS Blog:
    http://microsoft-ssis.blogspot.com |
    Twitter

  • Script Editor doesn't work in Firefox on Windows XP

    The script editor doesn't upload or display scripts. No matter what, the actual editing control stays blank. It's not a display issue--the scripts don't run either.
    It works in IE6 on my system, however.
    Firefox 2.0.0.4, Windows XP Pro SP 2.

    Ahh, good point Carl, this isn't happening while using firefox on apex.oracle.com
    In my environment I get the following error in the console: -
    Warning: Unknown property 'margion-bottom'. Declaration dropped.
    Source File: http://peter03/i/css/core_V22.css
    Line: 128
    reference line 128...
    span.lov_colorpicker span{margin-top:auto;[b]margion-bottom:auto;}
    which looks like a misspelling in the core_V22.css of 'margin-bottom'.
    but that is all, no javascript errors.
    I don't get that error on apex.oracle.com...
    Could this be the problem?
    Gus..
    OK, I've fixed the core_V22.css error. But it makes no difference to the display...
    also, should the margion-bottom be logged as a (tiny) bug and if so where is this done?
    Message was edited by:
    Gussay

  • SignalExpr​ess program doesn't work when reloaded

    I am new to SignalExpress and am trying to do a simple program in as a example to show a customer how to use a USB-6008 as a device to control and measure one of their devices.  I am using digital outputs and they work correctly when I first enter and run the program.  However if I exit and reload the same program, any "digital port output" blocks that precede a "Sequence" block fail to correctly output a "1".  My sequence blocks have "allow hardware reuse" checked (so I can flip the same bits in different parts of the program).
    I can tell when a "digital port output" block isn't going to work correctly by turning on the "preview" pane for it.  If the "Value to Write" box is "High" this pane should show a filled radio button.  This is set correctly when I first create the block.  But if I close SignalExpress and reload the program this radio button will not be filled, and the USB-6008 won't correctly set the output to a "1".
    If I manually set the output control to "0" and then back to "1", then the radio button will be filled again, and the program will work correctly again.
    At first glance this appears to be a bug.  Any help or suggestions appreciated.  A copy of the SignalExpress VI and screen snapshots is attached.  Thanks.
    Chuck
    When it works correctly (note radio button near top is filled):
    When it doesn't work correctly (note all setttings are the same but radio button near top is empty):
    This shows a snapshot of the Sequence block:
    Attachments:
    SignalExpress_Digital_Problem.zip ‏238 KB

    Thanks for looking at this.  Sorry about the duplicate post, but I realized I had put it in the wrong place and couldn't figure out how to delete it from the first string.
    I was using the Sequence blocks so that I could set a digital line high, wait for 30 ms, set it low, and then make an ADC measurement and a limit test.  Then if that passed other patterns would be generated.  When I tried to do this is seperate blocks I was told I couldn't use the same resource without using the Sequence block with resource sharing turned on.  That was why I added the Sequence block.
    Chuck

  • With new update the script subMSO doesn't work anymore.

    I have a problem... In my folios (interactive comics) i have nested MSO..  MSO (1) with another MSO (2) in it and again in MSO (2) there is another MSO (3) and so on...
    I have made them with a script described in this page: http://forums.adobe.com/message/4595857
    All work fine with previews release on dps desktop tool and content viewer 23 24.
    But with new update the button inside Sub-MSOs doesn't work.
    Any Suggest ?
    thanks.

    We just released an update to the DPS tools that addresses the issues around HTML/iFrame and buttons in release 25. You can download the updated components by following the links at http://www.adobe.com/go/learn_dps_install_en.
    Neil

  • Setting proxy from installation program doesn't work

    I think I found a bug in installation program.
    When I go to setup network in installation program, choose not to use dhcp and then setup the proxy configuration there it doesn't work.
    I know it's not a network problem or anything because I managed to install fine after going to another VC and using export http_proxy="myproxyip:port" and export ftp_proxy="myproxyip:port" and then returned to installation program on VC1.

    The best thing to do when you think you found a bug is to post in the bug tracker. Things have a tendency to get lost in the forums very quickly, as well a number of Arch developers don't come into the forums at all.

  • Open With my program doesn't work

    I have Java program which runs on PCs and saves files with a special extension. When I double click on a saved file, I would like it to open with my program. This worked before when my program was stored on the C drive. But now I store it more appropriately in the Program Files folder, and it does not work anymore.
    If I try to say Open With and browse to my program, it does not show up in the list, so I cannot choose it. Or if I go to Default Programs in the Start menu, click on Associate a file type or protocol with a specific program, select my extension, click on Change program, and browse to my program, again it does not show up in the list, so I still cannot choose it.
    I am using Windows Vista, and I am able to make associations with other programs, but not with my program.
    How can I make it work? Thanks for your time!

    Sorry to bother you with this. Yes, this was a Windows problem, not a Java problem.
    The solution was to use the Registry Editor. Just for the record, let me post my solution:
    For being able to open files with my extension, I had to create a registry in
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts,
    including the subkey of the program name in the subfolder OpenWithList
    and the subkey of the program id in the subfolder OpenWithProgIds.
    And for the program id I had to create another registry entry in HKEY_CLASSES_ROOT,
    including the subfolders Shell, Open, and Command, where I placed the
    subkey of the directory of my program.
    I did all this with my installation program Inno Setup (www.jrsoftware.org). Here is
    the code I created with Inno Setup for recognizing my ".ac" extension:
    [Registry]
    Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac"; Flags: uninsdeletekeyifempty
    Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithList"; Flags: uninsdeletekeyifempty
    Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithList"; ValueType: string; ValueName: "a"; ValueData: "Ananya.exe"; Flags: uninsdeletekey
    Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithProgIds"; Flags: uninsdeletekeyifempty
    Root: HKCU; Subkey: "Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.ac\OpenWithProgIds"; ValueType: binary; ValueName: "AnanyaCurves"; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves"; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves"; ValueType: string; ValueData: "AnanyaCurves"; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves\Shell"; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves\Shell"; ValueType: string; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves\Shell\Open"; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves\Shell\Open"; ValueType: string; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves\Shell\Open\Command"; Flags: uninsdeletekey
    Root: HKCR; Subkey: "AnanyaCurves\Shell\Open\Command"; ValueType: string; ValueData: """C:\Program Files\AnanyaCurves\Ananya.exe""""%1"""; Flags: uninsdeletekey
    Now my program even shows up in the Recommended Programs!
    And, by the way, this only worked if I put my extension key in
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.
    It did not work if I tried to put my extension key in HKEY_CLASSES_ROOT.

  • I downloaded OS X Mountain Lion last night and now my Logic Express program doesn't work. What do I do now?

    I downloaded Os X Mountain Lion last night and now my Logic Express doesn't work. What do I do now?
    Thanks

    Upgrade to Logic Express 9.1.7; it's the mimimum version required for Mountain Lion.
    http://support.apple.com/kb/HT5421

  • Diskpart script - clean doesn't work

    We have a diskpart script - see below - to setup the partitions correctly on our Windows 8.1 tablets. The second line should clean the disk so that there's nothing left of the old install to confuse things. However this bit doesn't seem to work. The partitioning
    happens, but the cleaning appears to leave stuff around. If I clean the disk manually from diskpart before running the script everything runs OK.
    Does anyone know why this happens?
    select disk 0
    clean
    convert gpt
    create partition primary size=300
    format quick fs=ntfs label="Windows RE tools"
    assign letter="T"
    set id="de94bba4-06d1-4d40-a16a-bfd50179d6ac"
    gpt attributes=0x8000000000000001
    create partition efi size=100
    format quick fs=fat32 label="System"
    assign letter="S"
    create partition msr size=128
    create partition primary
    format quick fs=ntfs label="Windows"
    assign letter="W"

    I've seen a second windows boot manager option in boot manager and bitlocker not starting properly. All issues are fixed by manually running the clean, then running the script.
    EDIT: Also bcdboot dows't work properly unless the manual clean is done.
    Hi,
    Would you mind to post back the results of this command after you failed to run the script?
    BCDedit
    Then for the bitlocker not starting issue and bcdboot not working issue, any error message? or the screenshot to descript what you mentioned would be better for us to identify your issue.
    Kate Li
    TechNet Community Support

  • Run Script alarm doesn't work when iCal closed

    I have an applescript to remind me to run a maintenance application once a week. I've set a "Run Script" alarm for a weekly event in iCal... But the script ONLY executes if iCal is open!
    If iCal is closed I get the message:
    "An AppleScript event alarm did not execute properly. The script "run_maintenance.scrpt" that was assigned to the event "maintenance" did not open or did not finish running."
    Then, when I then open iCal, the applescript executes.
    How can I get the script to run when iCal is closed, just like a normal alarm?
    By the way, the applescript is quite straightforward, with a dialog and finder instruction to activate the maintenance program. It runs fine manually (& as I say, if iCal is already open).
    Thanks for any suggestions.

    Found the problem: The run_maintenance script couldn't be completed without user action (because of the dialogue), so was giving iCal an error.
    Solution: I've set another script that simply launches the run_maintenance script as the alarm.
    So there are 4 players in this daisy chain: iCal, a script to launch the reminder script, the reminder script, and Maintenance!
    Inelegant, but it works.

  • How to use forecast functions correctly?... Program doesn't work.

    Have anybody tried to make some forecast using the example programs Autofcst, QueryAll, etc. (Oracle Services Language Help)? I took these programs as a templates and tried to make my own over our database. First the simple ones. But It didn't work. Are there any special required properties of time dimension?
    Thanks.

    Hi,
    I manage to exec forecast inspired by the examples. It's up to you, how you construct your time dimension. You must define the custom measure where the forecasted data will be stored. It's better when the CM has the same structure as the measure with source data (sparse, composite, etc.). I also created the next two CMs for seasonal and seasonal smoothing.
    I had to set histperiods and it worked. But I let the approach 'appauto', the OLAP engine choose the best method by itself. If I try to change the method, especially to SESMOOTH, DESMOOTH and HOLT/WINTERS, than made the report of the CM forecast, the output was wrong.
    Have anybody tryied to work with the exponencial smoothing or the most difficult method H/W? Which of the parameters should I set with the FCSET to have correct outputs, if I use APPMANUAL approach?
    There are example of my FCSET and FCEXEC:
    FCSET handle APPROACH app METHOD method HISTPERIODS histperiods NTRIALS trials PERIODICITY _periodicity
    FCEXEC handle TIME time-dimension INTO custom-measure-forecast SEASONAL cm-seasonal SMSEASONAL cm-seasonal-smoothing BACKCAST source-measure
    K*

  • Signup Shield program doesn't work with FF??

    I have a program "Signup Shield", which stores passwords, creates disposable email addresses and fills in forms depending on which profile you require. It is on a Scan Disc flash drive. It always starts IE when I ask it to enter details, has anyone else experienced this problem or does anyone have any suggestions?

    Hi,
    Maybe it will work by installing [https://addons.mozilla.org/en-US/firefox/addon/3476/ this addon].
    Kind regards,
    Joren

Maybe you are looking for