‎2007 Sep 05 2:25 PM
Hi all,
I have a parameter in selection-screen..i.e,,P_CDATE...it is optional.
I have to fetch some data from MARA based on this field.
SELECT MATNR
ERSDA
AENAM
FROM MARA INTO TABLE INT_OUTTAB
WHERE ERSDA EQ P_CDATE.
If P_CDATE is initial....i am not getting the entire data...based on this condition.
can any one help me regarding this....
vkr.
‎2007 Sep 05 2:29 PM
hi
use select-option instead of parameter... if parameter is initial u wont get the data
Thanks
‎2007 Sep 05 2:27 PM
HI vkr,
1. Instead of parameter,
<b>use SELECT OPTION.</b>
2. And also use IN inside the query (instead of 😃
WHERE ERSDA IN P_CDATE
3. Then it will get all data, even if the field (select option)
is blank.
regards,
amit m.
‎2007 Sep 05 2:29 PM
hi
use select-option instead of parameter... if parameter is initial u wont get the data
Thanks
‎2007 Sep 05 2:30 PM
Hi VKR,
With
PARAMETERSin WHERE condition we dont get all entries.
Only with
SELECT-OPTIONSin WHERE condition we get all entries even if it is initial.
WHERE ERSDA IN s_date.<b>Reward points for helpful answers</b>.
Best Regards,
Ram.