Is it possible to automate opening the GuiMainWindow

Hello all,
I'm new to SAP ..
I'm looking for a way to open the GuiMainWindow
the one you get after to login.
Below is a simple console script written in Vb.net, that auto populates my login details.
Can anyone suggest what com object / code is required to take me to the next screen?
Imports SAPBAPIControlLib
Imports SAPTableFactoryCtrl
Imports SAPFEWSELib
Module Module1
    Sub Main()
        Dim bapi As Object
        Dim connection As Object
        bapi = CreateObject("SAP.Functions")
        connection = bapi.connection
        connection.User = "username"
        connection.Password = "password"
        connection.client = "500"
        ' connection.Destination = "R/3"
        If (connection.logon(0, False)) Then
            'Console.WriteLine("Your connection was successfuly made... ")
            'Threading.Thread.Sleep(2000)
      ' call the form to load?
        End If
    End Sub
End Module
'=======================================================
I also have a similar one in VBS.
Set oBAPICtrl = CreateObject("SAP.BAPI.1")
'Creating Connection object
Set oConnection = oBAPICtrl.Connection
oConnection.Client = "500"
oConnection.User = "username"
oConnection.Language = "EN"
oConnection.ApplicationServer = "ipaddress"
oConnection.Password = "password"
oConnection.SystemNumber = "00"
'Performing a remote logon to the R/3 System
'0
If oConnection.Logon(0, True) <> True Then    'Logon with dialog
      Set oConnection = Nothing
      Logon = False
      MsgBox ("No access to R/3 System")
Else
     Logon = True
End If
If Logon Then
MsgBox "Logged on successfullyu2026"
End If
the vbs one successfully authenticates, so i could run background processes, but I just want to show the guiMainForm for now.
Is this possible?
many thanks.
Edited by: VBDevGuy on Aug 20, 2010 11:26 AM
Edited by: VBDevGuy on Aug 20, 2010 12:23 PM

its OK, i've found the html help file with samples.
thanks anyway

