Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3323

How to create a range table dynamically to be used in Dynamic select query?

$
0
0

Hello Experts,

I am facing an issue in creating the range table which can be used in a dynamic select query.

 

E.g. As below

 

loop at itab into wa.

lv_fieldname = wa-fieldname.

 

Now, have to create range table for this field which can be known in run time.

 

append this range table to final <condition> table till the loop ends.

 

endloop.

 

Now write a select query :

 

Select * from <dbtable> into <itab_data> where <(condition)>.

 

Could someone please guide me on how to proceed with this..or any better ways please...

 

 

Thanks in advance.

Vinay.


Viewing all articles
Browse latest Browse all 3323

Trending Articles



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