‎2006 Sep 13 5:27 AM
Hi All..
I have 4 fields in Selection screen.
No one is mandatory.
User wishes to select the details from a table by giving inputs in the selection screen.
I have coded as..
select * from ZTABLE into corresponding fields of table itab
where zreqno = s_reqno-low
or zdate in s_date
or zreqby = s_reqnam-low
or zapprname = s_appnam-low.
System is not able to fetch correct records from Table with given inputs...
What will be the right code..????
‎2006 Sep 13 5:30 AM
HI,
try this.
<b>select * from ZTABLE into corresponding fields of table itab
where zreqno in s_reqno
or zdate in s_date
or zreqby in s_reqnam
or zapprname in s_appnam.</b>Regards,
‎2006 Sep 13 5:29 AM
select * from ZTABLE into corresponding fields of table itab
where zreqno in s_reqno
or zdate in s_date
or zreqby in s_reqnam
or zapprname in s_appnam.
‎2006 Sep 13 5:30 AM
put like this
select * from ZTABLE into corresponding fields of table itab
where zreqno in s_reqno.
or zdate in s_date
or zreqby in s_reqnam.
or zapprname in s_appnam.but check the performamce.
Regards
Prabhu
‎2006 Sep 13 5:30 AM
HI,
try this.
<b>select * from ZTABLE into corresponding fields of table itab
where zreqno in s_reqno
or zdate in s_date
or zreqby in s_reqnam
or zapprname in s_appnam.</b>Regards,
‎2006 Sep 13 6:07 AM
hi,
i think in this case,
you better define
*------
initialization.
s_reqno-low = <least value>
s_reqnam-low = <least value>
s_appnam-low = <least value>
*---and now continue with your select statement.
cheers,
Aditya.