Hi every one, I and developing a report based on dates.
My requirement is that there are two parameters that are FromDate and ToDate.
My query is to select between dates if user gives date, and if not then whole data should be displayed.
Select
<fields> <fields> <fields> <fields>
From
<table>
Inner Join
<table>
on <fields>= <fields>
where
Date between FromDate AND ToDate.
If the above parameters are not provided it should fetch all data.
I've done this in T-sql many times using ISNULL(<param>,<field>) but I am new to Abap opensql.
Thank You.