Quantcast
Channel: SCN : Popular Discussions - ABAP for SAP HANA
Viewing all articles
Browse latest Browse all 1246

Duplicate entries while selecting from Calculation View through ADBC connection

$
0
0

Hello All,

 

I am trying to select from the calculation view and the select statement passed to the EXECUTE_QUERY is as below.

 

SELECT * FROM "_SYS_BIC"."20350139.vendoraging/OPEN_FINAL1" WHERE (  LIFNR = '0000009999' ) AND ( UMSKZ = '' ) WITH PARAMETERS ('PLACEHOLDER' = ('$$RB_INPUT$$',' B '))

 

The code is

 

TRY.

 

       lo_connection = cl_sql_connection=>get_connection('021:R:R').

       lo_statement = lo_connection->create_statement( ).

 

       CALL METHOD lo_statement->execute_query

         EXPORTING

           statement   = lv_statement

           hold_cursor = abap_false

         RECEIVING

           result_set  = lo_result_set1.

 

       lo_result_set1->set_param_table( ls_view1 ).

       lo_result_set1->NEXT_package( ).

       lo_result_set1->close( ).

     CATCH cx_sql_exception INTO error.

       WRITE:/ 'Message', error->sql_message.

   ENDTRY.

 

The internal table is populated with 15 records, where the each record is duplicated thrice.

 

When the same select statement is executed in SAP HANA 5 records are being fetched.

 

Please advice what could be wrong here.

 

Regards,

Revathi SJ


Viewing all articles
Browse latest Browse all 1246

Trending Articles



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