Hi All,
I have noted something that can be done when processing internal tables but doesn't seem to work for Select statements against a DB table.
So, lets say I have class ZCL_MyClass which has a static method GET_RANGE.
The static method returns a Range.
If I have an internal (lt_tab) I can do the following:
delete lt_tab where statu in ZCL_MyClass=>GET_RANGE( ).
Is it possible to do something similar when using SQL. for example something like:
select *
into table lt_tab
from mara
where statu in ZCL_MyClass=>GET_RANGE( ).
I have a number of ways I would also like to use this scenario (basically using the class method like a function is used in other languages) but this scenario is specifically what I am interested in at the moment.
I was also wondering whether (if the scenario is possible) whether a singleton would be a good idea in this case?
I have searched the forums but nothing similar seemes to come up.
Look forward to hearing the replies
Many thanks
Gaz Hawkins