Process Chain dependencies
I will give a very higher level overview of the problem i am facing.
I have a process chain in SAP APO, deals with SNP extractions from Live cache
Now I need to reproduce the same chain twice every week, say on wednesday with job 1 and remaining chain, and thursday with job 2 and the same remaining chain.
on first day of every month also i need to run the job3 and the remaining same chain.
Job 1 , Job 2, Job 3 are all different deletion jobs deleting individual data mart contents. other than these jobs all remaining chain should be the same in all the three cases.
I am sure there should be some good way to deal this, and which will give effecient way to trigger these three chains.
There is another additional condition that when it runs on first day of every month and if the first day of every month falls on Wednesday or thursday, the wednesday or thursday chain should not run anymore.
I am facing the challenge to apply two different conditions to run the chain on Wednesday and Thursday. By any chance can we do this?
Please quide, I will reward everyone with handfull of points :-).
Thanks,
Quest for APO solutions.
you can use a master chain with local chains in it
your local chains would be -
1. Job 1
2. Job 2
3. Job3
4. Remaining jobs
when you create the jobs in the master chain create is such that it goes through Job 1, Job2 and Job 3 in parallel and has an Or condition attached to it... so your "remaning jobs" will run if even one of the jobs complete
now comes the tricky part of controlling the Jobs1, 2 and 3 to run on different days
and as your additonal days....first create a Factory calendar for each of the jobs with just that day as a working day (so wednesday jobs -- calendar with only wednesday working" )
then you go to the start job of the local chains and in the start time there is a" >>" button... use that and fill your factory calendar made in the step above for the relevant job
Ps: dont know if this will help but please dont belittle answers with your promise for reward points .. dont think many here care for the "handfulls" ...and its worth a lot more anyhow... i can give you my paypal account
Similar Messages
-
Process Chain - Follow on dependencies to DSO Activation
Hi, I have a Data Load Process where the start routine is dependent on DSO data that was just previously activated. For some reason it looks like the the time before the load and the time after the DSO activation are close by just seconds.
The Data Load Routine will drop records if the activated DSO data is not available and this seems like what I am witnessing. I thought there was a way to configure the chain or job to wait until the previous is completely done. or did that go away with 7.0...
Is there a way to make sure the loading process doesn't start until the previous DSO activation is completed and the data is available?
Thanks!Hi,
Interuppt concept :
If a process chain is only processed either in part or in its entirity if more than one start condition is filled, you use this process type to specify the additional conditions.
The chain is started when the condition of the start process is filled. However, the interrupt process will interupt the processing of the chain (as long as its status is "active") up until the point at which the condition of the interrupt process is filled. Should the start process condition be filled again before the interupt process condition is filled, the chain will start again and will only run up until the point of interruption. As soon as the interrupt process condition is filled, the system continues the last run of the chain only. The earlier runs remain unchanged.
The interrupt process schedules an additional background job that starts based on the relevant condition. Therefore the interrupt process is not really active during the interrupt phase; it does not use any resources during this time.
If the interrupt processes are filled before the start process condition, the chain starts as soon as the start condition is filled; the interrupt process no longer interupts the chain because its condition has already been filled. If the interrupt process condition is is filled again before the start condition of the chain is filled, this does not influence the chain. It is not stopped by the interrupt process..
so basically your interrupt will wait for an event like ex:..YABAP_YGTRFCEVENTRAISE_0035 ... so you can raise that event eother by some job or some program..bUt for you i think adding the waiting timw will be better option ..
hope i cleared you ..
Regards,
Shikha -
Error related to scheduling of dependencies in process chain
Hi gurus,
2 process chain is dependent on the 1 process chain,unfortunately i was scheduled the 2 pc before the end of 1 pc.
after a while i was realiased that 1 pc was still running,immediately i killed the job related to 2 pc(that job is DELETE INDEXES )
finally i was rescheduled the 2 process chain after the completion of 1 process chain.
1 & 2 are finished successfully.
thx
mahi &naren
because of this ,is there any problem to database (production server )Mahesh,
every body will cancel jobs. It won't problem. may be you are thinking in that process is DELETE INDEXES point of view, this won't be problem. create the indexes again. after the load check DB02 for missing indexes.
check the data consistency for the load(no duplicate recrods).
All the best.
Regards,
Nagesh Ganisetti. -
Process dependencies in process chain
Hi All,
in one of my process chain i have at the end :
delte index -> Load DTP -> Create index -> Compress cube ->generate db stats
but system is showing this warning
A type "Construct Database Statistics" process cannot follow process "Compression of the InfoCube"
and in table RSPCTYPESDEP i an entry stating that :
generate db stats after a compression of cube "makes no sense but not completely wrong".
can you explain why generate db stats after compress make no sense ?
Regards.Hi Anns,
It is always recommended to keep the create DB stats before compression.The advantage of the DB stats is to improve the query performance as well as loading performance.
check the below links for more information
/thread/2026714 [original link is broken]
http://help.sap.com/saphelp_nw04/helpdata/en/d5/e80d3dbd82f72ce10000000a114084/content.htm
Regards,
Venkatesh -
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 -
Error in transporting process chain
Hi
i added two DTP's in the process chain and transported. The transport ended with errors.
The following is the error msg:
Results of check for process AND EVEN_4CEJM320EVCIY0L5L62W61JVB in chain PC_BI_TD_POSDM_CAST:
Process variant AND EVEN_4CEJM320EVCIY0L5L62W61JVB does not exist in version A
Results of check for process AND EVEN_4CEJM320EVCIY0L5L62W61JVB in chain PC_BI_TD_POSDM_CAST:
Process variant AND EVEN_4CEJM320EVCIY0L5L62W61JVB does not exist in version A
I saved and activated the process chain but still transport to QA ending with errors.
When i saved the process chain in DEV, i am getting the msg:
Version 'M' of chain PC_BI_TD_POSDM_CAST was saved without checking
What does that mean?
REgards
AnnieHi
If I got your question properly, Your AND Event is not Collected at the time of Transport.
Try to Re Export the Process chain with all necessary grouped objects.
Version 'M' of chain PC_BI_TD_POSDM_CAST was saved without checking
What does that mean?
Try to Check-- Save and then Activate and Then Transport .
Please follow the Sequence for the transport, You may recheck the flow again
Transport Sequence
Info Objects,
DSO
INFO CUBE
TRANSFORMATIONS
MP
INFOSETS
PROCESS CHAINS
QUERIES
Objects need to be transported with respect to their
dependencies
InfoProviders will bring in all relevant InfoObjects
Importing of Global variables is dependant on their reference
InfoObject being already active
Queries, workbooks and roles are dependant on InfoProviders
and InfoObjects being active
Use the Transport Connection Tool to analyze your objects
Transport all customer-defined packages (dev classes) before
transporting objects
Transport InfoProvider(s) using the "In Data Flow Before" or
"Only Necessary Objects" grouping option
Transport all Global Variables with primary package
assignment
i.e. ZBW
Transport BEx objects with appropriate individual package
assignment
Transport roles and workbooks together.
Hope it helps -
AND (LAST) in process chain
Hello,
Does AND (LAST) in process chain means that all previos processes were succesfully done and the next process can be performed?
AYes - AND is used when you want to trigger a process after a number of events . Using "AND" will trigger an outcome when the last of the events it has waited for is triggered. AND is very useful when you want dependencies to be strictly adhered to in process chains.
-
Process chain stopped and unable to trigger next process
Hi all , i am working on process chains, today process completed at DTP and the next process at activation of dso process failed and the rest of the pc completed even though the activation process is red. after the completion of that , chain process stopped, next pc didnt started. plz help me wiht this, thanks in advance..
you can evaluate a local chain as 'green' even if one of the steps is 'red'. in the planning view of the process chain, go to process chain --> attributes --> process status valuation. flag the checkbox. this will enable the next pc to start even after a red status of the local chain...
detailed info:
Red Outcome Renders Chain Green If Process Is Red
If errors are raised for processes that have scheduled an event "With Errors" they are judged as successful for the determination of the overall status of the chain run.
Use
If this indicator is set, all the processes in this chain with errors are judged as successful with regard to the overall status of the run, if they have scheduled a successor process "With Errors" or "Always".
Dependencies
Mailing and alerting is not affected by this indicator. This is also triggered for processes with errors if this has a successor process "With Errors".
Example
You use this indicator in meta-chains to evaluate the run of a subchain as successful in spite of errors in "unimportant" processes. The successors to this process are "always" scheduled, while the successors to key processes are only scheduled "With Success".
Accordingly, successors in the subchain within the meta-chain are only scheduled "With Success"; however they do continue to run if errors have only occurred in the unimportant processes of the subchain. -
How to test Process chain in BW
Hi Guys,
Can U give me some introduction to Process chains and how to test it in BW 3.5
Thanks for Ur time.
Cheers
SenthilHi,
A process chain is a defined sequence of interdependent processes required to perform acomplex task in an SAPBW environment. Data maintenance tasks in SAPBW are notrestricted to uploading data. Aggregate rollups, index maintenance, master data and ODS activation, and a variety of other jobs are required to update data, guarantee best-possible performance, and maintain data integrity. Typical SAPBW implementa-tions have complex interdependent networks of jobs in place that run every night, week,or month.Previous releases of SAPBW did not provide an integrated solution for scheduling and monitoring those kinds of job networks. This has changed with the introduction of process chains in release 3.0. Process chains allow you to define complex job networks consisting of standard SAPBW jobs, as well as custom jobs; they support visualizing the job network and centrally controlling and monitoring the processes.
(from "Mastering the SAP BIW")
New Features in BI 2004s Process Chains
/people/mallikarjuna.reddy7/blog/2007/02/08/new-features-in-bi-2004s-process-chains
Designing
/people/vishvesh.bahirat/blog/2006/11/29/bw-process-chain-design
Process chain creation in 2004s - step by step
/people/juergen.noe/blog/2008/01/11/process-chain-creation--step-by-step
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/sap-teched-03/using%20process%20chains%20in%20sap%20business%20information%20warehouse
Testing
We need to test the PC chains.
You need to test if the extractions are working fine, data is getting loaded into targets, post load activities like activation, rollup, compression etc are successfull etc.
We schedule / trigger the chains and monitor them. We ensure that all the process types are happening successfully.
One major area we concentrate on is to identify dependcies in the chain. This will ensure less erros and also reduce chain timings by a great extend. Dependencies should be kept to a minimum whereever possible.
Also in cases where we use events/third party shceduling tools to trigger BW chains we check that out.
Thanks,
JituK -
Hi Friends !
In our system, we have the following FIGL DSO's Cubes. I want to make a process chain on FIGL. Query is do we have any data sequence? or we can load in parallel? Please advise.
Average Daily Balances (Direct) 0FIGL_V60
Cost of Sales Ledger: Financial Statements 0FIGL_VC2
Cost of Sales Ledger: Transaction Figures 0FIGL_C02
Financial Statements (Direct) 0FIGL_V30
Financial Statements (Replicated) 0FIGL_C30
Financial Statements (from Replicated Balances) 0FIGL_V31
G/L (New): Balance Sheet and Profit and Loss 0FIGL_V10
G/L (New): Balance Sheet and Profit and Loss Remote 0FIGL_V11
G/L Accounts: Plan Line Items (Direct) 0FIGL_R50
G/L Accounts: Transaction Figures (Direct) 0FIGL_R20
G/L Accounts: Transaction Figures (Replicated) 0FIGL_C20
GL Accounts: Line Items (Direct) 0FIGL_V40
General Ledger (New): Transaction Figures 0FIGL_C10
General Ledger (New): Transaction Figures Remote 0FIGL_R10
General Ledger: Financial Statements 0FIGL_VC1
General Ledger: Transaction Figures 0FIGL_C01
Average Daily Balances (Replicated) 0FIGL_D60
FIGL: Transaction Figures 0FIGL_O06
FIGL: Transaction Figures - Cost of Sales Ledger 0FIGL_O07
G/L Accounts: Line Items (Replicated) 0FIGL_D40
General Ledger (New): Transaction Figures 0FIGL_O10
General Ledger Accounting (New): Line Items 0FIGL_O14
General Ledger: Line Items 0FIGL_O02
With Regards
RekhaHi Rekha,
Process chain needed to be defined based on Dependencies, there is only dependency with standard FIGL objects are standard one like we need to load masters first before DSO/Cube load and in a single data flow you need to go in a sequence. Also it is based on if any lookup you have written to load data in Cube/DSO.
Please check complete flow for all these Objects in this list and then you can make independent flows in parallel.
Regards,
Ganesh -
What is the default time settings in Process chains
Hi,
What is the default time settings in Process chains.
How to set time settings for daily,weekly,monthly loads in Process chains.
What is the time settings that we have to take care when creating meta chains.
Thanks,
Madhu.Hi Madhu,
The Time settings for any PC is done in the start variant of the PC. There is nothing like default time setting. These settings are totally depended on the requirement and system performance. It is a general rule of thumb to load the data during a time when the user activity is minimum as the loading process is going to occupy many dialog as well as background WPs. So, if you schedule them at a time when there are many users on the system, they might feel that the system is slow. Hence, you decide as to what is the best time for scheduling a PC. The same applies to meta chain also. In case of meta chains, you make sure the dependencies of the local chains is also handled. Hope this helps.
Thanks and Regards
Subray Hegde -
Need a table for process chains of when these are scheduled!!
Hi,
I had like to have list of all the process chains and their schedules of how often these are loaded and whether been triggered by event or directly scheduled. If periodically scheduled then the period----
is there any table which can have the information as i said??
RajHi....
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
Among all these tables I think.......
RSPCCHAINATTR Attributes for a Process Chain
RSPCCHAINEVENTS Multiple Events with Process
Chains
RSPCPROCESSLOG Logs for the Chain Runs .........can help you.......
Regards,
Debjani........
Edited by: Debjani Mukherjee on Oct 21, 2008 1:32 PM -
How to include an APD process in BW Process Chain
HI,
I have an existing process chain that I want to add an APD process to. There are dependencies. For example, I want the last 2 steps in the existing process chain to continue AFTER the APD process runs successfully. So, how would I include an APD process in my existing chain, I cannot find the variant that says APD in RSPC.Marasa,
Thanks for your help. I tried to do the second option that you offered just by including an ABAP program variant in my process chain.
However, my process chain fails at that step with tthe following error:
11/11/2009 00:09:53 Job started S 00 516
11/11/2009 00:09:53 Step 001 started (program RSPROCESS, variant &0000000432745, user ID BWREMOTE) S 00 550
11/11/2009 00:10:00 Spool request (number 0000031418) created without immediate output S SY 355
11/11/2009 00:10:00 Processing completed with errors. See spool list E RSAN_PR 22
11/11/2009 00:10:00 Job cancelled after system exception ERROR_MESSAGE A 00 564
I cannot find anything in the spool to get the exact cause of an error. When I run the APD process by itselt, it executes fine without any errors.
I used the following sap document to set this up in my process chain and followed everything they said:
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/200ef8fd-a249-2b10-1d9c-91b169be870b&overridelayout=true
Thanks -
Scheduling Process Chains through Jobs
Hi All,
I have a question regarding scheduling of process chains using Jobs created in SM36.
In our project we are not using Meta Chains to run the individual Process Chains.
Instead jobs have been created for each chain and the jobs are scheduled one after another and dependencies are maintained (e.g. Job A depends on Job B)
However, on scheduling, we find that even before Job B completes Job A gets triggered and both the Process Chains start running in parallel instead of waiting for the completion of the first Chain.
Any solution for this ??
Thanks
SamHi,
I can suggest one method using Events...
Start
|
Load-Cube A
|
After Success raise Event (This is Event Program, you need to insert)
After Event the dependent Process Chain will trigger
Start
|
Load-Cube B
|
After Success raise Event (This is Event Program, you need to insert) -->If you need
Create Events in SM64 and use in below Program..see the sample code.
REPORT ZE_SIT_RP.
DATA: EVENTID LIKE TBTCJOB-EVENTID.
DATA: EVENTPARM LIKE TBTCJOB-EVENTPARM.
EVENTID = 'ZE_SIT'.
EVENTPARM = 'ZEP_SIT'.
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.
Thanks
Reddy -
Re : The Overall status of the process chain
Once the process chain is executed to know the over all status of the chain process whether it is completed with errors or not where exactly in the data base the status of the process chain is store. Can any one send the database tables used in process chain
Hi
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
RSPCLOGCHAIN
Hope this may be helpful to you
Many thanks
Kiran
Maybe you are looking for
-
Reports Queue Manager - Status Information
Hi there, I would like to know if you can get status information from the reports queue manager. For your information: We are still using Forms/Reports 6i but looking forward to use 10g via web frontend. 1.) In detail I would like to control the 'num
-
Transitional to Strict, transition...
I'm wanting to step away from HTML 4.01 Transitional DOCTYPE to HTML 4.01 Strict DOCTYPE. When I have W3C validate by suppressing my Transitional DOCTYPE and inserting a Strict DOCTYPE - I notice some errors which I'm not fimiliar with how to handle
-
Security Issues - No password required for unsleeping and screensaver
I checked the box under security to 'require password when waking from sleep/screensaver' or whatever its called. It worked fine for like 2 weeks...i activate screensaver or sleep the laptop and have to put in a password to get out of it. Now when I
-
Data Anomalies on DS 5.2 - large allocation for small # of entries
I have 2 DS 5.2 systems running on Red Hat ES 3. These systems have only 1.5 million entries , yet are using over 16G of storage . Recently we had 200k were of updates, and added almost 2G worth of storage. Read performance is excellent, adds / updat
-
How can I work around a frozen screen issue on an iPad?