Date Processing for Select-Option
I have a select-option element that takes in a range of PO Date.
The SELECT statement is as follows:-
select ebeln bedat ekorg ekgrp bukrs from ekko into corresponding fields of table gt_ekko where bedat in s_p_date and " s_p_date is a select-option for bedat ekorg in s_p_org and ekgrp in s_p_grp.
If valid low and high dates are inputted here, then there will be data correctly retrieved into the internal table gt_ekko.
However, if the low and high dates are equal, then there will be no data retrieved into the internal table gt_ekko at all.
How can I correct this? Please help. Thanks.
Additionally, is there an easier way to display this PO date (results) in an ALV list as the dd.mm.yyyy format instead of the yyyymmdd format?