28.01.2013 Views

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SAP HANA Developer Guide - Get a Free Blog

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

● CALL: Calls a procedure. For example:<br />

CALL getOutput (1000, 'EUR', NULL, NULL);<br />

Tools for Writing Procedures<br />

Use the SQLScript editor, which includes debugging capabilities, to build SQLScript procedures.<br />

You can also use the Navigator in the Modeler perspective to build procedures, but there are no debugging<br />

capabilities. You should only use this method:<br />

● If you need to develop a procedure using a local table type as an input or output parameter. A local table type<br />

is created within the Navigator procedure tool and for only the current procedure. If you can use a global table<br />

type, then use the SQLScript Editor.<br />

● If you need to edit a procedure previously created in the Navigator that contains table type parameters.<br />

Related Links<br />

<strong>SAP</strong> <strong>HANA</strong> SQL Reference<br />

<strong>SAP</strong> <strong>HANA</strong> SQLScript Reference<br />

<strong>SAP</strong> <strong>HANA</strong> R Integration <strong>Guide</strong><br />

<strong>SAP</strong> <strong>HANA</strong> Business Function Library (BFL) Reference<br />

<strong>SAP</strong> <strong>HANA</strong> Predictive Analysis Library (PAL) Reference<br />

Creating Procedures<br />

7.1 Editing SQLScript<br />

The <strong>SAP</strong> <strong>HANA</strong> SQLScript editor allows you to create, edit and activate procedures.<br />

Before you begin working in the <strong>SAP</strong> <strong>HANA</strong> SQLScript editor, open the <strong>SAP</strong> <strong>HANA</strong> Development perspective and<br />

do the following:<br />

● Create a development workspace. For more information, see Creating a Repository Workspace [page 39].<br />

● Checkout a package. For more information, see Working with the Repository [page 27] .<br />

Note: After checking out a package that contains active procedures, you can modify and debug the<br />

procedures.<br />

● Create and share a project. For more information, see Using <strong>SAP</strong> <strong>HANA</strong> Projects [page 37].<br />

.<br />

Note: You can also share your project after you create your procedure.<br />

To write and edit a procedure in the <strong>SAP</strong> <strong>HANA</strong> SQLScript editor, perform the following steps:<br />

<strong>SAP</strong> <strong>HANA</strong> <strong>Developer</strong> <strong>Guide</strong><br />

Developing Procedures<br />

P U B L I C<br />

© 2012 <strong>SAP</strong> AG. All rights reserved. 159

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!