Similar Messages

  • Is there a way to create a button on the front panel that would automatically open the txt file data is being stored to?

    I am saving data read from FieldPoint to a .txt file. Is there a way to create a button on the front panel so that when the user pushes this button it automatically opens the .txt folder in notepad? I want to bypass the user having to find the file in the computer in order to open it.

    Hi jem,
    I suggest that you break this up into three seperate questions and re-post to this list. That way you get more ideas from others that may have better insites than myself.
    Re:the sysexec
    The Sysexec will allow you to execute a dos command. This is the equivalent of going to
    Start>>>Run
    What you should do is find the proper DOS command sysntax that is required to open a text file in notepad or your favorite editor. Once you know what a good DOS command is, you should pass that string to the Sysexec.VI. The Sysexec has an input that allows you to choose if the code waits for the command to complete or if it should just start the program and let it run in the background. Sysexec will open its own window to run the command you speci
    fiy.
    Ben
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • When I click on a link in an email, it does not automatically open the site page? When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    When I click on a link in an email, it does not automatically open the site page?
    When I receive an email with a link in it, if I click on the link to open the page, nothing happens. It does not open the internet to that page.

    I don't appear to have a toolbar either.

  • In private browsing not working in Firefox 3.6.12 If I open yahoomail one session for one account and if I open other session for yahoomail, it automatically opens the earlier mail account.

    In private browsing not working in Firefox 3.6.12 If I open yahoomail one session for one account and if I open other session for yahoomail, it automatically opens the earlier mail account. But if I want to use more than one yahoomail accounts, in private browsing is not working. Please suggest.

    That problem isn't related to Private Browsing specifically, that's how Firefox works with regards to multiple "sessions" with the same server - only one logon is allowed at any time. Try using one of these extensions to be able to run multiple session cookies.
    Multifox: <br />
    http://br.mozdev.org/multifox/ <br />
    Cookie Swap extension: <br />
    https://addons.mozilla.org/firefox/3255/ <br />
    Cookie Pie extension: <br />
    http://www.nektra.com/oss/firefox/extensions/cookiepie/

  • After I download an attachment I have to go to the download window and manually open it, my laptop use to download then automatically open the file, how do I get this feature turned back on?

    After I download an attachment from my webmail I have to go to the download window and manually open it, my laptop use to download then automatically open the file, how do I get this feature turned back on?

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    *Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.org/kb/Safe+Mode

  • How to save a Tiff to Jpeg and automatically open the Jpeg copy?

    I got this workflow,
    1) From LR export to PS
    2) Do all essential editings.
    3) Save. File become 'xyz.tiff' now. (I want to keep this as master copy)
    4) Crop to 4r, Save a Jpeg copy as 'xyz 4r.jpg'
    5) PS save it as a copy, but do not automatically open the Jpeg copy. The tiff remains opened. I have to manullay Open, browse to it, and open the Jpeg. The 'Open Recent' list also do not list 'xyz 4r.jpg'.
    6) Do 4r sharpening for the 'xyz 4r.jpg', save it.
    Basically the files I want to keep and worked on is like this: NEF -> xyz.tiff -> xyz 4r.jpg -> xyz sml.jpg(maybe)
    Now, it there a way in step (5) to have PS save the Jpeg copy, and automatically open it? I dont care if the Tiff copy remains opened or not, I am done with it.

    Like Christoph, I ask myself why on Earth would anyone want to do that? 
    To keep working on an already lossy file which will further deteriorate evey single time you save and re-save it and close it? 
    That's just nuts!
    The abominable JPEG format is a necessary evil, but I use it only as the final output file when someone demands a JPEG for whatever reason.
    By all means only work on losless formats like PSD, PSB or TIFF.
    Working on a JPEG in order to make it smaller defies all logic.

  • When i connect my iphone to the pc it automatically opens the gallery as a usb even if phone is locked.how can i protect this?

    when i connect my iphone to the pc it automatically opens the gallery as a usb even if phone is locked.how can i protect this?
    i want my phone to be protected so that not anyone can simply fix my phone to a pc and see the gallery. thank you

    You can not prevent it using any setting on the phone, just as you can not do so with any digital camera.

  • It would be possible to automatically disable the reminders during a Keynote presentation?

    It would be possible to automatically disable the reminders during a Keynote presentation?

    Mountain Lion does this automatically. But not on iOS.

  • Is it possible when opening a new tab to automatically open the same as default home page ie Google?

    I would like to set all new tabs to open to Google home page, is this possible?

    If Google is already set as your only home page, you can try middle-click or CTRL+left-click the '''Home icon''' to open that home page in a new tab.
    Or, you can install this Add-on to open the page you choose when clicking the New Tab icon or clicking Firefox button > New Tab > New Tab: https://addons.mozilla.org/en-US/firefox/addon/newtaburl/
    *After install and restarting Firefox, set the options for that Add-on: Add-ons > Extensions, click Options next to that Add-on
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''

  • TS2755 Messages disappear in inbox.  When I close out messenger entirely and reopen it, they appear.  Also, if I only have one message unread in my inbox and I open up my messenger it automatically opens the unread message.  Very frustrating....Please hel

    I have an iphone 4s, OS 4.1.1.  I am having issues with my messenger.  When I have a message open I will see a new text come through and then it disappears.  I have to close out of my messenger entirely and reopen it.  Once I reopen the message the text reappears.  Any suggestions?  Also, if I get a new message and there is only one unopened message in my inbox and I open my messenger it automatically opens that message.  Any way to fix this so that I decide when I want to open a certain message?
    Thanks in advance for your help!
    Jen

    There are several possible reasons that messages seem to 'disappear'.
    There are two types of email accounts: IMAP and POP. See https://support.mozilla.org/en-US/kb/glossary-terms-including-types-accounts
    If you have a POP account and are accessing the mail on more than one computer or smartphone, whichever device reads (downloads) the message first will have it locally, but it will no longer be listed or available on the other devices.
    If you have an IMAP account, the message stays on the server, but if one device (user) moves or deletes the message, it will affect the view on all devices. So, for example, if you are using your smartphone and take some action on an email, when you get back to your computer, it will reflect that same action (but you might not have realized what caused it).
    Sometimes the index of a mail folder (.msf) will get corrupted. If you right click on the name of the folder and select Properties, a 'Folder Properties' window will open. Select 'Repair Folder'. This may take care of the problem.
    Another, less likely, reason for messages not to show up in your inbox is having the preference set to show only unread or recent messages. Then once you read them they seem to disappear.
    If you are still having problems, please look at the following items and respond with the information.
    1) What operating system do you use (Win8, MAC, Linux, etc)?
    2) Are you using IMAP or POP?
    3) If your mail server has a browser interface (web mail access such as mail.google.com), do the messages show up there?
    4) Right click on the folder in question and select Properties.
    a) Number of messages?
    b) Size on disk?
    5) Left click on the account name; View settings for this account; highlight Server settings;
    What choices are marked under "When I delete a message"?
    6) What, if any, antivirus program do you have installed?

  • Is there a way to automatically open the Activity Viewer & make it float?

    I just upgraded from Panther Mail, and I really miss knowing what was going on and having to constantly open the activity viewer and reordering the windows every time I do something. Is there a way to somehow make the activity viewer open with mail each time and keep it floating above the other windows (so I can have an indication of what's going on like in Panther Mail)?
    I'm afraid I'm going to shut mail down in the middle of a crucial activity. No doubt that might well be behind all the problems that develop with it over time.
    Thanks!

    I had two problems relating directly to the Tiger upgrade, one I solved with help here. That was importing saved mail that failed to be imported into one mailbox, the saved messages were showing up as IMAP messages ("haven't been downloaded from the server yet"). When both my accounts were POP, I never even had an IMAP account. I solved that and everything else with mail is fine now, except I want to see what's going on like I was able to in Panther. I especially miss not seeing outgoing mail sent progress, especially with long messages.
    The other issue was font related, and I still cannot get Fontbook to save the fonts I have disabled, so I just removed the duplicates manually (leaving the ones in the system folder as the defaults). As long as I don't open fontbook again, and it doesn't automatically re-enable the fonts, my system is fine. I will leave it alone now for a couple of years like I was able to in Panther. I have over 3000 fonts installed and available at all times which I need for my print work.
    Other than that and a 25 minute log-in time (as it reads the fonts; in Panther it was 7 minutes and I learned to live with that) everything is finally ok.
    The long log-in might also be Spotless related; I don't know enough about it to figure it out; all I know is if it is, it is a small price to pay for the way the system flies not having to index all my loaded drives all the time, not to mention the wear and tear on my drives.
    Tiger is so much faster than Panther (once I shut down Spotlight) it's like having a processor upgrade. Once you work out all the glitches, it's definitely worth the money and time put in. I was very careful with the install... counting backup time the usual precautions and updates to everything afterward (including third-party programs), it took over 30 hours.
    Thanks!

  • Safari automatically opens the same page repeatedly bis

    Hello, I read somewhere about this issue with a similar title but I didn't see a way to react.
    So I'm here with my question: after updating Pinterest (a message appeared on the screen with the question to update) my browsers repeatedly open the iTunes Pinterest app page.
    This is very anoying. Even with the browsers closed, Safari opens automatically and opens that particular page.
    Does anyone know how to solve this please?
    Many thanks on beforehand for a reply,
    Jan

    Safari > Preferences > Privacy > Cookies and other website data:
    Press the "Remove All Websitedata:" button.
    It will take a while to finish.
    Turn off Extensions if any, and launch Safari.
    Safari > Preferences > Extensions
    Do you have Adblock installed?

  • I accidentally set my Downloads to automatically open the files, and now it doesn't save them at all, except in my temporary files. How do I reset the Automatic Download setting?

    I remember back in Firefox 3.6 you could go into about:config and reset the automatic setting for downloads, but that particular option has either been renamed or isn't there anymore.

    Go to the Firefox/'''Tools''' menu, click on '''Options''' and go to the''' Applications''' panel where you can change the action for different content types, to "Save File" or "Always ask" instead of opening the file in a particular application or plugin. See [[Managing file types]].

  • How do I configure Firefox to automatically open the latest version of a web site instead of a cache version

    I can not work out how to set Firefox to automatically load the latest version of a web site. I have web sites in my bookmarks and it does not look on the internet for the latest version and furthermore using F5 does not work . I need to be able to find a way to have it auto set to look for the latest version live on the internet.

    Hi,
    This could help you: [https://support.mozilla.org/en-US/kb/Managing%20file%20types#w_changing-download-actions Changing download actions]

  • Why does Photoshop automatically open the same image on launch?

    Hello...
    Recently Photoshop CS6 has started automatically opening up to a certain photo every time I launch it. I'd like to stop this behavior, any suggestions?
    Thanks!
    I am on a MacPro running Mt. Lion, all sw is up to date.

    Answer is here:
    http://www.nainteractive.com/notebook/quick-fix-photoshop-cs6-reopens-old-documents

Maybe you are looking for

  • HP Pavilion P6 2120 says - Failing drive

    My Pavilion P6 2120 is only 18 months old. This morning I got the message:  1720-SMART Hard Drive detects imminent failure   Failing Drive: SATA1   Failing Attribute: #05 I'm running Windows 7. This is a home system.   I'm at a loss as to what is hap

  • Remote app and Browsing Albums

    So, I installed the Remote app directly onto the iPod Touch and set it up with no problems. Within a minute I was able to download, install, browse, and actually control my iTunes library! I found one snag. I would like to use the Album browse featur

  • Error Message: "There was an error processing a page.  A file I/O error has occurred"

    Hi I am running Windows XP on a lab top for a while. Just recently, every time I opened PDF files, I was getting an empty page. So, I installed the latest Adobe Reader. After that I started getting the error message "There was an error processing a p

  • A100/105 recovery problem

    Hey there, I have been trying to get the recovery processs going on my laptop and it starts to load the first disc but then says something about partition creation error and gives 0800000000. I have tried to look this up to see what the error was or

  • Set request attributes from the request attributes

    Using struts chaining actions. When using chaining the requestAttributes are lost. Is there a way to get all the request attributes and set them back to the request again? if so how to do this? Thanks.