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