Quantcast
Channel: SCN: Message List - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 2110

Error Message - Identifier must be declared

$
0
0

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:

error.JPG

Would appreciate some pointers.

 

Thanks!


Viewing all articles
Browse latest Browse all 2110

Trending Articles



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