Problem with Windows Form called from SAP

I have a simple VB.NET windows form that I'm calling from a new menu click event from within SAP.
The form loads, as expected, when the menu item is clicked, but the form will always load outside of the SAP window and thus cannot be seen by the user unless they see it in their toolbar.
Has anyone run into this in the past?  I would normally use the UI-API, but this is a form from another program that can't use the UI-API.
I've also tested this with simple test forms with another test project and get the same results.
Any ideas?
Thanks!

This isn't merely a matter of viewing <i>new</i> windows.
When the SBO window is active and in full screen mode and one switches, using the task bar, to another application, more often than not the other application's window won't be displayed, or will be displayed but partially. One has to deactivate and re-activate the second window to see it correctly.
It's the whole bloody SBO graphical engine that's bogus, if you ask me. Talk about reforging <i>that</i> to a profit-oriented company...
@Marc Roussel:
BTW, System.Windows.Forms.Form#ShowDialog() is a blocking method, AFAIK. So the following statements won't be executed ere the "dialog"'s closed.
But this doesn't change the problem. The Activate() and BringToFront() don't help resolve the matter, in my experience. Sometimes the new form will appear on Z-top, sometimes it won't. Or maybe the true problem is that the window <i>is</i> on top, but doesn't get painted.
ADDENDUM:
Come to think of it, it might be worth a try to programmatically iconify/deiconify the new window. Something along the lines of:
Dim f as Form = ...
f.Show()
Application.DoEvents()
f.WindowState = FormWindowState.Minimized
Application.DoEvents()
f.WindowState = FormWindowState.Normal
Application.DoEvents()
(all in System.Windows.Forms Namespace)

