How to stop the process for some time

I want to stop the process for some time can any one give the package or keyword or example for the same
For suppose two programs A and B.. .B will run based on output of A. What i need is... When A is executed the process will stop for 5mins then B has to execute...

You can use signals with DBMS_ALERT to "wake up" a procedure.
Procedure A is something like this:
DBMS_ALERT.REGISTER('B_FINISHED');
do logic...
when finished - send a signal
DBMS_ALERT.SIGNAL('A_FINISHED','B you can start');
now wait until B is finished
DBMS_ALERT.WAITANY(...)
continue logic hereAnd Procedure B is
DBMS_ALERT.REGISTER('A_FINISHED');
wait for a to finish
DBMS_ALERT.WAITANY(...);
do logic...
when finished, signal A it can continue
DBMS_ALERT.SIGNAL('B_FINISHED','A can continue');This is useful if u they need to wait for each other within the code. if they just need to wait - call B from A.
Hope this helps.
Edited by: Pyrocks on Nov 8, 2010 8:50 AM

Similar Messages

  • How to stop the process chain showing status as yellow but no process step

    Dear Friends,
    How to stop the process chain showing status as yellow but no process step is running in that process chain.
    We have manually triggered the process chain for sales it finished successfully till load data but the next step is create index and DB statistics. Both of this steps are in unscheduled position only and no background job for this.
    Please guide me.
    Thanking you in advance.
    Regards,
    Shubhangi

    Hi,
      At times even I have faced this situation.  During those times, running the Function module RSPC_PROCESS_FINISH by passing the right parameters came to my rescue.
    Regards,
    Raj

  • HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING IN THE PRODUCTION?

    HI ALL,
    CAN ANYONE TELL ME HOW TO STOP THE PROCESS CHAIN WHICH IS RUNNING DAILY AT 5.00 PM. I NEED TO STOP THE PROCESS CHAIN FOR COUPLE OF DAYS AND THEN RESTART IT AGAIN.
    cAN ANYONE TELL ME THE PROCEDURE TO STOP THE ENTIRE PROCESS CHAIN RUNNING IN THE PRODUCTION.
    THANKS
    HARITHA

    Hi,
    First and foremost let me advice you to be very careful while doing this.
    For Rescheduling
    RSPC> chain > Goto > Planning view and
    click on Execution tab > select > Remove from Schedule and then in Maintain variant of start process reschedule for the day you require it to run.
    For terminating active chain
    You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
    The next step will be to go to targets that you were loading and remove the red requests from those targets.
    Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
    But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
    Re: Kill a Job
    Re: Killing a process chain.
    Regards,
    JituK

  • Stop the execution for Some seconds

    I want to stop the execution for some second , Basically
    i want some funtion which will wait for specified period .
    it should work like Inkey() in foxpro .
    I have tried timer , pause but that does not solve the problem
    Thank you
    Regards
    Farukh

    find the library d2kwutil.pll (probably in c:\orawin95\tools\devdem60\demo\forms) and copy it and d2kwut32.dll to your application directory. Attach the pll to your form; now you can "interface" with windows. So for pausing you application use this in you form:
    win_api_utility.sleep(1000);
    the parameter takes milliseconds. so in the example it's 1000 milliseconds or 1 second.
    good luck!
    Tim

  • I have recently upgraded my iBookG4 from Tiger to Leopard 10.5.8 and find my Bluetooth USB adaptor no longer connects. The Bluetooth pane says inactive. Does Leopard require  USB 2.0. I've had the adaptor for some time so may be USB 1.0

    I have recently upgraded my iBookG4 from Tiger to Leopard 10.5.8 and find my Bluetooth USB adaptor no longer connects. The Bluetooth pane says inactive. Does Leopard require  USB 2.0. I've had the adaptor for some time so may be USB 1.0

    Bluetooth icon on menu bar shows bluetooth off. When opening bluetooth preferences it shows the devices I've connected previously,( my mobile phone), and other devices I've attempted to connect but not very successfully: my iPhone and MiniMac.  The bluetooth dongle in the USB port shows a continual blue light but does not react and the iBook does not recognise that it is there. There is absolutely no reaction when I try to pair my mobile phone, which I've done successfully before upgrading to Leopard, either by the iBook or the mobile phone.
    I assumed that Tiger was not bluetooth compatible with the iPhone or MacMini running SnowLeopard and hoped by upgrading to Leopard I could achieve some file transfers between the three devices (iBook, iPhone and MacMini)

  • How to know the process chain start time & end time?

    HI all .
    how to know the process chain start time & end time at the table level as well as in RSPC level .
    regards,
    Srinivas

    Hello,
    there is a program "/ssa/bwt" which will help you to know the exact time when the process was started and ended.
    but the thing is you have to provide name of the process chain with the date at which it was executed.
    another option is - you can double click on start process and on the last process of the chain.
    here, you will get both the timings... Start time of the start process will be the start time of your PC and end time of the last process in the chain will be end time of your PC.
    Hope this will help you.

  • How to know the process chain start time and end time

    Hi Experts,
                   How to know the process chain start time  and end time .
    Thanks in advance
    Regards
    Gutti
    Edited by: guttireddy on Feb 23, 2012 11:30 PM

    Hi Reddy,
    You may find the run time of a PC using below steps.
    1. Call SE38 > /SSA/BWT > Execute  > Enter your PC , choose the date and time > Execute. Here Run-time of a PC is displayed. (or)
    2. Call RSPC1 > Enter your PC > Execute > Goto Log view > Right click on the start Variant > Displaying Messages > Note down the start time in Chain Tab. Now Right click on the last Process type of the PC > Displaying Messages > Note down the End time in Chain Tab. The Difference b/w start time and end time gives the Run-time of your PC.
    Hope this helps.
    Regards
    Sai

  • I just purchased Lightroom 5 back on 15th of February, and v6 is now available. Do I understand correctly that I have to buy the new version for $149.00? Free updates are not available/included with the purchase for some time after the purchase?

    I just purchased Lightroom 5 back on 15th of February, and v6 is now available. Do I understand correctly that I have to buy the new version for $149.00? Free updates are not available/included with the purchase for some time after the purchase?

    Do I understand correctly that I have to buy the new version for $149.00?
    You can upgrade for $79.
    Products

  • Problem in stopping the process for a while

    Hi all,
    I am facing problem in stopping the process when i call *.exe from java. here i am explaning my problem in detail.
    main(){
    m1();
    m2();
    m1(){
    Runtime r=Runtime.getRuntime();
    Process p=r.exec("solve1.exe");
    // this exe file will create a text file (temp.txt), and it is creating it with out any problem.
    m2(){
    using temp.txt here.
    problem is when i call m1() it will create temp.txt , but by the time i call m2() temp.txt is saving into the disk and m2() is not able to find the file.
    here what i need is there should be some time gap to before i call m2(); and i tried even with
    p.waitfor(); in m1() -if i use this the program is not exiting out of runtime??
    any one kindly hepl me
    bye.

    A test app(if you don't have sol, then pick another app)
    public class WaitForTest{
        private WaitForTest(){
            try {
                Process p = Runtime.getRuntime().exec("sol.exe");
                System.out.println("Waiting....");
                p.waitFor();
                System.out.println("Done waiting") ;             
            catch(Exception e)
                    e.printStackTrace();
            static public void main(String[] args){
                new WaitForTest();
    }

  • How to Stop the process chain if it in the middle of the process?

    Hi,
    Is there anyway that i can stop the process chain if it is in the middle of the process already?
    Raj

    "Hi,
    First and foremost let me advice you to be very careful while doing this.
    You can start from SM37, find the process WID/PID then go to SM50 or SM51 and kill it. Once its done come back to RSMO and check the request, it should be red but again manually force to red and save by clicking on the total status button in the status tab. This shuld ensure that the process is killed properly.
    The next step will be to go to targets that you were loading and remove the red requests from those targets.
    Note: For source system loads you may have to check if the request is running in the source system and kill if needed and pull it again.
    But for BW datamart delta loads u may have reset the datamarts in case u are going to pull the delta again.
    Different Ways to stop process chain
    1)SM37 -->Kill Job
    2)SM50/sm66- ->Kill process
    3)RSPC>Job Log>Make the process RED forecefully.
    4)RSPC>Process chain> main Menu"Remove from Scheduling" OR
    5)se37-->RSPC_API_CHAIN_INTERRUPT
    give RFC BW system name(technical) and process chain name(technical)
    Steps 1 -3 stops the chain running in process
    Steps 4-5 stops the chain AFTER the current job which is running is completed as sucessful or Failure by nature.
    Rationale - 4-5
    This function will only remove the jobs from schedule, which did not yet run. It will not kill running jobs, as this may leave the system in an inconsistent state, moreover killing processes is possible for synchronous processes only anyhow. This means, that there will be no errors with interrupted chains, which on the other
    hand means an interrupted chain is not restartable. So for a running chain this function is intended to be an emergency break only. You can use it, however, to remove a scheduled chain from schedule, such that it does not start except by your product.
    Re: Kill a Job
    Re: Killing a process chain.
    How to stop a process in a process chain?
    Regards,
    JituK

  • How to stop the Process Chains?

    Hi Everyone,
       I have a process chian which is running daily, but i want to stop in a particular day( for ex on wednesday).The process chain has to run on remaining days.So how can i stop the process chain on the particular day. Please do answer me.
    Thanks
    Veerendra

    Hi Virendra,
    After start process , insert a node of abap program and insert program with following code .
    Report zntest.
    data : lt_attr like CASDAYATTr occurs 0 with header line.
    CALL FUNCTION 'DAY_ATTRIBUTES_GET'
    EXPORTING
       DATE_FROM                        = SY-DATUM
       LANGUAGE                         = SY-LANGU
      TABLES
        DAY_ATTRIBUTES                   = Lt_ATTr.
    write : / lt_Attr-WEEKDAY_L.
    read table lt_attr index 1.
    if lt_Attr-WEEKDAY = '3' . "3 Stands for 3rd day of week i.e. Wednesday
      message 'Process chains not to be run on wednesday' type 'E'.
    endif.
    Make sure that this ABAP program is linked to other processes only on  "Success",
    Hope that helps.
    Regards
    Mr Kapadia

  • How to stop the process chain on every saturday and delay until sunday 6 am

    Hi experts,
    We have a maintanence window on every saturday until 6 am on sunday.
    My question: I don't see any option in the start variant of the process chain under restriction to stop the process chain on saturday and delay the run until sunday 6 am. Any idea?
    Please let me know the steps. Thank you in advance.
    Sharat.

    how to create a event for a process chain? please let me know step by step instructions.
    Also I will schedule the regular process chain until friday and use the new variant to schedule it on sunday at 6:00 pm right?
    Thanks in advance.
    Sharat.

  • Ipod Touch 3rd gen not chargin anywhere else that it isn't my macbook pro and only works on one of the USB ports the other one doesnt recognize it... I use the same USB cord to charge it on the wall for some time now it wont even charge on the wall

    i have an ipod touch 3rd gen this is my second ipod touch my fist one the battery died after 4 years so then a bought this one (ipod touch 3gen) and it works perfectlybut for some time know it wont charge anywhere else thats not my macbook pro and the thing is the only charges and its recognized only on one of the USB porst of the laptop i have a windows 7 computer but it wont charge there have a linux (ubuntu) machine and doesnt work either, the wall charger with the same cable i use on the laptop and wont charge either i plug it on my sisters car and wont charge my char wont charge anyways i wont charge anywhere else thats not my macbook pro only with 1 of the 2 USB pork that the MBP has..... any help? can someone ewlp me? i really doubt its the battery cause it charges fine on my MBP :/.... oh now i recently upgrade to OSX Lioin but the problem perssist I did the recent update but the problem persists :/

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • How to Stop The Process of oRecordSet.DoQuery()

    Hi all..
    I would like to ask 1 question.
    When program is executing the query passed as a parameter to oRecordSet.DoQuery(), is there any way we can stop the process by clicking on cancel button or other events?
    thx.
    regards'
    erwine

    Hi all..
    thx for your quick replies.
    Coz currently im doing SDK module which requires to process alot of data..and the process of inserting and updating to DB is kinda complicated. So basically, i use transaction to start and when i encounter error, i will rollback.
    Let's say if client run the program and suddenly realized that he/she gives wrong input and wants to cancel the whole process.What can i do? Client may say that button 'Cancel' is actually quite confusing because cancel is self-explanatory term to cancel process, but in SAP BO, it's actually to quit the form.
    I once thought of using thread, however, the event to trigger thread to stop will have to wait until the process done. so it's quite complicated

  • How to Stop the process of Thread

    Hi,
    A process is running in a thread, which will create a file with records in it.
    I have a cancel button and if I click the button, the process should be stopped i.e. it should not allow to create the file. Is it possible to do this?
    If so, how to achieve this? Please help me in this regard...
    Thanks in Advance

    Hi,
    A process is running in a thread, which will create a
    file with records in it.
    I have a cancel button and if I click the button, the
    process should be stopped i.e. it should not allow to
    create the file. Is it possible to do this?
    If so, how to achieve this? Please help me in this
    regard...
    Thanks in AdvanceThere is no (safe) way of just stopping the thread. What you can do is have a flag in your Runnable/Thread object that you flip when you click the Cancel-button. Then in your run() method you check every now and then if the flag has been flipped. If the flag has been set you stop what you are doing and do necessary cleanup.
    Something along these lines should do it (this is just a skeleton code that won't compile, but the general idea should hopefully be clear):
    class FileCreator implements Runnable {
        private File file;
        private boolean cancelled = false;
        // Method to call when you click the Cancel-button
        public synchronized void cancel() {
            cancelled = true;
        public void run() {
            // Do whatever it is you need to do. On suitable places in the code you check if
            // the job has been cancelled. E.g.:
            try {
                if( cancelled ) {
                    return;
                // Create the file
                file = new File(...);
                if( cancelled ) {
                    return;
                // Add the records to the file:
                for( Record rec : getRecords() ) {
                    if( cancelled ) {
                        return;
                    addRecordToFile(rec, file);
                // etc, etc
            finally {
                // Do necessary cleanup if the job was cancelled, e.g.:
                if( cancelled ) {
                    if( file != null ) {
                        // The file was created before the job was cancelled. Delete it:
                        file.delete();
                    // etc, etc
    // Somewhere else in your code:
    FileCreator fc = new FileCreator();
    new Thread(fc).start();
    JButton btnCancel = new JButton("Cancel");
    btnCancel.addActionListener( new ActionListener() {
        public void actionPerformed(ActionEvent e) {
            fc.cancel();
    ...Hope this helps!

Maybe you are looking for