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.

Invoker's right: If you want the system to use the rights of the current user while executing the<br />

procedure.<br />

6. Select the required access mode as follows:<br />

Access Mode Purpose<br />

Read Only Use this mode to create procedures for fetching table data.<br />

Read Write Use this mode to create procedures for fetching and<br />

updating table data.<br />

7. Select the language in which you are writing the procedure.<br />

8. Choose Finish.<br />

9. In the function editor pane, write a script for the function using the following data types:<br />

○ Table or scalar data types for input parameters.<br />

○ Table data types for output parameters.<br />

Note: You can only write one function in the function body. However, you can refer to other functions.<br />

10. Choose File Save .<br />

11. Activate the procedure using one of the following options in the toolbar:<br />

○ Save and Activate: Activate the current procedure and redeploy the affected objects if an active version of<br />

the affected object exists. Otherwise only the current procedure gets activated.<br />

○ Save and Activate All: Activate the current procedure along with the required and affected objects.<br />

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

Developing Procedures<br />

Note: You can also activate the current procedure by selecting the procedure in the Navigator view<br />

and choosing Activate in the context menu. For more information about activation, see Activating<br />

Objects [page 132].<br />

P U B L I C<br />

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

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

Saved successfully!

Ooh no, something went wrong!