Hello all,
We are trying to create an AMDP joining a few tables, applying some where clauses and returning a list of records. In this we are trying to dynamically pass the LIMIT and OFFSET parameters to the AMDP. Here we declare the values to be passed in the signature of the AMDP as importing parameters. But HANA Studio keeps throwing an error message saying the identifiers must be declared.
Here is our code:
The method definition
CLASS-METHODS execute
IMPORTING VALUE(iv_top) TYPE int4
VALUE(iv_skip) TYPE int4.
EXPORTING VALUE(et_result) <relevant type>
The method implementation
METHOD execute BY DATABASE PROCEDURE FOR HDB LANGUAGE SQLSCRIPT
OPTIONS READ-ONLY USING <some tables>.
et_result = SELECT <required columns> FROM <tables, joins and where conditions>
LIMIT :iv_top OFFSET :iv_skip;
ENDMETHOD.
The error message displayed is this:
Would appreciate some pointers.
Thanks!