Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to iterate over internal table in SQL procedure?

$
0
0

Hello SDN.

 

I work on port some ABAP code to the HANA SQL stored procedure.

One of the input parameter has table type.

I want to know how I can iterate over this table?

In the ABAP I can write something like this:

 

LOOP AT lt_table ASSIGNING <fs_row>.     <statements>...
ENDLOOP.

But I don't know how to do such loop in HANA.

 

My variant

lt_rows = SELECT * FROM :TBL_DATA;
FOR ls_rows AS :lt_rows DO     <statements>...
END FOR;

leads to syntax error near lt_rows.

 

 

 

Regards,

Lev


Viewing all articles
Browse latest Browse all 6412

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>