Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Selection Screen

shilpik20
Explorer
0 Likes
428

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?????

4 REPLIES 4
Read only

Former Member
0 Likes
402

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.

Read only

Former Member
0 Likes
402

You may be using some other date than the expiry date of contract for selection.

Read only

Former Member
0 Likes
402

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

Read only

Former Member
0 Likes
402

hI...

Is it Select-options or Parameters??? what did u use??