Stopping one process chain when another is running

Hi All,
We have two process chains which are inter dependent.
One process chain has to be scheduled hourly & another daily.
I would like to know the way to stop the hourly running process chain when the daily process chain is running.
& the daily process chain run time will be varying like 1-2 hours.
Please help me to solve this problem
REDDY

Hi,
You can do it.
1.Create one Table with Flag (Values 0 or 1), and give Table maintaince also in SM30.
2.Craeate one program to check the Table Flag = 0 or 1. If it is 0 then trigger Event then that event will trigger Hourly Process Chain. You need to schedule this Program Hourly. (Your Hourly PC wil work based on Events)
3. Craete Daily Process Chain, once it will start it will update teh Flag =1 then once it will reach the last node it will turn the flag = 0.
Start
    |
Update Flag = 1 in table (Program)
    |
Load data
    |
Update Flag = 0 in table (Program)
4. So every hour your program will run (in Step 2), it will check table Entry and trigger Event.
The code is like below
Report1.
IF Flag = 0 Then
*Raise Event
DATA: EVENTID LIKE TBTCJOB-EVENTID.
DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
      EVENTID = 'ZEVENT1'.
      EVENTPARM = 'ZEVENTPARAM'.
  CALL FUNCTION 'RSSM_EVENT_RAISE'
          EXPORTING
            I_EVENTID                    = EVENTID
            I_EVENTPARM                  = EVENTPARM
         EXCEPTIONS
           BAD_EVENTID                  = 1
           EVENTID_DOES_NOT_EXIST       = 2
           EVENTID_MISSING              = 3
           RAISE_FAILED                 = 4
           OTHERS                       = 5
        IF SY-SUBRC <> 0.
         MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
ELSE
Exit
endif
Note: It will Work try it. Don't forget to give SE30 access to table, because some time if you want to maintain Flag value manually, you required it.
Thanks
Reddy
Edited by: Surendra Reddy on Mar 9, 2009 11:09 AM

