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

Consuming a hana view with parameters and binding of variables

$
0
0

Hello all,

 

with adbc it is possible to bind input variables to sql statements:

 

...

Data: lv_werks TYPE WERKS_D.

 

* Bind input variables

    GET REFERENCE OF lv_werks INTO dref.

    lr_sql_env->set_param( dref ).

 

lv_sql_string = |SELECT * FROM … WHERE WERKS = ? |            

...

 

On the other hand it is possible to pass data to parameters of views like this:

| WITH PARAMETERS ('PLACEHOLDER' = ('$$P_MAXTIME$$',| &

              |{ cl_abap_dyn_prg=>quote( lv_time ) }))|.

 

Is there a way to combine both method? To use Parameters of views and to bind the value to abap variables instead of writing them directly?

 

It not each statement is written in the statemant cache an fills it when executed very often.

 

Thanks for all response,

Hartmut


Viewing all articles
Browse latest Browse all 2110

Trending Articles



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