Similar Messages

  • Adobe Form called from SAP Portal, not executing interface global init code

    Hello!
    I have an adobe form called from both R/3 and SAP Portal and I need to show long text dinamically calculated.
    The deal is at the SAP Portal execution, as scenario characteristics don't allow string definitions, I'm using 255 characters tables (QISR_TAB_TYPE), that I'm trying to convert inside form interface (Global init code).
    The problem is that the interface global init code is being executed when the form is called from R/3, but it is not at SAP Portal.
    Does anybody know how to manage this? It's kind of a problem that the BAdi method int_service_request_init doesn't allow types over 255 characters... and if it is not possible to access the form interface code section (maybe there's any way)... i need to find some code section where i can convert tables before the form context is filled!!
    Thanks a lot!!
    Regards,
    Diana.

    Hi,
    have you searched on SCN? There are some threads with same problem such as [this one|/message/9270216#9270216 [original link is broken];. There is more threads. They may help you to solve your issue.
    Cheers

  • Flexibility problem with ( window / form ) Position in forms 10g

    Hi ,
    I hope you are all Fine & Happy with oracle ;)
    I' using Oracle Developer Suite - 10g
    I SUCCEFULLY PUT THE FORM IN THE CENTER :D
    but i have a proplem to make the position of a form flexible ?:|
    First : I wanted to put the window in the center So that what i did
    -===== Environment =====-
    System : Windows XP
    resolution : 1280 X 800
    Browsers : IE , FIREFOX
    JVM : sun java , Jinit
    -===== Scenario =====-
    MODULE name : MOD1
    WINDOW name : WIN1
    bq.      bq. bq. |--&gt; width 200 \\     |--&gt; height 100
    BLOCK name : BLK1
    bq.      bq. bq. |--&gt;TEXT_ITEM : TXT1 \\     |--&gt;PUSH_BUTTON : BTN1
    -====== Action =====-
    i add trigger " WHEN-WINDOW-ACTIVATED " form level
    bq.      bq. Declare \\     windows_name VARCHAR2(30) ; \\     screen_height NUMBER; \\     screen_width NUMBER; \\     window_height NUMBER; \\     window_width NUMBER; \\     x NUMBER := 0; \\     y NUMBER := 0; \\     BEGIN \\     screen_height := GET_APPLICATION_PROPERTY(DISPLAY_HEIGHT); \\     screen_width := GET_APPLICATION_PROPERTY(DISPLAY_WIDTH); \\     window_name := 'WIN1'; \\     window_height := GET_WINDOW_PROPERTY(windows_name , HEIGHT); \\     window_width := GET_WINDOW_PROPERTY(windows_name , WIDTH); \\     x := ( screen_width - window_width ) /2 ; \\     y := (screen_height - window_height ) / 2 - window_height; \\     Move_Window( windows_name, x , y ); \\     END;
    -=== results ===-
    when the browser is maxmized
    screen_height = 600
    screen_width = 960
    window_height = 100
    window_width = 200
    x NUMBER = 380
    y NUMBER = 150
    this results are very nice to me BUT
    --==== the problem ===-
    when i resize the browser & reald the form it also detect that the display size still 960 , 600
    so the form is shefted far from the targeted postion " center of the browser or to be specific - center of the java applet
    While I noticed that any alert i create it position itself to the very center what ever i change the size of the browser or the java applet
    -==== the Question ===-
    how to detect the real size of the java applet
    or
    how the alert detect it's position to emulate it's code ?
    or
    is there any what to solve this problem :_| ?
    Thanks
    Edited by: user643438 on 17-Oct-2008 00:09

    Hi Frank,
    Where do I explicitly provide the tnsnames entry to Graphics?
    We are using SSO when running Form, the db connect string are store in each user resource of OID, where resource type = OracleDB. Also Neither the existing form (calls the
    *.ogd) nor *.ogd has tnsnames/db connect code.
    As for the actual TNSNAME setup, we have local env var -TNS_ADMIN w/value of "D:\Oracle\MidTiers\network\admin".
    That we want all three oracle homes: Infra10g, MidTier10g, Dev6i use the D:\Oracle\MidTiers\network\admin\tnsnames.ora, sqlnet.ora.
    Apparently, Graphics in D:\Oracle\Dev6i doesn't pickup
    the TNSNAME setting @ Midtiers
    Can you give us some pointers on this? thank you in advance!!!
    -Kan

  • Strange Problem with windows form in SBO

    Hi all
    I encountered a strange problem
    I have a standard .net windows form that I am activating from a menu in SBO
    In the test Env. in our office the form always shows on top, whoever in the customer site first time you activate the menu the form appears correctly on top but when you close the form and press the menu again the form will appear "behind" the SBO.
    The form will appear on top only the first time you use it.
    The form is set to TopMost true
    I also tried using the user32.dll functions of SetFocus and SetForgroundWindow
    (I put them in the Activated event of the form)
    But it made no difference – first time form on top - the rest the from is behind
    The form is run on a separate thread and as I said works perfectly in the test Env.
    I am using .net 2005 with SBO 2005
    Any Ideas ?
    Thanks
    Ronny

    Hi Roni,
    I think you will find the answer to your question in this thread.
    https://forums.sdn.sap.com/click.jspa?searchID=3636651&messageID=844077
    Regards,
    Felipe

  • Problem with sqlplus when called from forms

    Dear friends,
    I have the following problem, we are using forms 10g and database 10g,we are using client_host command to call sqlplus from form and the query which is being run by sqlplus is supposed to take an input from the client and return results. there is no problem in that. but the problem is the sqlplus window opens only in minimized mode and the users wants it open in maximized mode by default.
    this is the code i am using to do this
    pat:='sqlplusw -s'||:global.text||'@i:\sqls\codewise.sql'
    client_host(pat);
    please help me
    prawin

    I'm not sure allowing end users access to a sqlplus session is such a good idea. A savvy user having a bad hair day and becoming disgruntled could wreak havoc on your database if he/she has the right permissions. Besides, I've heard rumors that Forms is really good at accepting user input, querying the database, and displaying the results :P

  • New Window for Form called from a form based on a procedure

    Hi
    I have a form that is based on a procedure that asks for an employee number. The number is then passed to the procedure. The procedure then calls the next form passing in the employee number.
    This works however I would like the form called from the procedure to open in a new window while still being able to pass in the employee number as a parameter.
    Is there a way to do this? I have tried looking at wwa_app_module.new_instance & wwv_media.show_newwindow but I these only take the moduleid, I can't see how to pass in the employee number at the same time.
    Any help would be appreciated.
    Thanks
    Belinda

    Hi,
    You can pass parameters like this
    wwv_redirect.url('SJAYARAM_9042F.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1060253649&p_arg_names=deptno&p_arg_values=10&p_arg_names=_deptno_cond&p_arg_values=%3d');
    In this example the parameter deptno is passed with a value 10 and conditional operator '='
    Hope that helps.
    Thanks,
    Sharmila

  • Session problem with a form that calls psp web page.

    Hi,
    My unique form is based on table A.
    Within the form I call a stored procedure, which insert data from A into tables B,C,D
    And then within the same form I call a psp procedure using web.show_document('http://server:8080/plsql/psp_procedure?pvId=1001);
    The plsql web page displays data from tables B,C,D for each single pvId.
    The problem is:
    If any commit is issued the psp web page contains no data from B,C,D.
    I suppose I'm working with two different sessions, can I work within the same one?
    Thanks

    Hi,
    I'd say the main problem is that you have both rows with the same name 'Rangée1'. This is not a good idea, especially as the first row is the repeatable row.
    When objects have the same name, you can see the instances in the hierarchy, eg 'Rangée1[0]' and 'Rangée1[1]'. The instances use a zreo-based numbering system.
    By the way you can also see it in the Object > Binding tab:
    So that is when you have multiple objects with the same name.
    The problem with your form is that when objects are repeated (add new instance button), then these new objects also have instances, eg 'Rangée1[0]', 'Rangée1[1]', 'Rangée1[2]', etc.
    So the Acrobat gets confused ;-)
    I have renamed the second row 'Rangée2'. That seems to have solved the problem.
    Here is the form back to you: https://acrobat.com/#d=jcCs7X85xeRYQjvI2Yb*Cw
    Good luck,
    Niall

  • I installed lv 6.1 on a windows 98 system. As I am having problems of stability (much more than with the former release 6.0), I would like to know if there is some specific problem with windows 98 or there is some patch.

    I installed lv 6.1 on a windows 98 system. As I am having problems of stability (frequent crashes, much more than with the former release 6.0), I would like to know if there is some specific problem with windows 98 or there is some patch available.

    My experience with Win98 is that it is not a very stable system, regardless of software used. For example, Win2000 and XP are far more stable than 98. I've had it crash on its own if I leave the computer on for several days.
    I wouldn't recommend running programs for long time (few days) on this OS.
    This being said, can you be more specific in your question. What kind of stability problems did you have, which VIs did you run (if possible post them here), did you change the interrupts and priority levels on those VI, do you get error messages or blue screen....
    Zvezdana S.

  • Is anyone experiencing problems with opening mission control from the desktop.  Running mountain lion with parallels 7 and windows 7

    is anyone experiencing problems with opening mission control from the desktop.  Running mountain lion with parallels 7 and windows 7

    I had been having a similar problem on Lion with Safari pdf files despite downloading the latest Adobe Reader XI.
    I would constantly get the same messages - There was an error opening this document. The file is damaged and could not be repaired. And I would get a blank page when I tried to print the pdf if I tried printing from the Safari web page using File - Print from the top toolbar on my laptop.
    Then I came across the grey Safari lozenge with action icons.
    This allowed me, without downloading the pdf, to print the pdf file direct from the Safari page by using the Print icon on the grey lozenge that appears centrally three quarters down the screen.
    Then I discovered that if I save the pdf using the Save icon from this same grey lozenge on the Safari page I can open and print this pdf version from my desktop.
    I've tested it with a couple of different pdf files and these methods work using the grey lozenge icons but the same pdfs files don't work using File - Save As on the Tool Bar.

  • Hi there, I have a problem with my iPod Classic (from 2009). Everytime I connect it to my computer (Windows), iTunes does not work anymore. Music is automatically deleted on my iPod. Any suggestions please?

    Hi there, I have a problem with my iPod Classic (from 2009). Everytime I connect it to my computer (Windows), iTunes does not work anymore. Music is automatically deleted on my iPod. Any suggestions please?

    Thanks, for info, iPod Classic is a slower machine compared the Nano, unfortunately, if you read these discussions, majority of the freezes involved iTunes 10. Although if might be just slow and some impatient user just disconnect the iPod ands cause more problems. ( Yes I also did that but safely by doing a iPod Hard Reset, before disconnecting).
    Here is the Apple support article that may help you.
    http://support.apple.com/kb/TS1717
    or my usual solution for Windows Users.
    Antivirus has a tendency to freeze iTunes sync Operation with iPod Classic, causing a timeout, which corrupt your iPod filesystem, so when iTunes can't read the iPod, it is pointing to this problem. Other causes is when your iPod hardisk is dying, or your battery is dying causing hardisk crashes.
    My suggestion.
    Connect your iPod to the PC and run chkdsk, to fix any iPod diskerror, then disconnect it, after chkdsk complete.
    Disconnect your PC from Internet. (just to make sure no nasties creep into your system while you syncing.
    Stop the Antivirus program
    Connect your iPod to the PC, using a high speed USB 2.0 port at the back of your PC, do not use any USB Hub.
    When iTunes Open up, Restore your iPod please, this is for iTunes to map correctly, to fix the corrupted filesystem.
    When Restore complete, eject the iPod and reconnect again.
    Sync your ipod, preferably manually Manage in small batches and disconnect after every batch, to check that all is well.
    When all sync is complete, and iPod disconnected, start back your Antivirus and connect back the Internet.
    Good Luck!

  • Subroutine call from SAP Script

    Hi,
    I need to calculate required/outstanding qty. hence am passing existing values of reservation#/item# and issued qty.
    both req/out qty are returned blank by the code. please help.
    Following is my code segment for a external routine call from SAP Script.
    /:   PERFORM P_GET_QTY IN PROGRAM ZTEST
    /:   USING &MSEG-RSNUM&                     
    /:   USING &MSEG-RSPOS&                     
    /:   CHANGING &REQ_QTY&                     
    /:   CHANGING &MSEG-MENGE&                  
    /:   CHANGING &OUT_QTY&                     
    /:   ENDPERFORM
    REPORT ztest .
    TABLES resb.
    DATA: wa_resb TYPE resb,
          req_qty TYPE resb-bdmng,
          isd_qty TYPE mseg-menge,
          out_qty TYPE resb-bdmng.
    FORM p_get_qty TABLES input  STRUCTURE itcsy
                          output STRUCTURE itcsy.
      DATA: avlbl TYPE resb-bdmng.
      READ TABLE input WITH KEY 'MSEG-RSNUM'.
      CHECK sy-subrc = 0.
      wa_resb-rsnum = input-value.
      READ TABLE input WITH KEY 'MSEG-RSPOS'.
      CHECK sy-subrc = 0.
      wa_resb-rspos = input-value.
      READ TABLE input WITH KEY 'REQ_QTY'.
      CHECK sy-subrc = 0.
      req_qty = input-value.
      READ TABLE input WITH KEY 'MSEG-MENGE'.
      CHECK sy-subrc = 0.
      isd_qty = input-value.
      SELECT SINGLE * INTO wa_resb
                      FROM resb
                      WHERE rsnum = wa_resb-rsnum
                      AND   rspos = wa_resb-rspos.
      CHECK sy-subrc = 0.
      avlbl   = wa_resb-bdmng - wa_resb-enmng.
      req_qty = avlbl - out_qty.
      out_qty = req_qty - isd_qty.
      output-name = 'REQ_QTY'.
      output-value = req_qty.
    MODIFY output TRANSPORTING name value WHERE name = 'REQ_QTY'.
      APPEND output.
      output-name = 'OUT_QTY'.
      output-value = out_qty.
    MODIFY output TRANSPORTING name value WHERE name = 'OUT_QTY'.
      APPEND output.
    ENDFORM.
    Thanks,
    Ram.

    Hi Ram,
    I think you have to use MODIFY instead of append for the OUTPUT table.
    MOdify the table with KEY. This should resolve the problem.
    Ram, you can check this code and see how the MODIFY is to be used.
    REPORT YLSD999A.
    DATA  W_LENGTH TYPE I.
    *   GENERAL PURPOSE SUBROUTINES FOR CALLING FROM SAPSCRIPTS
    FORM DISPLAY_POUND TABLES IN_TAB STRUCTURE ITCSY
                              OUT_TAB STRUCTURE ITCSY.
      DATA: COUNT TYPE P VALUE 16.
      DATA: W_VALUE(17) TYPE C.        "defined as 7 chars to remove pence
      DATA: W_CHAR TYPE C.
      DATA: W_DUMMY TYPE C.
      DATA: W_CURR(3) TYPE C.
    *    Get first  parameter in input table.
      READ TABLE IN_TAB INDEX 1.
      WRITE IN_TAB-VALUE TO W_VALUE .
    * get second parameter in input table
      READ TABLE IN_TAB INDEX 2.
      MOVE IN_TAB-VALUE TO W_CURR.
      IF W_CURR = 'GBP'.
        W_CURR = '£'.
      ENDIF.
      W_LENGTH = STRLEN( W_CURR ).
    *    look for first space starting at right.
      WHILE COUNT > -1.
        W_CHAR = W_VALUE+COUNT(1).
    *  W_CHAR = IN_TAB-VALUE+COUNT(1).
        IF W_CHAR = ' '.
          COUNT = COUNT - W_LENGTH + 1.
          W_VALUE+COUNT(W_LENGTH) = W_CURR.
          COUNT = -1.
        ELSE.
    *     W_VALUE+COUNT(1) = W_CHAR.
          COUNT = COUNT - 1.
        ENDIF.
      ENDWHILE.
    * read only parameter in output table
      READ TABLE OUT_TAB INDEX 1.
      OUT_TAB-VALUE = W_VALUE.
      MODIFY OUT_TAB INDEX SY-TABIX.
    ENDFORM.
    Cheers
    VJ

  • HP 250 G3 - problems with Windows 10 boot

    I have problems with Windows 10 boot on my HP 250 G3. It often shutdown during boot. But boot is ok with Windows 8.1. Please release upgrade that solve this problem.

    SomeoneWithAnHP wrote:
    Guys this might be solution: Turn off your laptop. Disconnect all devices connected to the PC. Remove battery and disconnect from wall. Press the power button at least 20 seconds. Connect back battery and turn on your PC. It should be fixed by now, I did with my Pavilion 14, and both sleep and turning off problems were fixed.re:  Black Screen and Dead keyboard after locking computer. I tried this with my Envy 17t-3200 3D CTO.  Didn't help.  for this computer this means removing the back cover and unplugging the battery wiring harness form the Motherboard. I currently have sleep mode disabled when on AC and am still getting the black screen, dead keyboard lockup.  I really know I'm hosed since even the caps-lock is non-functional. I see this problem more when I'm at work were I tend to Win-L lock the screen when I walk away from my desk.  Seems like locking the computer then letting the screen blank is doing something evil. After I force a reboot, by keyboard backlight forgets it's setitngs and returns to full brightness. If I lock the screen then bring back the computer before the screen is blanked, it seems fine. I don't think there's any way to adjust the screen blanking when the lock screen is up (even my desktop power-saves the monitors after a few minutes on the Lock screen). I'm not sure it's HP or MS that should be looking into this.  My computer is about 3 years old so I can't pester HP with warranty requests. I'm not sure how prevelant this problem is. Are all Pavellions and Envy's having the problem?  Mine has Radeon graphics which was a bit unusual at the time.  I have to install the HP Display driver before any AMD updates or the screen dimming doesn't work (at least with win 7 and 8). Dave.  

  • Problems with importing text messages from PC Suit...

    Problems with importing text messages from PC Suit 7.1.18.0 to my Nokia 5800
     I am trying to import a csv file that contains text messages (Note that this file was created using PC Suit 7.1.18.0) to a subfolder that I have created to My Folders but PC Suits only imports the text messages to the Draft folder. Note that initially it shows that the messages are import in the correct folder but after a refresh it shows them in the Draft Folder. Is their any setting that I should change in the PC Suit or the phone? My computer runs on Windows XP Service Pack 3 and the Nokia 5800 was upgraded to the latest firmware v20.0.012
     Thanks for your help

    Most phones only allows importing of draft and archived box for SMS.
    To do a restoring, you need to backup the SMS as a .nbu file using PC Suite and restore later.
    If you got an SD card, you can also do a backup on the SD Card (backup.arc) then restore later (reset and restore: backup.arc and mmc).
    What's the law of the jungle?

  • Problems with Windows XP SP3 in Boot Camp

    Hi,
    I have recently received a 21.5" iMac; it is the higher-end of the 21.5" standard configurations. The problems I am having, I believe, specifically relate to drivers.
    Firstly, I get no sound whatsoever in Windows XP SP3 (boot camp); I have tried removing and reinstalling the drivers from the Snow Leopard install disc, but no success. I have no yellow question marks in the device manager window, but the absence of audio still persists.
    Secondly, I cannot gain access to the special functions of the Apple wireless keyboard in Windows XP SP3 via Boot Camp. Again, I have tried reinstalling the drivers, but no success. I have read an Apple support document which states that the keys are only supported on late 2009 Macs; I own one of these Macs, so that cannot be the problem.

    Problems with Windows XP SP3 in Boot Camp
    Boot Camp forums are here: http://discussions.apple.com/category.jspa?categoryID=237

  • Looking for a site that shows problems with windows patches or updates.

    Looking for a site that shows problems with windows patches or updates...so I know what not to install.
    Plenty of sites list and summarize individual patches, I want one that consolidates problems and complaints so I can better assess the risk. Currently I'm waiting to install patches several days and doing google searches. That works, but I'd rather find a place
    that does it with expertise.
    Which forums would be best to look for such problems.
    Thanks in and advance for suggestions

    Hi,
    I agreed with Cyber and Rick.
    Windows update helps to keep your PC safer—and your software current—by fetching the latest security and feature updates from Microsoft via the Internet.
    Although there might be some problems when installing it, Windows update is not the one to blame.
    For troubleshooting Windows updates, if needed:
    Fix Microsoft Windows Update Issues
    http://support2.microsoft.com/gp/windows-update-issues
    Best regards
    Michael Shao
    TechNet Community Support

Maybe you are looking for