SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
โคข Open full site

Parallel Processing and Parameters

Leveraging SQLScript in stored procedures, user-defined functions, and user-defined libraries.

Overview

🎓 intermediate 15 min. SAP HANAIntermediateSqlExpress Edition

You will learn

  • โœ”How to take full advantage of parallel processing in SAP HANA by using table variables
Rich Heilman R Rich Heilman November 1, 2022
Created by September 5, 2016
Contributors

Prerequisites

Prerequisites

  • This tutorial is designed for SAP HANA on premise and SAP HANA, express edition. It is not designed for SAP HANA Cloud.
  • Tutorials: Creating Stored Procedures

Steps

Intro

In this exercise, we will modify the code of procedure get_po_header_data so that it takes full advantage of the parallel processing within HANA by using table variables.


Step 1 Edit previous procedure
โ€”

Return to your procedure called get_po_header_data.

Existing Procedure
Existing Procedure

Define two tabular output parameters which will be used to explicitly pass the results of the SELECT statements to the caller.

Define output
Define output

Step 2 Assign SELECT statements
+
Step 3 Save and build
+
Step 4 Run the procedure again
+
Step 5 Check execution time
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Edit previous procedure 2. Assign SELECT statements 3. Save and build 4. Run the procedure again 5. Check execution time

Learn more →