I have function module which imports my_values
my_values
is an custom internal table type of string.
This "my_values" variable contains for example: ["foo", "bar"]
I want to select all values from table Z_MYTAB
where the column my_col
is in my_values.
I tried this:
SELECT * FROM Z_MYTAB WHERE
my_col in @my_values INTO TABLE @DATA(my_rows).
But this fails with an error message:
table my_values has wrong row structure
(The message was translated to English. The original could be slightly different)
I could loop over my_values
but I would like to avoid this.
How to do SQL IN
with host variables which are internal tables?