Process chains controlled by events!

Hi Friends.
I have one process chain at APO side and want to execute another process chain at BI side only when the process chain at APO side gets executed successfully.
Since <b>APO and BI are two different systems</b>, how can i trigger the process chain at BI side once the process chain at APO side finishes its job?
your help will be appriciated in terms of points.
Manmit

Thanks Geo,
Sounds like a good description. I have one more question:
1. created Function Module in BW lets say: FM_BW
2. created ABAP Prog in APO lets say : ABAP_APO
I will have to trigger this abap prog ABAP_APO at APO side through the process chain at APO side. How can i trigger this abap prog at APO side through this process chain?
once this abap prog gets triggered at APO side which will call the Function Module FM_BW at BI side. Now this Function module should trigger my process chain at BI side. How does this Function module trigger my process chain at BI side. I can see in the code (Attached with note) that it takes Event ID to trigger a event. How will i know this event id associated with Process Chain at BI side?
I have assigned points for the help so far..
Thanks,
Manmit

Similar Messages

  • Canceled Status in Job Detail, Process Chain triggering w/event

    Hi All,
    I have created event, PC and trigger event with SM64 or with ABAP, everything is ok
    if I activate and Schedule PC, I see BI_PROCESS_TRIGGER job with released status, and when I trigger the event nothing  is happened but when I checked the Job detail I see canceled status job.
    I donu2019t understand why this problem occurs ?
    I can trigger the event but before event trigger the PC, scheduled job detail directly turn to the chancel status.
    if any one give me a clue to solve this problem I will appreciate
    Note : No Job log !!!
    Thanks
    Ali

    Ali,
    Check authorizations.
    Try to run process chain with out event(immediate) and check.
    Srini

  • Triggering of process chains based on  events

    Hello experts,
    I have a requirement to trigger the process chain whenever there is a file placed into the application server.
    The file comes comes into the application server  randomly i.e not periodically and the file name comes with created date and time.
    My process chain has to run immediately once file has been placed in the application server.
    Can you help me on this?
    Regards,
    Babu
    Please search the forum before posting a thread
    Edited by: Pravender on Aug 22, 2011 2:49 PM

    Hi
    This means your Event need to run every day to check if the file exist or not? if the file exist in the application server then PC need to be triggered.
    Take the help of ABAP person, so that he can implement the logic you are looking for.
    Check the below link which can give u idea how to proceed.(its also similar to ur requirement)
    Triggering the Process Chains at Particular Date using Events
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0a41bc6-a7f6-2b10-b3bf-804e1c45ae6c

  • Diff in triggering Process chain by FM & Events

    Hi Experts,
    I would like to understand the difference in
    1  Triggering the process chian by Functiton Module RSPC_CHAIN_START
    2. Triggering the process chain by raising the event RSSM_EVENT_RAISE.
    Regards
    Suresh Kumar

    Hi,
    The difference when using either to start a process chain by event is minimal. RSPC_CHAIN_START can be used to kick off any process chain (whether event driven or not) whereas RSSM_EVENT_RAISE is used to generate an event which can be used for more than just process chains (background jobs can also be launched using events for example). So they do overlap in functionality when it comes to launching event driven PCs but also have their own unique functionality as well.
    Hope this helps,
    Regards,
    Gareth

  • Process chain controls

    can any one tell me please, which tables holds the process chain details and is there any indicator in the table which explains 'whether the process chain is scheduled or removed from the schedule'.

    hi priya...
    The main program running all the steps of your process chain is RSPROCESS.
    After a step is run, it calls FM RSPC_PROCESS_FINISH, which updates RSPCPROCESSLOG. It should update the processlog table immediately (or almost). It may be delayed in case locking is taking some time (due to concurrent processes).
    I am not sure if there is a collector job that updates this table, likely not.
    pls check the following Tables:
    RSPCLOGCHAIN
    RSPCPROCESSLOG
    RSREQDONE,
    i think this will help you out....
    further queries..use this link...
    http://sap.ittoolbox.com/groups/technical-functional/sap-bw/process-chain-consolidated-log-overview-834561#
    regards...

  • Event is not getting triggered in the process chain

    Hi,
    We had a process chain which was triggered by an Event, and it was running fine until few days ago. So I removed the chain from schedule and re-scheduled it again with these details:
    File load: every 2 hrs
    Process chain setting
    Immediate tab: start immediately
    After event: "event name" and "parameter name" and periodic job: ticked
    I activated the chain and scheduled it. But the event is not triggered and the chain does not start. I even tried to trigger the process chain manually in sm64 but the process chain did not start.
    Can someone please tell me steps to automate the event triggering and also any setting that should be taken care off in the info package and the process chain.
    Thanks In advance.
    Ram

    Hello Ram, to start your Process Chain by an event, then you need to maintain the Start process of the process chain. 
    Select "Direct Scheduling".
    In the <b>Change Selections</b>, press <b>After Event</b>.  Put your event name and parameter (if any).  Also click on <b>Periodic job</b>.
    Press Save.  Then Activate and Schedule your process chain.  All your processes should turn green.
    To verify, right-click on the Start process and select <b><u>D</u>isplaying Scheduled Job(s)...</b>.  You should see a job called BI_PROCESS_TRIGGER in a <i>Released</i> status.  You can click on the job and look at the start conditions.
    When you go to trigger the event, use the same event name and parameter (if any) as in the start condition.  Your process chain will then execute.  To insure, use RSPC to view your process chain and press the <b>Logs</b> icon (last one at the top).
    Does this help?

  • Process Chain after EVENT - More than once

    Hi all, I would like to run a process chain after an event; everything works fine with the following model...
    PC1 >>
         >> some processes
         >> EVENT TRIGGER
    PC2 >>
         (after EVENT) runs ok after event ONLY if I SCHEDULE it
    After succesfully run, I've tried to run again immediatly PC1 again and it runs ok, even triggers mentioned EVENT, but PC2 never runs again until I manually SCHEDULE it.
    The answer is: how should I SCHEDULE the process chain PC2 so I'll "never" need again to SCHEDULE it when I want it to run after event triggered on PC1?
    Hope you can help me.
    Thanks a lot!
    Bernardo

    Hello,
    Both process chains are separated. At the model I described, at the end of PC1 event is succesfully triggered. After event is triggered at PC1, PC2 triggers correctly due it is scheduled as "after event".
    Everything works fine, then, if I trigger PC1 again it runs correctly; event is triggered succesfully but PC2 (that is scheduled as "after event") doesn't runs; this is because I haven't SCHEDULED it again (after the first succesfully run).
    What I want is not schedule PC2 after a succesfully run. Is there any way to reach that purpose?
    Thanks again!
    Bernardo

  • How to determine the source of Events triggered in a process chain

    Hi ,
      We have almost a 100 process chains, and of these approx 20-30 local process chains are triggered by events raised within other process chains.  These events are raised via BP_EVENT_RAISE using the ABAP process type.
    However, our problem is to identify the source of these event trigger - i.e. which process chain triggered this event ?
    Looking at SM64, the event history does not display the source for these events.
    Is there any table or program that we can use to determine the source of these events which are triggered.
    Any help is much appreciated and points awarded.
    thanks
    BK

    Hi,
    do check in the program /SSA/BWT . or TCODE - ST13 -- enter BW-TOOLS and execute. -- Choose Process chains and execute --- Select the date and time for which you want to see the process chains and execute again.
    This will give you the entire list of process chains triggered, status, timings(start, end, overall runtime). Once clicked on the process chains it will show you the steps in theprocess chains, data loaded in the data targets, source system, etc...
    hope it helps.

  • Query Broadcasting - Event Process Chain

    Hello BW Gurus and experts...
    I need to broadcast same query to different set of users filtered on company codes. Thought process is to create different broadcast settings for each company code and these would be waiting for event which would be triggered by process chain using "trigger event data change for broadcaster" process type..
    I have done following so far:
    1) Created new setting for query broadcasting. Given email ID's and check marked "Only upon data change" in the setting. Is this the correct setting so report will be broadcasted after event? I have succesfully executed this setting and report is broadcasted directly manually.
    2) Created process chain and included event data trigger process type for broadcaster. I successfully executed this chain. When I saw associated messages for this process type, it said that 0 setting waiting for this trigger for this infoprovider. I have checked infoprovider and it is correct.
    3) I went to RSRD_ADMIN and tried to search for mysetting. It exists but under direct scheduling and not under waiting for data change event.
    I dont want to use ABAP program to trigger reports as I beleive I cannot filter data if I go with this query..(or can I ??)
    Any ideas how to make this setting work. I am on BW 7.0 and it is Query and want to broadcast by email or email burst.
    My thinking is that I have not done correct config while creating setting.
    Thanks for your help in advance.

    Hello,
    I think you can achieve this with the concept of interrupts:
    1) In your meta chain select two interrupt process types one for the first 6 months and the other for the last 6 months.
    2) Now in the maintain mode of interrupt you can define a formula to check the month from sy-datum. Here you have the if else condition, you can use it to trigger the further event or not based on the month condition. ( You have to figure out the formula as i cant help it as i dont have system access presently )
    As per Mansi you can go for ABAP but it wont be a Meta Chain concept:
    1) Create 2 events for botht the PC, put one in each and schedule them periodically as event triggered
    2) Create a simple ABAP program. The logic would be as follows:
              data: month(2) type n.
              month = sy-datum+4(2)
              if month LE '6'.
                  CALL FM 'BP_RAISE_EVENT'
                    to raise event 1 which will trigger forst PC
              elseif month GT '6' and month LE '12'.
                  CALL FM 'BP_RAISE_EVENT'
                    to raise event 2 which will trigger second PC
              endif.
    3) Schedule this program to run daily in the background.
    Regards,
    Shashank

  • How to find Process chain for event and parameter

    Hi,
    I have Event and parameter for the process, I wanted to know the which process chain does that process belons to.
    Is there any table where I can see those.

    Hi,
    Try these tables.
    RSEVENTCHAIN    Event Chain Processing Event Table 
    RSEVENTHEAD     Header for the event chain 
    RSEVENTHEADT   Header for the event chain 
    RSPCCHAIN  Process chain details
    RSPCCHAINATTR   Attributes for a Process Chain 
    RSPCCHAINEVENTS   Multiple Events with Process Chains 
    RSPCCHAINT   Texts for Chain 
    RSPCCOMMANDLOG  System Command Execution Logs (Process Chains) 
    RSPCLOGCHAIN   Cross-Table Log ID / Chain ID 
    RSPCLOGS  Application Logs for the Process Chains 
    RSPCPROCESSLOG  Logs for the Chain Runs
    RSPCRUNVARIABLES   Variables for Process Chains for Runtime 
    RSPC_MONITOR  Monitor individual process chains 
    Hope this helps.
    Thanks,
    JituK

  • Process chain flow - based on table values

    Hi,
    I want to control the flow of Process chain run through the values that exist in a field ZCONTROL of Z table.
    I have created an ABAP Program where I access the Ztable to get the ZCONTROL values and have added the program in the ABAP process type.
    Below the ABAP process type, I have added the Process type "Decision between Multiple Alternatives" and created a formula using Predecessor_Parameter function to get the ZCONTROL values.
    The format is PREDECESSOR_PARAMETER( <I_FIELDNAME>, <I_LOW_OR_HIGH>, <I_NUM
    How should I get the I_FIELDNAME value here?
    Please help.
    Thanks.

    Hi Eric / Steph,
    Thanks for your reponses.
    Eric,
    My table has the infopackages name and ZCONTROL field, which contains an indicator "X" or SPACE based the scheduling requirements.  If "X", the Infopackage is scheduled else, it is not.
    In the formula, how will I import the infopackage name.  The custom function can be created with export parameters as ZCONTROL values.
    But when I use the custom funtion, I will need to use the fields on the left hand side and it should have the infopackage name ideally.
    If you get any idea, please let me know.
    Steph,
    I will try your suggestion. 
    Can one ABAP program added as an ABAP Process type in the Process chain, trigger multiple events for different process chains?
    Also, if the infopackages are scheduled, one below the other, if one is not scheduled, will it move to the next one?  Will it go as an error(red) or green?  Should 2 load infopackages process types connected as success or Always?
    Please clarify.
    Thanks.
    Also,

  • Modifiying, Transporting and Scheduling Process Chain

    Hello ALL,
    i have to create a new process chain for a delta Load and put this process chain in a big existing Meta Chain, after i have to transport to Quality System.
    if i control the difference between Dev and Quality system to have an idea i see that the Infopackages in Dev have the execution tab: Load Data Immediately without job: BI_BTCH
    in Quality some Infopackages have execution tab: run successively in batch with job like this:
    BI_BTCH LX6CW08S1ICM04I4O06KOPL
    can you tell me please in detail how should i complete this activity:
    - wich type of control should i do before creating and modifiying process chain in DEV and Quality
    - how should i do to control in Quality the scheduling of a process chain
    - if i modify a process chain in DEV and after i will transport in Quality what will be the affect in Scheduling, the scheduling will be the same without problem or i have to schedule again
    - in generale how can i schedule a process chain, wich transaction and how in detail
    Thanks a lot for your help
    Bilal

    Hi Bilal,
    1) EVENT: When you want to have a process chain 'A' to be started after completion of a process chain 'B' or any process in process chain 'B' we can use this event.  These two chains can also be from different BI systems.  Like Chain 'A' could be from one production system and Chain 'B' could be from different production system.  As soon as the chain A finished an event will be triggered and this event will trigger the chain B.  The start time of chain B might differ because it depends on the completion of chain A. To schedule a process chain using an event, Go to Tcode: RSPC look for your chain. Switch to change mode. Right click on the start variant and select maintain variant. Click on "change selections. click on "after event," give the event name in the slot and select the periodic job.
    2) RUN JOB PERIODICALLY: When you want to have the chain run for more than once periodically we select this option.  Suppose, chain B has to run after completion of chain A periodically we have to use this option.  If you do not check this option, your chain B will run only once when the event is triggered after completion of Chain A.  From the next time onwards, it not run even the event is triggered.
    3) JOB: For every process when it runs a job will be created assainging it to a work process in the system.  Similarly, when the chain starts a job will be created containing the log of the run.  Also, in the scheduling options of a process chain, you can have your process chain started after completion of a particular job in the system (ex: an attribute change).  For this, Go to Tcode: RSPC look for your chain. Switch to change mode. Right click on the start variant and select maintain variant. Click on "change selections. click on "after job" give the job name in the slot and save the settings.
    4) SCHEDULING PROCESS CHAIN: Means to make settings to a process chain so that it will run on a periodic basis at a certain time.  If you want to start a chain immediately, you will choose the option immediately and trigger it.  It will run for only once.  But, if you want to have your chain run everyday at 7:00 am in the morning, you have to schedule it using the scheduling options as below:
    In Tcode: RSPC look for your chain. Switch to change mode. Right click on the start variant and select maintain variant. Click on "change selections." Click on Date/Time button. Give the start date and time in the Scheduled Start slots. (Ex: 09-04-2009, 7:00, to have the chain run at 7:00 everyday starting from tomorrow). Tick the check box Periodic job in the bottom and click on "periodic values" button and select the option as daily and save it. Then click on "Restrictions" button to specify the factory calander. The Tcode for calander is SCAL, where you can see all the factory calanders in the system and you can choose that suits your requirement. Save the changes and navigate back to process chain maintaince screen and click on "Schedule" button.
    Now your chain is automated for trigger

  • Process chain tables and tcodes

    Hi frinds,
    can any one send me the process chain tables and tcodes . plzz
    regards,.
    rajesh
    my mail id is [email protected]

    Hi Rajesh,
    Process chain tables:
    RSPC_BUFFER Shared Buffer for Processes (Esp. Customer
    RSPC_MONITOR Monitor individual process chains
    RSPCABAPASYNC Logging for ABAP Processes(Synchronously a
    RSPCCATEGORY Process Type Categories
    RSPCCATEGORYT Texts for Category
    RSPCCHAIN Process chain
    RSPCCHAINATTR Attributes for a Process Chain
    RSPCCHAINEVENTS Multiple Events with Process Chains
    RSPCCHAINT Texts for Chain
    RSPCCOMMANDLOG System Command Execution Logs (Process Cha
    RSPCENQUEUE Dummy Table for Runtime Locks of a Process
    RSPCEXOR Excluding Or: Log Table
    RSPCINFO Special Values for Communication between P
    RSPCINFOT Special Values for Communication between P
    RSPCINSTANCE Generic Instance Storage
    RSPCINSTANCET Texts for Generic Instance-Storage
    RSPCLOGCHAIN Cross-Table Log ID / Chain ID
    RSPCLOGCROSS Cross-Table Log ID Old / Log ID New
    RSPCLOGS Application Logs for the Process Chains (G
    RSPCPROCESSLOG Logs for the Chain Runs
    RSPCRUNVARIABLES Variables for Process Chains for Runtime
    RSPCTRIGGER Variants for the Trigger Processes
    RSPCTRIGGERT Texts for the Trigger Variants
    RSPCTYPESDEP Dependencies for Processes
    RSPCTYPESPROC Attributes of BW processes (RSSM)
    RSPCVARIANT Generic Variant-Storage
    RSPCVARIANTATTR Attributes of a Process Variant
    RSPCVARIANTT Texts for Generic Variant Storage
    Regards,
    R.Ravi

  • Process chain - Loop

    Hello,
    I have a requirement where in, I would like to call a Infopackage load, DTP and activate DSO process types continously in a loop and exit when a certain condition is met.
    Looking for ideas on how to acheive this.
    For now, I created an ABAP to call the process chain via the FM in a loop and check the status using another FM and continue in the loop if the PC has sucessfully completed.
    I just think there's gotta be a better way to do this. Also, this method is kinda unstable - sometimes the PC runs upto the DTP and just stops. The program then stays in a infinite loop .
    Thanks,
    HD

    How about having your process chain scheduled "After Event".  Then in your process chain, the last process will call an ABAP program that will check for your condition, and trigger the event (which starts the process chain again) if the condition is not met.

  • Use of TVARVC values in Process Chain

    Hi,
    According to the value of one variable stored in TVARVC, I'd like to execute (or not) a process chain. Is there any easy way to do so ?
    For the moment, the solution I think about is :
    - Run a program to read values in TVARVC
    - Raise a specific event depending on these values
    - Schedule the process chain after this event
    As I am not very comfortable with ABAP, I would appreciate if you have any good ideas, or code sample that I could implement.
    Thanks !

    Hi Alex,
    The easiest way is to write a piece of ABAP code using the Function module "BP_EVENT_RAISE".
    1) Create an event in SM64 and make the process chain as Event triggered.
    2) Create a new ABAP program and include the above function module.
    3) Pass the parameters of the TVARVC table and check if the value in the table matches with the desired value. If so trigger the event.
    4) Schedule the ABAP program in SM36 as a daily job.
    Everyday the program gets executed and checks the value in TVARVC table. If the value mathces, then the event will be triggered.
    Let me know if you need any further info.
    Regards,
    Balaji V

