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

Use Index-Based Cell Access

Leverage SQLScript in stored procedures, user defined functions, and user defined libraries.

Overview

🎓 intermediate 10 min. SAP HANAIntermediateSqlSAP HANA CloudSAP Business Application Studio

You will learn

  • โœ”How to use index-based cell access to manipulate table data.
Rich Heilman R Rich Heilman March 17, 2023
Created by February 11, 2021
Contributors

Prerequisites

Prerequisites

Steps

Intro

Using index-based cell access to manipulate table data is faster than using cursors or arrays.


Step 1 Create a new procedure
โ€”

  1. Use what you have learned and create a new procedure called build_products in the procedure folder.

    procedure editor
    procedure editor

  2. Use what you have learned about procedure parameters, and define an output parameters as show here.

    SQLScript
    out ex_products table (PRODUCTID nvarchar(10),
                           CATEGORY nvarchar(40),
                           PRICE decimal(15,2))
Step 2 Insert procedure code
+
Step 3 Save, deploy and check results
+

Resources

Discussion

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

Submit detailed feedback Discuss in Community
Steps
Step 1 of 3
1. Create a new procedure 2. Insert procedure code 3. Save, deploy and check results

Learn more →