How to run statement b after ensuring statement a is finished?

statement a
statement b
How to run statement b after ensuring statement a is finished?

s021126 wrote:
The program start the timer when the connection is not finished.Then connect() returns before it connected.
Since Ranking is not a class from the JDK, we can't tell you what it does.
How can I do?Check with whoever gave you the Ranking class.

Similar Messages

  • How to run media file after Runtime.exc the real player?

    Hi
    How to run media file after Runtime.exc the real player application

    String command = "cmd /c start videotest.rm";
    Runtime.getRuntime().exec(command);

  • How to run the BAPI after creation or Modification ?

    HI Abapers,
    How to run the BAPI after creation or Modification ? What is the step by step procedure to run the the BAPI?
    Immediate reply is highely appriciable.
    Regards,
    Chow.

    Hi
    If you have done with BAPI creation correctly Run it similar to the fun mdule which we run in SE37 calling this BAPi in the program with CALL FUNCTION and passing the necessary parameters
    see the sample bapi code how it is called in Program
    data : w_resb_header like bapirkpfc.
    data: begin of itab_resb occurs 0.
    include structure bapiresbc.
    data: end of itab_resb.
    data: begin of itab_bapi_return occurs 0.
    include structure bapireturn.
    data: end of itab_bapi_return.
    data : w_resb_no like bapirkpfc-res_no.
    w_resb_header-plant = p_werks.
    w_resb_header-res_date = sy-datum.
    w_resb_header-created_by = sy-uname.
    w_resb_header-cost_ctr = '0000010001'.
    w_resb_header-move_type = '201'.
    w_resb_header-gr_rcpt = w_room_time.
    w_resb_header-part_acct = 'OR'.
    *ITEM DATA
    loop at i_details.
    itab_resb-material = i_details-matnr.
    itab_resb-plant = i_details-werks.
    itab_resb-store_loc = i_details-lgort.
    itab_resb-quantity = i_details-qty.
    itab_resb-unit = i_details-meins.
    append itab_resb.
    clear itab_resb.
    clear i_details.
    endloop.
    call function 'BAPI_RESERVATION_CREATE'
    exporting
    reservation_header = w_resb_header
    NO_COMMIT =
    MOVEMENT_AUTO =
    importing
    reservation = w_resb_no
    tables
    reservation_items = itab_resb
    return = itab_bapi_return
    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
    wait = 'X'
    IMPORTING
    RETURN =    .
    wait up to 5 seconds.
    w_resb_no contains your reservations numnber
    Regards
    Anji

  • How to run a script after resume from disk in pm-utils

    When I use pm-hibernate, I have a few scripts that I would like to run upon de-thawing. At the moment, all I want to do is module-related: I want to remove the pcskpr mod (which I have blacklisted in my rc.conf MODULES array, but HAL loads it upon thawing) and reprobe the ath9k mod (wireless doesn't work until I modprobe it).
    I see that you can insert your own hooks for pm-utils, but when are they run? I need my script to run after HAL has its way with my module-probing/loading and I'm not getting a clear impression that this is the case. If not, then what other options exist?

    tomk wrote:
    Arch wiki wrote:The hooks in this directory will be called in alphabetic order during suspend (that's the reason their names all start with 2 digits, to make the ordering explicit) and in the reverse order during resume.
    That seems clear to me. What else are you looking for?
    But pm-hibernate does some of its own work for hibernation/thawing. I'd like to know where in relation to *that* the hooks are run. Ie, during hibernation, are they run before or after the vanilla pm-hibernate functionality?

  • How do run OS X after installing windows

    How can I run both windows and os

    Windows on Intel Macs
    There are presently several alternatives for running Windows on Intel Macs.
    Install the Apple Boot Camp software.  Purchase Windows 7 or Windows 8.  Follow instructions in the Boot Camp documentation on installation of Boot Camp, creating Driver CD, and installing Windows.  Boot Camp enables you to boot the computer into OS X or Windows.
    Parallels Desktop for Mac and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  Parallels is software virtualization that enables running Windows concurrently with OS X.
    VM Fusion and Windows XP, Vista Business, Vista Ultimate, or Windows 7.  VM Fusion is software virtualization that enables running Windows concurrently with OS X.
    CrossOver which enables running many Windows applications without having to install Windows.  The Windows applications can run concurrently with OS X.
    VirtualBox is a new Open Source freeware virtual machine such as VM Fusion and Parallels that was developed by Solaris.  It is not as fully developed for the Mac as Parallels and VM Fusion.
    Note that Parallels and VM Fusion can also run other operating systems such as Linux, Unix, OS/2, Solaris, etc.  There are performance differences between dual-boot systems and virtualization.  The latter tend to be a little slower (not much) and do not provide the video performance of the dual-boot system. See MacTech.com's Virtualization Benchmarking for comparisons of Boot Camp, Parallels, and VM Fusion. A more recent comparison of Parallels, VM Fusion, and Virtual Box is found at Virtualization Benchmarks- Parallels 10 vs. Fusion 7 vs. VirtualBox. Boot Camp is only available with Leopard and later. Except for Crossover and a couple of similar alternatives like DarWine you must have a valid installer disc for Windows.
    You must also have an internal optical drive for installing Windows. Windows cannot be installed from an external optical drive.
    If you've already installed Windows and need to return to OS X, but have not installed the Startup Disk preference panel for Windows, then restart the computer. After the chime press and hold down the OPTION key until the boot manager screen appears. Select the disk icon of your OS X system, then click on the arrow button below it.

  • How to run a EnterpriseBean after Deployment?

    Hello,
    my problem is that i have to run a Bean (Entity oder Session) immidiately after deploying it. I get managed to call it Remotely, but not at startup. As i see it an instance of an Bean is created when calling it throiugh the remote interface. But How do I manage to get any function to be calles after deployment without any Remote call? Or MUST i call any remote functions to get a Bean created? (E.g. through a dummy "starter" program?)
    Thanks,
    MR

    You have to write some client code firstly to call create on the Home Interface this will return a reference to the ejb object in question and then secondly using this reference call a business method on the bean.
    Hello,
    my problem is that i have to run a Bean (Entity oder
    Session) immidiately after deploying it. I get managed
    to call it Remotely, but not at startup. As i see it
    an instance of an Bean is created when calling it
    throiugh the remote interface. But How do I manage to
    get any function to be calles after deployment without
    any Remote call? Or MUST i call any remote functions
    to get a Bean created? (E.g. through a dummy "starter"
    program?)
    Thanks,
    MR

  • How to run Cloned OSX after using CCC?

    Hi,
    I've just cloned my OSX Tiger 10.4.11 to an 80GB External HD ising CCC 'Carbon Clone Copy'. I right clicked to 'get info' on the External HD and it's reading 31GB used, but when I do the same from my internal HD, it's reading 33GB. Am I missing something at 2GB, or is that usual?
    When I used CCC, I used the 'Copy all selected items' (and made sure everything was checked) because a message came up when I tried to 'Copy everything from source to target'. It said: The target volume is not large enough to accommodate a block-level clone. So I opted for the 'Copy all selected items'.
    Is this why i'm missing 2GB maybe?
    Also, When I open the external hard drive from teh desktop, everything's there in folders. But how do I run this 2nd HD? I restarted the laptop to see if it would give me an option to run which HD (just like logging on as different users, but I only have 1 user account and it opens automatically).
    I'm going to install Leopard to this External HD but want to know how I will run it after?
    Any advice appreciated!

    I'm posting from a new account because I couldn't log on from my home PC (said my account has been suspended or something similar)
    I got 10.5 Leopard installed onto my External HD on my MacBook Pro. It shows up as 10.5 when I go into System Preferences > Startup. I choose the External HD with 10.5 to restart/reboot and then wait. It loads but it's the exact same as my original 10.4.11?
    Tried restarting it again and again and switching between the Internal HD and External HD but there's no difference even though it says so in the Startup window in System Preferences.
    When i'm in my Internal HD and open the External HD on the desktop, I can see the proper files and when I open Applications folder I can see the few new applications such as Time Machine and the System Preferences icon (the same as the setting icon on the iPhone).
    Anybody know what went wrong?
    I was away when it was installing (said 50 minutes to go when installing leopard) so I came back after 40 minutes and it was just in the process of restarting the laptop. Everything normal came up and I waited a minute, then ejected the CD and booted up the External HD to find that it was no different.
    Help?

  • How do I start transitions after the clip has fully finished.

    At the moment the transition is taking about two seconds off of my clip. This looks so bad and very unprofessional as the audio just ends suddenly. I have tried playing around with precision editor but I cannot get the clip to fully finish. I have tried changing the transition length but it just makes it go very fast or just takes even more off of the clip before. URGENTT!!! PLEASE HELP!!!

    You can't because any transition by definition has to overlap parts of the two clips either side of it. 
    If this causes the audio of the first clip to end prematureley a solution is to detach the audio from the first clip.  The audio track will then be editable separately and can continue through the overlap part of the video.
    Geoff.

  • How can I run a vi after deploying into a PXI Machine

    Hi;
    I am wondering if there is anyone out there who knows how to run a vi after deploying into a PXI machine from my host machine. In my application, I have some vi's that are deployed into my PXI machine. My problem is that when I would like to start these vi's simultaneously after deploying them. My current approach is to call vi reference and then invoke-> run. However, since there vi's are being deployed from a host machine and they are running in the PXI machine, I don't know how to create vi reference with the path constant. In other words, how can I find out the path of my vi after being deployed into my PXI machine from the host.
    Best Regards,
    Solved!
    Go to Solution.

    When VIs are deployed onto a PXI Real-Time controller they are generally copied to a C:\ni-rt\startup directory on the controller.
    Helpfully, this KnowledgeBase article talks about how specify and programmatically launch VIs on an Real-Time controller.
    I hope this helps,
    Fred V -- Product Support Engineer -- LabVIEW R&D -- National Instruments

  • Can I find how many instances of BPEL process is in running state ?

    Hi,
    How can I find how many instances of BPEL process is in running state ? Any code/API ? help ? Thanks

    Check the class com.oracle.bpel.client.Locator...
    u can use the method listInstances(WhereCondition wc) to get the required details
    Regards
    Albin I

  • How to run a particular case continuously in event based state machine architecture.

    I am making a program using event based state machine architecture, it is running as expected whenever i am generating an event, case structure corresponding to that event executes.
    we are taking some measurements from oscilloscope e.g. i am having one boolean button for rise time whenever i am pressing that that button it displays the value of rise time, it displays only once( since i have generated an event on that boolean button so it executes only once and displays value for one time and then comeback to timeout state) but in our program what we want, we want it to update value continously once that button is pressed.
    Now for a time being i have placed while loop on the case corresponding to rise time but this is not the right approach.
    since i am using state machine architecture( event based ), i am not getting how to run particular case continuously ,or if there is any other better architecture that i can use to implement the same application.
    Attached below is the program.
    Attachments:
    OScilloscope .zip ‏108 KB

    Say, in the attached program, when the user selects Autoset, it inserts corresponding state (Autoset) and now if you want this state to run again and again, probbbly you can again insert Autoset state while executing Autoset state... ohhh its confusing... check the picture below (A picture is worth a thousand words):
    1. Based on user selection, insert Autoset state.
    2. Re-insert Autoset state again and again while executing Autoset state.
    3. Now to come out of this loop, based on appropriate event generation, insert any other state AT FRONT (equivalent to Enqueue Element At Opposite End).
    I am not allergic to Kudos, in fact I love Kudos.
     Make your LabVIEW experience more CONVENIENT.

  • SAP HANA - How to run alter table statement in HANA procedure?

    I am trying to run alter table statement in a procedure. HANA gives error saying
    SAP DBTech JDBC: [257] (at 1338): sql syntax error: ALTER TABLE is not allowed in SQLScript: line 36 col 8 (at pos 1338)
    How to run alter table statements in procedure?
    Thanks,
    Suren.

    Hi Rich Heilman,
    Thanks for your response.  I have tried with dynamic SQL. I am trying to add partitions to a non portioned table.
    EXECUTE IMMEDIATE 'ALTER TABLE ' || :SCHEMA_NAME || '.TARGET_TABLE PARTITION BY RANGE (TARGET_TYPE_ID) (PARTITION VALUE = 1, PARTITION VALUE = 2, PARTITION VALUE = 3, PARTITION VALUE = 4, PARTITION OTHERS)';
    Execution fails with error
    Could not execute 'CALL PARTITION_TARGET_TABLE('SUREN_TEST')' in 1.160 seconds .
    [129]: transaction rolled back by an internal error:  [129] "SUREN_TEST"."PARTITION_TARGET_TABLE": line 53 col 3 (at pos 2173): [129] (range 3)
    Any reasons for this error?
    Thanks,
    Suren.

  • How to  take trace of concurrent programme while it is in running state?

    how to take trace of concurrent programme while it is in running state?

    838982 wrote:
    how to take trace of concurrent programme while it is in running state?You cannot until it is completed -- You may generate the TKPROF file if the trace file has been generated and contains some data but this may not be helpful.
    How To Trace a Concurrent Request And Generate TKPROF File [ID 453527.1]
    How Can Trace and Debug Be Turned On For A Concurrent Request? [ID 759389.1]
    How to Set a Trace with Bind and Waits from the Concurrent Request Form [ID 601647.1]
    How To Find Trace File From Concurrent Request ID [ID 452225.1]
    Thanks,
    Hussein

  • Scheduled task going to running state in OIM

    hi all,
    After running the Target reconciliation it is going to running state ....how to fix this?
    Thank you.

    For how much time it shows Running status ?
    Check the status of schedule task using http://localhost:7001/xlScheduler if OIM is deployed on weblogic on 7001 port.
    I have seen couple of clients who are using OID connector and never heard such issues in OOTB connector.
    Try with restarting the server.

  • Pkgadd: ERROR: unable to determine current run-state

    Hello,
    I'm working with Solaris 10 5.10 sparc. I have successfully created a package with no difficulties. The package only consists of a bash script that is meant to update system files to enable remote logging and configure a server to accept eventlogs from windows platforms.
    After putting together my package, I then try to use
    pkgadd -d $PWD on the directory that contains my package. (/export/kelleyt6/kelleyt6_pkg)
    The only hint to this error I've managed to find with Google searches is from a SebastianN from years ago:
    From ages ago I remember a small bug which prevents pkgadd from determining the current run level, when the server has been up for a long time. iirc, the easiest way to get around it, would be to reboot and run pkgadd again.This is meant to run on a server, so rebooting isn't a very good option. I'm not even sure if rebooting it will help as this tidbit is the ONLY response I've seen to this error. Has anyone else encountered this before? Does anyone know how I might be able to add my package without having to restart core-servers???? I can also restart the zone...but I know that this solution is not preferable either. :-( Any ideas??

    Thank you abrante,
    after some searching, I've found that several files on this server have been removed. /usr/lib/acct/fwtmp is one of them. Also, /etc/rc[456].d are missing, but I don't think that is the problem. I also notice that rc2.d and rc3.d are disabled. I'm going to have to re-enable those if I can(after its safe to "break" the machine again).
    I know we have other packages that have been installed on the system.....so I'm trying to determine why MY package even cares what the run state is. Currently i'm going to re-read through pkgmk and see if there isn't something I can do that makes my package oblivious to run-state....then I'll see if pkgtrans can help.

Maybe you are looking for

  • I can't open firefox. These are the problem details. Problem Event Name: APPCRASH Application Name: firefox.exe Application Version: 23.0.1.4974 Appli

    Problem Event Name: APPCRASH Application Name: firefox.exe Application Version: 23.0.1.4974 Application Timestamp: 520bc252 Fault Module Name: ntdll.dll Fault Module Version: 6.0.6002.18881 Fault Module Timestamp: 51da3e27 Exception Code: c0000005 Ex

  • Displaying a link to an external page as a "catalog"

    Hi, I was trying to display a link to an external web page as a catalog in SRM, e.g. http://www.google.com. This should be possible somehow, an SRM will even provide a link to go back, "return to SRM application". I created a web service to do this.

  • Help..Directory move..lost files?

    Hi All, Major problem.  I have saved raw files from the camera to a folder Photos on my C Drive, in subfolders per date i.e. 2007-01-01 etc.  I imported from each folder into LR (now 2.5) so that there is a folder for each date with the assorted meta

  • Restore OS X with Broken Display

    Hello, I have a cracked display, nothing is visible on my powerbook. i have been using an external monitor but now it will not recognize a signal from my powerbook. my hard drive recently crashed also, so i had to put in a new one. My question is how

  • FSCM Delivered Content in BW

    Hello Experts, We would like to use BW for our FSCM reporting. Does anyone know if SAP has any standard delivered content for this?  Would you know the BW object names? Thanks, JM