Start of Content Area

Procedure documentation Creating Process Chains  Locate the document in its SAP Library structure

Prerequisites

If you want to include a load process in the process chain, you need to have already created an InfoPackage.

You cannot load flat file data from a client workstation in the background. Therefore, you must store your data on an application server.

Creating Process Chains

You can either create a process chain directly in the process chain maintenance screen, or by using a maintenance dialog for a process:

Creating a Process Chain Directly in the Process Chain Maintenance Screen

In the BW Administrator Workbench:

...

       1.      Choose the This graphic is explained in the accompanying text Process Chain Maintenance icon from the AWB toolbar.

The Process Chain Selection dialog box appears.

       2.      Choose Create.

       3.      Enter the technical name and a description of the chain, and confirm your entry.

The Add Start Process dialog box appears.

       4.      Create a variant for a start process.

a.       On the Maintain Start Process screen, choose whether you want to schedule the chain directly or whether you want to start it using a metachain.

b.       If you choose to schedule the chain directly, enter the start date value for the chain under Change Selections and save your entries.

The Maintain Start Process screen appears again.

c.       Save your entries, go back to the previous screen and confirm your entries in the Add Start Process dialog box.

The This graphic is explained in the accompanying text Plan View of the process chain maintenance screen appears.

In the left-hand area of the screen, a navigation area is displayed. In the right-hand area of the screen, the process chain is displayed.

       5.      Use Drag&Drop or double-click to add the relevant processes to your process chain.

Choose This graphic is explained in the accompanying text Process Types to select the processes. This sorts the process types according to different categories. You can also call up InfoPackages and processes for the data target from the separate This graphic is explained in the accompanying text InfoSources and This graphic is explained in the accompanying text Data Targets navigation trees.

Note

If you insert a process into the chain that is linked to additional processes by default, the respective process variants are generated and automatically inserted into the process chain. These variants are suggestions and can be changed, replaced or removed from the chain as required. Variant maintenance is called when the change run performs automatic insert.
You can turn this system response off using Settings
Default Chains.

For more information, see Plan and Check View Functions.

Creating a Process Chain Using the Maintenance Dialog for a Process

In the maintenance dialog of a process that you want to include in a process chain:

...

...

       1.      Choose the Process Chain Maintenance pushbutton and create a process variant.

       2.      Save the variant and go back to the previous screen.

A dialog box appears in which you enter a technical name and a description of the chain that you want to create.

       3.      Confirm your entries.

The Add Start Process dialog box appears.

       4.      Create a variant for a start process.

a.       On the Maintain Start Process screen, choose whether you want to schedule the chain directly or whether you want to start it using a metachain.

b.       If you choose to schedule the chain directly, enter the start date value for the chain under Change Selections and save your entries.

The Maintain Start Process screen appears again.

c.       Save your entries, go back to the previous screen and confirm your entries in the Add Start Process dialog box.

The This graphic is explained in the accompanying text Plan View of the process chain maintenance screen appears.

The various process categories, the application processes, and collection processes are displayed in the left-hand area of the screen. In the right-hand area of the screen, the process chain is displayed.

Note

If the process that you used to create a chain is linked to additional processes by default, the respective process variants are generated and inserted into the process chain automatically. These variants are suggestions and can be changed, replaced or removed from the chain as required. Variant maintenance is called when the change run performs automatic insert.
You can turn this system response off using Settings
Default Chains.

For more information, see Plan and Check View Functions.

       5.      Use Drag&Drop or a double-click to insert any additional relevant processes into your process chain.

Choose This graphic is explained in the accompanying text Process Types to select the processes. This sorts the process types according to different categories. You can also call up InfoPackages and processes for the data target from the separate This graphic is explained in the accompanying text InfoSources and This graphic is explained in the accompanying text  Data Targets navigation trees.

Additional Steps for Creating a Process Chain

       6.      When you add a process, you need to select a process variant or create a new variant. For collection processes, the system uniquely determines the variants.

Note

Various functions for editing the process are available from the context menu:

Context Menu Entry for a Process

Function Information

Maintain variants

With the exception of the variants in the collection processes OR and EXOR, you can use this function to change all process variants.

Exchange variants

You can exchange the variants for an existing variant or a variant that is to be created.

Link with…

You can use this function to link a process to a successor process. You can choose from the processes that are not yet linked to the current process. They are grouped according to process type in submenus.

Display scheduled jobs

Once the process chain is active, you can use this function to display the jobs that have been scheduled.

Display all jobs

After at least one process chain run, you can display all of the scheduled jobs for a specific process and all of the jobs with which this process was run. The Job Overview appears and you can call the relevant job log.

Create message

You can also send messages to an application process of the chain, depending on the success or failure of the process.

1.       To do this, using the context menu for a process, create another process variant of type Send Message.

2.       If you maintain a message, first specify whether you want the message to be sent when the process has been completed successfully or unsuccessfully. Then choose Next.

3.       A dialog box appears, in which you can select an existing process variant or create a new one.

4.       If you create a new process variant, edit the document that is going to be sent and maintain a list of recipients.

5.       Save your process variant and go back.

The message process variant is now assigned to your application process. When the message is sent, the status information and the process log are also sent.

Debug loop

Caution

Only use this function to debug a process run.

Specify how long (in seconds) you want the delay to be between one event being triggered and the next process starting.

You can capture the process in the debugger by using transaction SM37 (Job Overview) or SM50 (Process Overview).

Remove process

You use this function to remove a process from a process chain.

Manage data target

You use this function to call the data target administration for the following types of process variants:

·         Construct index

·         Delete index

·         Construct database statistics

·         Roll up filled aggregates

·         Compress InfoCube

·         Activate DataStore object data

  

       7.      Hold down the left mouse button to connect the processes with events.

Note

Before you do this, select the process underneath the process type row, and position the cursor over the required process. When you select the process type row, the whole process is moved into the plan view.

From the context menu of a link, you can display the event or remove the link. To do this, select the link and right-click with the mouse.

       8.      If necessary, specify whether you want the event to be triggered after the previous process has been completed successfully or unsuccessfully, or whether you want the event to be triggered independently of the outcome of the process that precedes it. If the process that triggers the event has more than one option, choose the option after which the successor process is to be run (see process type Decisions).

       9.      Assign a display component to the process chain using Attributes Display Components.

   10.      Maintain additional process chain attributes if necessary.

   11.      Check your process chain in the This graphic is explained in the accompanying text Check View and make any necessary corrections.

Note

The This graphic is explained in the accompanying text Legend explains the meaning of the different colors used to display the processes and links.

From the context menu for a process, you can display the messages resulting from the check.

During the check, the system calculates the number of parallel processes according to the structure of the chain (subchains are recursively taken into account here). The result is compared with the number of background processes on the chosen server (or the total of all available servers if no server is specified in the attributes of the process chain). If the number of parallel processes is greater than the number of available background processes, the system highlights every level of the process chain where the number of processes is too high. The system produces a warning for these levels.

   12.      Save your process chain if it does not contain any errors.

Result

You can activate and schedule your process chain. After scheduling, the chain starts in accordance with the start process selections. For example, if you scheduled the start process directly and chose Immediately as the start date value, the chain run starts immediately after scheduling.  In the This graphic is explained in the accompanying text Log View, you can display the reports for the chain runs.

See also:

Process Chain Display Logs

 

End of Content Area