‎2008 Jan 29 3:59 PM
Hello experts,
I need to execute a select which I obtain concatenating several fields into string variable.
So the select is saved in a string:
var = 'select... from ... where...'.
There is any way to execute that select? ("exec var." or similar??)
thanks
‎2008 Jan 29 5:17 PM
Hi,
create the select statement in a generated subroutine and pass the values for select.
Search for " Dynamic select: in the forum...
Thanks
‎2008 Jan 29 5:17 PM
Hi,
create the select statement in a generated subroutine and pass the values for select.
Search for " Dynamic select: in the forum...
Thanks
‎2008 Jan 29 11:00 PM
Hello Illie
Would it not be possible to use a simple dynamic SELECT, e.g.:
DATA:
ldo_data TYPE REF TO data.
FIELD-SYMBOLS:
<lt_itab> TYPE TABLE.
CREATE DATA ldo_data TYPE TABLE OF (ld_tabname).
ASSIGN ldo_data->* TO <lt_itab>.
SELECT * from (ld_tabname) INTO TABLE <lt_itab>
WHERE (ld_clause_string).
Regards
Uwe