Similar Messages

  • How to stop a process chain when its running?

    Dear Experts,
    How to stop a process chain when its running? is it that a chain can be stoppend when we open an info package of that chain ?
    Thank you,
    Raj

    Hi,
    Goto the main menu process chain --> choose the remove from the Schudule...
    Regards
    sathis
    I hope it helps to u... please assign the points

  • How to stop a process chain after the current running process

    Hi experts,
    I try to stop a running process chain, but only at the end of the current process load.
    I try to unscheduled process chain : the job of the current process is killed and the process stop
    I try to execute the programm rspc_process_finsh : same result.
    Actually, I aim at waiting of the current process completion and stop the chain.
    Thanks and regards,
    Bobby

    Hi all,
    Thanks for answer.
    If I resume the situation :
    - Click on Unschedule process chain stop the current process. We have to change the status of the process in Yellow to Red.
    - Go to sm37 to kill the job change the statut in red.
    So there is no way to stop the running of a process chain only after the good or bad end of the last runnning process ?
    Example :
    My chain is running. The process which is running is a DTP loading process. There are 50 packages to load. I decide to click on Unschedule process chain when the package 18 is running.
    If I do that, the loading of package 19 will not start right ?
    So is there a way to wait that the 50 packages are loaded before that the system stop the chain ?
    Thanks in advance,
    Bobby.

  • 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

  • How can one process "ask" if another process is running?

    Hi there,
    This is a very general question: how can one process "ask" if another process is running?
    In other words, what 2 process share together.
    Thanks for any help.

    This code will print all active Threads.
    Look at at the API docs for further information.
    ThreadGroup tg=Thread.currentThread().getThreadGroup();
            while(tg.getParent() != null)
                tg=tg.getParent();
            tg.list();

  • How to run change run in process chain when it fails

    HI All,
    How to run  attribute change run in process chain when it fails. Give me the procedure with clear description. Is there is any difference with 3.x versions in running this.
    Thanks,
    Pratap Reddy

    Hi Pratap.
    If BI Accelerator is not being implemented by ur company, in that case if change run fails u'll proceed by 'Repeat' process option as usual we do in 3.x.
    If BIA is exists, in this scenario u can not repeat as we do in 3.x. U have to drop the indexes on cubes effecting that change run and run the change runs. Once it is finished recreate BIA Indexes on cubes.
    Warm Regards,
    Ramki

  • How to stop/cancel Process Chain in BI 7.0

    Hi,
    Could you tell me how to stop/cancel a process chain that hangs with status yellow or green in BI 7.0? There was an easy option to do it in 3.x, but I cannot find a similar option in 7.0.
    What happens is that at random our process chains hang at a certain variant with either yellow or even green status and do not proceed further. What happens is that in a couple of hours another pchain run occurs and it executes fine. Then again at random (might be the same day or the next day) the process chain hangs again. I think that all those "hanged" pchains pile up in the queue, so that it cause other future pchains to hang as well at some point. So, is there anyway to stop/cancel these zombie process chains when it stops at a particular event RSPROCESS in BI 7?
    Thank you,
    AG
    Message was edited by:
            AG

    Hi Frank,
    Thanks for your reply. I have a few questions.
    1)SM37 -->Kill Job
    We cannot do that because the job has already finished.
    2)SM50/sm66- ->Kill process
    There are no hanged processes to kill
    3)RSPC>Job Log>Make the process RED forecefully
    How do you do that exactly?
    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) - we can do this,  but what exactly would it accomplish. Would it remove the process chain from any runs in the future or also any hanged ones in the past? An how is this step different from #4?
    Thank you,
    AG

  • Setting of one process chain triggering by other?

    Hi Friends,
    we are having two process chains, PC1 and PC2.
    Daily PC1 triggers PC2.
    But i want to know where this setting is done in the system (PC1 triggers PC2)
    Can any one please tell me?
    Thanks..in advance
    Tony

    There are several ways to trigger the process chain from the another process chain.
    <u><b>Start variant</b></u>,
    Maintain the same start variant for all the process chain which u want to be trigerred by dependence, ie on executing the one prcess chain from group, all will be triggered.
    <u><b>Local process chain:</b></u>
    Insert the (secound) child process chain in a (first )parent chain. by this when u execute the parent process chain the child will be triggered.
    <u><b>Event:</b></u>
    For all process chain there will be event name. U can write code with this event as a reference so that completion of one process chain will triger  the secound.
    More.........

  • 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 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.

  • Why can't we change and activate a process chain while it is running?

    why can't we change and activate a process chain while it is running?

    Hi.........
    Yes u can activate the changed PC...............but don't schedule it...........
    If u schedule the Chain............when the current chain is running..............it will get stucked in the process..............which was executing ........at the time when it was scheduled.............
    I thnk u hav made some chainges in the PC in Planning mode.............right...............Activate it............after the completion of the current run of the chain............schedule the chain........
    Regards,
    Debjani.........

  • One Process Chain but different schedule.

    Hi Experts:
    I have this issue. I need to run one process chain in different schedule. For example:
    From days 28 to 5 of each month I need to run every hour.
    From days 6 to 27 of each month I need to run every four hour.
    I have BW 3.5
    Do you have any idea How I could do that?.
    Thanks in advanced.
    Message was edited by:
            Víctor Olivera

    Hi,
    maintain variant>change selections>after at operation mode if you further check the double arrow button it will leads you to workday/time screen
    check if it works for you coz' it has following option"Do not execute before"
    cheers,
    Swapna.G

  • Error in process chain with attribute change runs

    We have one warning is coming in one process chain :A type "Attribute Change Run" process cannot precede process "Execute InfoPackage"
    We checked the Process View , we found that there are number of attribute change run after each scheduling of Info package with different datasource but for same data target.
    How to remove this warning .
    Some onsite person has added this extra Attribute Change Run recently.

    Hi Surendra,
    If it is the same Info-object that is getting loaded through different Info-packages then have only 1 "Attribute Change Run" process at the end. You can ignore the warning.
    Bye
    Dinesh

Maybe you are looking for

  • Can't import songs into library due to a 2nd library that I didn't create

    I think someone may have created their own folder on my iPod nano and then returned it to the store (even though I purchaed it new). Anytime I try to download music it goes to this other folder which I can't access because it is password protected. M

  • Subsciptions - Sending mail to a user using a specific group.

    Hello. We currently have SCSM 2012 R2 set up to send mail when an analyst updates a ticket with a comment. We have a template with specific verbage for the user. This works as designed. We've now taken on the role to support a different,  line of bus

  • Cisco Prime Infrastructure and no new events / alarms since update to 2.2.1

    Hello, I have upgraded our Cisco Prime Infrastructure from version 2.1 to 2.2.1 (with a backup and restore). We have round about 700 APs and three 5208 Controller. So far everything seems to work really fine. The only problem is that there are no new

  • Localhost and http request dilemma!

    Right I have 2 web app servers, one running on serverA from machine1 and one running on serverB from machine2. OK, what I want to be able to do is from machine1 open a browser to a webpage running on serverB/page1.jsp. From page1.jsp I want to make a

  • Finder repeatedly crashing.

    I've developed an issue on one of my 10.4.11 servers where the Finder seems to be crashing every 2 to 4 minutes. My logs look like this: Host Name: <NAME>-Mac-Server Date/Time: 2009-04-23 12:47:40.330 -0500 OS Version: 10.4.11 (Build 8S169) Report Ve