O'Reilly logo

SAP Data Services 4.x Cookbook by Ivan Shomnikov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling failures – try-catch objects

In the Creating custom functions recipe in Chapter 3, Data Services Basics – Data Types, Scripting Language, and Functions, we created a custom function showing an example of the try-catch block exception handling in the scripting language. Like in the case of if-then-else and while loop, Data Services has a variation of the try-catch construction for the workflow/dataflow object level as well. You can put the sequence of the executable objects (workflows/dataflows) between Try and Catch objects and then catch potential errors in the Catch object where you can put scripts, dataflows, or workflows that you want to run to handle the caught errors.

How to do it…

The steps to deploy and enable the exception handling ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required