Maybe you are looking for

  • How do I find my old posts?

    I need to find some info in an old thread I started some time ago.  Once I finally found my profile in this restructured forum, my Activity comes up blank.  Are my old threads gone? Here's the info I'm trying to dig up: I'm trying to Connect to Serve

  • Setting up RAID on X58 Pro-e MB

    Current setup as far as HDD's go: SATA1: WD Raptor - contains OS: Win7 64 SATA2: WD Raptor - used as a scratch disk for photo editing SATA3: WD 500GB - used for storing data SATA4: DVD ROM SATA5: DVD ROM SATA6: empty SATA7: empty Current drives and c

  • 30in apple display with NEW 2011 macbook pro

    I have a new macbook pro 2011 15in but when i plug the mini display port to dvi in top the dvi connetion from the display it will show a clear image but is very zoomed in an you can see the pixles very clearly which is verry hard to work with when i

  • Looping in stored prc even when no loop statement exists

    Hi All, There is a stored procedure that is doing a lot of inserts in tables and then finally selecting from those tables. It is used in report. The procedure takes 20 hrs - after the last final insert it is going back to the first insert statement a

  • Best Strategy to sync calendar between 2 computers

    I use iCal with several calendars on my MacBook & iPhone. I want to setup something to enable my wife to see my calendar on her MBP, as I update my schedule. Is there a good way to do this? I have used Mobile-Me, and loved it, but that was the only f