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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

5. To start your debug session, choose and select your debug configuration. The debug session will begin<br />

and you will see the status of the session in the Debug view. The status of a breakpoint may change after the<br />

server has validated it. The breakpoint position might change if it is placed on an invalid line where the<br />

debugger cannot stop. The debugger will stop at the first breakpoint and the session will be suspended until<br />

you resume it.<br />

If your run is successful, the valid status will appear next to the breakpoints in the Breakpoints view.<br />

Note: You must set breakpoints in the lines you want to break at and resume the session again.<br />

You can evaluate your local scalar and table variables in the Variable view. The view shows the values of the<br />

scalar variables and the number of rows in each table.<br />

6. To view the content of the tables listed in the Variable view, right-click on the table name and select Open Data<br />

Preview. The results will appear in the Preview view. This view will automatically close when you resume your<br />

debug session.<br />

The session will be terminated when you reach the end of the procedure run.<br />

7.3 Developing Procedures in the Modeler Editor<br />

To create procedures, use the SQLScript Editor, as described in Editing SQLScript [page 159].<br />

If you need to create procedures with local table types, that is, table types created only for the procedure, perform<br />

the steps described in this section.<br />

1. On the Quick Launch tab page, choose Procedure.<br />

If the Quick Launch page is not open, go to Help Quick Launch .<br />

2. Enter a name and description for the procedure.<br />

3. For unqualified access in SQL, select the required schema from the Default Schema dropdown list.<br />

Note:<br />

○ If you do not select a default schema, while scripting you need to provide fully qualified names of<br />

the catalog objects that include the schema.<br />

○ If you specify a default schema, and write SQL such as select * from myTable, the<br />

specified default schema is used at runtime to refer to the table.<br />

4. Select the package in which you want to save the procedure.<br />

5. Select the required option from the Run With dropdown list to select which privileges are to be considered<br />

while executing the procedure.<br />

162<br />

Note:<br />

There are two types of rights, as follows:<br />

Definer's right: If you want the system to use the rights of the definer while executing the procedure<br />

for any user.<br />

P U B L I C<br />

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

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

Developing Procedures

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

Saved successfully!

Ooh no, something went wrong!