‎2007 Mar 27 12:20 PM
I have a selection screen where it asks for a range of two Date. The first field for FROM DATE and second field TO DATE. Once we give the relevent inputs the results is given in an ALV grid showing the "Contracts that needs to be renewed" with the message and the Contract no.
My problem is that if I renew and manually expire a contract using trascations me21 and me34 today.....if i give a single FROM DATE (todays date) at the selection sceen , i am not getting the message with the contract no.....But if i give range of dates i.e. FROM DATE and TO DATE (todays date) i am getting the output. So is it a problem with the selection screen or the program logic?????
‎2007 Mar 27 12:23 PM
it is program logic problem...
if not s_date-low is initial and not s_date-high is initial.
select ...........where date in s_date.
elseif not s_date-low is initial and s_date-high is initial.
select ...........where date = s_date-low.
endif.
‎2007 Mar 27 12:25 PM
You may be using some other date than the expiry date of contract for selection.
‎2007 Mar 27 12:26 PM
why don't u post the logic. i don't feel that it is belonged to selection-screen
you check
if variable-high eq space.
message error.
endif.
Message was edited by:
sunil kumar
‎2007 Mar 27 12:34 PM