Book Image

SAP Data Services 4.x Cookbook

By : Shomnikov
Book Image

SAP Data Services 4.x Cookbook

By: Shomnikov

Overview of this book

Want to cost effectively deliver trusted information to all of your crucial business functions? SAP Data Services delivers one enterprise-class solution for data integration, data quality, data profiling, and text data processing. It boosts productivity with a single solution for data quality and data integration. SAP Data Services also enables you to move, improve, govern, and unlock big data. This book will lead you through the SAP Data Services environment to efficiently develop ETL processes. To begin with, you’ll learn to install, configure, and prepare the ETL development environment. You will get familiarized with the concepts of developing ETL processes with SAP Data Services. Starting from smallest unit of work- the data flow, the chapters will lead you to the highest organizational unit—the Data Services job, revealing the advanced techniques of ETL design. You will learn to import XML files by creating and implementing real-time jobs. It will then guide you through the ETL development patterns that enable the most effective performance when extracting, transforming, and loading data. You will also find out how to create validation functions and transforms. Finally, the book will show you the benefits of data quality management with the help of another SAP solution—Information Steward.
Table of Contents (14 chapters)
11
11. Working with SAP Applications
13
Index

Nesting workflows to control the execution order

In this recipe, we will see how workflow objects are executed in the nested structure.

Getting ready

We will not create dataflow objects in this recipe, so to prepare an environment, just create an empty job object.

How to do it

We will create a nested structure of a few workflow objects, each of which, when executed, will run the script. It will display the current workflow name and the full path to the root job context. Follow these steps:

  1. In the job workspace, create a new workflow object, WF_root, and open it.
  2. In the Variables and Parameters window, when in the WF_root context, create one local variable $l_wf_name and one input parameter $p_wf_parent_name, both of the varchar(255) data type.
  3. Also, inside WF_root, add the new script object named Script with the following code:
    $l_wf_name = workflow_name();
    print('INFO: running {$l_wf_name} (parent={$p_wf_parent_name})');
    $l_wf_name = $p_wf_parent_name || ' > ' || $l_wf_name...