Hello. Is there a way to dynamically generate a query?
For example: I'm doing an RFC call that sometimes the strings contains data, the other times they don't. Is there a way of building the query to only 'and' the values when there are values there?
Like
a = '1'
b = ''
c = '2'
select * from whereever where a = 1 (dont include b because its empty) and c = 2
Any ideas?
thanks, Graeme.
Yes, you can. It can be restrictive. I've done it, though I don't have any examples to hand. Dug up the help for it
http://help.sap.com/saphelp_47x200/helpdata/en/67/93b80914a911d2953c0000e8353423/frameset.htm
Just look at dynamic conditions
Add a comment