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
Similar Messages
-
Triggering BW Process Chain based on multiple conditions/events
Hi all,
We are facing a situation where we need to execute a BW process chain only if another process chain and two different R/3 jobs are completed.
Could anyone give any inputs as to how to include multiple start conditions for a BW process chain.
Thanks,
Sarathwe did the following for the same challenge :
create a z table with a description field and a date field.
eg
job_1 20100829
job_2 20100829
job_3 20100829
create one program that reads this table and inserts for every job an entry.
if you already have two other entries in the table, this means the other two jobs have also finished to you can trigger the chain (check the forum on how to trigger a chain using abap).
if you don't have the entries in the table insert the entry for this job.
create one event (event_1) to trigger this program.
at the end of the R/3 job/process chain raise event_1 in BW. -
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 KumarHi,
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 -
Infopackage returns 0 when triggered from process chain
I have an Infopackage triggered by process chain (say PC A) which is further triggered by other meta-chains.
So PC A, is triggered by PC B, and PC B is triggered by PC C.
Daily it returns 0 records.
However, if I run the process chain manually, that is PC A, the infopackage returns correct number of records.
What may be the cause?
RusyinniHi ,
When you are executing through PC then it is running with the user id ALEREMOTE because of not having proper authorization it picking 0 records but when you run the same with your ID manually then you are getting the data for the same .
You need to get in touch with the Basis team to check for the authorization for these 2 ID's .
From my point you can use SU01 to get the information for all the profiles associated with the ID and then with RSECADMIN you can check for the Tcodes and related authorization activity associated with the ID.
Please check and updated accordingly later .
Thanks
Kamal -
Triggering Process chain based on execution of R3 job and Process Chain
Hi All,
I need your help in arriving at a solution for a reqirement.
Scenario is., I need to trigger a process chain B based on successful execution of Process chain A and an R3 job. If both conditions(Completion of R3 job and Process Chain A) are met then only it has to trigger process Chain B.
I know that we can use events to trigger a process chain using R3 job.But my case is differenet I need to consider the success message from both process chain and R3 job.Is there any way to solve it ?
Please provide me with your valuable inputs.
Thanks,
BinduHi Hima,
You can use the 'AND' variant for both, If both are success then trigger the process chain.
Regards,
Ravi Kanth
Edited by: Ravi kanth on Apr 30, 2009 3:36 PM -
How to trace the EVENT's source which triggers the process chain
hello Friends,
I am currently involved in a new project, which does'nt have any documentation of the system. There is a process chain which is triggered by the event ( say..... "BI_START") and it gets triggered every day night,.......
But the problem I have is, I could'nt trace where this EVENT gets triggered....
Can you please advice me how to trace plz...... Thanks very much for your time.....
Thanks,Check in SM37 or in the tables TBTCO or TBTCP with below selected fields.
JOBNAME = Background job name
SDLSTRTDT = Planned Start Date for Background Job
SDLSTRTTM = Planned start time for background Job
SDLUNAME = Initiator of job/step scheduling
PRDMINS = Duration period (in minutes) for a batch job
PRDHOURS = Duration period (in hours) for a batch job
PRDDAYS = Duration (in days) of DBA action
PRDWEEKS = Duration period (in weeks) for a batch job
PRDMONTHS = Duration period (in months) for a batch job
PERIODIC = Periodic jobs indicator ('X')
STATUS = State of Background Job, S = Released, F = Finished
AUTHCKMAN = Background client for authorization check
EVENTID = Background Processing Event
EVENTPARM = Background Event Parameters (Such as, Jobname/Jobcount) -
Triggering of Process Chain in BW from R/3 system
Hi,
We have a special requirement where in the R/3 system (Project systems), the business user creates and saves a project.
Currently we have a process chain for this master data which loads every 10 min on a daily basis, but many times it happens that the new chain starts before the first one gets finished, thereby creating a lock with the loads.
To counter this we are trying to use a functional module at R/3 which gets triggered whenever the business user creates and saves the project in R/3. Though this program worked for us, but a new issue came. If the user creates 2 projects and saves it two times in a span of just 2 or 3 min, then once again the collision of chain occurs.
Our purpose is that, once the old chain finishes, then only the new chain should get triggered. To achieve that we tried to find some options and found a table called RSPCPROCESSLOG which is present both in BW system and R/3 system. This table consists of the start and end time of a chain. So based on these fields of the table we can achieve the above. But this table is not configured to capture the logs in R/3 system.
Please do let me know how to configure the RSPCPROCESSLOG table in R/3 system to capture the chains timing of BW. Otherwise suggest a way to achieve this task.
Regards
Vishwanathin rough :
create table in r/3 (eg z_chain_status) : via se11. insert two fields : - Process_chain char 60
- Active : char 1
R/3 create FM : via se37 (eg Z_update_chain_status)
import parameter = status
process chain can be hardcoded or also defined as varaible, as you wish...
select status from z_chain_status.
status = import parameter
modify z_chain status
BW : create program : via se38 z_update_status_in_r3
parameter = status
call function z_update_chain_status destination R/3 system status
create two variants of program :
varaint z_active : with parameter status = 'X'
varaint z_inactive : with parameter status = ' '
process chain
step 1 = start
step 2 = abap process type
progam : z_update_status_in_r3
variant z_active
step 3 - n : your loads
step n + 1 : abap process type
progam : z_update_status_in_r3
variant z_inactive
R/3 user-exit or business addin : slect from table z_chain_status;
if active = 'X'. exit. else trigger BW pc (I suppose as it works do today)
M. -
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.
ManmitThanks 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 -
Schedule process chain based on factory calendar
Hi Experts, I'd like to schedule my process chain to run only on 3rd and 4th working day every month. I tried to schedule it based on factory calendar. It does not seem to be working. Any ideas why it is not working? or any suggestions on the best way to schedule it?
Thanks!After scheduling, Did you check "Right click on start variant" to see scheduled jobs,
You should see a released job, double click to check "Schedule Run".
Whats the setting you maintained for "Do not execute before" ?
Also Did you check any holiday in the Z1 calendar prior this day.
VJ -
How to redirect loading flow in process chain based on logic?
Hi Experts,
I have a scenario where I want to keep data for last 3 years in 3 different cubes.e.g. lets say cube 1 holds data for current 2006 year, cube 2 holds 2005 and cube 3 holds 2004.Now in next year 2007, I want to keep data for 2007, 2006 and 2005.I want to keep data for 2007 in cube 3 which was holding 2004 data.(delete 2004 data and load 2007).
This process should be automated i.e. which cube to load should be done auto.In short, <b>data for new cube should go into cube which is holding data for oldest year.</b>
I want to know :
1) Which Options I can use to do this?
2) What about ABAP program : custom table can be maintained to know which cube is holding what data, but how to redirect loading flow?
3) What about "Decision process type" in process chain?
4) Also would custom process type solve this functionality?
Any ideas would be highly appreciated.
Thanks in advance,
SorabhHi Sorabh,
Its just an Idea, Im assuming that this would work. This should also work for INIT DELTA I guess. But would need proper testing.
Have a Custom Table ZCUBEYEAR and maintain the CUBE as the Key.
ZCUBEYEAR
CUBE YEAR
Y1 2004
Y2 2005
Y3 2006.
In the update rule->Start Routine for Cube Y1, extract this entry from the table ZCUBEYEAR for Y1, which in this case would be 2004.
DELETE DATA_PACKAGE WHERE YEAR NE YEARFORCUBEY1.
in our case YEARFORCUBEY1 = 2004.
For cube Y2 and Y3 the Delete statement would be as follows in their Start Routines.
DELETE DATA_PACKAGE WHERE YEAR NE YEARFORCUBEY2.
DELETE DATA_PACKAGE WHERE YEAR NE YEARFORCUBEY3.
This would ensure that only 2004 data would flow to Y1, 2005 for Y2 and 2006 for Y3.
Once we come to a NEW YEAR, We need to run a program or Manually change the CUSTOM TABLE "ZCUBEYEAR" updating the cube Y1 with 2007, the Deltas would flow correctly.
Please email me at [email protected], we could have a detailed discussion.
Hope the above helps your cause.
Regards,
Praveen. -
Hi all,
I just installed a couple of process chains(content). And i can see them in Process chain maintenance too .. What are the steps that need to be followed to trigger the process chains .. and how do i know, the process chians are in process or tiggered?
Thanks in Advance.
Mav.Hi Bhanu,
When i checked it .. it says "processes with errors"...
and when i save it ... its says "Version 'M' of chain 0XX_XXX_XXXX_X01 was saved without checking" ...
and when i execute it it says the same " processes with errors".
So i'm trying to reinstall the whole thing again.... Before implementing the process chains, i already have master data sitting in my info objects. DOes it in any way effect it? I dont know, whats going wrong but it aint working.
Can u think of something that i'm missing?
Thanks in advance,
Mav. -
Hi,
We are working in Production support project in BW 3.5.Recently many times the issue is happening like this the PC is getting struc in between and we have to run all the remaining steps in PC manually.and manually go and trigger the subsequent chains which has to trigger thru events.
We do not have autherization for SM 64 to trigger the events.
Have any one already aware of the issue.Is tere any other way to trigger aevent.
Please suggest.
SriniHi Srinivas,
Scenrio : PC failed in between
Just Go to PC which as stuck, Right Click it and Clicl on Repeat, this will Continue with all Remaining below PCs.
OR,
Scenrio2:PC Success in between but not triggered below nodes
Go to PC Planning view,Right Click -->select Display Jobs
Select the Job and Reschedule it and Release.
This will continue with all Below Nodes.
Regards
Hari -
How can i end the Process chain based on some condition
HI All,
I have a scenario where i have a main pc chain which call the new chain at the end which in turn again call pc1. So its more like a closed loop .
pc1-->pc2->pc1
What main chain does is it reads some field value from a dso and assign that to some variable and set some flag to identify that value has been used. My second chain just run the report using the same variables assign by first chain. Now i have to design the main chain such that when all the values have been read from the dso, it should exit and should not trigger 2nd chain. How can i achieve this scenario.
Thanks
PrashantHi,
For this try using Process Type-"Decision between multiple Alternatives" in your main chain.It helps you the set condieion based on some formulas
Pls refer links
Decision Between Multiple Alternatives
thanks
nilesh
Edited by: npathak on Aug 11, 2010 1:16 PM -
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 -
I have a process chain B scheduled in mode After Event: Z_CHAIN
How can I see what is Z_CHAIN?
I try to see this with SE37 and SE38 but with out any happy result.
Thank you in advance.Hi SSAP,
z_CHAIN is an event which triggers this process chain.
This event can be raised through background jobs also.
You can find oyt the name of the job which triggers this event by going into
trasaction se11>In database/table name write BTCEVTJOB-click on contents --->
then write your event name
Hope this helps.
Varada
Maybe you are looking for
-
Help needed in calculating result
Hi Experts , In a report i have 3 columns let say Col A , Col B & Col C.Col C is a CKF in query and the desired data is like below : A B C 50 20 1000 60 10 600 result
-
Costcenter - Change (Trip)
Hi, We wanted to change the cost center of a trip. We wanted to change it from RFC, Which RFCs can we use to change the Cost centers, for a particluar trip from the back end. thanks in advance Sera
-
I have clicked on Tools, Options, General, and in the box "When firefox starts" I put suddenlink.net which is my home page. But if I close Firefox and open it again, my home page is replaced by search/Bearshare.com and I can't get rid of it. It is a
-
Hi Experts, I want to know about how to create network profile and how to manage it.
-
SAVE MY KEYBOARD- MySQL resources is invalid.
I have two pages that both use the same include. I posted awhile back b/c one of them would not work. I came in, redid the page - VOILA! It worked. Now it doesn't. Somebody, please save my machine from a pounding!!!!!! Working page: http://demo.media