• Home
  • Testing
  • SAP
  • Web
  • Must Learn!
  • Big Data
  • Live Projects
  • Blog

What is Process Chain?

  • A process chain is a sequence of processes that wait in the background for an event.
  • Some of these processes trigger a separate event that can start other processes in turn.
  • It provides various connectors that allow alternative and parallel execution of process.
  • For example, a retail store receives a customer order, this will trigger a sequence of events like checking material in stockàordering the product from Warehouseàorder to manufacture the product and so on. 
  • Process chains provide graphical scheduling & monitoring features to help in automation, visualization & monitoring of tasks / processes.
  • Process chains are integrated into portal based BI administration cockpit.
  • Process Chains can be thought of as flowcharts which are scheduled to wait in background & triggered for an event by another process.

Process Chain involves three main steps

  1. Start Process: It describes when the process will start (immediately, scheduled job, metaprocess, API)
  2. Connector: It is a linking process, and can choose options of starting next process
  3. Variant: The object on which we are supposed to execute the process is called as Variant. It is a set of parameters passed to the process like name of the InfoPackage or Info-Objects

In this tutorial you will learn –

Steps to create a process chain.

Steps to check consistency of process chain.

Steps to activate a process chain.

Steps to assign Process Chain to application component.

Steps to activate a Process Chain.

How to Monitor Process Chains.

Steps To Create a Process Chain

RSPC is the whole and sole transaction used for Process Chain Maintenance. In this screen, existing process chains are sorted by “ApplicationComponents”.

 There are two views available:

  1. Check View
  2. Planning View.

The default mode is Planning View.

Step 1)

Creating a Process Chain:

Click the “Create” icon.

Step 2)

  1. Enter the Technical name of the Process Chain.
  2. Enter a meaningful description for the Process Chain.

Click Check Mark

Step 3)

A new window pops-up. Click on “New” icon to create a new “Start Process”.

Step 4)

  1. Enter the Technical name of the Start Process.
  2. Enter a meaningful description for the Start Process and click the Enter button.

Step 5)

The subsequent screen is used to assign time-based or event based trigger for the process chain.

  1. Click on the option “Direct Schedule” to schedule the process chain for a specific time.
  2. Click on the button “Change Selections” to enter the details for Scheduling the Process chain for execution.

Step 6)

Steps for Scheduling a Process Chain:

  1. Click on the “Date/Time” button. Specify the Scheduled Start date/time,end date/time.
  2. To set frequency, click on the check box “Periodic Job”.
  3. Click the button “PeriodValues”.
  4. In next screen, select required frequency (Hourly/Daily/Weekly/Monthly/Other Period). Click on Save icons and back button to go back to previous RSPC screen.

Click save

Step 7)

Add Info Package:

Click on icon for “Process Types” to proceed.

Step 8)

As discussed earlier, data load can be triggered via an InfoPackage or a DTP.

  1. If the dataload is to be done via an InfoPackage, use the Process type “Execute InfoPackage”
  2. If the dataload is to be done via a DTP, use the Process type “Data Transfer Process”

Step 9)

A new pop-up window appears. Here you can choose the required InfoPackage.

Step 10) 

Connect both the Start Variant and the InfoPackage:

There are 2 ways to do this – Right click on first step. Click on “Connect With” ->“Load Data”

Another way is to select the “Start Variant” and keep the left mouse button pressed. Then move mouse button to the target step. An arrow should follow your movement. Stop pressing the mouse button and new connection is created. From the start process to every second step there is a black line.

The Process chain appears as below after a Connection between the Start variant and Infopackage is created.

For any subsequent step, we can choose if the successor step shall be executed only if the predecessor.

  • Was successful: typically used in normal processing
  • Ended with errors: Typically used to send failure messages
  • Execute irrespective of success or failure of previous step

Steps To Check Consistency of Process Chain

  1. Select the menu “Goto”
  2. Choose “Checking view”.

SAP will verify if all steps are connected and have at least one predecessor. Logical errors are not detected. If we get warnings or “Chain is OK”message, we can activate it. If the check identifies some errors , we have to remove the errors first.

Steps To Activate a Process Chain

  1. Click on the menu “Process Chain”
  2. Select “Activate”.
  3. Or select the “Activate” button

Steps To Assign Process Chain To Application Component

By default, the Process Chain is created under application component “Not Assigned”.

  1. Choose “ApplicationComponent” button
  2. Select the required component and Re-Activate the chain.

 

Steps To Activate a Process Chain

  1. Click on the menu “Execution”.
  2. Choose “Schedule”.

Alternatively press the button “Schedule”.

The chain will be scheduled as background job and can be viewed in SM37 transaction code. You will find a job named “BI_PROCESS_TRIGGER”. All the Process chains are scheduled with same job name.

How to Monitor Process Chains

  1. There are a number of work environments available for monitoring process chain runs:
  2. Navigate to Administration tab from DatawarehouseWorkBench(RSA1)
  3. BI Monitor in the Computing Center Management System (CCMS)
  4. Monitoring of Daily Process Chains (Transaction RSPCM)
  5. Log view for runs of a process chain in process chain maintenance (transaction RSPC)

 

YOU MIGHT LIKE: