Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3363

hana as secondary database execute query limit

$
0
0

Hi All,

we are currently using HANA as a secondary database and use  execute_query  to call some of our SP's.

I am currently facing an issue where when we call around 30+ execute statements it gives an error on all subsequent executes.

 

Sample code to replicate issue. In my system it reach the break-point when the count is 31.

 

has anyone had an issue like this ?

 

DATA lr_exception TYPE REF TO cx_sql_exception.
 DATA lr_sql TYPE REF TO cl_sql_statement.
 DATA lr_result TYPE REF TO cl_sql_result_set.
 DATA lr_connection TYPE REF TO cl_sql_connection.
 DATA: lv_count TYPE I,       lv_NUM TYPE char4,       lv_qurrey TYPE string.
 lr_connection = cl_sql_connection=>get_connection( 'DEFAULT' ).
 CREATE object lr_sql
 EXPORTING   con_ref = lr_connection.
 DO 100 TIMES.   lv_count = lv_count + 1.   TRY.     lv_NUM = lv_count.     CONDENSE lv_NUM.     CONCATENATE 'CREATE LOCAL TEMPORARY TABLE #TMPDATA' lv_NUM ' LIKE MAKT'     INTO LV_QURREY RESPECTING BLANKS.     lr_sql->execute_query( LV_QURREY ).   CATCH cx_sql_exception INTO lr_exception.      BREAK-POINT.     lr_connection->close( ).     EXIT.     ENDTRY.
 ENDDO.

Viewing all articles
Browse latest Browse all 3363

Trending Articles



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